PackagesCanonicalsLogsProblems
    Packages
    ontariomicdrfhirimplementationguide@0.10.00-0.9.8-beta
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Patient
description: null
package_name: ontariomicdrfhirimplementationguide
derivation: constraint
name: MICdrPatient
type: Patient
elements:
  address:
    mustSupport: true
    index: 39
    elements:
      use: {mustSupport: true, index: 40}
      line: {mustSupport: true, index: 41}
      city: {mustSupport: true, index: 42}
      district: {mustSupport: true, index: 43}
      state:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/province-state-code'}
        mustSupport: true
        index: 44
      postalCode: {mustSupport: true, index: 45}
      country:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'}
        mustSupport: true
        index: 46
      period:
        mustSupport: true
        index: 47
        elements:
          start: {mustSupport: true, index: 48}
          end: {mustSupport: true, index: 49}
    required: [use]
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, index: 1}
    required: [profile]
  name:
    mustSupport: true
    index: 25
    elements:
      use: {mustSupport: true, index: 26}
      family: {mustSupport: true, index: 27}
      given: {mustSupport: true, index: 28}
      prefix: {mustSupport: true, index: 29}
      suffix: {mustSupport: true, index: 30}
    required: [given, family]
  birthDate: {mustSupport: true, index: 36}
  multipleBirth:
    mustSupport: true
    choices: []
    index: 52
  deceased:
    mustSupport: true
    choices: []
    index: 38
  communication:
    mustSupport: true
    index: 70
    elements:
      language:
        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/human-language'}
        mustSupport: true
        index: 71
        elements:
          coding:
            mustSupport: true
            index: 72
            elements:
              system: {mustSupport: true, index: 73}
              code: {mustSupport: true, index: 74}
              display: {mustSupport: true, index: 75}
            required: [display, system, code]
        required: [coding]
      preferred: {mustSupport: true, index: 76}
  identifier:
    mustSupport: true
    index: 2
    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: 3
            elements:
              type:
                mustSupport: true
                index: 4
                elements:
                  coding:
                    index: 5
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 6
                      code:
                        pattern: {type: Code, value: MR}
                        mustSupport: true
                        index: 7
                    required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 8}
              value: {mustSupport: true, index: 9}
              period:
                mustSupport: true
                index: 10
                elements:
                  start: {mustSupport: true, index: 11}
                  end: {mustSupport: true, index: 12}
            required: [value, type, system]
        identifier-JHN:
          match:
            type:
              coding: {code: JHN}
          schema:
            mustSupport: true
            index: 13
            elements:
              type:
                mustSupport: true
                index: 14
                elements:
                  coding:
                    index: 15
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 16
                      code:
                        pattern: {type: Code, value: JHN}
                        mustSupport: true
                        index: 17
                    required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 18}
              value:
                mustSupport: true
                index: 19
                extensions:
                  ext-HealthCardVersionCode: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-id-health-card-version-code', min: 0, type: Extension, index: 21}
                elements:
                  extension:
                    index: 20
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 0
                      slices:
                        ext-HealthCardVersionCode:
                          match: {url: null}
                          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-id-health-card-version-code', index: 21}
                          min: 0
              period:
                mustSupport: true
                index: 22
                elements:
                  start: {mustSupport: true, index: 23}
                  end: {mustSupport: true, index: 24}
            required: [value, type, system]
  telecom:
    mustSupport: true
    index: 31
    elements:
      system: {mustSupport: true, index: 32}
      value: {mustSupport: true, index: 33}
      use: {mustSupport: true, index: 34}
    required: [value, system, use]
  generalPractitioner: {mustSupport: true, index: 77}
  gender: {mustSupport: true, index: 35}
  maritalStatus: {mustSupport: true, index: 50}
  contact:
    mustSupport: true
    index: 53
    elements:
      relationship:
        mustSupport: true
        index: 54
        elements:
          coding:
            mustSupport: true
            index: 55
            elements:
              system: {mustSupport: true, index: 56}
              code: {mustSupport: true, index: 57}
              display: {mustSupport: true, index: 58}
            required: [display, system, code]
        required: [coding]
      name:
        mustSupport: true
        index: 59
        elements:
          use: {mustSupport: true, index: 60}
          family: {mustSupport: true, index: 61}
          given: {mustSupport: true, index: 62}
          prefix: {mustSupport: true, index: 63}
          suffix: {mustSupport: true, index: 64}
      telecom: {mustSupport: true, index: 65}
      address: {mustSupport: true, index: 66}
      gender: {mustSupport: true, index: 67}
      organization: {mustSupport: true, index: 68}
      period: {mustSupport: true, index: 69}
package_version: 0.10.00-0.9.8-beta
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.9.0
required: [gender, name, identifier, meta]