description: Proposed constraints and extensions on the Encounter Resource package_name: ca.on.oh.mha.pds derivation: constraint name: EncounterV2Draft type: Encounter elements: appointment: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-Appointment'] index: 27 elements: reference: {mustSupport: true, index: 28} required: [reference] diagnosis: elements: rank: {mustSupport: true, index: 32} meta: mustSupport: true index: 0 elements: profile: mustSupport: true pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter'} index: 1 required: [profile] episodeOfCare: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-EpisodeOfCare'] index: 23 type: binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/EncounterTypeCode'} 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: 26} extension: type: Extension mustSupport: true url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes index: 2 slicing: slices: directMinutes: match: {} schema: type: Extension mustSupport: true url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes index: 2 elements: value: mustSupport: true choices: [] index: 4 indirectMinutes: match: {} schema: type: Extension mustSupport: true url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-indirectminutes index: 5 elements: value: mustSupport: true choices: [] index: 7 status: {mustSupport: true, index: 11} class: mustSupport: true index: 12 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'} mustSupport: true index: 13 code: {mustSupport: true, index: 14} display: {mustSupport: true, index: 15} required: [display, system, code] identifier: mustSupport: true array: true min: 1 max: 2 index: 8 elements: system: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/Encounter-identifier-system'} mustSupport: true index: 9 value: {mustSupport: true, index: 10} required: [value, system] hospitalization: mustSupport: true index: 33 elements: dischargeDisposition: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha-organization-admission-discharge-reason'} mustSupport: true index: 34 required: [dischargeDisposition] period: mustSupport: true index: 29 elements: start: {mustSupport: true, index: 30} end: {mustSupport: true, index: 31} basedOn: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-servicerequest'] index: 24 elements: reference: {mustSupport: true, index: 25} location: mustSupport: true index: 35 elements: location: type: Reference refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location'] index: 36 subject: type: Reference short: The patient present at the encounter mustSupport: true refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient'] index: 21 elements: reference: {mustSupport: true, index: 22} required: [reference] package_version: 2.0.0-alpha-preview-0.1 extensions: directMinutes: url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes type: Extension mustSupport: true index: 2 elements: value: mustSupport: true choices: [] index: 4 indirectMinutes: url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-indirectminutes type: Extension mustSupport: true index: 5 elements: value: mustSupport: true choices: [] index: 7 class: profile kind: resource url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-Encounter base: http://hl7.org/fhir/StructureDefinition/Encounter version: 2.0.0 required: [identifier, subject, meta]