E-T-Rezept Datenaustausch
Version 1.1.0 - release

Resource Profile: E-T-Rezept Medication Dispense

Official URL: https://gematik.de/fhir/erp-t-prescription/StructureDefinition/erp-tprescription-medication-dispense Version: 1.1.0
Active as of 2025-12-19 Computable Name: ERP_TPrescription_MedicationDispense

Abgabeinformationen einer Apotheke, die es im Rahmen der Belieferung eines T-Rezeptes an den E-Rezept-Fachdienst übermittelt hat.

Mapping

Folgende Tabelle gibt eine grobe Darstellung des Mappings für dieses Profil:

Titel: E-T-Rezept Structure Map for MedicationDispense

Beschreibung: Mapping-Anweisungen zur Transformation von gematik ERP MedicationDispense zu BfArM T-Prescription MedicationDispense

Quelle (Eingangsdaten) Ziel (Ausgabedaten) Transformation & Beschreibung
gematikMedicationDispense.extension [GeneratedDosageInstructionsMeta] bfarmMedicationDispense.extension Kopiert Dosage Metadata Extension
→ übernimmt Wert aus Quellvariable
gematikMedicationDispense.extension [extension-MedicationDispense.renderedDosageInstruction] bfarmMedicationDispense.extension Kopiert RenderedDosageText
→ übernimmt Wert aus Quellvariable
gematikMedicationDispense.dosageInstruction bfarmMedicationDispense.dosageInstruction Übernimmt die Dosierungsanweisungen aus der ursprünglichen Abgabe für den digitalen Durchschlag
→ übernimmt Wert aus Quellvariable
gematikMedicationDispense.whenHandedOver bfarmMedicationDispense.whenHandedOver Kopiert das Abgabedatum zur Dokumentation des Zeitpunkts der Medikamentenausgabe
→ übernimmt Wert aus Quellvariable
gematikMedicationDispense.medication bfarmMedicationDispense.medication Kopiert die Medikamentenreferenz - das referenzierte Medication wird separat gemappt
→ übernimmt Wert aus Quellvariable
gematikMedicationDispense.status bfarmMedicationDispense.status Setzt den Status auf ‘completed’ da die Abgabe bereits erfolgt ist (digitaler Durchschlag)
→ setzt Wert ‘completed’
gematikMedicationDispense.quantity bfarmMedicationDispense.quantity Übernimmt die abgegebene Menge zur Dokumentation der tatsächlich ausgehändigten Medikamentenmenge
→ übernimmt Wert aus Quellvariable
gematikMedicationDispense.performer bfarmMedicationDispense.performer Transformiert Apotheken-Identifier zu Organization-Referenz für eindeutige Zuordnung der abgebenden Apotheke
gematikMedicationDispense.performer.actor bfarmMedicationDispense.performer.actor Verarbeitet den Actor (abgebende Apotheke) des Performers
gematikMedicationDispense.performer.actor.identifier (wird bestimmt durch Kontext) Extrahiert den Identifier der abgebenden Apotheke
gematikMedicationDispense.performer.actor.identifier.value reference Wandelt Apotheken-Identifier in Organization-Referenz um (Organization/)

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationDispense C 0..* MedicationDispense Dispensing a medication to a named patient
Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!Σ 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event.
Fixed Value: completed
... performer S 0..* BackboneElement Who performed event
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... actor C 1..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) Individual who was performing
Constraints: ref-1
... quantity SC 0..1 SimpleQuantity(4.0.1) Amount dispensed
Constraints: qty-3, sqty-1
... whenHandedOver S 0..1 dateTime When product was given out
... dosageInstruction S 0..* Dosage How the medication is to be used by the patient or administered by the caregiver

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
MedicationDispense.status Base required Medication dispense status codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error MedicationDispense If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error MedicationDispense If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice MedicationDispense A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
mdd-1 error MedicationDispense whenHandedOver cannot be before whenPrepared whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
qty-3 error MedicationDispense.quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
ref-1 error MedicationDispense.performer.actor SHALL have a contained resource if a local reference is provided reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
sqty-1 error MedicationDispense.quantity The comparator is not used on a SimpleQuantity comparator.empty()

This structure is derived from MedicationDispense

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationDispense MedicationDispense
... identifier 0..0 External identifier
... partOf 0..0 Event that dispense is part of
... status 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
Fixed Value: completed
... category 0..0 Type of medication dispense
... medication[x] S 1..1 Reference(Medication) What medication was supplied
... subject 0..0 Who the dispense is for
... context 0..0 Encounter / Episode associated with event
... supportingInformation 0..0 Information that supports the dispensing of the medication
... performer S 0..* BackboneElement Who performed event
... location 0..0 Where the dispense occurred
... authorizingPrescription 0..0 Medication order that authorizes the dispense
... type 0..0 Trial fill, partial fill, emergency fill, etc.
... quantity S 0..1 SimpleQuantity(4.0.1) Amount dispensed
... daysSupply 0..0 Amount of medication expressed as a timing amount
... whenPrepared 0..0 When product was packaged and reviewed
... whenHandedOver S 0..1 dateTime When product was given out
... destination 0..0 Where the medication was sent
... receiver 0..0 Who collected the medication
... note 0..0 Information about the dispense
... dosageInstruction S 0..* Dosage How the medication is to be used by the patient or administered by the caregiver
... substitution 0..0 Whether a substitution was performed on the dispense
... detectedIssue 0..0 Clinical issue with action
... eventHistory 0..0 A list of relevant lifecycle events

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationDispense C 0..* MedicationDispense Dispensing a medication to a named patient
Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!Σ 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event.
Fixed Value: completed
... medication[x] SΣ 1..1 Reference(Medication) What medication was supplied
... performer S 0..* BackboneElement Who performed event
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... function 0..1 CodeableConcept Who performed the dispense and what they did
Binding: MedicationDispense Performer Function Codes (example): A code describing the role an individual played in dispensing a medication.
.... actor C 1..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) Individual who was performing
Constraints: ref-1
... quantity SC 0..1 SimpleQuantity(4.0.1) Amount dispensed
Constraints: qty-3, sqty-1
... whenHandedOver S 0..1 dateTime When product was given out
... dosageInstruction S 0..* Dosage How the medication is to be used by the patient or administered by the caregiver

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
MedicationDispense.language Base preferred Common Languages 📍4.0.1 FHIR Std.
MedicationDispense.status Base required Medication dispense status codes 📍4.0.1 FHIR Std.
MedicationDispense.performer.​function Base example Medication dispense performer function codes 📍4.0.1 FHIR Std.
MedicationDispense.substitution.​type Base example ActSubstanceAdminSubstitutionCode 📦3.0.0 THO v7.0
MedicationDispense.substitution.​reason Base example SubstanceAdminSubstitutionReason 📦3.0.0 THO v7.0

Constraints

Id Grade Path(s) Description Expression
dom-2 error MedicationDispense If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error MedicationDispense If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice MedicationDispense A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
mdd-1 error MedicationDispense whenHandedOver cannot be before whenPrepared whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
qty-3 error MedicationDispense.quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
ref-1 error MedicationDispense.performer.actor, MedicationDispense.substitution.responsibleParty SHALL have a contained resource if a local reference is provided reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
sqty-1 error MedicationDispense.quantity The comparator is not used on a SimpleQuantity comparator.empty()

This structure is derived from MedicationDispense

Summary

Must-Support: 5 elements
Fixed: 1 element
Prohibited: 18 elements

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationDispense C 0..* MedicationDispense Dispensing a medication to a named patient
Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!Σ 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event.
Fixed Value: completed
... performer S 0..* BackboneElement Who performed event
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... actor C 1..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) Individual who was performing
Constraints: ref-1
... quantity SC 0..1 SimpleQuantity(4.0.1) Amount dispensed
Constraints: qty-3, sqty-1
... whenHandedOver S 0..1 dateTime When product was given out
... dosageInstruction S 0..* Dosage How the medication is to be used by the patient or administered by the caregiver

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
MedicationDispense.status Base required Medication dispense status codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error MedicationDispense If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error MedicationDispense If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice MedicationDispense A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
mdd-1 error MedicationDispense whenHandedOver cannot be before whenPrepared whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
qty-3 error MedicationDispense.quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
ref-1 error MedicationDispense.performer.actor SHALL have a contained resource if a local reference is provided reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
sqty-1 error MedicationDispense.quantity The comparator is not used on a SimpleQuantity comparator.empty()

Differential View

This structure is derived from MedicationDispense

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationDispense MedicationDispense
... identifier 0..0 External identifier
... partOf 0..0 Event that dispense is part of
... status 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
Fixed Value: completed
... category 0..0 Type of medication dispense
... medication[x] S 1..1 Reference(Medication) What medication was supplied
... subject 0..0 Who the dispense is for
... context 0..0 Encounter / Episode associated with event
... supportingInformation 0..0 Information that supports the dispensing of the medication
... performer S 0..* BackboneElement Who performed event
... location 0..0 Where the dispense occurred
... authorizingPrescription 0..0 Medication order that authorizes the dispense
... type 0..0 Trial fill, partial fill, emergency fill, etc.
... quantity S 0..1 SimpleQuantity(4.0.1) Amount dispensed
... daysSupply 0..0 Amount of medication expressed as a timing amount
... whenPrepared 0..0 When product was packaged and reviewed
... whenHandedOver S 0..1 dateTime When product was given out
... destination 0..0 Where the medication was sent
... receiver 0..0 Who collected the medication
... note 0..0 Information about the dispense
... dosageInstruction S 0..* Dosage How the medication is to be used by the patient or administered by the caregiver
... substitution 0..0 Whether a substitution was performed on the dispense
... detectedIssue 0..0 Clinical issue with action
... eventHistory 0..0 A list of relevant lifecycle events

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationDispense C 0..* MedicationDispense Dispensing a medication to a named patient
Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!Σ 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event.
Fixed Value: completed
... medication[x] SΣ 1..1 Reference(Medication) What medication was supplied
... performer S 0..* BackboneElement Who performed event
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... function 0..1 CodeableConcept Who performed the dispense and what they did
Binding: MedicationDispense Performer Function Codes (example): A code describing the role an individual played in dispensing a medication.
.... actor C 1..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) Individual who was performing
Constraints: ref-1
... quantity SC 0..1 SimpleQuantity(4.0.1) Amount dispensed
Constraints: qty-3, sqty-1
... whenHandedOver S 0..1 dateTime When product was given out
... dosageInstruction S 0..* Dosage How the medication is to be used by the patient or administered by the caregiver

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
MedicationDispense.language Base preferred Common Languages 📍4.0.1 FHIR Std.
MedicationDispense.status Base required Medication dispense status codes 📍4.0.1 FHIR Std.
MedicationDispense.performer.​function Base example Medication dispense performer function codes 📍4.0.1 FHIR Std.
MedicationDispense.substitution.​type Base example ActSubstanceAdminSubstitutionCode 📦3.0.0 THO v7.0
MedicationDispense.substitution.​reason Base example SubstanceAdminSubstitutionReason 📦3.0.0 THO v7.0

Constraints

Id Grade Path(s) Description Expression
dom-2 error MedicationDispense If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error MedicationDispense If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error MedicationDispense If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice MedicationDispense A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
mdd-1 error MedicationDispense whenHandedOver cannot be before whenPrepared whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
qty-3 error MedicationDispense.quantity If a code for the unit is present, the system SHALL also be present code.empty() or system.exists()
ref-1 error MedicationDispense.performer.actor, MedicationDispense.substitution.responsibleParty SHALL have a contained resource if a local reference is provided reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
sqty-1 error MedicationDispense.quantity The comparator is not used on a SimpleQuantity comparator.empty()

This structure is derived from MedicationDispense

Summary

Must-Support: 5 elements
Fixed: 1 element
Prohibited: 18 elements

 

Other representations of profile: CSV, Excel, Schematron