PackagesCanonicalsLogsProblems
    Packages
    bd.fhir.core@0.4.7
    https://fhir.dghs.gov.bd/core/StructureDefinition/bd-related-person
description: Profile for RelatedPerson in Bangladesh.\nUsed to represent father, mother, or guardian of a patient.\n- Identifier is mandatory and must use BD identifier systems (NID, BRN, UHID)\n- Relationship is mandatory\n- Name is mandatory
package_name: bd.fhir.core
derivation: constraint
name: BDRelatedPerson
type: RelatedPerson
elements:
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        NID:
          match: {system: 'http://dghs.gov.bd/identifier/nid'}
          schema:
            index: 1
            elements:
              type:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type'}
                        index: 2
                      code:
                        pattern: {type: Code, value: NID}
                        index: 3
                  text:
                    pattern: {type: String, value: Organization identifier}
                    index: 4
              system:
                pattern: {type: Uri, value: 'http://dghs.gov.bd/identifier/nid'}
                index: 5
            required: [system]
        BRN:
          match: {system: 'http://dghs.gov.bd/identifier/brn'}
          schema:
            index: 6
            elements:
              type:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type'}
                        index: 7
                      code:
                        pattern: {type: Code, value: BRN}
                        index: 8
                  text:
                    pattern: {type: String, value: Organization identifier}
                    index: 9
              system:
                pattern: {type: Uri, value: 'http://dghs.gov.bd/identifier/brn'}
                index: 10
            required: [system]
        UHID:
          match: {system: 'http://dghs.gov.bd/identifier/uhid'}
          schema:
            index: 11
            elements:
              type:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type'}
                        index: 12
                      code:
                        pattern: {type: Code, value: UHID}
                        index: 13
                  text:
                    pattern: {type: String, value: Organization identifier}
                    index: 14
              system:
                pattern: {type: Uri, value: 'http://dghs.gov.bd/identifier/uhid'}
                index: 15
            required: [system]
  patient:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.dghs.gov.bd/core/StructureDefinition/bd-patient']
    index: 16
  relationship: {mustSupport: true, index: 17}
  name: {mustSupport: true, index: 18}
package_version: 0.4.7
class: profile
kind: resource
url: https://fhir.dghs.gov.bd/core/StructureDefinition/bd-related-person
base: http://hl7.org/fhir/StructureDefinition/RelatedPerson
version: 0.4.7
required: [relationship, name, identifier]