PackagesCanonicalsLogsProblems
    Packages
    ca.on.ir.r4@1.0.0-draft2
    http://ontariohealth.ca/fhir/immunization/StructureDefinition/profile-patient-submission
description: Demographics and other administrative information about an individual receiving care or other health-related services. Updated to support PCR Emergency Contact.
package_name: ca.on.ir.r4
derivation: constraint
name: PatientIRSubmission
type: Patient
elements:
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: type.coding.code, type: value}
      min: 1
      slices:
        JHN:
          match:
            type:
              coding: {code: JHN}
          schema:
            mustSupport: true
            index: 1
            elements:
              type:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type'}
                mustSupport: true
                index: 2
                elements:
                  coding:
                    mustSupport: true
                    index: 3
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 4
                      code:
                        pattern: {type: Code, value: JHN}
                        mustSupport: true
                        index: 5
                    required: [system, code]
                required: [coding]
              system:
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn'}
                mustSupport: true
                index: 6
              value: {mustSupport: true, index: 7}
            required: [value, type, system]
        MRN:
          match:
            type:
              coding: {code: MR}
          schema:
            mustSupport: true
            _required: true
            index: 8
            elements:
              type:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type'}
                mustSupport: true
                index: 9
                elements:
                  coding:
                    mustSupport: true
                    index: 10
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 11
                      code:
                        pattern: {type: Code, value: MR}
                        mustSupport: true
                        index: 12
                    required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 13}
              value: {mustSupport: true, index: 14}
            required: [value, type, system]
  name:
    mustSupport: true
    array: true
    min: 1
    index: 15
    elements:
      use: {mustSupport: true, index: 16}
      family: {mustSupport: true, index: 17}
      given: {mustSupport: true, index: 18}
      prefix: {mustSupport: true, index: 19}
      suffix: {mustSupport: true, index: 20}
    required: [given, family]
  telecom:
    mustSupport: true
    index: 21
    elements:
      system: {mustSupport: true, index: 22}
      value: {mustSupport: true, index: 23}
      use: {mustSupport: true, index: 24}
    required: [value, system]
  gender:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0'}
    mustSupport: true
    index: 25
  birthDate: {mustSupport: true, index: 26}
  address:
    mustSupport: true
    index: 27
    elements:
      use: {mustSupport: true, index: 28}
      type: {mustSupport: true, index: 29}
      line: {mustSupport: true, array: true, max: 2, index: 30}
      city: {mustSupport: true, index: 31}
      state:
        binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/province-state-code'}
        mustSupport: true
        index: 32
      postalCode: {mustSupport: true, index: 33}
      country:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'}
        mustSupport: true
        index: 34
    required: [country, city, state]
  contact:
    mustSupport: true
    index: 35
    elements:
      relationship:
        type: CodeableConcept
        binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/patient-contact-relationship'}
        mustSupport: true
        index: 36
        elements:
          coding:
            type: Coding
            mustSupport: true
            index: 37
            elements:
              system:
                type: uri
                pattern: {type: Uri, value: 'http://hl7.org/fhir/patient-contact-relationship'}
                mustSupport: true
                index: 38
              code:
                type: code
                pattern: {type: Code, value: emergency}
                mustSupport: true
                index: 39
            required: [system, code]
        required: [coding]
      telecom: {mustSupport: true, index: 40}
      address:
        mustSupport: true
        index: 41
        elements:
          use: {mustSupport: true, index: 42}
          line: {mustSupport: true, index: 43}
          city: {mustSupport: true, index: 44}
          state:
            binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/province-state-code'}
            mustSupport: true
            index: 45
          postalCode: {mustSupport: true, index: 46}
          country:
            binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'}
            mustSupport: true
            index: 47
    required: [relationship]
package_version: 1.0.0-draft2
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/immunization/StructureDefinition/profile-patient-submission
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 1.1.0
required: [gender, name, identifier, birthDate]