description: An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called MedicationRequest rather than MedicationPrescription or MedicationOrder to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns. package_name: ca.on.ehr.r4 derivation: constraint name: MedicationRequestEHR type: MedicationRequest elements: reasonCode: type: CodeableConcept binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/medicationreasoncode'} mustSupport: true index: 20 elements: coding: elements: system: {index: 21} required: [system] medicationCodeableConcept: type: CodeableConcept mustSupport: true choiceOf: medication index: 14 slicing: slices: medicationCodeableConcept: match: {} schema: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 14} min: 0 max: 1 authoredOn: {mustSupport: true, index: 17} extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: RenderedDosageInstruction: match: {url: null} schema: {type: Extension, url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', index: 1} min: 0 max: 1 requester: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-practitioner', 'http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-practitionerRole'] index: 18 elements: reference: {mustSupport: true, index: 19} required: [reference] status: {mustSupport: true, index: 5} dosageInstruction: mustSupport: true index: 24 elements: asNeeded: choices: [asNeededCodeableConcept] index: 42 slicing: slices: asNeededCodeableConcept: match: {} schema: choices: [asNeededCodeableConcept] index: 42 min: 0 max: 1 route: type: CodeableConcept mustSupport: true index: 44 elements: coding: binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'} index: 45 elements: system: {index: 46} required: [system] asNeededBoolean: type: boolean choiceOf: asNeeded index: 40 slicing: slices: asNeededBoolean: match: {} schema: {type: boolean, choiceOf: asNeeded, index: 40} min: 0 max: 1 timing: mustSupport: true index: 29 elements: repeat: mustSupport: true index: 30 elements: duration: {mustSupport: true, index: 31} durationUnit: {mustSupport: true, index: 32} code: type: CodeableConcept binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/medication-repeat-pattern'} mustSupport: true index: 33 elements: coding: index: 34 elements: system: {index: 35} required: [system] additionalInstruction: mustSupport: true index: 27 elements: text: {mustSupport: true, index: 28} required: [text] sequence: {mustSupport: true, index: 25} doseAndRate: mustSupport: true index: 47 elements: dose: mustSupport: true choices: [doseQuantity] index: 64 slicing: slices: doseQuantity: match: {} schema: mustSupport: true choices: [doseQuantity] index: 64 min: 0 max: 1 doseRange: type: Range mustSupport: true choiceOf: dose index: 52 slicing: slices: doseRange: match: {} schema: {type: Range, mustSupport: true, choiceOf: dose, index: 52} min: 0 max: 1 dose[x]: elements: value: {mustSupport: true, index: 66} unit: {mustSupport: true, index: 67} system: {mustSupport: true, index: 68} code: {mustSupport: true, index: 69} doseQuantity: type: Quantity mustSupport: true choiceOf: dose index: 65 slicing: slices: doseQuantity: match: {} schema: {type: Quantity, mustSupport: true, choiceOf: dose, index: 65} min: 0 max: 1 rate: mustSupport: true choices: [rateQuantity] index: 86 slicing: slices: rateQuantity: match: {} schema: mustSupport: true choices: [rateQuantity] index: 86 min: 0 max: 1 rateRange: type: Range mustSupport: true choiceOf: rate index: 74 slicing: slices: rateRange: match: {} schema: {type: Range, mustSupport: true, choiceOf: rate, index: 74} min: 0 max: 1 rate[x]: elements: value: {mustSupport: true, index: 88} unit: {mustSupport: true, index: 89} system: {mustSupport: true, index: 90} code: binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondosequantityunit'} mustSupport: true index: 91 rateQuantity: type: Quantity mustSupport: true choiceOf: rate index: 87 slicing: slices: rateQuantity: match: {} schema: {type: Quantity, mustSupport: true, choiceOf: rate, index: 87} min: 0 max: 1 asNeededCodeableConcept: type: CodeableConcept choiceOf: asNeeded index: 43 slicing: slices: asNeededCodeableConcept: match: {} schema: {type: CodeableConcept, choiceOf: asNeeded, index: 43} min: 0 max: 1 text: {mustSupport: true, index: 26} identifier: mustSupport: true index: 2 elements: system: {mustSupport: true, index: 3} value: {mustSupport: true, index: 4} required: [system, value] intent: {mustSupport: true, index: 6} basedOn: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-medicationRequest'] index: 22 elements: reference: {mustSupport: true, index: 23} required: [reference] medicationReference: refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-medication'] type: Reference mustSupport: true choiceOf: medication index: 11 slicing: slices: medicationReference: match: {} schema: refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-medication'] type: Reference mustSupport: true choiceOf: medication index: 11 min: 0 max: 1 subject: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-patient'] index: 15 elements: reference: {mustSupport: true, index: 16} required: [reference] medication: mustSupport: true choices: [medicationCodeableConcept] index: 13 slicing: slices: medicationCodeableConcept: match: {} schema: mustSupport: true choices: [medicationCodeableConcept] index: 13 min: 0 max: 1 package_version: 1.0.0-snapshot9 extensions: RenderedDosageInstruction: {url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', min: 0, max: 1, type: Extension, index: 1} class: profile kind: resource url: http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-medicationRequest base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 1.0.0