description: This profile applies constraints to the MedicationRequest resource for CA Core+ to support prescription and medication orders in the pan-Canadian context. package_name: ca.infoway.io.core derivation: constraint name: MedicationRequestCACore type: MedicationRequest elements: medication[x]: elements: coding: elements: system: {index: 10} code: {index: 11} display: {index: 12} text: {index: 13} reasonCode: type: CodeableConcept binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/medicationreasoncode'} mustSupport: true index: 17 elements: coding: mustSupport: true index: 18 elements: system: {mustSupport: true, index: 19} code: {mustSupport: true, index: 20} required: [system, code] text: {mustSupport: true, index: 21} medicationCodeableConcept: type: CodeableConcept choiceOf: medication index: 9 slicing: slices: medicationCodeableConcept: match: {} schema: {type: CodeableConcept, choiceOf: medication, index: 9} min: 0 max: 1 statusReason: {mustSupport: true, index: 1} authoredOn: {mustSupport: true, index: 16} status: {mustSupport: true, index: 0} dosageInstruction: mustSupport: true index: 22 elements: text: {mustSupport: true, index: 23} timing: elements: repeat: elements: bounds: choices: [] index: 25 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: null slices: boundsPeriod: match: {} schema: choices: [boundsPeriod] index: 27 min: 0 max: 1 boundsPeriod: type: Period choiceOf: bounds index: 28 slicing: slices: boundsPeriod: match: {} schema: {type: Period, choiceOf: bounds, index: 28} min: 0 max: 1 bounds[x]: elements: end: {index: 29} code: {index: 30} route: type: CodeableConcept binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'} index: 31 elements: coding: mustSupport: true index: 32 elements: system: {mustSupport: true, index: 33} code: {mustSupport: true, index: 34} required: [system, code] doseAndRate: elements: dose: choices: [] index: 36 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: null slices: doseQuantity: match: {} schema: choices: [doseQuantity] index: 38 min: 0 max: 1 doseQuantity: type: Quantity choiceOf: dose index: 39 slicing: slices: doseQuantity: match: {} schema: {type: Quantity, choiceOf: dose, index: 39} min: 0 max: 1 dose[x]: elements: value: {index: 40} system: {index: 41} code: {index: 42} medicationReference: refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core'] type: Reference choiceOf: medication index: 6 slicing: slices: medicationReference: match: {} schema: refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core'] type: Reference choiceOf: medication index: 6 min: 0 max: 1 subject: type: Reference mustSupport: true refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core'] index: 14 elements: reference: {mustSupport: true, index: 15} required: [reference] medication: choices: [medicationCodeableConcept] index: 8 slicing: slices: medicationCodeableConcept: match: {} schema: choices: [medicationCodeableConcept] index: 8 min: 0 max: 1 package_version: 1.0.0-dft-preballot-beta-01 class: profile kind: resource url: http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medicationrequest-ca-core base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: null