description: Handles information about the redeem of the prescription and the submited medication from the EU. package_name: de.gematik.tiflow.erezept derivation: constraint name: GEM_ERPEU_PR_MedicationDispense type: MedicationDispense elements: whenHandedOver: constraint: erp-eu-abgabeDatumsFormat: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-MedicationDispense', severity: error, expression: toString().length()=10} index: 12 whenPrepared: constraint: erp-eu-abgabeDatumsFormat: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-MedicationDispense', severity: error, expression: toString().length()=10} index: 11 substitution: elements: wasSubstituted: {short: Indicates whether a substitution was made on the dispensed medication, mustSupport: true, index: 13} status: short: completed pattern: {type: Code, value: completed} index: 2 identifier: short: ePrescription identifier index: 0 slicing: slices: prescriptionID: match: {} schema: type: Identifier pattern: type: Identifier value: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'} _required: true index: 1 min: 1 max: 1 medicationReference: type: Reference choiceOf: medication refers: ['https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-Medication'] index: 5 quantity: short: Number of dispensed packages/ units constraint: erp-eu-positiveAnzahlPackungen: {human: Der Wert der Packungen muss positiv sein (größer gleich 0)., source: 'https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-MedicationDispense', severity: error, expression: value>=0} mustSupport: true index: 8 elements: value: {mustSupport: true, index: 9} unit: {mustSupport: true, index: 10} performer: index: 6 elements: actor: type: Reference refers: ['https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-PractitionerRole'] index: 7 medication: choices: [medicationReference] index: 4 package_version: 2.0.0 class: profile kind: resource url: https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-MedicationDispense base: https://gematik.de/fhir/ti/StructureDefinition/ti-medication-dispense-dgmp version: 2.0.0 required: [identifier]