PackagesCanonicalsLogsProblems
    Packages
    MyHIE.v4@2.0.0-alpha
    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: MyHIE.v4
derivation: constraint
name: PatientMyCore
type: Patient
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        ethnic:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ethnic-my-core', index: 1}
          min: 0
          max: 1
        religion:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/religion-my-core', index: 2}
          min: 0
          max: 1
        nationality:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/nationality-my-core', index: 3}
          min: 0
          max: 1
        educationLevel:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/education-level-my-core', index: 4}
          min: 0
          max: 1
        child:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/child-identification-my-core', index: 5}
          min: 0
          max: 1
        audit:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', index: 6}
          min: 0
          max: 1
        monthlyHouseholdIncome:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/monthly-household-income-my-core', index: 7}
          min: 0
          max: 1
        occupationSector:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/occupation-sector-my-core', index: 8}
          min: 0
          max: 1
  identifier:
    index: 9
    slicing:
      rules: open
      ordered: true
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        myKadNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/my-kad-no'}
          schema:
            index: 10
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/my-kad-no'}
                index: 11
              value: {index: 12}
            required: [value, system]
        passportNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/passport-no'}
          schema:
            index: 13
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/passport-no'}
                index: 14
              value: {index: 15}
            required: [value, system]
        armyNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/army-no'}
          schema:
            index: 16
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/army-no'}
                index: 17
              value: {index: 18}
            required: [value, system]
        policeNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/police-no'}
          schema:
            index: 19
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/police-no'}
                index: 20
              value: {index: 21}
            required: [value, system]
        othersNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/others-no'}
          schema:
            index: 22
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/others-no'}
                index: 23
              value: {index: 24}
            required: [value, system]
        newbornNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/newborn-no'}
          schema:
            index: 25
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/newborn-no'}
                index: 26
              value: {index: 27}
            required: [value, system]
        patientMrn:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/patient-mrn'}
          schema:
            index: 28
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/patient-mrn'}
                index: 29
              value: {index: 30}
            required: [value, system]
  name:
    index: 31
    extensions:
      personTitle: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 33}
    elements:
      extension:
        index: 32
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            personTitle:
              match: {url: null}
              schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', index: 33}
              min: 0
              max: 1
      text: {index: 34}
      family: {mustSupport: false, index: 35}
      given: {mustSupport: false, index: 36}
    required: [given]
  gender:
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/administrative-gender-my-core'}
    index: 37
  birthDate: {mustSupport: false, index: 38}
  address: {type: Address, index: 39}
  contact:
    extensions:
      contactIdentifier: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/patient-contact-identifier-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 41}
      occupationSector: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/occupation-sector-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 42}
    elements:
      extension:
        index: 40
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            contactIdentifier:
              match: {url: null}
              schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/patient-contact-identifier-my-core', index: 41}
              min: 0
              max: 1
            occupationSector:
              match: {url: null}
              schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/occupation-sector-my-core', index: 42}
              min: 0
              max: 1
      relationship:
        binding: {strength: extensible, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/relationship-my-core'}
        index: 43
      name:
        extensions:
          personTitle: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/person-title-my-core', min: 0, max: 1, type: Extension, index: 45}
        elements:
          extension:
            index: 44
            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: 45}
                  min: 0
                  max: 1
      address: {type: Address, index: 46}
  managingOrganization: {index: 47}
package_version: 2.0.0-alpha
extensions:
  ethnic: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ethnic-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 1}
  religion: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/religion-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 2}
  nationality: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/nationality-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 3}
  educationLevel: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/education-level-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 4}
  child: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/child-identification-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 5}
  audit: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 6}
  monthlyHouseholdIncome: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/monthly-household-income-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 7}
  occupationSector: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/occupation-sector-my-core', min: 0, max: 1, type: Extension, isModifier: false, index: 8}
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: [managingOrganization, gender, name, identifier, birthDate]