description: Proposed constraints and extensions on the Encounter Resource package_name: ca.on.oh.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: 26 elements: reference: {mustSupport: true, index: 27} required: [reference] diagnosis: elements: rank: {mustSupport: true, index: 30} 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: 'http://ontariohealth.ca/fhir/ValueSet/EncounterTypeCode'} mustSupport: true index: 16 elements: coding: binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/EncounterTypeCode'} index: 17 elements: system: {mustSupport: true, index: 18} code: {mustSupport: true, index: 19} display: {mustSupport: true, index: 20} required: [display, system, code] extension: index: 2 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: directMinutes: match: {url: null} schema: type: Extension mustSupport: true url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes index: 3 elements: value: mustSupport: true choices: [] index: 5 indirectMinutes: match: {url: null} schema: type: Extension mustSupport: true url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-indirectminutes index: 6 elements: value: mustSupport: true choices: [] index: 8 class: 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 array: true min: 1 max: 2 index: 9 elements: system: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/Encounter-identifier-system'} mustSupport: true index: 10 value: {mustSupport: true, index: 11} required: [value, system] hospitalization: elements: dischargeDisposition: binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/encounterdischargedisposition'} index: 31 period: mustSupport: true index: 28 elements: start: {mustSupport: true, index: 29} 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: 32 elements: location: type: Reference refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location'] index: 33 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: 0.9.0-alpha-1.9.7.13 extensions: directMinutes: url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes type: Extension mustSupport: true index: 3 elements: value: mustSupport: true choices: [] index: 5 indirectMinutes: url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-indirectminutes type: Extension mustSupport: true index: 6 elements: value: mustSupport: true choices: [] index: 8 class: profile kind: resource url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter base: http://hl7.org/fhir/StructureDefinition/Encounter version: 0.1.0 required: [identifier, subject, type, meta]