description: null package_name: ca.on.oh-dhdr derivation: constraint name: Encounter type: Encounter elements: meta: mustSupport: true index: 1 elements: profile: {mustSupport: true, index: 2} required: [profile] type: binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/local-PV1-4values'} mustSupport: true index: 16 elements: coding: mustSupport: true index: 17 elements: system: {mustSupport: true, index: 18} code: {mustSupport: true, index: 19} display: {mustSupport: true, index: 20} required: [display, system, code] required: [coding] participant: mustSupport: true index: 34 elements: type: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-encounter-participant-type'} mustSupport: true index: 35 elements: coding: mustSupport: true index: 36 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'} mustSupport: true index: 37 code: {mustSupport: true, index: 38} display: {mustSupport: true, index: 39} required: [display, system, code] required: [coding] individual: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner', 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner-submission'] index: 40 elements: reference: {mustSupport: true, index: 41} required: [reference] required: [individual, type] serviceType: binding: {strength: required, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-hospital-service'} mustSupport: true index: 21 elements: coding: mustSupport: true index: 22 elements: system: {mustSupport: true, index: 23} code: {mustSupport: true, index: 24} display: {mustSupport: true, index: 25} required: [display, system, code] text: {mustSupport: true, index: 26} priority: binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/canadiantriageacuityscale'} mustSupport: true index: 27 elements: coding: mustSupport: true index: 28 elements: system: pattern: {type: Uri, value: 'http://ctas-phctas.ca/CodeSystem/canadian-triage-acuity-scale'} mustSupport: true index: 29 code: {mustSupport: true, index: 30} display: {mustSupport: true, index: 31} required: [display, system, code] required: [coding] status: pattern: {type: Code, value: in-progress} mustSupport: true index: 11 id: {mustSupport: true, index: 0} class: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-encounter-class'} constraint: elem-2: {human: Virtual Encounter class must have modality value, severity: error} mustSupport: true index: 12 elements: system: {mustSupport: true, index: 13} code: {mustSupport: true, index: 14} display: {mustSupport: true, index: 15} required: [display, system, code] identifier: mustSupport: true index: 3 elements: type: mustSupport: true index: 4 elements: coding: mustSupport: true index: 5 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'} mustSupport: true index: 6 code: pattern: {type: Code, value: VN} mustSupport: true index: 7 display: pattern: {type: String, value: Visit number} mustSupport: true index: 8 required: [display, system, code] required: [coding] system: {mustSupport: true, index: 9} value: {mustSupport: true, index: 10} required: [value, type, system] hospitalization: mustSupport: true index: 45 elements: admitSource: binding: {strength: required, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-admit-source'} mustSupport: true index: 46 elements: coding: mustSupport: true index: 47 elements: system: pattern: {type: Uri, value: 'http://cihi.ca/fhir/CodeSystem/aac-admit-source'} mustSupport: true index: 48 code: {mustSupport: true, index: 49} display: {mustSupport: true, index: 50} required: [display, system, code] required: [coding] dischargeDisposition: binding: {strength: required, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-discharge-disposition'} mustSupport: true index: 51 elements: coding: index: 52 elements: system: pattern: {type: Uri, value: 'http://cihi.ca/fhir/CodeSystem/aac-discharge-disposition'} index: 53 code: {index: 54} display: {index: 55} required: [display, system, code] required: [coding] period: mustSupport: true index: 42 elements: start: {mustSupport: true, index: 43} end: {mustSupport: true, index: 44} location: mustSupport: true index: 56 slicing: rules: open discriminator: - {path: physicalType.coding.code, type: value} min: null slices: slice-location-bed: match: physicalType: coding: {code: null} schema: mustSupport: true index: 57 elements: location: mustSupport: true index: 58 elements: display: {mustSupport: true, index: 59} required: [display] physicalType: mustSupport: true index: 60 elements: coding: mustSupport: true index: 61 slicing: rules: open discriminator: - {path: $this, type: pattern} min: 1 slices: slice-location-type-bed: match: {} schema: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-location-physical-type'} mustSupport: true _required: true index: 62 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} mustSupport: true index: 63 code: pattern: {type: Code, value: bd} mustSupport: true index: 64 display: pattern: {type: String, value: Bed} mustSupport: true index: 65 required: [display, system, code] slice-bed-type: match: {} schema: binding: {strength: required, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-bed-type'} mustSupport: true index: 66 elements: system: pattern: {type: Uri, value: 'http://cihi.ca/fhir/CodeSystem/aac-bed-type'} mustSupport: true index: 67 code: {mustSupport: true, index: 68} display: {mustSupport: true, index: 69} required: [display, system, code] required: [coding] required: [physicalType] slice-location-room: match: physicalType: coding: {code: ro} schema: mustSupport: true index: 70 elements: location: mustSupport: true index: 71 elements: display: {mustSupport: true, index: 72} required: [display] physicalType: mustSupport: true index: 73 elements: coding: mustSupport: true index: 74 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} mustSupport: true index: 75 code: pattern: {type: Code, value: ro} mustSupport: true index: 76 display: pattern: {type: String, value: Room} mustSupport: true index: 77 required: [display, system, code] required: [coding] required: [physicalType] slice-location-facility: match: physicalType: coding: {code: si} schema: mustSupport: true index: 78 elements: location: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Location'] index: 79 elements: reference: {mustSupport: true, index: 80} required: [reference] physicalType: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-location-physical-type'} mustSupport: true index: 81 elements: coding: mustSupport: true index: 82 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} mustSupport: true index: 83 code: pattern: {type: Code, value: si} mustSupport: true index: 84 display: {mustSupport: true, index: 85} required: [display, system, code] required: [coding] required: [physicalType] slice-location-building: match: physicalType: coding: {code: bu} schema: mustSupport: true index: 86 elements: location: mustSupport: true index: 87 elements: display: {mustSupport: true, index: 88} required: [display] physicalType: mustSupport: true index: 89 elements: coding: mustSupport: true index: 90 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} mustSupport: true index: 91 code: pattern: {type: Code, value: bu} mustSupport: true index: 92 display: pattern: {type: String, value: Building} mustSupport: true index: 93 required: [display, system, code] required: [coding] required: [physicalType] slice-location-floor: match: physicalType: coding: {code: lvl} schema: mustSupport: true index: 94 elements: location: mustSupport: true index: 95 elements: display: {mustSupport: true, index: 96} required: [display] physicalType: mustSupport: true index: 97 elements: coding: mustSupport: true index: 98 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} mustSupport: true index: 99 code: pattern: {type: Code, value: lvl} mustSupport: true index: 100 display: pattern: {type: String, value: Level} mustSupport: true index: 101 required: [display, system, code] required: [coding] required: [physicalType] slice-location-point-of-care: match: physicalType: coding: {code: wi} schema: mustSupport: true index: 102 elements: location: mustSupport: true index: 103 elements: display: {mustSupport: true, index: 104} required: [display] physicalType: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-location-physical-type'} mustSupport: true index: 105 elements: coding: mustSupport: true index: 106 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'} mustSupport: true index: 107 code: pattern: {type: Code, value: wi} mustSupport: true index: 108 display: {mustSupport: true, index: 109} required: [display, system, code] required: [coding] required: [physicalType] slice-location-description: match: physicalType: coding: {code: Id} schema: mustSupport: true index: 110 elements: location: mustSupport: true index: 111 elements: display: {mustSupport: true, index: 112} required: [display] physicalType: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-location-physical-type'} mustSupport: true index: 113 elements: coding: mustSupport: true index: 114 elements: system: pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/CodeSystem/accdr-bed-desc-code'} index: 115 code: pattern: {type: Code, value: Id} mustSupport: true index: 116 display: pattern: {type: String, value: location or bed description} mustSupport: true index: 117 required: [display, system, code] required: [coding] required: [physicalType] subject: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient', 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient-submission'] index: 32 elements: reference: {mustSupport: true, index: 33} required: [reference] package_version: 4.0.2-alpha1.0.1 class: profile kind: resource url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Encounter base: http://hl7.org/fhir/StructureDefinition/Encounter version: 4.0.1 required: [identifier, subject, meta]