{
"description": "Handles information about the redeem of the prescription and the submited medication from the EU.",
"_filename": "StructureDefinition-GEM-ERPEU-PR-MedicationDispense.json",
"package_name": "de.gematik.erezept.eu",
"date": "2026-01-06",
"derivation": "constraint",
"publisher": null,
"fhirVersion": "4.0.1",
"name": "GEM_ERPEU_PR_MedicationDispense",
"abstract": false,
"type": "MedicationDispense",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "Dispensation of the Prescription from the EU",
"package_version": "1.1.0",
"status": "active",
"id": "8854f29f-2d32-482f-9af4-c532a885f5b8",
"kind": "resource",
"url": "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense",
"version": "1.1.0",
"differential": {
"element": [ {
"id": "MedicationDispense.meta",
"min": 1,
"path": "MedicationDispense.meta"
}, {
"id": "MedicationDispense.meta.profile",
"max": "1",
"min": 1,
"path": "MedicationDispense.meta.profile",
"slicing": {
"rules": "closed",
"ordered": false,
"description": "Slicing for meta profile",
"discriminator": [ {
"path": "$this",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "MedicationDispense.meta.profile:workflowEUProfile",
"max": "1",
"min": 1,
"path": "MedicationDispense.meta.profile",
"sliceName": "workflowEUProfile",
"mustSupport": true,
"fixedCanonical": "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense|1.1"
}, {
"id": "MedicationDispense.identifier",
"min": 1,
"path": "MedicationDispense.identifier",
"short": "ePrescription identifier"
}, {
"id": "MedicationDispense.identifier:prescriptionID",
"max": "1",
"min": 1,
"path": "MedicationDispense.identifier",
"type": [ {
"code": "Identifier",
"profile": [ "https://gematik.de/fhir/ti/StructureDefinition/e-prescription-id" ]
} ],
"sliceName": "prescriptionID",
"patternIdentifier": {
"system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"
}
}, {
"id": "MedicationDispense.status",
"path": "MedicationDispense.status",
"short": "completed",
"fixedCode": "completed"
}, {
"id": "MedicationDispense.medication[x]",
"path": "MedicationDispense.medication[x]",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_Medication" ]
} ],
"definition": "The MedicationDispense references a medication which was dispensed"
}, {
"id": "MedicationDispense.performer",
"path": "MedicationDispense.performer",
"definition": "References a pracitioner role in order to state practitioner and organization information"
}, {
"id": "MedicationDispense.performer.actor",
"path": "MedicationDispense.performer.actor",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_PractitionerRole" ]
} ]
}, {
"id": "MedicationDispense.quantity",
"path": "MedicationDispense.quantity",
"short": "Number of dispensed packages/ units",
"constraint": [ {
"key": "erp-eu-positiveAnzahlPackungen",
"human": "Der Wert der Packungen muss positiv sein (größer gleich 0).",
"source": "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense",
"severity": "error",
"expression": "value>=0"
} ],
"mustSupport": true
}, {
"id": "MedicationDispense.quantity.value",
"path": "MedicationDispense.quantity.value",
"mustSupport": true
}, {
"id": "MedicationDispense.quantity.unit",
"path": "MedicationDispense.quantity.unit",
"mustSupport": true
}, {
"id": "MedicationDispense.whenPrepared",
"path": "MedicationDispense.whenPrepared",
"constraint": [ {
"key": "erp-eu-abgabeDatumsFormat",
"human": "Wert muss ein Datum in der Form: YYYY-MM-DD sein.",
"source": "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense",
"severity": "error",
"expression": "toString().length()=10"
} ]
}, {
"id": "MedicationDispense.whenHandedOver",
"path": "MedicationDispense.whenHandedOver",
"constraint": [ {
"key": "erp-eu-abgabeDatumsFormat",
"human": "Wert muss ein Datum in der Form: YYYY-MM-DD sein.",
"source": "https://gematik.de/fhir/erp-eu/StructureDefinition/GEM_ERPEU_PR_MedicationDispense",
"severity": "error",
"expression": "toString().length()=10"
} ]
}, {
"id": "MedicationDispense.substitution.wasSubstituted",
"path": "MedicationDispense.substitution.wasSubstituted",
"short": "Indicates whether a substitution was made on the dispensed medication",
"mustSupport": true
} ]
},
"baseDefinition": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"
}