PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha-pds@0.9.0-alpha-1.9.4
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient
description: Proposed constraints and extensions on the Patient Resource. This represents client information.
package_name: ca.on.oh.mha-pds
derivation: constraint
name: Patient
type: Patient
elements:
  address:
    mustSupport: true
    index: 43
    extensions:
      preferred: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred', min: 0, type: Extension, short: HL7 Preferred Address Flag extension, index: 45}
      noFixedAddress: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-nofixedaddress', min: 0, max: 1, type: Extension, short: No Fixed Address indicator, index: 46}
    elements:
      extension:
        index: 44
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            preferred:
              match: {url: null}
              schema: {type: Extension, short: HL7 Preferred Address Flag extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred', index: 45}
              min: 0
            noFixedAddress:
              match: {url: null}
              schema: {type: Extension, short: No Fixed Address indicator, url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-nofixedaddress', index: 46}
              min: 0
              max: 1
      use: {mustSupport: true, index: 47}
      line: {index: 48}
      city: {mustSupport: true, index: 49}
      state: {mustSupport: true, index: 50}
      postalCode: {mustSupport: true, index: 51}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient'}
        index: 1
    required: [profile]
  managingOrganization:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-organization']
    index: 93
  name:
    short: A name associated with the patient(client)
    constraint:
      ca-baseline-name: {human: Patient.name.given  or Patient.name.family or both SHALL be present, source: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient', severity: error, expression: family.exists() or given.exists()}
    mustSupport: true
    index: 39
    elements:
      family: {mustSupport: true, index: 40}
      given: {mustSupport: true, index: 41}
    required: [given, family]
  birthDate: {mustSupport: true, index: 42}
  extension:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        clientReligion:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/patient-religion
            index: 3
            elements:
              value:
                mustSupport: true
                choices: []
                index: 5
              value[x]:
                elements:
                  coding:
                    elements:
                      system: {mustSupport: true, index: 6}
                      code: {mustSupport: true, index: 7}
                      display: {mustSupport: true, index: 8}
                    required: [display, system, code]
        ethnicity:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ethnicity
            index: 9
            elements:
              value:
                mustSupport: true
                choices: []
                index: 11
            required: [value]
  communication:
    mustSupport: true
    index: 53
    extensions:
      languageUse: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse', min: 1, type: Extension, index: 55}
    elements:
      extension:
        index: 54
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            languageUse:
              match: {url: null}
              schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse', index: 55}
              min: 1
      language:
        index: 56
        elements:
          coding:
            elements:
              system: {index: 57}
              code: {mustSupport: true, index: 58}
              display: {mustSupport: true, index: 59}
            required: [display, system, code]
    required: [extension]
    slicing:
      rules: open
      discriminator:
      - {path: extension.value.coding.code, type: value}
      min: null
      slices:
        MotherTongue:
          match:
            extension:
              value:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 60
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 62
                elements:
                  value:
                    label: MotherTongue
                    choices: []
                    index: 64
                  value[x]:
                    elements:
                      coding:
                        elements:
                          code:
                            pattern: {type: Code, value: '224075005'}
                            index: 65
                required: [value]
            elements:
              extension:
                index: 61
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    languageUse:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                        index: 62
                        elements:
                          value:
                            label: MotherTongue
                            choices: []
                            index: 64
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  code:
                                    pattern: {type: Code, value: '224075005'}
                                    index: 65
                        required: [value]
              language:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/human-language'}
                mustSupport: true
                index: 66
                elements:
                  coding:
                    mustSupport: true
                    index: 67
                    elements:
                      system: {mustSupport: true, index: 68}
                      code: {mustSupport: true, index: 69}
                      display: {mustSupport: true, index: 70}
                    required: [display, system, code]
            required: [extension]
        preferredOfficialLanguage:
          match:
            extension:
              value:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 71
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 73
                elements:
                  value:
                    choices: []
                    index: 75
                  value[x]:
                    elements:
                      coding:
                        elements:
                          code:
                            pattern: {type: Code, value: OFL}
                            index: 76
                required: [value]
            elements:
              extension:
                index: 72
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    languageUse:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                        index: 73
                        elements:
                          value:
                            choices: []
                            index: 75
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  code:
                                    pattern: {type: Code, value: OFL}
                                    index: 76
                        required: [value]
              language:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/official-language'}
                mustSupport: true
                index: 77
                elements:
                  coding:
                    mustSupport: true
                    index: 78
                    elements:
                      system: {mustSupport: true, index: 79}
                      code: {mustSupport: true, index: 80}
                      display: {mustSupport: true, index: 81}
                    required: [display, system, code]
            required: [extension]
        serviceLanguage:
          match:
            extension:
              value:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 82
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 84
                elements:
                  value:
                    label: ServiceLanguage
                    choices: []
                    index: 86
                  value[x]:
                    elements:
                      coding:
                        elements:
                          code:
                            pattern: {type: Code, value: '428996008'}
                            index: 87
                required: [value]
            elements:
              extension:
                index: 83
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    languageUse:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                        index: 84
                        elements:
                          value:
                            label: ServiceLanguage
                            choices: []
                            index: 86
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  code:
                                    pattern: {type: Code, value: '428996008'}
                                    index: 87
                        required: [value]
              language:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/human-language'}
                mustSupport: true
                index: 88
                elements:
                  coding:
                    mustSupport: true
                    index: 89
                    elements:
                      system: {mustSupport: true, index: 90}
                      code: {mustSupport: true, index: 91}
                      display: {mustSupport: true, index: 92}
                    required: [display, system, code]
            required: [extension]
  identifier:
    mustSupport: true
    index: 12
    elements:
      type: {index: 13}
      system: {isModifier: false, index: 14}
      value: {short: The value that is unique within the system., isModifier: false, index: 15}
    required: [value, type, system]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        MRN:
          match:
            type:
              coding:
              - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Medical record number}
          schema:
            short: Medical Record Number
            mustSupport: true
            _required: true
            index: 16
            elements:
              type:
                short: Medical Record Number identifier type
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/client-identifier-type-code'}
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Medical record number}
                index: 17
                elements:
                  coding:
                    mustSupport: true
                    index: 18
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 19
                      code:
                        pattern: {type: Code, value: MR}
                        mustSupport: true
                        index: 20
                      display: {mustSupport: true, index: 21}
                    required: [display, system, code]
              system: {mustSupport: true, index: 22}
              value: {short: A Medical Record Number., mustSupport: true, index: 23}
              assigner:
                short: Vendor that issued id (may be just text)
                index: 24
                elements:
                  display: {index: 25}
                required: [display]
            required: [value, type, system]
        JHN:
          match:
            type:
              coding:
              - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Jurisdictional health number}
          schema:
            short: Jurisdictional Health Number
            mustSupport: true
            index: 26
            extensions:
              versionCode: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', min: 0, type: Extension, short: Health Number Version Code, index: 28}
              HealthCardIssuingAuthority:
                url: https://ontariohealth.ca/fhir/StructureDefinition/HealthCardIssuingAuthority
                type: Extension
                mustSupport: true
                index: 29
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 31
            elements:
              extension:
                index: 27
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    versionCode:
                      match: {url: null}
                      schema: {type: Extension, short: Health Number Version Code, url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', index: 28}
                      min: 0
                    HealthCardIssuingAuthority:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: https://ontariohealth.ca/fhir/StructureDefinition/HealthCardIssuingAuthority
                        index: 29
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 31
              type:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/client-identifier-type-code'}
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Jurisdictional health number}
                index: 32
                elements:
                  coding:
                    mustSupport: true
                    index: 33
                    elements:
                      system: {mustSupport: true, index: 34}
                      code: {mustSupport: true, index: 35}
                      display: {mustSupport: true, index: 36}
                    required: [display, system, code]
              system: {short: A Health Number Naming System from the Canadian URI Registry, mustSupport: true, index: 37}
              value: {mustSupport: true, index: 38}
            required: [extension, value, type, system]
  maritalStatus: {mustSupport: true, index: 52}
package_version: 0.9.0-alpha-1.9.4
extensions:
  clientReligion:
    url: http://hl7.org/fhir/StructureDefinition/patient-religion
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        mustSupport: true
        choices: []
        index: 5
      value[x]:
        elements:
          coding:
            elements:
              system: {mustSupport: true, index: 6}
              code: {mustSupport: true, index: 7}
              display: {mustSupport: true, index: 8}
            required: [display, system, code]
  ethnicity:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ethnicity
    type: Extension
    mustSupport: true
    index: 9
    elements:
      value:
        mustSupport: true
        choices: []
        index: 11
    required: [value]
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.1.1
required: [name, birthDate, meta]