description: This MedicationRequest Resource represents an order for both supply of the medication and the instructions for administration of the medication to a patient. package_name: rs/NHSD.Assets.STU3 derivation: constraint name: CareConnect-GPC-MedicationRequest-1 type: MedicationRequest elements: meta: elements: profile: {index: 0} required: [profile] detectedIssue: {mustSupport: true, index: 63} dispenseRequest: index: 50 elements: validityPeriod: index: 51 elements: start: {index: 52} required: [start] quantity: mustSupport: true index: 53 extensions: quantityText: {url: h, max: 1, type: Extension, mustSupport: true, index: 55} elements: extension: index: 54 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: quantityText: match: {url: null} schema: {type: Extension, mustSupport: true, url: h, index: 55} max: 1 expectedSupplyDuration: mustSupport: true index: 56 elements: value: {index: 57} comparator: {index: 58} system: pattern: {type: uri, value: 'http://unitsofmeasure.org'} type: uri index: 59 code: {index: 60} required: [code, system, value] performer: type: Reference mustSupport: true refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1'] index: 61 required: [validityPeriod] authoredOn: {index: 18} note: mustSupport: true index: 24 elements: author: choices: [authorReference, authorString, authorReference, authorReference] index: 26 authorReference: type: Reference choiceOf: author refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1'] index: 29 authorString: {type: string, choiceOf: author, index: 28} extension: index: 1 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: repeatInformation: match: {url: null} schema: type: Extension url: h index: 2 extensions: numberOfRepeatPrescriptionsAllowed: {url: null, mustSupport: true, index: 3} numberOfRepeatPrescriptionsIssued: {url: null, mustSupport: false, index: 4} authorisationExpiryDate: {url: null, mustSupport: true, index: 5} elements: extension: mustSupport: true index: 3 slicing: slices: numberOfRepeatPrescriptionsAllowed: match: {} schema: {mustSupport: true, index: 3} numberOfRepeatPrescriptionsIssued: match: {} schema: {mustSupport: false, index: 4} authorisationExpiryDate: match: {} schema: {mustSupport: true, index: 5} statusReason: match: {url: null} schema: {type: Extension, mustSupport: true, url: h, index: 6} prescriptionType: match: {url: null} schema: {type: Extension, mustSupport: true, url: h, index: 7} requester: mustSupport: true index: 19 elements: agent: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1'] index: 20 onBehalfOf: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1'] index: 21 status: {index: 14} dosageInstruction: index: 31 elements: text: {index: 32} additionalInstruction: elements: coding: index: 33 slicing: rules: open ordered: false discriminator: - {path: system, type: value} min: null slices: snomedCT: match: {system: 'http://snomed.info/sct'} schema: index: 34 extensions: snomedCTDescriptionID: {url: h, type: Extension, index: 36} elements: extension: index: 35 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: snomedCTDescriptionID: match: {url: null} schema: {type: Extension, url: h, index: 36} system: pattern: {type: uri, value: 'http://snomed.info/sct'} type: uri index: 37 version: {index: 38} code: {index: 39} display: {index: 40} required: [code, display, system] patientInstruction: {mustSupport: true, index: 41} route: elements: coding: index: 42 slicing: rules: open ordered: false discriminator: - {path: system, type: value} min: null slices: snomedCT: match: {system: 'http://snomed.info/sct'} schema: index: 43 extensions: snomedCTDescriptionID: {url: h, type: Extension, index: 45} elements: extension: index: 44 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: snomedCTDescriptionID: match: {url: null} schema: {type: Extension, url: h, index: 45} system: pattern: {type: uri, value: 'http://snomed.info/sct'} type: uri index: 46 version: {index: 47} code: {index: 48} display: {index: 49} required: [code, display, system] required: [text] groupIdentifier: mustSupport: true index: 12 elements: assigner: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1'] index: 13 recorder: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1'] index: 22 identifier: index: 8 elements: system: {index: 9} value: {index: 10} required: [system, value] context: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/EpisodeOfCare', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1'] index: 17 basedOn: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ProcedureRequest', 'http://hl7.org/fhir/StructureDefinition/ReferralRequest', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1'] index: 11 priorPrescription: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1'] index: 62 medicationReference: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1'] index: 15 slicing: slices: medicationReference: match: {} schema: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1'] index: 15 subject: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1'] index: 16 reasonReference: type: Reference refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1'] index: 23 package_version: 1.2.0 extensions: repeatInformation: url: h type: Extension index: 2 extensions: numberOfRepeatPrescriptionsAllowed: {url: null, mustSupport: true, index: 3} numberOfRepeatPrescriptionsIssued: {url: null, mustSupport: false, index: 4} authorisationExpiryDate: {url: null, mustSupport: true, index: 5} elements: extension: mustSupport: true index: 3 slicing: slices: numberOfRepeatPrescriptionsAllowed: match: {} schema: {mustSupport: true, index: 3} numberOfRepeatPrescriptionsIssued: match: {} schema: {mustSupport: false, index: 4} authorisationExpiryDate: match: {} schema: {mustSupport: true, index: 5} statusReason: {url: h, type: Extension, mustSupport: true, index: 6} prescriptionType: {url: h, type: Extension, mustSupport: true, index: 7} class: profile kind: resource url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1 base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 1.6.0 required: [authoredOn, dispenseRequest, dosageInstruction, identifier, recorder, status]