TIFlow - Datenaustausch BfArM Webdienst
Version 2.0.0-ballot.1 - ci-build

## Resource Profile: E-T-Rezept Medication

Official URL: https://gematik.de/fhir/tiflow-bfarm/StructureDefinition/erp-tprescription-medication | Version: 2.0.0-ballot.1
Draft as of 2026-05-26 | Computable Name: ERP_TPrescription_Medication

Medikationsprofil, welches Informationen zum verordneten oder abgegebenen Arzneimittel enthält.

## Mapping

Folgende Tabellen geben eine grobe Darstellung der Mappings für dieses Profil:

### Mapping von Gematik Medication

Titel: E-T-Rezept Structure Map for Medication

Beschreibung: Maps GEM ERP Medication to BfArM T-Prescription Medication format

Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung
--- | --- | ---
`gematikMedication.id` | `bfarmMedication.id` | Übernimmt die eindeutige Medication-ID unverändert → übernimmt Wert aus Quellvariable
`gematikMedication.contained` | `bfarmMedication.contained` | Kopiert eingebettete Ressourcen (z.B. referenzierte Medications oder Organizations) → übernimmt Wert aus Quellvariable
`gematikMedication.extension` | `bfarmMedication.extension` | Mappt gematik-spezifische Medication-Extensions zu BfArM-Format
`gematikMedication.extension [normgroesse]` | `bfarmMedication.extension.url` | Übernimmt die Normgröße-Extension unverändert (deutsche Packungsgrößenangabe N1, N2, N3) → setzt URL ‘http://fhir.de/StructureDefinition/normgroesse’
`gematikMedication.extension [normgroesse].value` | `bfarmMedication.extension.url.value` | Kopiert den Wert der Normgröße-Extension → übernimmt Wert aus Quellvariable
`gematikMedication.extension [medication-formulation-packaging-extension]` | `bfarmMedication.extension.url` | Übernimmt die gematik-Verpackungs-Extension für Formulierungen → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension’
`gematikMedication.extension [medication-formulation-packaging-extension].value` | `bfarmMedication.extension.url.value` | Kopiert den Wert der Verpackungs-Extension → übernimmt Wert aus Quellvariable
`gematikMedication.code` | `bfarmMedication.code` | Kopiert den Medikamentencode (PZN oder andere Identifikation) des abgegebenen Arzneimittels → übernimmt Wert aus Quellvariable
`gematikMedication.form` | `bfarmMedication.form` | Übernimmt die Darreichungsform des tatsächlich abgegebenen Arzneimittels → übernimmt Wert aus Quellvariable
`gematikMedication.amount` | `bfarmMedication.amount` | Kopiert die Mengenangaben des abgegebenen Arzneimittels (tatsächlich ausgehändigte Menge) → übernimmt Wert aus Quellvariable
`gematikMedication.ingredient` | `bfarmMedication.ingredient` | Übernimmt Wirkstoffinformationen des abgegebenen Arzneimittels (falls vorhanden) → übernimmt Wert aus Quellvariable

### Mapping von KBV PZN Medication

Titel: E-T-Rezept Structure Map for KBV PZN Medication

Beschreibung: Mapping-Anweisungen zur Transformation von KBV PZN-Medikamenten zu BfArM T-Prescription Format

Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung
--- | --- | ---
`kbvMedicationPZN.extension` | `bfarmMedication.extension` | Mappt Medication-Extensions von KBV- zu BfArM-Format
`kbvMedicationPZN.extension [normgroesse]` | `bfarmMedication.extension.url` | Übernimmt die Normgröße-Extension unverändert (deutsche Packungsgrößenangabe) → setzt URL ‘http://fhir.de/StructureDefinition/normgroesse’
`kbvMedicationPZN.extension [normgroesse].value` | `bfarmMedication.extension.url.value` | Kopiert den Wert der Normgröße-Extension (N1, N2, N3) → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.id` | `bfarmMedication.id` | Übernimmt die eindeutige Medication-ID unverändert → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.code` | `bfarmMedication.code` | Kopiert den Medikamentencode (PZN - Pharmazentralnummer) für die eindeutige Identifikation → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.form` | `bfarmMedication.form` | Übernimmt die Darreichungsform (Tabletten, Kapseln, Tropfen, etc.) → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.amount` | `bfarmMedication.amount` | Mappt die Mengenangaben des Fertigarzneimittels (Packungsgröße und Inhalt)
`kbvMedicationPZN.amount.denominator` | `bfarmMedication.amount.denominator` | Kopiert den Nenner der Mengenangabe (z.B. ‘1’ für ‘pro Packung’) → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.amount.numerator` | `bfarmMedication.amount.numerator` | Mappt den Zähler der Mengenangabe mit allen Details (Wert, Einheit, Extensions)
`kbvMedicationPZN.amount.numerator.extension` | `bfarmMedication.amount.numerator.extension` | Transformiert Packungsgrößen-Extensions von KBV- zu gematik-Format
`kbvMedicationPZN.amount.numerator.extension [KBV_EX_ERP_Medication_PackagingSize]` | `bfarmMedication.amount.numerator.extension.url` | Wandelt KBV-Packungsgrößen-Extension in gematik EPA-Medication Extension um → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension’
`kbvMedicationPZN.amount.numerator.extension [KBV_EX_ERP_Medication_PackagingSize].value` | `bfarmMedication.amount.numerator.extension.url.value` | Übernimmt den Packungsgrößenwert unverändert → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.amount.numerator.value` | `bfarmMedication.amount.numerator.value` | Kopiert den numerischen Wert der Menge (z.B. ‘20’ für 20 Tabletten) → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.amount.numerator.unit` | `bfarmMedication.amount.numerator.unit` | Übernimmt die Mengeneinheit (Stück, ml, g, etc.) → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.amount.numerator.system` | `bfarmMedication.amount.numerator.system` | Kopiert das Codesystem für die Mengeneinheit (meist UCUM) → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.amount.numerator.code` | `bfarmMedication.amount.numerator.code` | Übernimmt den standardisierten Code für die Mengeneinheit → übernimmt Wert aus Quellvariable
`kbvMedicationPZN.ingredient` | `bfarmMedication.ingredient` | Kopiert Wirkstoffinformationen (bei PZN-Medikamenten meist nicht detailliert angegeben) → übernimmt Wert aus Quellvariable

### Mapping von KBV Ingredient Medication

Titel: E-T-Rezept Structure Map for KBV Ingredient Medication

Beschreibung: Maps KBV-Ingredient ERP Medication to BfArM T-Prescription Medication format

Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung
--- | --- | ---
`kbvMedicationIngredient.id` | `bfarmMedication.id` | Übernimmt die eindeutige Medication-ID unverändert → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.form` | `bfarmMedication.form` | Kopiert die gewünschte Darreichungsform für die Wirkstoff-Verordnung (Kapseln, Salbe, Lösung, etc.) → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.amount` | `bfarmMedication.amount` | Mappt die Gesamtmenge der herzustellenden Wirkstoff-Verordnung
`kbvMedicationIngredient.amount.denominator` | `bfarmMedication.amount.denominator` | Kopiert den Nenner der Mengenangabe (z.B. ‘1’ für ‘pro Herstellung’) → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.amount.numerator` | `bfarmMedication.amount.numerator` | Mappt die detaillierte Mengenangabe
`kbvMedicationIngredient.amount.numerator.extension` | `bfarmMedication.amount.numerator.extension` | Transformiert Packungsgrößen-Extensions von KBV- zu gematik-Format für Wirkstoff Verordnung
`kbvMedicationIngredient.amount.numerator.extension [KBV_EX_ERP_Medication_PackagingSize]` | `bfarmMedication.amount.numerator.extension.url` | Wandelt KBV-Packungsgrößen-Extension in gematik EPA-Medication Extension um → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension’
`kbvMedicationIngredient.amount.numerator.extension [KBV_EX_ERP_Medication_PackagingSize].value` | `bfarmMedication.amount.numerator.extension.url.value` | Übernimmt den Packungsgrößenwert → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.amount.numerator.value` | `bfarmMedication.amount.numerator.value` | Kopiert den numerischen Wert der Gesamtmenge (z.B. ‘100’ für 100g Salbe) → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.amount.numerator.unit` | `bfarmMedication.amount.numerator.unit` | Übernimmt die Mengeneinheit (g, ml, Stück, etc.) → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.amount.numerator.system` | `bfarmMedication.amount.numerator.system` | Kopiert das Codesystem für die Mengeneinheit (meist UCUM) → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.amount.numerator.code` | `bfarmMedication.amount.numerator.code` | Übernimmt den standardisierten Code für die Mengeneinheit → übernimmt Wert aus Quellvariable
`kbvMedicationIngredient.ingredient` | `bfarmMedication.ingredient` | Kopiert die detaillierten Wirkstoffinformationen mit Konzentrationen und Mengenangaben → übernimmt Wert aus Quellvariable

### Mapping von KBV FreeText Medication

Titel: E-T-Rezept Structure Map for KBV FreeText Medication

Beschreibung: Maps KBV FreeText Medication to BfArM T-Prescription Medication format

Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung
--- | --- | ---
`kbvMedicationFreeText.id` | `bfarmMedication.id` | Übernimmt die eindeutige Medication-ID unverändert → übernimmt Wert aus Quellvariable
`kbvMedicationFreeText.code` | `bfarmMedication.code` | Mappt den Medikamentencode mit Freitext-Beschreibung
`kbvMedicationFreeText.code.text` | `bfarmMedication.code.text` | Kopiert die Freitext-Bezeichnung des Medikaments (z.B. ‘Aspirin 500mg Tabletten’) → übernimmt Wert aus Quellvariable
`kbvMedicationFreeText.form` | `bfarmMedication.form` | Mappt die Darreichungsform als Freitext
`kbvMedicationFreeText.form.text` | `bfarmMedication.form.text` | Übernimmt die Freitext-Darreichungsform (z.B. ‘Tabletten’, ‘Tropfen zum Einnehmen’) → übernimmt Wert aus Quellvariable

### Mapping von KBV Compounding Medication

Titel: E-T-Rezept Structure Map for KBV Compounding Medication

Beschreibung: Mapping-Anweisungen zur Transformation von KBV Rezeptur-Medikamenten zu BfArM T-Prescription Format

Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung
--- | --- | ---
`kbvMedicationCompounding.extension` | `bfarmMedication.extension` | Mappt Rezeptur-spezifische Extensions von KBV- zu BfArM-Format
`kbvMedicationCompounding.extension [KBV_EX_ERP_Medication_Packaging]` | `bfarmMedication.extension.url` | Transformiert KBV-Verpackungs-Extension in gematik-Formulierungs-Verpackungs-Extension → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension’
`kbvMedicationCompounding.extension [KBV_EX_ERP_Medication_Packaging].value` | `bfarmMedication.extension.url.value` | Übernimmt den Verpackungswert für die Rezeptur → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.id` | `bfarmMedication.id` | Übernimmt die eindeutige Medication-ID unverändert → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.code` | `bfarmMedication.code` | Mappt den Rezeptur-Code mit Bezeichnung
`kbvMedicationCompounding.code.text` | `bfarmMedication.code.text` | Kopiert die Bezeichnung der Rezeptur (z.B. ‘Hydrocortison-Salbe 1%’) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.form` | `bfarmMedication.form` | Übernimmt die Darreichungsform der Rezeptur (Salbe, Creme, Kapseln, etc.) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.amount` | `bfarmMedication.amount` | Mappt die Gesamtmenge der herzustellenden Rezeptur
`kbvMedicationCompounding.amount.denominator` | `bfarmMedication.amount.denominator` | Kopiert den Nenner der Mengenangabe (z.B. ‘1’ für ‘pro Rezeptur’) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.amount.numerator` | `bfarmMedication.amount.numerator` | Mappt die detaillierte Mengenangabe der Rezeptur
`kbvMedicationCompounding.amount.numerator.extension` | `bfarmMedication.amount.numerator.extension` | Transformiert Packungsgrößen-Extensions für Rezepturen
`kbvMedicationCompounding.amount.numerator.extension [KBV_EX_ERP_Medication_PackagingSize]` | `bfarmMedication.amount.numerator.extension.url` | Wandelt KBV-Packungsgrößen-Extension in gematik EPA-Medication Extension um → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension’
`kbvMedicationCompounding.amount.numerator.extension.value` | `bfarmMedication.amount.numerator.extension.value` | Übernimmt den Packungsgrößenwert für die Rezeptur → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.amount.numerator.value` | `bfarmMedication.amount.numerator.value` | Kopiert den numerischen Wert der Gesamtmenge (z.B. ‘50’ für 50g Salbe) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.amount.numerator.unit` | `bfarmMedication.amount.numerator.unit` | Übernimmt die Mengeneinheit für die Rezeptur (g, ml, Stück, etc.) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.amount.numerator.system` | `bfarmMedication.amount.numerator.system` | Kopiert das Codesystem für die Mengeneinheit (meist UCUM) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.amount.numerator.code` | `bfarmMedication.amount.numerator.code` | Übernimmt den standardisierten Code für die Mengeneinheit → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.ingredient` | `bfarmMedication.ingredient` | Mappt die Bestandteile der Rezeptur mit detaillierten Mengen- und Stärkeangaben
`kbvMedicationCompounding.ingredient.item` | `bfarmMedication.ingredient.item` | Kopiert die Referenz oder den Code des Rezeptur-Bestandteils → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.ingredient.extension` | `bfarmMedication.ingredient.extension` | Transformiert Bestandteil-spezifische Extensions
`kbvMedicationCompounding.ingredient.extension [KBV_EX_ERP_Medication_Ingredient_Form]` | `bfarmMedication.ingredient.extension.url` | Wandelt KBV-Bestandteil-Darreichungsform-Extension in gematik-Format um → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension’
`kbvMedicationCompounding.ingredient.extension [KBV_EX_ERP_Medication_Ingredient_Form].value` | `bfarmMedication.ingredient.extension.url.value` | Übernimmt die Darreichungsform des Bestandteils → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.ingredient.strength` | `bfarmMedication.ingredient.strength` | Mappt die Stärke/Konzentration des Bestandteils in der Rezeptur
`kbvMedicationCompounding.ingredient.strength.denominator` | `bfarmMedication.ingredient.strength.denominator` | Kopiert den Nenner für die Stärkeangabe (Bezugsmenge) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.ingredient.strength.numerator` | `bfarmMedication.ingredient.strength.numerator` | Kopiert den Zähler für die Stärkeangabe (Wirkstoffmenge) → übernimmt Wert aus Quellvariable
`kbvMedicationCompounding.ingredient.strength.extension` | `bfarmMedication.ingredient.strength.extension` | Transformiert Bestandteil-Mengen-Extensions
`kbvMedicationCompounding.ingredient.strength.extension [KBV_EX_ERP_Medication_Ingredient_Amount]` | `bfarmMedication.ingredient.strength.extension.url` | Wandelt KBV-Bestandteil-Mengen-Extension in gematik-Format um → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension’
`kbvMedicationCompounding.ingredient.strength.extension [KBV_EX_ERP_Medication_Ingredient_Amount].value` | `bfarmMedication.ingredient.strength.extension.url.value` | Übernimmt die Mengenangabe des Bestandteils → übernimmt Wert aus Quellvariable

Usages:

- Use this Profile: Digitaler Durchschlag T-Rezept

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.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication | C | 0..* | EPAMedication | Definition of a Medication Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-1
contained | S | 0..* | EPAMedicationPharmaceuticalProduct, EPAMedicationPZNIngredient | Enthaltene Medikationen
Slices for extension |  |  |  | Content/Rules for all slices
extension:normSizeCode |  | 0..1 | (Complex) | Package size according to N-designation URL: http://fhir.de/StructureDefinition/normgroesse
extension |  | 0..0 |  | Additional content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://fhir.de/StructureDefinition/normgroesse"
value[x] | S | 0..1 | code | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE (required)
extension:packaging |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
value[x] | S | 1..1 | string | Packaging of a formulation. Max Length:90
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
code | S Σ | 0..1 | CodeableConcept | Medication in coded form or as free text if necessary Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:pzn | S Σ | 0..1 | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
version |  | 0..1 | string | Version of the system - if relevant
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
version |  | 0..1 | string | Version of the system - if relevant
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
text | S Σ | 0..1 | string | Plain text representation of the concept
form | S | 0..1 | CodeableConcept | Form of Dispensing Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication.
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:kbvDarreichungsform | S Σ | 0..* | Coding | Code defined by a terminology system Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM (required) Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
version |  | 0..1 | string | Version of the system - if relevant
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
amount | S Σ C | 0..1 | Ratio | Amount of drug in package Constraints: rat-1
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
Slices for extension |  |  |  | Content/Rules for all slices
extension:packagingSize |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"
value[x] | S | 1..1 | string | Package size according to divided quantity Max Length:7
extension:totalQuantity |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"
value[x] | S | 1..1 | string | Total quantity of the formulation. Max Length:7
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
ingredient | S | 0..* | BackboneElement | Active or inactive ingredients of the medication, including pharmaceutical substances as well as individual medicinal products in combination packs.
Slices for extension |  |  |  | Content/Rules for all slices
extension:darreichungsform |  | 0..1 | string | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] | S | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | S | 0..1 | CodeableConcept | Encoded description of the substance or component.
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:pzn | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
text | S Σ | 0..1 | string | Plain text representation of the concept
item[x]:itemReference | S | 0..1 | Reference(Medication) | Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
strength | S C | 0..1 | Ratio | Strength Constraints: rat-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:amountText |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"
value[x] | S | 1..1 | string | Free-text amount of an ingredient in a formulation. Max Length:20
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.extension:drugCategory.​value[x] | Base | required | TI Drug Category ValueSet | 📦1.0.7 | TI Terminology v1.0
Medication.extension:normSizeCode.​value[x] | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE | Not State | Unknown
Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.
Medication.form | Base | example | SNOMED CT Form Codes | 📍4.0.1 | FHIR Std.
Medication.form.coding:kbvDarreichungsform | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM | Not State | Unknown
Medication.amount.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.numerator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.amount.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | 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())`
epa-med-1 | error | Medication | Medication code, name, or ingredients must be specified | `code.exists() or ingredient.exists()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | Medication.amount.numerator, Medication.amount.denominator, Medication.ingredient.strength.numerator, Medication.ingredient.strength.denominator | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
rat-1 | error | Medication.amount, Medication.ingredient.strength | Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present | `(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())`

This structure is derived from EPAMedication

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  |  | EPAMedication |
meta |  | 0..0 |  | Metadata about the resource
implicitRules |  | 0..0 |  | A set of rules under which this content was created
language |  | 0..0 |  | Language of the resource content
text |  | 0..0 |  | Text summary of the resource, for human interpretation
contained |  | 0..* | EPAMedicationPharmaceuticalProduct, EPAMedicationPZNIngredient | Enthaltene Medikationen
Slices for extension |  |  |  | Content/Rules for all slices
extension:rxPrescriptionProcessIdentifier |  | 0..0 |  | Extension
extension:isVaccine |  | 0..0 |  | Extension
extension:drugCategory |  | 0..0 |  | Extension
extension:manufacturingInstructions |  | 0..0 |  | Extension
extension:type |  | 0..0 |  | Medication Type
identifier |  | 0..0 |  | Business identifier for this medication
Slices for identifier |  |  |  | Content/Rules for all slices
identifier:EPAMedicationUniqueIdentifier |  | 0..0 |  | Business identifier for this medication
identifier:RxOriginatorProcessIdentifier |  | 0..0 |  | Business identifier for this medication
status |  | 0..0 |  | Status of Medication Information
manufacturer |  | 0..0 |  | Manufacturer of the Medication
batch |  | 0..0 |  | Batch Information
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication | C | 0..* | EPAMedication | Definition of a Medication Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-1
id | Σ | 0..1 | id | Logical id of this artifact
contained | S | 0..* | EPAMedicationPharmaceuticalProduct, EPAMedicationPZNIngredient | Enthaltene Medikationen
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:normSizeCode |  | 0..1 | (Complex) | Package size according to N-designation URL: http://fhir.de/StructureDefinition/normgroesse
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Additional content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://fhir.de/StructureDefinition/normgroesse"
value[x] | S | 0..1 | code | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE (required)
extension:packaging |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
value[x] | S | 1..1 | string | Packaging of a formulation. Max Length:90
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
code | S Σ | 0..1 | CodeableConcept | Medication in coded form or as free text if necessary Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:pzn | S Σ | 0..1 | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | Plain text representation of the concept
form | S | 0..1 | CodeableConcept | Form of Dispensing Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:kbvDarreichungsform | S Σ | 0..* | Coding | Code defined by a terminology system Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM (required) Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | Plain text representation of the concept
amount | S Σ C | 0..1 | Ratio | Amount of drug in package Constraints: rat-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:packagingSize |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"
value[x] | S | 1..1 | string | Package size according to divided quantity Max Length:7
extension:totalQuantity |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"
value[x] | S | 1..1 | string | Total quantity of the formulation. Max Length:7
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
ingredient | S | 0..* | BackboneElement | Active or inactive ingredients of the medication, including pharmaceutical substances as well as individual medicinal products in combination packs.
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:darreichungsform |  | 0..1 | string | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] | S | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | S | 0..1 | CodeableConcept | Encoded description of the substance or component.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:pzn | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | Plain text representation of the concept
item[x]:itemReference | S | 0..1 | Reference(Medication) | Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
isActive |  | 0..1 | boolean | Is it an active ingredient?
strength | S C | 0..1 | Ratio | Strength Constraints: rat-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:amountText |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"
value[x] | S | 1..1 | string | Free-text amount of an ingredient in a formulation. Max Length:20
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
Medication.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
Medication.extension:drugCategory.​value[x] | Base | required | TI Drug Category ValueSet | 📦1.0.7 | TI Terminology v1.0
Medication.extension:normSizeCode.​value[x] | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE | Not State | Unknown
Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.
Medication.manufacturer.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
Medication.form | Base | example | SNOMED CT Form Codes | 📍4.0.1 | FHIR Std.
Medication.form.coding:kbvDarreichungsform | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM | Not State | Unknown
Medication.amount.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.numerator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.amount.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | 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())`
epa-med-1 | error | Medication | Medication code, name, or ingredients must be specified | `code.exists() or ingredient.exists()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | Medication.amount.numerator, Medication.amount.denominator, Medication.ingredient.strength.numerator, Medication.ingredient.strength.denominator | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
rat-1 | error | Medication.amount, Medication.ingredient.strength | Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present | `(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())`

This structure is derived from EPAMedication

Summary

Prohibited: 15 elements

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication | C | 0..* | EPAMedication | Definition of a Medication Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-1
contained | S | 0..* | EPAMedicationPharmaceuticalProduct, EPAMedicationPZNIngredient | Enthaltene Medikationen
Slices for extension |  |  |  | Content/Rules for all slices
extension:normSizeCode |  | 0..1 | (Complex) | Package size according to N-designation URL: http://fhir.de/StructureDefinition/normgroesse
extension |  | 0..0 |  | Additional content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://fhir.de/StructureDefinition/normgroesse"
value[x] | S | 0..1 | code | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE (required)
extension:packaging |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
value[x] | S | 1..1 | string | Packaging of a formulation. Max Length:90
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
code | S Σ | 0..1 | CodeableConcept | Medication in coded form or as free text if necessary Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:pzn | S Σ | 0..1 | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
version |  | 0..1 | string | Version of the system - if relevant
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
version |  | 0..1 | string | Version of the system - if relevant
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
text | S Σ | 0..1 | string | Plain text representation of the concept
form | S | 0..1 | CodeableConcept | Form of Dispensing Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication.
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:kbvDarreichungsform | S Σ | 0..* | Coding | Code defined by a terminology system Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM (required) Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
version |  | 0..1 | string | Version of the system - if relevant
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
amount | S Σ C | 0..1 | Ratio | Amount of drug in package Constraints: rat-1
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
Slices for extension |  |  |  | Content/Rules for all slices
extension:packagingSize |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"
value[x] | S | 1..1 | string | Package size according to divided quantity Max Length:7
extension:totalQuantity |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"
value[x] | S | 1..1 | string | Total quantity of the formulation. Max Length:7
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
ingredient | S | 0..* | BackboneElement | Active or inactive ingredients of the medication, including pharmaceutical substances as well as individual medicinal products in combination packs.
Slices for extension |  |  |  | Content/Rules for all slices
extension:darreichungsform |  | 0..1 | string | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] | S | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | S | 0..1 | CodeableConcept | Encoded description of the substance or component.
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
coding:pzn | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
text | S Σ | 0..1 | string | Plain text representation of the concept
item[x]:itemReference | S | 0..1 | Reference(Medication) | Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
strength | S C | 0..1 | Ratio | Strength Constraints: rat-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:amountText |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"
value[x] | S | 1..1 | string | Free-text amount of an ingredient in a formulation. Max Length:20
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.extension:drugCategory.​value[x] | Base | required | TI Drug Category ValueSet | 📦1.0.7 | TI Terminology v1.0
Medication.extension:normSizeCode.​value[x] | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE | Not State | Unknown
Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.
Medication.form | Base | example | SNOMED CT Form Codes | 📍4.0.1 | FHIR Std.
Medication.form.coding:kbvDarreichungsform | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM | Not State | Unknown
Medication.amount.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.numerator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.amount.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | 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())`
epa-med-1 | error | Medication | Medication code, name, or ingredients must be specified | `code.exists() or ingredient.exists()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | Medication.amount.numerator, Medication.amount.denominator, Medication.ingredient.strength.numerator, Medication.ingredient.strength.denominator | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
rat-1 | error | Medication.amount, Medication.ingredient.strength | Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present | `(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())`

Differential View

This structure is derived from EPAMedication

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication |  |  | EPAMedication |
meta |  | 0..0 |  | Metadata about the resource
implicitRules |  | 0..0 |  | A set of rules under which this content was created
language |  | 0..0 |  | Language of the resource content
text |  | 0..0 |  | Text summary of the resource, for human interpretation
contained |  | 0..* | EPAMedicationPharmaceuticalProduct, EPAMedicationPZNIngredient | Enthaltene Medikationen
Slices for extension |  |  |  | Content/Rules for all slices
extension:rxPrescriptionProcessIdentifier |  | 0..0 |  | Extension
extension:isVaccine |  | 0..0 |  | Extension
extension:drugCategory |  | 0..0 |  | Extension
extension:manufacturingInstructions |  | 0..0 |  | Extension
extension:type |  | 0..0 |  | Medication Type
identifier |  | 0..0 |  | Business identifier for this medication
Slices for identifier |  |  |  | Content/Rules for all slices
identifier:EPAMedicationUniqueIdentifier |  | 0..0 |  | Business identifier for this medication
identifier:RxOriginatorProcessIdentifier |  | 0..0 |  | Business identifier for this medication
status |  | 0..0 |  | Status of Medication Information
manufacturer |  | 0..0 |  | Manufacturer of the Medication
batch |  | 0..0 |  | Batch Information
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Medication | C | 0..* | EPAMedication | Definition of a Medication Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-1
id | Σ | 0..1 | id | Logical id of this artifact
contained | S | 0..* | EPAMedicationPharmaceuticalProduct, EPAMedicationPZNIngredient | Enthaltene Medikationen
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:normSizeCode |  | 0..1 | (Complex) | Package size according to N-designation URL: http://fhir.de/StructureDefinition/normgroesse
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Additional content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://fhir.de/StructureDefinition/normgroesse"
value[x] | S | 0..1 | code | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE (required)
extension:packaging |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
value[x] | S | 1..1 | string | Packaging of a formulation. Max Length:90
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
code | S Σ | 0..1 | CodeableConcept | Medication in coded form or as free text if necessary Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:pzn | S Σ | 0..1 | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | Plain text representation of the concept
form | S | 0..1 | CodeableConcept | Form of Dispensing Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:kbvDarreichungsform | S Σ | 0..* | Coding | Code defined by a terminology system Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM (required) Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | Plain text representation of the concept
amount | S Σ C | 0..1 | Ratio | Amount of drug in package Constraints: rat-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:packagingSize |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"
value[x] | S | 1..1 | string | Package size according to divided quantity Max Length:7
extension:totalQuantity |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"
value[x] | S | 1..1 | string | Total quantity of the formulation. Max Length:7
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
ingredient | S | 0..* | BackboneElement | Active or inactive ingredients of the medication, including pharmaceutical substances as well as individual medicinal products in combination packs.
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:darreichungsform |  | 0..1 | string | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Slices for item[x] | S | 1..1 |  | The actual ingredient or content Slice: Unordered, Closed by type:$this
itemCodeableConcept |  |  | CodeableConcept |
itemReference |  |  | Reference(Substance | Medication) |
item[x]:itemCodeableConcept | S | 0..1 | CodeableConcept | Encoded description of the substance or component.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for coding | S Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this
coding:ask | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ask
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:atc-de | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/bfarm/atc
version | Σ | 1..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
coding:pzn | S Σ | 0..* | Coding | Code defined by a terminology system Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Fixed Value: http://fhir.de/CodeSystem/ifa/pzn
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | Plain text representation of the concept
item[x]:itemReference | S | 0..1 | Reference(Medication) | Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
isActive |  | 0..1 | boolean | Is it an active ingredient?
strength | S C | 0..1 | Ratio | Strength Constraints: rat-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:amountText |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"
value[x] | S | 1..1 | string | Free-text amount of an ingredient in a formulation. Max Length:20
numerator | S Σ C | 0..1 | Quantity | Numerator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
denominator | S Σ C | 0..1 | Quantity | Denominator value Binding: UCUMCodes (preferred) Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form
code | S Σ | 0..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Medication.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
Medication.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
Medication.extension:drugCategory.​value[x] | Base | required | TI Drug Category ValueSet | 📦1.0.7 | TI Terminology v1.0
Medication.extension:normSizeCode.​value[x] | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NORMGROESSE | Not State | Unknown
Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.
Medication.manufacturer.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
Medication.form | Base | example | SNOMED CT Form Codes | 📍4.0.1 | FHIR Std.
Medication.form.coding:kbvDarreichungsform | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM | Not State | Unknown
Medication.amount.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.numerator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.amount.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.amount.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.numerator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator | Base | preferred | UCUM Codes | 📦4.0.1 | FHIR Std.
Medication.ingredient.​strength.denominator.​comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Medication | 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 | Medication | 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 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Medication | 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())`
epa-med-1 | error | Medication | Medication code, name, or ingredients must be specified | `code.exists() or ingredient.exists()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | Medication.amount.numerator, Medication.amount.denominator, Medication.ingredient.strength.numerator, Medication.ingredient.strength.denominator | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
rat-1 | error | Medication.amount, Medication.ingredient.strength | Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present | `(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())`

This structure is derived from EPAMedication

Summary

Prohibited: 15 elements

Other representations of profile: CSV, Excel, Schematron