description: null package_name: fhir.r4.wales.stu1 derivation: constraint name: DataStandardsWalesMedicationRequest type: MedicationRequest elements: category: {mustSupport: true, index: 10} substitution: {mustSupport: true, index: 43} dispenseRequest: mustSupport: true index: 41 elements: performer: type: Reference refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization'] index: 42 reported: choices: [reportedBoolean, reportedReference] index: 12 reasonCode: {mustSupport: true, index: 28} medicationCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 17} statusReason: mustSupport: true index: 4 elements: coding: index: 5 elements: system: {index: 6} code: {index: 7} display: {index: 8} required: [code, display, system] required: [coding] authoredOn: {mustSupport: true, index: 23} note: mustSupport: true index: 36 elements: author: choices: [authorReference, authorString] index: 38 authorReference: type: Reference choiceOf: author refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole'] index: 39 authorString: {type: string, choiceOf: author, index: 40} extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: medicationRepeatInformation: match: {url: null} schema: {mustSupport: true, index: 1} min: 0 requester: type: Reference mustSupport: true refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole'] index: 24 elements: reference: {index: 25} required: [reference] reportedReference: type: Reference choiceOf: reported refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole'] index: 14 status: {short: active | cancelled | stopped, mustSupport: true, index: 3} groupIdentifier: {mustSupport: true, index: 31} recorder: type: Reference mustSupport: true refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole'] index: 27 reportedBoolean: {type: boolean, choiceOf: reported, index: 13} identifier: {mustSupport: true, index: 2} intent: {mustSupport: true, index: 9} basedOn: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest'] index: 30 priorPrescription: type: Reference refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest'] index: 44 medicationReference: type: Reference mustSupport: true choiceOf: medication refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Medication'] index: 18 courseOfTherapyType: mustSupport: true index: 32 elements: coding: index: 33 elements: system: {index: 34} code: {index: 35} required: [code, system] required: [coding] subject: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient'] index: 19 elements: reference: {index: 20} identifier: elements: system: pattern: {type: uri, value: 'https://fhir.nhs.uk/Id/nhs-number'} type: uri index: 21 value: {index: 22} required: [system, value] required: [reference] performer: type: Reference refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-CareTeam', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole'] index: 26 medication: mustSupport: true choices: [medicationCodeableConcept, medicationReference] index: 16 reasonReference: type: Reference refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Condition', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation'] index: 29 package_version: 1.0.1 extensions: medicationRepeatInformation: {url: null, min: 0, mustSupport: true, index: 1} class: profile kind: resource url: https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest version: 1.0.0 required: [authoredOn, category, dispenseRequest, requester]