PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha@pds-0.9.0-alpha-1
    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
derivation: constraint
name: Patient
type: Patient
elements:
  address:
    mustSupport: true
    index: 45
    extensions:
      preferred: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred', min: 0, type: Extension, short: HL7 Preferred Address Flag extension, index: 47}
      noFixedAddress: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-nofixedaddress', min: 0, max: 1, type: Extension, short: No Fixed Address indicator, index: 48}
    elements:
      extension:
        index: 46
        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: 47}
              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: 48}
              min: 0
              max: 1
      use: {mustSupport: true, index: 49}
      line: {mustSupport: true, index: 50}
      city: {mustSupport: true, index: 51}
      state:
        binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/canadianjurisdiction'}
        mustSupport: true
        index: 52
      postalCode: {mustSupport: true, index: 53}
  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-organization']
    index: 89
  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: 34
    elements:
      family: {mustSupport: true, index: 35}
      given: {mustSupport: true, index: 36}
    required: [given, family]
  birthDate:
    mustSupport: true
    index: 40
    extensions:
      dobEstimatedFlag:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-birthdate-estimated-flag
        type: Extension
        mustSupport: true
        index: 42
        elements:
          value:
            mustSupport: true
            choices: []
            index: 44
    elements:
      extension:
        index: 41
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            dobEstimatedFlag:
              match: {url: null}
              schema:
                type: Extension
                mustSupport: true
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-birthdate-estimated-flag
                index: 42
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 44
  extension:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        ethnicity:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ethnicity
            index: 3
            elements:
              value:
                choices: []
                index: 8
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        choices: []
                        index: 8
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 6}
              value[x]:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    mustSupport: true
                    index: 9
                  code: {mustSupport: true, index: 10}
        clientReligion:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/patient-religion
            index: 11
            elements:
              value[x]:
                elements:
                  coding:
                    elements:
                      code: {mustSupport: true, index: 12}
  communication:
    mustSupport: true
    index: 55
    elements:
      language:
        binding: {strength: preferred, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/official-language'}
        mustSupport: true
        index: 56
        extensions:
          Use:
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
            min: 0
            max: 1
            type: Extension
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
            mustSupport: true
            index: 58
        elements:
          extension:
            index: 57
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                Use:
                  match: {url: null}
                  schema:
                    type: Extension
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                    mustSupport: true
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                    index: 58
                  min: 0
                  max: 1
          coding:
            elements:
              system: {index: 59}
              code: {mustSupport: true, index: 60}
              display: {mustSupport: true, index: 61}
            required: [display, system, code]
        slicing:
          rules: open
          discriminator:
          - {path: 'extension.value[x]', type: value}
          min: null
          slices:
            MotherTongue:
              match:
                extension: {'value[x]': null}
              schema:
                binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/human-language'}
                mustSupport: true
                index: 62
                extensions:
                  Use:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                    type: Extension
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                    mustSupport: true
                    index: 64
                    elements:
                      value:
                        pattern: {type: Code, value: '224075005'}
                        mustSupport: true
                        choices: []
                        index: 66
                elements:
                  extension:
                    index: 63
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        Use:
                          match: {url: null}
                          schema:
                            type: Extension
                            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                            mustSupport: true
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                            index: 64
                            elements:
                              value:
                                pattern: {type: Code, value: '224075005'}
                                mustSupport: true
                                choices: []
                                index: 66
                  coding:
                    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/human-language'}
                    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[x]': null}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/official-language'}
                mustSupport: true
                index: 71
                extensions:
                  Use:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                    type: Extension
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                    mustSupport: true
                    index: 73
                    elements:
                      value:
                        pattern: {type: Code, value: OFL}
                        mustSupport: true
                        choices: []
                        index: 75
                    required: [value]
                elements:
                  extension:
                    index: 72
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        Use:
                          match: {url: null}
                          schema:
                            type: Extension
                            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                            mustSupport: true
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                            index: 73
                            elements:
                              value:
                                pattern: {type: Code, value: OFL}
                                mustSupport: true
                                choices: []
                                index: 75
                            required: [value]
                  coding:
                    mustSupport: true
                    index: 76
                    elements:
                      system: {mustSupport: true, index: 77}
                      code: {mustSupport: true, index: 78}
                      display: {mustSupport: true, index: 79}
                required: [extension]
            ServiceLanguage:
              match:
                extension: {'value[x]': null}
              schema:
                binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/human-language'}
                mustSupport: true
                index: 80
                extensions:
                  Use:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                    type: Extension
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                    mustSupport: true
                    index: 82
                    elements:
                      value:
                        pattern: {type: Code, value: '428996008'}
                        mustSupport: true
                        choices: []
                        index: 84
                elements:
                  extension:
                    index: 81
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        Use:
                          match: {url: null}
                          schema:
                            type: Extension
                            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language-use'}
                            mustSupport: true
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                            index: 82
                            elements:
                              value:
                                pattern: {type: Code, value: '428996008'}
                                mustSupport: true
                                choices: []
                                index: 84
                  coding:
                    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/human-language'}
                    mustSupport: true
                    index: 85
                    elements:
                      system: {mustSupport: true, index: 86}
                      code: {mustSupport: true, index: 87}
                      display: {mustSupport: true, index: 88}
                    required: [display, system, code]
                required: [extension]
  identifier:
    mustSupport: true
    index: 13
    elements:
      type: {mustSupport: true, index: 14}
      system: {isModifier: false, mustSupport: true, index: 15}
      value: {short: The value that is unique within the system., isModifier: false, mustSupport: true, index: 16}
    required: [value, type, system]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 1
      slices:
        MRN:
          match:
            type:
              coding:
              - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Medical Record Number
            mustSupport: true
            _required: true
            index: 17
            elements:
              type:
                short: Medical Record Number identifier type
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 18
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        index: 19
                      code:
                        pattern: {type: Code, value: MR}
                        index: 20
              system: {index: 21}
              value: {short: A Medical Record Number., mustSupport: true, index: 22}
              assigner:
                short: Vendor that issued id (may be just text)
                index: 23
                elements:
                  display: {index: 24}
                required: [display]
            required: [value, type, system]
        JHN:
          match:
            type:
              coding:
              - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Jurisdictional Health Number
            mustSupport: true
            index: 25
            extensions:
              versionCode: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', min: 0, type: Extension, short: Health Number Version Code, index: 27}
              HealthCardIssuingAuthority:
                url: https://ontariohealth.ca/fhir/StructureDefinition/HealthCardIssuingAuthority
                type: Extension
                mustSupport: true
                index: 28
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 30
            elements:
              extension:
                index: 26
                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: 27}
                      min: 0
                    HealthCardIssuingAuthority:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: https://ontariohealth.ca/fhir/StructureDefinition/HealthCardIssuingAuthority
                        index: 28
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 30
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 31
              system: {short: A Health Number Naming System from the Canadian URI Registry, index: 32}
              value: {index: 33}
            required: [extension, value, type, system]
  telecom:
    mustSupport: true
    index: 37
    elements:
      system: {index: 38}
      value: {mustSupport: true, index: 39}
    required: [value, system]
  maritalStatus: {mustSupport: true, index: 54}
package_version: pds-0.9.0-alpha-1
extensions:
  ethnicity:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ethnicity
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        choices: []
        index: 8
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                choices: []
                index: 8
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 6}
      value[x]:
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            mustSupport: true
            index: 9
          code: {mustSupport: true, index: 10}
  clientReligion:
    url: http://hl7.org/fhir/StructureDefinition/patient-religion
    type: Extension
    mustSupport: true
    index: 11
    elements:
      value[x]:
        elements:
          coding:
            elements:
              code: {mustSupport: true, index: 12}
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, identifier, birthDate, meta]