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/prescriptionindicationforuse'} 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: 22 elements: asNeeded: choices: [asNeededCodeableConcept] index: 40 slicing: slices: asNeededCodeableConcept: match: {} schema: choices: [asNeededCodeableConcept] index: 40 min: 0 max: 1 route: type: CodeableConcept mustSupport: true index: 42 elements: coding: binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'} index: 43 elements: system: {index: 44} required: [system] asNeededBoolean: type: boolean choiceOf: asNeeded index: 38 slicing: slices: asNeededBoolean: match: {} schema: {type: boolean, choiceOf: asNeeded, index: 38} min: 0 max: 1 timing: mustSupport: true index: 27 elements: repeat: mustSupport: true index: 28 elements: duration: {mustSupport: true, index: 29} durationUnit: {mustSupport: true, index: 30} code: type: CodeableConcept binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/medication-repeat-pattern'} mustSupport: true index: 31 elements: coding: index: 32 elements: system: {index: 33} required: [system] additionalInstruction: mustSupport: true index: 25 elements: text: {mustSupport: true, index: 26} required: [text] sequence: {mustSupport: true, index: 23} doseAndRate: mustSupport: true index: 45 elements: dose: mustSupport: true choices: [doseQuantity] index: 62 slicing: slices: doseQuantity: match: {} schema: mustSupport: true choices: [doseQuantity] index: 62 min: 0 max: 1 doseRange: type: Range mustSupport: true choiceOf: dose index: 50 slicing: slices: doseRange: match: {} schema: {type: Range, mustSupport: true, choiceOf: dose, index: 50} min: 0 max: 1 dose[x]: elements: value: {mustSupport: true, index: 64} unit: {mustSupport: true, index: 65} system: {mustSupport: true, index: 66} code: {mustSupport: true, index: 67} doseQuantity: type: Quantity mustSupport: true choiceOf: dose index: 63 slicing: slices: doseQuantity: match: {} schema: {type: Quantity, mustSupport: true, choiceOf: dose, index: 63} min: 0 max: 1 rate: mustSupport: true choices: [rateQuantity] index: 84 slicing: slices: rateQuantity: match: {} schema: mustSupport: true choices: [rateQuantity] index: 84 min: 0 max: 1 rateRange: type: Range mustSupport: true choiceOf: rate index: 72 slicing: slices: rateRange: match: {} schema: {type: Range, mustSupport: true, choiceOf: rate, index: 72} min: 0 max: 1 rate[x]: elements: value: {mustSupport: true, index: 86} unit: {mustSupport: true, index: 87} system: {mustSupport: true, index: 88} code: binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondosequantityunit'} mustSupport: true index: 89 rateQuantity: type: Quantity mustSupport: true choiceOf: rate index: 85 slicing: slices: rateQuantity: match: {} schema: {type: Quantity, mustSupport: true, choiceOf: rate, index: 85} min: 0 max: 1 asNeededCodeableConcept: type: CodeableConcept choiceOf: asNeeded index: 41 slicing: slices: asNeededCodeableConcept: match: {} schema: {type: CodeableConcept, choiceOf: asNeeded, index: 41} min: 0 max: 1 text: {mustSupport: true, index: 24} identifier: mustSupport: true index: 2 elements: system: {mustSupport: true, index: 3} value: {mustSupport: true, index: 4} required: [value, system] intent: {mustSupport: true, index: 6} 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-snapshot4 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