PackagesCanonicalsLogsProblems
    Packages
    ontariomicdrfhirimplementationguide-0.10.00@0.9.14
    http://ontariohealth.ca/fhir/mi/StructureDefinition/ca-on-mi-profile-patient
description: null
package_name: ontariomicdrfhirimplementationguide-0.10.00
derivation: constraint
name: MIPatient
type: Patient
elements:
  address:
    mustSupport: true
    index: 31
    elements:
      use: {mustSupport: true, index: 32}
      line: {mustSupport: true, index: 33}
      city: {mustSupport: true, index: 34}
      district: {mustSupport: true, index: 35}
      state:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/province-state-code'}
        mustSupport: true
        index: 36
      postalCode: {mustSupport: true, index: 37}
      country:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'}
        mustSupport: true
        index: 38
    required: [use]
  name:
    mustSupport: true
    index: 20
    elements:
      family: {mustSupport: true, index: 21}
      given: {mustSupport: true, index: 22}
      prefix: {mustSupport: true, index: 23}
      suffix: {mustSupport: true, index: 24}
    required: [given, family]
  birthDate: {mustSupport: true, index: 30}
  multipleBirth:
    mustSupport: true
    choices: []
    index: 41
  communication:
    mustSupport: true
    index: 42
    elements:
      language:
        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/human-language'}
        mustSupport: true
        index: 43
        elements:
          coding:
            mustSupport: true
            index: 44
            elements:
              system: {mustSupport: true, index: 45}
              code: {mustSupport: true, index: 46}
              display: {mustSupport: true, index: 47}
            required: [display, system, code]
        required: [coding]
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      description: "must contain at least one repetition of an identifier type code of MR (MRN).\r\nIf the HSP assigns any local secondary identifiers (such as alternate MRNs, clinic patient numbers, etc.) these should be provided if it is convenient to do so.\r\nIf the HSP collects a provincial health number (e.g. OHIP number or other province health card number) this must be sent.\r\nIf the HSP collects other types of identifiers which might be useful in identifying the patient, these should be sent if it is convenient to do so."
      discriminator:
      - {path: type.coding.code, type: value}
      min: 1
      slices:
        identifier-MR:
          match:
            type:
              coding: {code: MR}
          schema:
            short: patient's MRN
            mustSupport: true
            _required: true
            index: 1
            elements:
              type:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/identifier-type'}
                mustSupport: true
                index: 2
                elements:
                  coding:
                    index: 3
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 4
                      code:
                        pattern: {type: Code, value: MR}
                        mustSupport: true
                        index: 5
                    required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 6}
              value: {mustSupport: true, index: 7}
              period:
                elements:
                  start: {mustSupport: true, index: 8}
                  end: {mustSupport: true, index: 9}
            required: [value, type, system]
        identifier-JHN:
          match:
            type:
              coding: {code: JHN}
          schema:
            mustSupport: true
            index: 10
            elements:
              type:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/identifier-type'}
                mustSupport: true
                index: 11
                elements:
                  coding:
                    index: 12
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 13
                      code:
                        pattern: {type: Code, value: JHN}
                        mustSupport: true
                        index: 14
                    required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 15}
              value:
                mustSupport: true
                index: 16
                extensions:
                  ext-HealthCardVersionCode: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-id-health-card-version-code', type: Extension, index: 17}
                elements:
                  extension:
                    type: Extension
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-id-health-card-version-code
                    index: 17
                    slicing:
                      slices:
                        ext-HealthCardVersionCode:
                          match: {}
                          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-id-health-card-version-code', index: 17}
              period:
                elements:
                  start: {mustSupport: true, index: 18}
                  end: {mustSupport: true, index: 19}
            required: [value, type, system]
  telecom:
    mustSupport: true
    index: 25
    elements:
      system: {mustSupport: true, index: 26}
      value: {mustSupport: true, index: 27}
      use: {mustSupport: true, index: 28}
    required: [value, system, use]
  generalPractitioner: {mustSupport: true, index: 48}
  gender: {mustSupport: true, index: 29}
  maritalStatus: {mustSupport: true, index: 39}
package_version: 0.9.14
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/mi/StructureDefinition/ca-on-mi-profile-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 1.0.0
required: [gender, name, identifier]