PackagesCanonicalsLogsProblems
    Packages
    hie2.packages@1.0.1
    http://fhir.hie.moh.gov.my/StructureDefinition/Patient-my-core
description: This profile represents the constraints applied to the Patient resource by MY Core FHIR Implementation Guide and describes the minimum expectations for the Patient resource when used in the MY Core composition or in one of the referred resources.
package_name: hie2.packages
derivation: constraint
name: PatientMyCore
type: Patient
elements:
  address: {type: Address, mustSupport: true, index: 27}
  managingOrganization:
    type: Reference
    refers: ['http://fhir.hie.moh.gov.my/StructureDefinition/Organization-my-core']
    index: 38
  name:
    constraint:
      ips-pat-1: {human: Patient.name.given or Patient.name.family or both SHALL be present, source: 'http://fhir.hie.moh.gov.my/StructureDefinition/Patient-my-core', severity: error, expression: family.exists() or given.exists()}
    mustSupport: true
    index: 18
    extensions:
      personTitle: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', min: 0, max: 1, type: Extension, index: 20}
    elements:
      extension:
        index: 19
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            personTitle:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', index: 20}
              min: 0
              max: 1
      text: {mustSupport: true, index: 21}
      family: {mustSupport: false, index: 22}
      given: {mustSupport: false, index: 23}
    required: [text]
  birthDate: {mustSupport: true, index: 26}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        ethnicGroup:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ethnic-my-core', index: 1}
          min: 0
          max: 1
        religion:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/religion-my-core', index: 2}
          min: 0
          max: 1
        educationLevel:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/education-level-my-core', index: 3}
          min: 0
          max: 1
        nationality:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/nationality-my-core', index: 4}
          min: 0
          max: 1
  communication:
    mustSupport: false
    index: 35
    elements:
      language:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/all-languages'}
        mustSupport: false
        index: 36
  identifier:
    mustSupport: true
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: system, type: pattern}
      min: 1
      slices:
        myKadNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/my-kad-no'}
          schema:
            index: 6
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/my-kad-no'}
                index: 7
        passportNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/passport-no'}
          schema:
            index: 8
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/passport-no'}
                index: 9
        armyNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/army-no'}
          schema:
            index: 10
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/army-no'}
                index: 11
        policeNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/police-no'}
          schema:
            index: 12
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/police-no'}
                index: 13
        patientMrn:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/patient-mrn'}
          schema:
            index: 14
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/patient-mrn'}
                index: 15
        othersNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/others-no'}
          schema:
            index: 16
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/others-no'}
                index: 17
  telecom: {mustSupport: true, index: 24}
  generalPractitioner: {mustSupport: false, index: 37}
  gender: {mustSupport: true, index: 25}
  contact:
    mustSupport: false
    index: 28
    elements:
      name:
        mustSupport: false
        index: 29
        extensions:
          personTitle: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', min: 0, max: 1, type: Extension, index: 31}
        elements:
          extension:
            index: 30
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                personTitle:
                  match: {url: null}
                  schema: {type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', index: 31}
                  min: 0
                  max: 1
      telecom: {mustSupport: false, index: 32}
      address: {type: Address, mustSupport: false, index: 33}
      organization: {mustSupport: false, index: 34}
package_version: 1.0.1
extensions:
  ethnicGroup: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ethnic-my-core', min: 0, max: 1, type: Extension, index: 1}
  religion: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/religion-my-core', min: 0, max: 1, type: Extension, index: 2}
  educationLevel: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/education-level-my-core', min: 0, max: 1, type: Extension, index: 3}
  nationality: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/nationality-my-core', min: 0, max: 1, type: Extension, index: 4}
class: profile
kind: resource
url: http://fhir.hie.moh.gov.my/StructureDefinition/Patient-my-core
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 1.0.0
required: [gender, name, identifier, birthDate]