description: Proposed constraints and extensions on the Encounter Resource package_name: ca.on.mha.pds derivation: constraint name: Encounter 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: 33} meta: mustSupport: true index: 0 elements: profile: mustSupport: true pattern: {type: canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter'} type: canonical index: 1 required: [profile] episodeOfCare: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-EpisodeOfCare'] index: 23 type: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/service-modality-type'} 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: [code, display, system] 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 type: uri index: 13 code: {mustSupport: true, index: 14} display: {mustSupport: true, index: 15} required: [code, display, system] 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: [system, value] period: mustSupport: true index: 29 elements: start: {mustSupport: true, index: 30} end: mustSupport: true index: 31 extensions: dischargeReason: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-DischargeReason', type: Extension, isModifier: false, mustSupport: true, index: 32} elements: extension: type: Extension isModifier: false mustSupport: true url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-DischargeReason index: 32 slicing: slices: dischargeReason: match: {} schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-DischargeReason', index: 32} 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: 34 elements: location: type: Reference refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location'] index: 35 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-beta-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, meta, subject]