PackagesCanonicalsLogsProblems
    Packages
    bd.fhir.core@0.4.5
    https://fhir.dghs.gov.bd/core/StructureDefinition/bd-patient
description: 'Patient profile for Bangladesh.  \n- Identifiers: NID, BRN, UHID  \n- Name must be provided in both Bangla and English.  \n- SHALL have at least one RelatedPerson with relationship = father or mother, and that RelatedPerson SHALL include both a name and an identifier.'
package_name: bd.fhir.core
derivation: constraint
name: BDPatient
type: Patient
elements:
  address: {type: Address, mustSupport: true, index: 34}
  deceasedDateTime: {type: dateTime, choiceOf: deceased, index: 33}
  name:
    mustSupport: true
    index: 23
    elements:
      use:
        pattern: {type: Code, value: official}
        index: 24
      text:
        mustSupport: true
        index: 25
        extensions:
          nameEn: {url: 'https://fhir.dghs.gov.bd/core/StructureDefinition/bd-name-en', min: 1, max: 1, type: Extension, mustSupport: true, index: 27}
          nameBn: {url: 'https://fhir.dghs.gov.bd/core/StructureDefinition/bd-name-bn', min: 1, max: 1, type: Extension, mustSupport: true, index: 28}
        elements:
          extension:
            array: true
            min: 2
            index: 26
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: url, type: value}
              min: 2
              slices:
                nameEn:
                  match: {url: null}
                  schema: {type: Extension, mustSupport: true, url: 'https://fhir.dghs.gov.bd/core/StructureDefinition/bd-name-en', index: 27}
                  min: 1
                  max: 1
                nameBn:
                  match: {url: null}
                  schema: {type: Extension, mustSupport: true, url: 'https://fhir.dghs.gov.bd/core/StructureDefinition/bd-name-bn', index: 28}
                  min: 1
                  max: 1
    required: [text, use]
  birthDate: {index: 30}
  deceased:
    choices: [deceasedDateTime]
    index: 32
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        religion:
          match: {url: null}
          schema:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/patient-religion
            index: 1
            elements:
              value:
                choices: []
                index: 3
  identifier:
    index: 4
    slicing:
      rules: open
      ordered: false
      description: Slice based on the type of identifier.
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        NID:
          match: {system: 'http://dghs.gov.bd/identifier/nid'}
          schema:
            index: 5
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type-valueset'}
                index: 6
                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: NID}
                        index: 8
                  text:
                    pattern: {type: String, value: Organization identifier}
                    index: 9
              system:
                pattern: {type: Uri, value: 'http://dghs.gov.bd/identifier/nid'}
                index: 10
            required: [system]
        BRN:
          match: {system: 'http://dghs.gov.bd/identifier/brn'}
          schema:
            index: 11
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type-valueset'}
                index: 12
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type'}
                        index: 13
                      code:
                        pattern: {type: Code, value: BRN}
                        index: 14
                  text:
                    pattern: {type: String, value: Organization identifier}
                    index: 15
              system:
                pattern: {type: Uri, value: 'http://dghs.gov.bd/identifier/brn'}
                index: 16
            required: [system]
        UHID:
          match: {system: 'http://dghs.gov.bd/identifier/uhid'}
          schema:
            index: 17
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type-valueset'}
                index: 18
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type'}
                        index: 19
                      code:
                        pattern: {type: Code, value: UHID}
                        index: 20
                  text:
                    pattern: {type: String, value: Organization identifier}
                    index: 21
              system:
                pattern: {type: Uri, value: 'http://dghs.gov.bd/identifier/uhid'}
                index: 22
            required: [system]
  gender: {index: 29}
  maritalStatus:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/marital-status'}
    index: 35
package_version: 0.4.5
extensions:
  religion:
    url: http://hl7.org/fhir/StructureDefinition/patient-religion
    type: Extension
    index: 1
    elements:
      value:
        choices: []
        index: 3
class: profile
kind: resource
url: https://fhir.dghs.gov.bd/core/StructureDefinition/bd-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.4.5
required: [gender, name, address, identifier]