description: Patient EHR Submission Profile package_name: ca.on.ehr-contribution.r4 derivation: constraint name: PatientEHRSubmission type: Patient elements: identifier: mustSupport: true index: 0 elements: type: {mustSupport: true, index: 1} system: {index: 2} value: {index: 3} required: [type] slicing: rules: open discriminator: - {path: type, type: pattern} min: 1 slices: JHN: match: type: coding: - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'} schema: mustSupport: true array: true index: 4 elements: type: pattern: type: CodeableConcept value: coding: - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 5 system: {mustSupport: true, index: 6} value: {mustSupport: true, index: 7} required: [value, system] MRN: match: type: coding: - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'} schema: mustSupport: true array: true min: 1 _required: true index: 8 elements: type: pattern: type: CodeableConcept value: coding: - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'} index: 9 system: {mustSupport: true, index: 10} value: {mustSupport: true, index: 11} required: [value, system] name: constraint: pat-name-inv1: {human: Either Patient.name.given and/or Patient.name.family SHALL be present., source: 'http://ontariohealth.ca/ehr/StructureDefinition/profile-patient-submission', severity: error, expression: family.exists() or given.exists()} mustSupport: true index: 12 elements: use: {mustSupport: true, index: 13} family: {mustSupport: true, index: 14} given: {mustSupport: true, index: 15} telecom: mustSupport: true index: 16 elements: system: {mustSupport: true, index: 17} value: {mustSupport: true, index: 18} use: {mustSupport: true, index: 19} required: [value] gender: {mustSupport: true, index: 20} birthDate: {mustSupport: true, index: 21} address: mustSupport: true index: 22 elements: use: {mustSupport: true, index: 23} type: {mustSupport: true, index: 24} line: {mustSupport: true, array: true, max: 2, index: 25} city: {mustSupport: true, index: 26} state: binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/province-state-code'} mustSupport: true index: 27 postalCode: {mustSupport: true, index: 28} country: binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'} mustSupport: true index: 29 required: [country] contact: constraint: pat-contact-inv1: {human: SHALL at least contain a contact's details, source: 'http://ontariohealth.ca/ehr/StructureDefinition/profile-patient-submission', severity: error, expression: name.exists() or telecom.exists() or address.exists()} mustSupport: true index: 30 elements: name: mustSupport: true index: 31 elements: family: {mustSupport: true, index: 32} given: {mustSupport: true, index: 33} telecom: mustSupport: true index: 34 elements: system: {mustSupport: true, index: 35} value: {mustSupport: true, index: 36} use: {mustSupport: true, index: 37} required: [value] address: mustSupport: true index: 38 elements: use: {mustSupport: true, index: 39} type: {mustSupport: true, index: 40} line: {mustSupport: true, array: true, max: 2, index: 41} city: {mustSupport: true, index: 42} state: binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/province-state-code'} mustSupport: true index: 43 postalCode: {mustSupport: true, index: 44} country: binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'} mustSupport: true index: 45 required: [country] package_version: 1.0.0-snapshot1 class: profile kind: resource url: http://ontariohealth.ca/ehr/StructureDefinition/profile-patient-submission base: http://hl7.org/fhir/StructureDefinition/Patient version: 1.0.0 required: [gender, name, identifier]