PackagesCanonicalsLogsProblems
    Packages
    bd.fhir.core@0.2.0
    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: BDPatientProfile
type: Patient
elements:
  address: {type: Address, mustSupport: true, index: 44}
  deceasedDateTime: {type: dateTime, choiceOf: deceased, index: 43}
  name:
    mustSupport: true
    index: 23
    elements:
      use:
        pattern: {type: Code, value: official}
        index: 24
      text:
        mustSupport: true
        index: 25
        extensions:
          nameEn:
            url: http://hl7.org/fhir/StructureDefinition/translation
            type: Extension
            mustSupport: true
            index: 27
            extensions:
              lang:
                url: null
                index: 29
                elements:
                  value:
                    pattern: {type: Code, value: en}
                    choices: []
                    index: 31
              content: {url: null, mustSupport: true, index: 32}
            elements:
              extension:
                array: true
                min: 2
                index: 28
                slicing:
                  slices:
                    lang:
                      match: {}
                      schema:
                        index: 29
                        elements:
                          value:
                            pattern: {type: Code, value: en}
                            choices: []
                            index: 31
                    content:
                      match: {}
                      schema: {mustSupport: true, index: 32}
          nameBn:
            url: http://hl7.org/fhir/StructureDefinition/translation
            type: Extension
            mustSupport: true
            index: 33
            extensions:
              lang:
                url: null
                index: 35
                elements:
                  value:
                    pattern: {type: Code, value: bn}
                    choices: []
                    index: 37
              content: {url: null, mustSupport: true, index: 38}
            elements:
              extension:
                array: true
                min: 2
                index: 34
                slicing:
                  slices:
                    lang:
                      match: {}
                      schema:
                        index: 35
                        elements:
                          value:
                            pattern: {type: Code, value: bn}
                            choices: []
                            index: 37
                    content:
                      match: {}
                      schema: {mustSupport: true, index: 38}
        elements:
          extension:
            mustSupport: true
            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: http://hl7.org/fhir/StructureDefinition/translation
                    index: 27
                    extensions:
                      lang:
                        url: null
                        index: 29
                        elements:
                          value:
                            pattern: {type: Code, value: en}
                            choices: []
                            index: 31
                      content: {url: null, mustSupport: true, index: 32}
                    elements:
                      extension:
                        array: true
                        min: 2
                        index: 28
                        slicing:
                          slices:
                            lang:
                              match: {}
                              schema:
                                index: 29
                                elements:
                                  value:
                                    pattern: {type: Code, value: en}
                                    choices: []
                                    index: 31
                            content:
                              match: {}
                              schema: {mustSupport: true, index: 32}
                nameBn:
                  match: {url: null}
                  schema:
                    type: Extension
                    mustSupport: true
                    url: http://hl7.org/fhir/StructureDefinition/translation
                    index: 33
                    extensions:
                      lang:
                        url: null
                        index: 35
                        elements:
                          value:
                            pattern: {type: Code, value: bn}
                            choices: []
                            index: 37
                      content: {url: null, mustSupport: true, index: 38}
                    elements:
                      extension:
                        array: true
                        min: 2
                        index: 34
                        slicing:
                          slices:
                            lang:
                              match: {}
                              schema:
                                index: 35
                                elements:
                                  value:
                                    pattern: {type: Code, value: bn}
                                    choices: []
                                    index: 37
                            content:
                              match: {}
                              schema: {mustSupport: true, index: 38}
    required: [text, use]
  birthDate: {index: 40}
  deceased:
    choices: [deceasedDateTime]
    index: 42
  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/ValueSet/bd-identifier-type-valueset'}
                        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/ValueSet/bd-identifier-type-valueset'}
                        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/ValueSet/bd-identifier-type-valueset'}
                        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: 39}
  maritalStatus:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/marital-status'}
    index: 45
package_version: 0.2.0
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.2.0
required: [gender, name, address, identifier]