PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha.pds@2.0.0-alpha-preview
    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: PatientV2Draft
type: Patient
elements:
  address:
    constraint:
      adr-key-1: {human: Province must be provided if 'address use' is provided, severity: error, expression: use.exists() implies state.exists()}
    mustSupport: true
    index: 36
    extensions:
      preferred: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred', type: Extension, short: HL7 Preferred Address Flag extension, index: 37}
      noFixedAddress: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-nofixedaddress', type: Extension, short: No Fixed Address indicator, index: 38}
    elements:
      extension:
        type: Extension
        short: HL7 Preferred Address Flag extension
        url: http://hl7.org/fhir/StructureDefinition/iso21090-preferred
        index: 37
        slicing:
          slices:
            preferred:
              match: {}
              schema: {type: Extension, short: HL7 Preferred Address Flag extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred', index: 37}
            noFixedAddress:
              match: {}
              schema: {type: Extension, short: No Fixed Address indicator, url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-nofixedaddress', index: 38}
      use: {mustSupport: true, index: 39}
      line: {index: 40}
      city: {mustSupport: true, index: 41}
      state:
        binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/canadianjurisdiction'}
        mustSupport: true
        index: 42
      postalCode:
        mustSupport: true
        index: 43
        extensions:
          mHADataAbsentReason: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason', type: Extension, isModifier: false, mustSupport: true, index: 44}
        elements:
          extension:
            type: Extension
            isModifier: false
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason
            index: 44
            slicing:
              slices:
                mHADataAbsentReason:
                  match: {}
                  schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason', index: 44}
    required: [postalCode, state]
  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: 72
  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: 31
    elements:
      family: {mustSupport: true, index: 32}
      given: {mustSupport: true, array: true, min: 1, max: 2, index: 33}
    required: [given, family]
  birthDate:
    constraint:
      bd-1: {human: birthDate must have a date value, severity: error, expression: hasValue() = true}
      bd-2: {human: 'If birthDate is "1900-01-01", BirthDate estimated flag must be set to ''true''', severity: error, expression: $this = @1900-01-01 implies $this.extension.value = true}
      bd-3: {human: BirthDate must not be before '1900-01-01' or after the current date and it must be a valid date, severity: error, expression: $this >= @1900-01-01 and $this < today()}
    mustSupport: true
    index: 34
    extensions:
      BirthDateEstimatedFlag: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-birthdate-estimated-flag', max: 1, type: Extension, mustSupport: true, index: 35}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-birthdate-estimated-flag
        index: 35
        slicing:
          slices:
            BirthDateEstimatedFlag:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-birthdate-estimated-flag', index: 35}
              max: 1
  extension:
    type: Extension
    isModifier: false
    mustSupport: true
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-disability
    index: 2
    slicing:
      slices:
        disability:
          match: {}
          schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-disability', index: 2}
          max: 1
        race:
          match: {}
          schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-race-Group', index: 3}
        indigenousIdentity:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/StructureDefinition/ca-on-mha-ext-indigenous-identity', index: 4}
  active: {mustSupport: true, index: 30}
  communication:
    mustSupport: true
    index: 45
    extensions:
      languageUse: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse', min: 1, type: Extension, index: 47}
    elements:
      extension:
        index: 46
        slicing:
          slices:
            languageUse:
              match: {}
              schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse', index: 47}
              min: 1
      language:
        index: 48
        elements:
          coding:
            elements:
              system: {index: 49}
              code: {mustSupport: true, index: 50}
              display: {mustSupport: true, index: 51}
            required: [display, system, code]
    required: [extension]
    slicing:
      rules: open
      discriminator:
      - {path: extension.value.coding.code, type: value}
      min: null
      slices:
        languageOfComfort:
          match:
            extension:
              value:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 52
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 54
                elements:
                  value:
                    choices: []
                    index: 56
                required: [value]
            elements:
              extension:
                index: 53
                slicing:
                  slices:
                    languageUse:
                      match: {}
                      schema:
                        type: Extension
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                        index: 54
                        elements:
                          value:
                            choices: []
                            index: 56
                        required: [value]
              language:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/official-language'}
                mustSupport: true
                index: 57
                elements:
                  coding:
                    mustSupport: true
                    index: 58
                    elements:
                      system: {mustSupport: true, index: 59}
                      code: {mustSupport: true, index: 60}
                      display: {mustSupport: true, index: 61}
                    required: [display, system, code]
                required: [coding]
            required: [extension]
        officialLanguage:
          match:
            extension:
              value:
                coding: {code: null}
          schema:
            mustSupport: true
            index: 62
            extensions:
              languageUse:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                type: Extension
                index: 64
                elements:
                  value:
                    label: ServiceLanguage
                    choices: []
                    index: 66
                required: [value]
            elements:
              extension:
                index: 63
                slicing:
                  slices:
                    languageUse:
                      match: {}
                      schema:
                        type: Extension
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-LanguageUse
                        index: 64
                        elements:
                          value:
                            label: ServiceLanguage
                            choices: []
                            index: 66
                        required: [value]
              language:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/human-language'}
                mustSupport: true
                index: 67
                elements:
                  coding:
                    mustSupport: true
                    index: 68
                    elements:
                      system: {mustSupport: true, index: 69}
                      code: {mustSupport: true, index: 70}
                      display: {mustSupport: true, index: 71}
                    required: [display, system, code]
                required: [coding]
            required: [extension]
  identifier:
    mustSupport: true
    index: 5
    elements:
      type: {index: 6}
      system: {isModifier: false, index: 7}
      value: {short: The value that is unique within the system., isModifier: false, index: 8}
    required: [value, type, system]
    slicing:
      rules: open
      discriminator:
      - {path: type.coding.code, type: value}
      min: null
      slices:
        MRN:
          match:
            type:
              coding: {code: MR}
          schema:
            short: Medical Record Number
            mustSupport: true
            _required: true
            index: 9
            elements:
              type:
                short: Medical Record Number identifier type
                binding: {strength: required, 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: 10
                elements:
                  coding:
                    mustSupport: true
                    index: 11
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 12
                      code:
                        pattern: {type: Code, value: MR}
                        mustSupport: true
                        index: 13
                      display: {mustSupport: true, index: 14}
                    required: [display, system, code]
                required: [coding]
              system:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/patient-mrn-identifier-system'}
                mustSupport: true
                index: 15
              value: {short: A Medical Record Number., mustSupport: true, index: 16}
              assigner:
                short: Vendor that issued id (may be just text)
                index: 17
                elements:
                  display: {index: 18}
                required: [display]
            required: [value, type, system]
        JHN:
          match:
            type:
              coding: {code: JHN}
          schema:
            short: Jurisdictional Health Number
            mustSupport: true
            _required: true
            index: 19
            extensions:
              extensionIdentifierVersion: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', type: Extension, isModifier: false, index: 20}
              mHADataAbsentReason: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 21}
            elements:
              extension:
                type: Extension
                isModifier: false
                url: http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion
                index: 20
                slicing:
                  slices:
                    extensionIdentifierVersion:
                      match: {}
                      schema: {type: Extension, isModifier: false, url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', index: 20}
                    mHADataAbsentReason:
                      match: {}
                      schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason', index: 21}
                      max: 1
              type:
                binding: {strength: required, 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: 22
                elements:
                  coding:
                    mustSupport: true
                    index: 23
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 24
                      code:
                        pattern: {type: Code, value: JHN}
                        mustSupport: true
                        index: 25
                      display: {mustSupport: true, index: 26}
                    required: [display, system, code]
                required: [coding]
              system:
                short: A Health Number Naming System from the Canadian URI Registry
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/patient-jhn-identifier-system'}
                mustSupport: true
                index: 27
              value:
                mustSupport: true
                index: 28
                extensions:
                  mHADataAbsentReason: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason', type: Extension, isModifier: false, mustSupport: true, index: 29}
                elements:
                  extension:
                    type: Extension
                    isModifier: false
                    mustSupport: true
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason
                    index: 29
                    slicing:
                      slices:
                        mHADataAbsentReason:
                          match: {}
                          schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-ca-on-mha-data-absent-reason', index: 29}
            required: [value, type, system]
package_version: 2.0.0-alpha-preview
extensions:
  disability: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-disability', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 2}
  race: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-race-Group', type: Extension, isModifier: false, mustSupport: true, index: 3}
  indigenousIdentity: {url: 'http://ontariohealth.ca/StructureDefinition/ca-on-mha-ext-indigenous-identity', type: Extension, mustSupport: true, index: 4}
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-Patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 2.0.0
required: [name, birthDate, meta]