PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha@pds-0.9.0-alpha-1.6
    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: 34
    extensions:
      preferred: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred', min: 0, type: Extension, short: HL7 Preferred Address Flag extension, index: 36}
      noFixedAddress: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-nofixedaddress', min: 0, max: 1, type: Extension, short: No Fixed Address indicator, index: 37}
    elements:
      extension:
        index: 35
        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: 36}
              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: 37}
              min: 0
              max: 1
      use: {mustSupport: true, index: 38}
      line: {index: 39}
      city: {mustSupport: true, index: 40}
      state:
        binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/canadianjurisdiction'}
        mustSupport: true
        index: 41
      postalCode: {mustSupport: true, index: 42}
  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: 79
  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: 30
    elements:
      family: {mustSupport: true, index: 31}
      given: {mustSupport: true, index: 32}
    required: [given, family]
  birthDate: {mustSupport: true, index: 33}
  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[x]:
                elements:
                  coding:
                    elements:
                      system: {mustSupport: true, index: 4}
                      code: {mustSupport: true, index: 5}
                    required: [system, code]
        ethnicity:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ethnicity
            index: 6
            elements:
              value:
                mustSupport: true
                choices: []
                index: 8
            required: [value]
  communication:
    mustSupport: true
    index: 44
    extensions:
      languageUse: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse', min: 1, type: Extension, index: 46}
    elements:
      extension:
        index: 45
        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: 46}
              min: 1
      language:
        index: 47
        elements:
          coding:
            elements:
              system: {index: 48}
              code: {mustSupport: true, index: 49}
              display: {mustSupport: true, index: 50}
            required: [display, system, code]
    required: [extension]
    slicing:
      rules: open
      discriminator:
      - {path: 'extension.value[x].coding.code', type: value}
      min: null
      slices:
        MotherTongue:
          match:
            extension:
              value[x]:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 51
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 53
                elements:
                  value:
                    label: MotherTongue
                    choices: []
                    index: 55
                required: [value]
            elements:
              extension:
                index: 52
                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: 53
                        elements:
                          value:
                            label: MotherTongue
                            choices: []
                            index: 55
                        required: [value]
              language:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language'}
                mustSupport: true
                index: 56
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language'}
                    mustSupport: true
                    index: 57
                    elements:
                      system: {mustSupport: true, index: 58}
                      code: {mustSupport: true, index: 59}
                      display: {mustSupport: true, index: 60}
                    required: [code]
            required: [extension]
        preferredOfficialLanguage:
          match:
            extension:
              value[x]:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 61
            extensions:
              languageUse: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse', min: 1, type: Extension, index: 63}
            elements:
              extension:
                index: 62
                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: 63}
                      min: 1
              language:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language'}
                mustSupport: true
                index: 64
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language'}
                    mustSupport: true
                    index: 65
                    elements:
                      system: {mustSupport: true, index: 66}
                      code: {mustSupport: true, index: 67}
                      display: {mustSupport: true, index: 68}
                    required: [code]
            required: [extension]
        serviceLanguage:
          match:
            extension:
              value[x]:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 69
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 71
                elements:
                  value:
                    label: ServiceLanguage
                    choices: []
                    index: 73
                required: [value]
            elements:
              extension:
                index: 70
                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: 71
                        elements:
                          value:
                            label: ServiceLanguage
                            choices: []
                            index: 73
                        required: [value]
              language:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/language'}
                mustSupport: true
                index: 74
                elements:
                  coding:
                    mustSupport: true
                    index: 75
                    elements:
                      system: {mustSupport: true, index: 76}
                      code: {mustSupport: true, index: 77}
                      display: {mustSupport: true, index: 78}
                    required: [code]
            required: [extension]
  identifier:
    mustSupport: true
    index: 9
    elements:
      type: {mustSupport: true, index: 10}
      system: {isModifier: false, mustSupport: true, index: 11}
      value: {short: The value that is unique within the system., isModifier: false, mustSupport: true, index: 12}
    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'}
          schema:
            short: Medical Record Number
            mustSupport: true
            _required: true
            index: 13
            elements:
              type:
                short: Medical Record Number identifier type
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 14
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        index: 15
                      code:
                        pattern: {type: Code, value: MR}
                        index: 16
                    required: [code]
              system: {mustSupport: true, index: 17}
              value: {short: A Medical Record Number., mustSupport: true, index: 18}
              assigner:
                short: Vendor that issued id (may be just text)
                index: 19
                elements:
                  display: {index: 20}
                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: 21
            extensions:
              versionCode: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', min: 0, type: Extension, short: Health Number Version Code, index: 23}
              HealthCardIssuingAuthority:
                url: https://ontariohealth.ca/fhir/StructureDefinition/HealthCardIssuingAuthority
                type: Extension
                mustSupport: true
                index: 24
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 26
            elements:
              extension:
                index: 22
                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: 23}
                      min: 0
                    HealthCardIssuingAuthority:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: https://ontariohealth.ca/fhir/StructureDefinition/HealthCardIssuingAuthority
                        index: 24
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 26
              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'}
                index: 27
              system: {short: A Health Number Naming System from the Canadian URI Registry, index: 28}
              value: {index: 29}
            required: [extension, value, type, system]
  maritalStatus: {mustSupport: true, index: 43}
package_version: pds-0.9.0-alpha-1.6
extensions:
  clientReligion:
    url: http://hl7.org/fhir/StructureDefinition/patient-religion
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value[x]:
        elements:
          coding:
            elements:
              system: {mustSupport: true, index: 4}
              code: {mustSupport: true, index: 5}
            required: [system, code]
  ethnicity:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ethnicity
    type: Extension
    mustSupport: true
    index: 6
    elements:
      value:
        mustSupport: true
        choices: []
        index: 8
    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]