description: Indicates that a medication is to be or has been dispensed for a named patient package_name: ca.on.oh-dhdr derivation: constraint name: MedicationDispense type: MedicationDispense elements: category: binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/dhdr-dispense-category'} mustSupport: true index: 15 elements: coding: mustSupport: true index: 16 elements: system: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/CodeSystem/dispense-category'} mustSupport: true index: 17 code: {mustSupport: true, index: 18} display: {mustSupport: true, index: 19} required: [display, system, code] required: [coding] whenHandedOver: {mustSupport: true, index: 39} whenPrepared: {mustSupport: true, index: 38} meta: mustSupport: true index: 1 elements: source: {mustSupport: true, index: 2} profile: {mustSupport: true, index: 3} required: [profile] medication[x]: elements: reference: {mustSupport: true, index: 23} required: [reference] extension: mustSupport: true index: 4 slicing: slices: DispenseRemainingRefills: match: {} schema: type: Extension isModifier: false url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining index: 5 elements: url: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining'} index: 6 DispenseRemainingQuantity: match: {} schema: type: Extension isModifier: false url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining index: 7 elements: url: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining'} index: 8 DrugServiceCoverage: match: {} schema: type: Extension isModifier: false url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-drug-service-coverage index: 9 elements: url: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-drug-service-coverage'} index: 10 status: {mustSupport: true, index: 14} id: {mustSupport: true, index: 0} dosageInstruction: mustSupport: true index: 40 elements: site: mustSupport: true index: 78 elements: coding: mustSupport: true index: 79 elements: system: {mustSupport: true, index: 80} code: {mustSupport: true, index: 81} display: {mustSupport: true, index: 82} required: [display, system, code] text: {mustSupport: true, index: 83} asNeeded: mustSupport: true choices: [asNeededBoolean] index: 76 method: mustSupport: true index: 89 elements: coding: mustSupport: true index: 90 elements: system: {mustSupport: true, index: 91} code: {mustSupport: true, index: 92} display: {mustSupport: true, index: 93} required: [display, system, code] text: {mustSupport: true, index: 94} patientInstruction: {mustSupport: true, index: 49} maxDosePerLifetime: mustSupport: true index: 129 elements: value: {mustSupport: true, index: 130} unit: {mustSupport: true, index: 131} system: {mustSupport: true, index: 132} code: {mustSupport: true, index: 133} maxDosePerAdministration: mustSupport: true index: 124 elements: value: {mustSupport: true, index: 125} unit: {mustSupport: true, index: 126} system: {mustSupport: true, index: 127} code: {mustSupport: true, index: 128} route: mustSupport: true index: 84 elements: coding: binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'} mustSupport: true index: 85 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} mustSupport: true index: 86 code: {mustSupport: true, index: 87} display: {mustSupport: true, index: 88} required: [display, system, code] required: [coding] asNeededBoolean: {type: boolean, mustSupport: true, choiceOf: asNeeded, index: 77} timing: mustSupport: true index: 50 elements: event: {mustSupport: true, index: 51} repeat: mustSupport: true index: 52 elements: frequencyMax: {mustSupport: true, index: 61} when: {mustSupport: true, index: 67} offset: {mustSupport: true, index: 68} periodUnit: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time|4.0.0'} mustSupport: true index: 64 frequency: {mustSupport: true, index: 60} durationMax: {mustSupport: true, index: 58} duration: {mustSupport: true, index: 57} bounds: mustSupport: true choices: [] index: 54 durationUnit: {mustSupport: true, index: 59} dayOfWeek: {mustSupport: true, index: 65} count: {mustSupport: true, index: 55} periodMax: {mustSupport: true, index: 63} period: {mustSupport: true, index: 62} countMax: {mustSupport: true, index: 56} timeOfDay: {mustSupport: true, index: 66} code: binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/dhdr-medication-repeat-pattern'} mustSupport: true index: 69 elements: coding: mustSupport: true index: 70 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} mustSupport: true index: 71 code: {mustSupport: true, index: 72} display: {mustSupport: true, index: 73} required: [display, system, code] text: {mustSupport: true, index: 74} additionalInstruction: mustSupport: true index: 43 elements: coding: mustSupport: true index: 44 elements: system: {mustSupport: true, index: 45} code: {mustSupport: true, index: 46} display: {mustSupport: true, index: 47} required: [display, system, code] text: {mustSupport: true, index: 48} sequence: {mustSupport: true, index: 41} maxDosePerPeriod: mustSupport: true index: 111 elements: numerator: mustSupport: true index: 112 elements: value: {mustSupport: true, index: 113} comparator: {mustSupport: true, index: 114} unit: {mustSupport: true, index: 115} system: {mustSupport: true, index: 116} code: {mustSupport: true, index: 117} denominator: mustSupport: true index: 118 elements: value: {mustSupport: true, index: 119} comparator: {mustSupport: true, index: 120} unit: {mustSupport: true, index: 121} system: {mustSupport: true, index: 122} code: {mustSupport: true, index: 123} doseAndRate: mustSupport: true index: 95 elements: type: mustSupport: true index: 96 elements: coding: mustSupport: true index: 97 elements: system: {mustSupport: true, index: 98} code: {mustSupport: true, index: 99} display: {mustSupport: true, index: 100} required: [display, system, code] text: {mustSupport: true, index: 101} dose: mustSupport: true choices: [doseRange, doseQuantity] index: 103 doseRange: {type: Range, mustSupport: true, choiceOf: dose, index: 104} doseQuantity: {type: Quantity, mustSupport: true, choiceOf: dose, index: 105} rate: mustSupport: true choices: [rateRatio, rateRange, rateQuantity] index: 107 rateRatio: {type: Ratio, mustSupport: true, choiceOf: rate, index: 108} rateRange: {type: Range, mustSupport: true, choiceOf: rate, index: 109} rateQuantity: {type: Quantity, mustSupport: true, choiceOf: rate, index: 110} text: {mustSupport: true, index: 42} required: [text] daysSupply: mustSupport: true index: 36 elements: value: {index: 37} required: [value] identifier: mustSupport: true array: true min: 1 max: 2 index: 11 elements: system: constraint: RX-system-id: {human: 'Original Rx Number value should be original Rx Number assigned by the pharmacy system on the first fill and should be the following formats: [id-system-local-base]/ca-on-pharmacy-[Pharmacy ID]-original-rx-number or [id-system-local-base]/ca-on-pharmacy-[Pharmacy ID]-current-rx-number', severity: error, expression: '$this.matches(''http://ehealthontario.ca/fhir/NamingSystem/ca-on-pharmacy-[0-9]{1,9}(?:-original-rx-number|-current-rx-number)'')'} mustSupport: true index: 12 value: {mustSupport: true, index: 13} required: [value, system] medicationReference: {type: Reference, mustSupport: true, choiceOf: medication, index: 22} quantity: binding: {strength: extensible, valueSet: 'https://tgateway.infoway-inforoute.ca/vs/prescribedquantityunit'} mustSupport: true index: 31 elements: value: {mustSupport: true, index: 32} unit: {mustSupport: true, index: 33} system: {mustSupport: true, index: 34} code: {mustSupport: true, index: 35} required: [value] authorizingPrescription: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationRequest'] index: 29 elements: reference: {mustSupport: true, index: 30} required: [reference] subject: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient'] index: 24 elements: reference: {mustSupport: true, index: 25} required: [reference] performer: mustSupport: true index: 26 elements: actor: type: Reference mustSupport: true refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-PractitionerRole'] index: 27 elements: reference: {mustSupport: true, index: 28} required: [reference] medication: mustSupport: true choices: [medicationReference] index: 21 package_version: 4.0.2-alpha1.0.1 extensions: DispenseRemainingRefills: url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining type: Extension isModifier: false index: 5 elements: url: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining'} index: 6 DispenseRemainingQuantity: url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining type: Extension isModifier: false index: 7 elements: url: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining'} index: 8 DrugServiceCoverage: url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-drug-service-coverage type: Extension isModifier: false index: 9 elements: url: pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-drug-service-coverage'} index: 10 class: profile kind: resource url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationDispense base: http://hl7.org/fhir/StructureDefinition/MedicationDispense version: 4.0.1 required: [whenPrepared, identifier, subject, meta]