description: Indicates that a medication is to be or has been dispensed for a named patient package_name: ca derivation: constraint name: MedicationDispense type: MedicationDispense elements: category: mustSupport: true index: 11 elements: coding: binding: {strength: required, valueSet: 'https://tgateway.infoway-inforoute.ca/vs/medicationdispensecategory'} mustSupport: true index: 12 elements: system: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/ca-on-medication-dispense-category'} mustSupport: true index: 13 code: {mustSupport: true, index: 14} display: {mustSupport: true, index: 15} required: [display, system, code] required: [coding] whenHandedOver: {mustSupport: true, index: 36} whenPrepared: {mustSupport: true, index: 35} meta: mustSupport: true index: 1 elements: lastUpdated: {mustSupport: true, index: 2} source: {mustSupport: true, index: 3} extension: index: 4 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: DispenseRemainingQuantity: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining', index: 5} min: 0 max: 1 DispenseRemainingRefills: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining', index: 6} min: 0 max: 1 status: {mustSupport: true, index: 10} id: {mustSupport: true, index: 0} dosageInstruction: mustSupport: true index: 37 elements: text: {mustSupport: true, index: 38} patientInstruction: {mustSupport: true, index: 39} timing: mustSupport: true index: 40 elements: repeat: mustSupport: true index: 41 elements: frequency: {mustSupport: true, index: 42} period: {mustSupport: true, index: 43} periodMax: {mustSupport: true, index: 44} periodUnit: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time|4.0.0'} mustSupport: true index: 45 required: [periodUnit, period, frequency] required: [repeat] asNeeded: mustSupport: true choices: [asNeededBoolean] index: 47 asNeededBoolean: {type: boolean, mustSupport: true, choiceOf: asNeeded, index: 48} route: mustSupport: true index: 49 elements: coding: binding: {strength: required, valueSet: 'https://terminology.hl7.org/CodeSystem/v3-RouteOfAdministration'} mustSupport: true index: 50 elements: system: {mustSupport: true, index: 51} code: {mustSupport: true, index: 52} required: [system, code] text: {mustSupport: true, index: 53} required: [coding] doseAndRate: mustSupport: true index: 54 elements: dose: mustSupport: true choices: [doseQuantity] index: 56 doseQuantity: {type: Quantity, mustSupport: true, choiceOf: dose, index: 57} dose[x]: elements: value: {mustSupport: true, index: 58} unit: {mustSupport: true, index: 59} system: {mustSupport: true, index: 60} code: binding: {strength: required, valueSet: 'https://tgateway.infoway-inforoute.ca/vs/prescriptiondosequantityunit'} mustSupport: true index: 61 required: [value] daysSupply: mustSupport: true index: 33 elements: value: {index: 34} required: [value] identifier: mustSupport: true index: 7 elements: system: {mustSupport: true, index: 8} value: {mustSupport: true, index: 9} required: [value] quantity: mustSupport: true index: 28 elements: value: {mustSupport: true, index: 29} unit: {mustSupport: true, index: 30} system: {mustSupport: true, index: 31} code: binding: {strength: required, valueSet: 'https://tgateway.infoway-inforoute.ca/vs/prescribedquantityunit'} mustSupport: true index: 32 required: [value] authorizingPrescription: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest'] index: 26 elements: reference: {mustSupport: true, index: 27} required: [reference] subject: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient-dispense', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Patient'] index: 18 elements: reference: {mustSupport: true, index: 19} required: [reference] performer: mustSupport: true array: true max: 2 index: 20 elements: actor: mustSupport: true index: 21 slicing: rules: open discriminator: - {path: reference, type: value} min: null slices: performerOrganization: match: {reference: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Organization-dispenser'} schema: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Organization-dispenser', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 22 elements: reference: pattern: {type: String, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Organization-dispenser'} mustSupport: true index: 23 required: [reference] performerPractitioner: match: {reference: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner-dispenser'} schema: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner-dispenser', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 24 elements: reference: pattern: {type: String, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner-dispenser'} index: 25 required: [reference] medication: mustSupport: true choices: [] index: 17 package_version: on-dhdr-r4.v1-1.0.0 extensions: DispenseRemainingQuantity: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining', min: 0, max: 1, type: Extension, mustSupport: true, index: 5} DispenseRemainingRefills: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining', min: 0, max: 1, type: Extension, mustSupport: true, index: 6} class: profile kind: resource url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationDispense base: http://hl7.org/fhir/StructureDefinition/MedicationDispense version: 3.0.0 required: [whenPrepared, quantity, identifier, subject]