Implementation Guide
ePA Medication Service
Version 1.3.3 - release

## Resource Profile: EPA MedicationStatement

Official URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement | Version: 1.3.2
Active as of 2026-03-20 | Computable Name: EPAMedicationStatement
Copyright/Legal: gematik GmbH / Dieses Artefakt ist lizenziert unter Apache License, Version 2.0.

Hält die Medikationsinformationen eines Eintrags in der elektronischen Medikationsliste (eML) vor und stellt das zentrale Element dar. Es wird zu Verschreibungs- und Dispensierinformationen als auch Nachträgen in der eML genutzt.

Hinweis: Bitte die Ausführungen des Medication IG DE bezüglich des defekten Constraints tim-9 beachten!

Usages:

- Use this Profile: EPA Operation addEMLEntry Input-Parameters, EPA Operation EMLEntry Output-Parameters and EPA Operation Link eMP Output Parameters
- Refer to this Profile: EMPMedicationRequestActitvityExtension
- Examples for this Profile: MedicationStatement/0fc1f006-5793-4501-81b6-fe3918fcfa2d, MedicationStatement/133c8159-6398-4937-984a-d741e24556ad, MedicationStatement/1b88713c-64cc-40ad-9665-70ca5f7dfb08, MedicationStatement/1cb0f018-178d-4488-a6b4-2be32dbda784... Show 9 more, MedicationStatement/405ff43e-bc8e-4109-b370-3e31431c5fe0, MedicationStatement/71601cdb-8a53-4f26-b5d5-e5457b498e76, MedicationStatement/Technical-Exp-NachtragEmlMedicationStatement, MedicationStatement/Technical-Exp-NachtragEmpMedicationStatementEml, MedicationStatement/ab495b80-c9d2-4ed6-a076-b44b8dfae75a, MedicationStatement/b87b0908-7765-4ec0-8662-7d3daff08f6e, MedicationStatement/cfb84928-15d6-468c-8e17-e77f1ed44904, MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c and MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7
- CapabilityStatements using this Profile: EPA Capability Statement für Clients des ePA Medication Service and EPA CapabilityStatement für den Medication Service

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
--- | --- | --- | --- | ---
MedicationStatement | C | 0..* | MedicationStatement | Record of medication being taken by a patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-statement-status
meta | S Σ | 0..1 | Meta | Metadata about the resource
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension | S | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:context | S | 1..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"
value[x] | S | 1..1 | code | Context of the resource Binding: ePA MedicationStatement Context Codes (required)
extension:rxPrescriptionProcessIdentifier | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension"
value[x] | S | 0..1 | RxPrescriptionProcessIdentifier | Value of extension
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 1..1 | uri | The namespace for the identifier value Required Pattern: https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier
value | S Σ | 1..1 | string | The value that is unique Example General: 123456
extension:processingEvent | S | 0..* | (Complex) | Ein Ereignis, welches während eines Prozessschritts auftritt. URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
Slices for extension | S | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:event | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "event"
value[x] | S | 1..1 | code | Verarbeitungsereignis Binding: EPA MedicationStatement Processing Codes (required)
extension:dateTime | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "dateTime"
value[x] | S | 1..1 | dateTime | Zeitpunkt
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension"
extension:renderedDosageInstruction | S | 0..1 | (Complex) | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url Constraints: ext-1
url | S | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction"
value[x] | S | 0..1 | markdown | Full representation of the dosage instructions
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:language | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "language"
Slices for value[x] | S | 1..1 | code | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueCode | S | 1..1 | code | Value of extension Binding: AllLanguages (required)
extension:algorithmVersion | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "algorithmVersion"
Slices for value[x] | S | 1..1 | string | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueString | S | 1..1 | string | Value of extension
url | S | 1..1 | uri | "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
basedOn | S Σ C | 0..* | Reference(EPA MedicationRequest | eMP MedicationRequest) | Fulfils plan, proposal or order Constraints: ref-1
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:isEMP | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension"
value[x] | S | 1..1 | boolean | Hat es einen eMP Bezug?
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
display | S Σ | 0..1 | string | Text alternative for the resource
status | ?!S Σ | 1..1 | code | unknown | entered-in-error | intended Binding: ePA MedicationStatement Status Value Set (required)
medication[x] | S Σ | 1..1 | Reference(EPA Medication) | Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
display | S Σ | 0..1 | string | Text alternative for the resource
subject | S Σ C | 1..1 | Reference(Patient) | Who is/was taking the medication Constraints: ref-1
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
Slices for effective[x] | S Σ | 0..1 |  | effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an Slice: Unordered, Closed by type:$this
effectiveDateTime |  |  | dateTime |
effectivePeriod |  |  | Period |
effective[x]:effectiveDateTime | S Σ C | 0..1 | dateTime | The date/time or interval when the medication is/was/will be taken Constraints: epa-datetime
effective[x]:effectivePeriod | S Σ | 0..1 | Period | The date/time or interval when the medication is/was/will be taken
start | S Σ C | 0..1 | dateTime | Starting time with inclusive boundary Constraints: epa-datetime
end | S Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing Constraints: epa-datetime
dateAsserted | S Σ C | 0..1 | dateTime | When the statement was asserted? Constraints: epa-datetime
derivedFrom | S C | 0..* | Reference(EPA MedicationRequest | EPA MedicationDispense) | Information des Verschreibungs- und Dispensierprozesses Constraints: ref-1
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
display | S Σ | 0..1 | string | Text alternative for the resource
dosage | S | 0..* | DosageDgMP | Strukturierte Dosierung/Gebrauchsanweisung
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
text | S Σ | 0..1 | string | Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
timing | S Σ | 0..1 | TimingDgMP | Wann das Medikament verabreicht werden soll
doseAndRate | S Σ | 0..1 | Element | Menge des verabreichten Medikaments
Slices for dose[x] | S Σ | 0..1 | SimpleQuantity | Amount of medication per dose Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 0..1 | SimpleQuantity | Menge des Medikaments pro Dosis Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT (required)
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
unit | S Σ | 1..1 | string | Unit representation
system | S Σ C | 1..1 | uri | System that defines coded unit form
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationStatement.​extension:context.value[x] | Base | required | ePA MedicationStatement Context Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:processingEvent.​extension:event.value[x] | Base | required | EPA MedicationStatement Processing Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:generatedDosageInstructionsMeta.​extension:language.value[x]:valueCode | Base | required | All Languages | 📦4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​status | Base | required | ePA MedicationStatement Status Value Set | 📦1.3.0 | This IG
MedicationStatement.​medication[x].identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​dosage.doseAndRate.dose[x]:doseQuantity | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT | Not State | Unknown

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | MedicationStatement | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationStatement | 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 | MedicationStatement | 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 | MedicationStatement | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationStatement | 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-datetime | error | MedicationStatement.effective[x]:effectiveDateTime, MedicationStatement.effective[x]:effectivePeriod.start, MedicationStatement.effective[x]:effectivePeriod.end, MedicationStatement.dateAsserted | dateTime muss mindestens aus Tag, Monat und Jahr bestehen | `toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')`
epa-med-statement-status | error | MedicationStatement | Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben | `extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
ref-1 | error | MedicationStatement.basedOn, MedicationStatement.subject, MedicationStatement.derivedFrom | 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'))`

This structure is derived from MedicationStatement

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationStatement | C | 0..* | MedicationStatement | Record of medication being taken by a patient Constraints: epa-med-statement-status
meta | S | 0..1 | Meta | Metadata about the resource
versionId | S | 0..1 | id | Version specific identifier
lastUpdated | S | 0..1 | instant | When the resource version last changed
extension | S | 1..* | Extension | Extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:context | S | 1..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | code | Context of the resource Binding: ePA MedicationStatement Context Codes (required)
extension:rxPrescriptionProcessIdentifier | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 0..1 | RxPrescriptionProcessIdentifier | Value of extension
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
extension:processingEvent | S | 0..* | (Complex) | Ein Ereignis, welches während eines Prozessschritts auftritt. URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
extension | S | 2..* | Extension | Extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:event |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
extension:dateTime |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
url | S | 1..1 | uri | identifies the meaning of the extension
extension:renderedDosageInstruction | S | 0..1 | (Complex) | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
extension |  | 0..0 |  | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 0..1 | markdown | Full representation of the dosage instructions
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
Slices for extension |  |  |  | Content/Rules for all slices
extension:language |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | code | Value of extension
extension:algorithmVersion |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | string | Value of extension
url | S | 1..1 | uri | identifies the meaning of the extension
basedOn | S | 0..* | Reference(EPA MedicationRequest | eMP MedicationRequest) | Fulfils plan, proposal or order
extension | S | 0..* | Extension | Extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:isEMP | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | boolean | Hat es einen eMP Bezug?
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S | 0..1 | Identifier | Logical reference, when literal reference is not known
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
system | S | 0..1 | uri | The namespace for the identifier value
value | S | 0..1 | string | The value that is unique
display | S | 0..1 | string | Text alternative for the resource
status | S | 1..1 | code | unknown | entered-in-error | intended Binding: ePA MedicationStatement Status Value Set (required)
medication[x] | S | 1..1 | Reference(EPA Medication) | Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S | 0..1 | Identifier | Logical reference, when literal reference is not known
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
system | S | 0..1 | uri | The namespace for the identifier value
value | S | 0..1 | string | The value that is unique
display | S | 0..1 | string | Text alternative for the resource
subject | S | 1..1 | Reference(Patient) | Who is/was taking the medication
identifier | S | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
Slices for effective[x] | S | 0..1 | dateTime, Period | effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an Slice: Unordered, Open by type:$this
effective[x]:effectiveDateTime | S C | 0..1 | dateTime | The date/time or interval when the medication is/was/will be taken Constraints: epa-datetime
effective[x]:effectivePeriod | S | 0..1 | Period | The date/time or interval when the medication is/was/will be taken
start | S C | 0..1 | dateTime | Starting time with inclusive boundary Constraints: epa-datetime
end | S C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing Constraints: epa-datetime
dateAsserted | S C | 0..1 | dateTime | When the statement was asserted? Constraints: epa-datetime
derivedFrom | S | 0..* | Reference(EPA MedicationRequest | EPA MedicationDispense) | Information des Verschreibungs- und Dispensierprozesses
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S | 0..1 | Identifier | Logical reference, when literal reference is not known
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
system | S | 0..1 | uri | The namespace for the identifier value
value | S | 0..1 | string | The value that is unique
display | S | 0..1 | string | Text alternative for the resource
dosage | S | 0..* | DosageDgMP | Strukturierte Dosierung/Gebrauchsanweisung
doseAndRate |  |  |  |
dose[x] | S | 0..1 | SimpleQuantity | Amount of medication per dose
Slices for dose[x] |  |  |  | Content/Rules for all slices
dose[x]:doseQuantity |  | 0..1 | SimpleQuantity | Menge des Medikaments pro Dosis
value | S | 0..1 | decimal | Numerical value (with implicit precision)
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
MedicationStatement.​extension:context.value[x] | Base | required | ePA MedicationStatement Context Codes | 📦1.3.0 | This IG
MedicationStatement.​status | Base | required | ePA MedicationStatement Status Value Set | 📦1.3.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
epa-datetime | error | MedicationStatement.effective[x]:effectiveDateTime, MedicationStatement.effective[x]:effectivePeriod.start, MedicationStatement.effective[x]:effectivePeriod.end, MedicationStatement.dateAsserted | dateTime muss mindestens aus Tag, Monat und Jahr bestehen | `toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')`
epa-med-statement-status | error | MedicationStatement | Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben | `extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'`

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationStatement | C | 0..* | MedicationStatement | Record of medication being taken by a patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-statement-status
id | Σ | 0..1 | id | Logical id of this artifact
meta | S Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
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
Slices for extension | S | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:context | S | 1..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"
value[x] | S | 1..1 | code | Context of the resource Binding: ePA MedicationStatement Context Codes (required)
extension:rxPrescriptionProcessIdentifier | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension"
value[x] | S | 0..1 | RxPrescriptionProcessIdentifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 1..1 | uri | The namespace for the identifier value Required Pattern: https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier
value | S Σ | 1..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
extension:processingEvent | S | 0..* | (Complex) | Ein Ereignis, welches während eines Prozessschritts auftritt. URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:event | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "event"
value[x] | S | 1..1 | code | Verarbeitungsereignis Binding: EPA MedicationStatement Processing Codes (required)
extension:dateTime | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "dateTime"
value[x] | S | 1..1 | dateTime | Zeitpunkt
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension"
extension:renderedDosageInstruction | S | 0..1 | (Complex) | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url Constraints: ext-1
url | S | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction"
value[x] | S | 0..1 | markdown | Full representation of the dosage instructions
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:language | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "language"
Slices for value[x] | S | 1..1 | code | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueCode | S | 1..1 | code | Value of extension Binding: AllLanguages (required)
extension:algorithmVersion | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "algorithmVersion"
Slices for value[x] | S | 1..1 | string | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueString | S | 1..1 | string | Value of extension
url | S | 1..1 | uri | "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
identifier | Σ | 0..* | Identifier | External identifier
basedOn | S Σ C | 0..* | Reference(EPA MedicationRequest | eMP MedicationRequest) | Fulfils plan, proposal or order Constraints: ref-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:isEMP | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension"
value[x] | S | 1..1 | boolean | Hat es einen eMP Bezug?
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
display | S Σ | 0..1 | string | Text alternative for the resource
partOf | Σ C | 0..* | Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation) | Part of referenced event Constraints: ref-1
status | ?!S Σ | 1..1 | code | unknown | entered-in-error | intended Binding: ePA MedicationStatement Status Value Set (required)
statusReason |  | 0..* | CodeableConcept | Reason for current status Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement.
category | Σ | 0..1 | CodeableConcept | Type of medication usage Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.
medication[x] | S Σ | 1..1 | Reference(EPA Medication) | Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
display | S Σ | 0..1 | string | Text alternative for the resource
subject | S Σ C | 1..1 | Reference(Patient) | Who is/was taking the medication Constraints: ref-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
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
context | Σ C | 0..1 | Reference(Encounter | EpisodeOfCare) | Encounter / Episode associated with MedicationStatement Constraints: ref-1
Slices for effective[x] | S Σ | 0..1 |  | effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an Slice: Unordered, Closed by type:$this
effectiveDateTime |  |  | dateTime |
effectivePeriod |  |  | Period |
effective[x]:effectiveDateTime | S Σ C | 0..1 | dateTime | The date/time or interval when the medication is/was/will be taken Constraints: epa-datetime
effective[x]:effectivePeriod | S Σ | 0..1 | Period | The date/time or interval when the medication is/was/will be taken
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | S Σ C | 0..1 | dateTime | Starting time with inclusive boundary Constraints: epa-datetime
end | S Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing Constraints: epa-datetime
dateAsserted | S Σ C | 0..1 | dateTime | When the statement was asserted? Constraints: epa-datetime
informationSource | C | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | Person or organization that provided the information about the taking of this medication Constraints: ref-1
derivedFrom | S C | 0..* | Reference(EPA MedicationRequest | EPA MedicationDispense) | Information des Verschreibungs- und Dispensierprozesses Constraints: ref-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
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
display | S Σ | 0..1 | string | Text alternative for the resource
reasonCode |  | 0..* | CodeableConcept | Reason for why the medication is being/was taken Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken.
reasonReference | C | 0..* | Reference(Condition | Observation | DiagnosticReport) | Condition or observation that supports why the medication is being/was taken Constraints: ref-1
note |  | 0..* | Annotation | Further information about the statement
dosage | S | 0..* | DosageDgMP | Strukturierte Dosierung/Gebrauchsanweisung
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
text | S Σ | 0..1 | string | Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
timing | S Σ | 0..1 | TimingDgMP | Wann das Medikament verabreicht werden soll
doseAndRate | S Σ | 0..1 | Element | Menge des verabreichten Medikaments
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 dose[x] | S Σ | 0..1 | SimpleQuantity | Amount of medication per dose Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 0..1 | SimpleQuantity | Menge des Medikaments pro Dosis Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT (required)
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)
unit | S Σ | 1..1 | string | Unit representation
system | S Σ C | 1..1 | uri | System that defines coded unit form
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationStatement.​meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
MedicationStatement.​meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
MedicationStatement.​language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:context.value[x] | Base | required | ePA MedicationStatement Context Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:processingEvent.​extension:event.value[x] | Base | required | EPA MedicationStatement Processing Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:generatedDosageInstructionsMeta.​extension:language.value[x]:valueCode | Base | required | All Languages | 📦4.0.1 | FHIR Std.
MedicationStatement.​basedOn.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​status | Base | required | ePA MedicationStatement Status Value Set | 📦1.3.0 | This IG
MedicationStatement.​statusReason | Base | example | SNOMED CT Drug Therapy Status codes | 📍4.0.1 | FHIR Std.
MedicationStatement.​category | Base | preferred | Medication usage category codes | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​subject.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​reasonCode | Base | example | Condition/Problem/Diagnosis Codes | 📍4.0.1 | FHIR Std.
MedicationStatement.​dosage.doseAndRate.dose[x]:doseQuantity | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT | Not State | Unknown

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | MedicationStatement | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationStatement | 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 | MedicationStatement | 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 | MedicationStatement | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationStatement | 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-datetime | error | MedicationStatement.effective[x]:effectiveDateTime, MedicationStatement.effective[x]:effectivePeriod.start, MedicationStatement.effective[x]:effectivePeriod.end, MedicationStatement.dateAsserted | dateTime muss mindestens aus Tag, Monat und Jahr bestehen | `toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')`
epa-med-statement-status | error | MedicationStatement | Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben | `extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
per-1 | error | MedicationStatement.extension:rxPrescriptionProcessIdentifier.value[x].period, MedicationStatement.basedOn.identifier.period, MedicationStatement.medication[x].identifier.period, MedicationStatement.derivedFrom.identifier.period | If present, start SHALL have a lower value than end | `start.hasValue().not() or end.hasValue().not() or (start <= end)`
ref-1 | error | MedicationStatement.extension:rxPrescriptionProcessIdentifier.value[x].assigner, MedicationStatement.basedOn, MedicationStatement.basedOn.identifier.assigner, MedicationStatement.partOf, MedicationStatement.medication[x].identifier.assigner, MedicationStatement.subject, MedicationStatement.context, MedicationStatement.informationSource, MedicationStatement.derivedFrom, MedicationStatement.derivedFrom.identifier.assigner, MedicationStatement.reasonReference | 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'))`

This structure is derived from MedicationStatement

Summary

Mandatory: 3 elements
Must-Support: 82 elements
Prohibited: 1 element

Structures

This structure refers to these other structures:

- EPA MedicationRequest (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request)
- eMP MedicationRequest (https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request)
- EPA Medication (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication)
- Identifier-Profil für die 10-stellige Krankenversichertennummer (http://fhir.de/StructureDefinition/identifier-kvid-10)
- EPA MedicationDispense (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense)
- Dosage dgMP (http://ig.fhir.de/igs/medication/StructureDefinition/DosageDgMP)
- SimpleQuantity (http://hl7.org/fhir/StructureDefinition/SimpleQuantity)

Extensions

This structure refers to these extensions:

- https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
- https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
- https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
- http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
- http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
- https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of MedicationStatement.effective[x]

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationStatement | C | 0..* | MedicationStatement | Record of medication being taken by a patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-statement-status
meta | S Σ | 0..1 | Meta | Metadata about the resource
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension | S | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:context | S | 1..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"
value[x] | S | 1..1 | code | Context of the resource Binding: ePA MedicationStatement Context Codes (required)
extension:rxPrescriptionProcessIdentifier | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension"
value[x] | S | 0..1 | RxPrescriptionProcessIdentifier | Value of extension
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 1..1 | uri | The namespace for the identifier value Required Pattern: https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier
value | S Σ | 1..1 | string | The value that is unique Example General: 123456
extension:processingEvent | S | 0..* | (Complex) | Ein Ereignis, welches während eines Prozessschritts auftritt. URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
Slices for extension | S | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:event | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "event"
value[x] | S | 1..1 | code | Verarbeitungsereignis Binding: EPA MedicationStatement Processing Codes (required)
extension:dateTime | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "dateTime"
value[x] | S | 1..1 | dateTime | Zeitpunkt
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension"
extension:renderedDosageInstruction | S | 0..1 | (Complex) | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url Constraints: ext-1
url | S | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction"
value[x] | S | 0..1 | markdown | Full representation of the dosage instructions
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:language | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "language"
Slices for value[x] | S | 1..1 | code | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueCode | S | 1..1 | code | Value of extension Binding: AllLanguages (required)
extension:algorithmVersion | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "algorithmVersion"
Slices for value[x] | S | 1..1 | string | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueString | S | 1..1 | string | Value of extension
url | S | 1..1 | uri | "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
basedOn | S Σ C | 0..* | Reference(EPA MedicationRequest | eMP MedicationRequest) | Fulfils plan, proposal or order Constraints: ref-1
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:isEMP | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension"
value[x] | S | 1..1 | boolean | Hat es einen eMP Bezug?
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
display | S Σ | 0..1 | string | Text alternative for the resource
status | ?!S Σ | 1..1 | code | unknown | entered-in-error | intended Binding: ePA MedicationStatement Status Value Set (required)
medication[x] | S Σ | 1..1 | Reference(EPA Medication) | Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
display | S Σ | 0..1 | string | Text alternative for the resource
subject | S Σ C | 1..1 | Reference(Patient) | Who is/was taking the medication Constraints: ref-1
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
Slices for effective[x] | S Σ | 0..1 |  | effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an Slice: Unordered, Closed by type:$this
effectiveDateTime |  |  | dateTime |
effectivePeriod |  |  | Period |
effective[x]:effectiveDateTime | S Σ C | 0..1 | dateTime | The date/time or interval when the medication is/was/will be taken Constraints: epa-datetime
effective[x]:effectivePeriod | S Σ | 0..1 | Period | The date/time or interval when the medication is/was/will be taken
start | S Σ C | 0..1 | dateTime | Starting time with inclusive boundary Constraints: epa-datetime
end | S Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing Constraints: epa-datetime
dateAsserted | S Σ C | 0..1 | dateTime | When the statement was asserted? Constraints: epa-datetime
derivedFrom | S C | 0..* | Reference(EPA MedicationRequest | EPA MedicationDispense) | Information des Verschreibungs- und Dispensierprozesses Constraints: ref-1
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
display | S Σ | 0..1 | string | Text alternative for the resource
dosage | S | 0..* | DosageDgMP | Strukturierte Dosierung/Gebrauchsanweisung
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
text | S Σ | 0..1 | string | Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
timing | S Σ | 0..1 | TimingDgMP | Wann das Medikament verabreicht werden soll
doseAndRate | S Σ | 0..1 | Element | Menge des verabreichten Medikaments
Slices for dose[x] | S Σ | 0..1 | SimpleQuantity | Amount of medication per dose Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 0..1 | SimpleQuantity | Menge des Medikaments pro Dosis Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT (required)
value | S Σ | 0..1 | decimal | Numerical value (with implicit precision)
unit | S Σ | 1..1 | string | Unit representation
system | S Σ C | 1..1 | uri | System that defines coded unit form
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationStatement.​extension:context.value[x] | Base | required | ePA MedicationStatement Context Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:processingEvent.​extension:event.value[x] | Base | required | EPA MedicationStatement Processing Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:generatedDosageInstructionsMeta.​extension:language.value[x]:valueCode | Base | required | All Languages | 📦4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​status | Base | required | ePA MedicationStatement Status Value Set | 📦1.3.0 | This IG
MedicationStatement.​medication[x].identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​dosage.doseAndRate.dose[x]:doseQuantity | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT | Not State | Unknown

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | MedicationStatement | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationStatement | 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 | MedicationStatement | 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 | MedicationStatement | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationStatement | 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-datetime | error | MedicationStatement.effective[x]:effectiveDateTime, MedicationStatement.effective[x]:effectivePeriod.start, MedicationStatement.effective[x]:effectivePeriod.end, MedicationStatement.dateAsserted | dateTime muss mindestens aus Tag, Monat und Jahr bestehen | `toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')`
epa-med-statement-status | error | MedicationStatement | Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben | `extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
ref-1 | error | MedicationStatement.basedOn, MedicationStatement.subject, MedicationStatement.derivedFrom | 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'))`

Differential View

This structure is derived from MedicationStatement

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationStatement | C | 0..* | MedicationStatement | Record of medication being taken by a patient Constraints: epa-med-statement-status
meta | S | 0..1 | Meta | Metadata about the resource
versionId | S | 0..1 | id | Version specific identifier
lastUpdated | S | 0..1 | instant | When the resource version last changed
extension | S | 1..* | Extension | Extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:context | S | 1..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | code | Context of the resource Binding: ePA MedicationStatement Context Codes (required)
extension:rxPrescriptionProcessIdentifier | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 0..1 | RxPrescriptionProcessIdentifier | Value of extension
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
extension:processingEvent | S | 0..* | (Complex) | Ein Ereignis, welches während eines Prozessschritts auftritt. URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
extension | S | 2..* | Extension | Extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:event |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
extension:dateTime |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
url | S | 1..1 | uri | identifies the meaning of the extension
extension:renderedDosageInstruction | S | 0..1 | (Complex) | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
extension |  | 0..0 |  | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 0..1 | markdown | Full representation of the dosage instructions
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
Slices for extension |  |  |  | Content/Rules for all slices
extension:language |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | code | Value of extension
extension:algorithmVersion |  | 1..1 | Extension | Extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | string | Value of extension
url | S | 1..1 | uri | identifies the meaning of the extension
basedOn | S | 0..* | Reference(EPA MedicationRequest | eMP MedicationRequest) | Fulfils plan, proposal or order
extension | S | 0..* | Extension | Extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:isEMP | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
url | S | 1..1 | uri | identifies the meaning of the extension
value[x] | S | 1..1 | boolean | Hat es einen eMP Bezug?
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S | 0..1 | Identifier | Logical reference, when literal reference is not known
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
system | S | 0..1 | uri | The namespace for the identifier value
value | S | 0..1 | string | The value that is unique
display | S | 0..1 | string | Text alternative for the resource
status | S | 1..1 | code | unknown | entered-in-error | intended Binding: ePA MedicationStatement Status Value Set (required)
medication[x] | S | 1..1 | Reference(EPA Medication) | Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S | 0..1 | Identifier | Logical reference, when literal reference is not known
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
system | S | 0..1 | uri | The namespace for the identifier value
value | S | 0..1 | string | The value that is unique
display | S | 0..1 | string | Text alternative for the resource
subject | S | 1..1 | Reference(Patient) | Who is/was taking the medication
identifier | S | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
Slices for effective[x] | S | 0..1 | dateTime, Period | effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an Slice: Unordered, Open by type:$this
effective[x]:effectiveDateTime | S C | 0..1 | dateTime | The date/time or interval when the medication is/was/will be taken Constraints: epa-datetime
effective[x]:effectivePeriod | S | 0..1 | Period | The date/time or interval when the medication is/was/will be taken
start | S C | 0..1 | dateTime | Starting time with inclusive boundary Constraints: epa-datetime
end | S C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing Constraints: epa-datetime
dateAsserted | S C | 0..1 | dateTime | When the statement was asserted? Constraints: epa-datetime
derivedFrom | S | 0..* | Reference(EPA MedicationRequest | EPA MedicationDispense) | Information des Verschreibungs- und Dispensierprozesses
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | S | 0..1 | Identifier | Logical reference, when literal reference is not known
type | S | 0..1 | CodeableConcept | Description of identifier
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
version | S | 0..1 | string | Version of the system - if relevant
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
system | S | 0..1 | uri | The namespace for the identifier value
value | S | 0..1 | string | The value that is unique
display | S | 0..1 | string | Text alternative for the resource
dosage | S | 0..* | DosageDgMP | Strukturierte Dosierung/Gebrauchsanweisung
doseAndRate |  |  |  |
dose[x] | S | 0..1 | SimpleQuantity | Amount of medication per dose
Slices for dose[x] |  |  |  | Content/Rules for all slices
dose[x]:doseQuantity |  | 0..1 | SimpleQuantity | Menge des Medikaments pro Dosis
value | S | 0..1 | decimal | Numerical value (with implicit precision)
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
MedicationStatement.​extension:context.value[x] | Base | required | ePA MedicationStatement Context Codes | 📦1.3.0 | This IG
MedicationStatement.​status | Base | required | ePA MedicationStatement Status Value Set | 📦1.3.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
epa-datetime | error | MedicationStatement.effective[x]:effectiveDateTime, MedicationStatement.effective[x]:effectivePeriod.start, MedicationStatement.effective[x]:effectivePeriod.end, MedicationStatement.dateAsserted | dateTime muss mindestens aus Tag, Monat und Jahr bestehen | `toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')`
epa-med-statement-status | error | MedicationStatement | Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben | `extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'`

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationStatement | C | 0..* | MedicationStatement | Record of medication being taken by a patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, epa-med-statement-status
id | Σ | 0..1 | id | Logical id of this artifact
meta | S Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
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
Slices for extension | S | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:context | S | 1..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"
value[x] | S | 1..1 | code | Context of the resource Binding: ePA MedicationStatement Context Codes (required)
extension:rxPrescriptionProcessIdentifier | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension"
value[x] | S | 0..1 | RxPrescriptionProcessIdentifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 1..1 | uri | The namespace for the identifier value Required Pattern: https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier
value | S Σ | 1..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
extension:processingEvent | S | 0..* | (Complex) | Ein Ereignis, welches während eines Prozessschritts auftritt. URL: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:event | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "event"
value[x] | S | 1..1 | code | Verarbeitungsereignis Binding: EPA MedicationStatement Processing Codes (required)
extension:dateTime | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "dateTime"
value[x] | S | 1..1 | dateTime | Zeitpunkt
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension"
extension:renderedDosageInstruction | S | 0..1 | (Complex) | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url Constraints: ext-1
url | S | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction"
value[x] | S | 0..1 | markdown | Full representation of the dosage instructions
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url
extension:language | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "language"
Slices for value[x] | S | 1..1 | code | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueCode | S | 1..1 | code | Value of extension Binding: AllLanguages (required)
extension:algorithmVersion | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "algorithmVersion"
Slices for value[x] | S | 1..1 | string | Value of extension Slice: Unordered, Closed by type:$this
value[x]:valueString | S | 1..1 | string | Value of extension
url | S | 1..1 | uri | "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta"
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
identifier | Σ | 0..* | Identifier | External identifier
basedOn | S Σ C | 0..* | Reference(EPA MedicationRequest | eMP MedicationRequest) | Fulfils plan, proposal or order Constraints: ref-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:isEMP | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url | S | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension"
value[x] | S | 1..1 | boolean | Hat es einen eMP Bezug?
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
display | S Σ | 0..1 | string | Text alternative for the resource
partOf | Σ C | 0..* | Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation) | Part of referenced event Constraints: ref-1
status | ?!S Σ | 1..1 | code | unknown | entered-in-error | intended Binding: ePA MedicationStatement Status Value Set (required)
statusReason |  | 0..* | CodeableConcept | Reason for current status Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement.
category | Σ | 0..1 | CodeableConcept | Type of medication usage Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.
medication[x] | S Σ | 1..1 | Reference(EPA Medication) | Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
display | S Σ | 0..1 | string | Text alternative for the resource
subject | S Σ C | 1..1 | Reference(Patient) | Who is/was taking the medication Constraints: ref-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
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
context | Σ C | 0..1 | Reference(Encounter | EpisodeOfCare) | Encounter / Episode associated with MedicationStatement Constraints: ref-1
Slices for effective[x] | S Σ | 0..1 |  | effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an Slice: Unordered, Closed by type:$this
effectiveDateTime |  |  | dateTime |
effectivePeriod |  |  | Period |
effective[x]:effectiveDateTime | S Σ C | 0..1 | dateTime | The date/time or interval when the medication is/was/will be taken Constraints: epa-datetime
effective[x]:effectivePeriod | S Σ | 0..1 | Period | The date/time or interval when the medication is/was/will be taken
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | S Σ C | 0..1 | dateTime | Starting time with inclusive boundary Constraints: epa-datetime
end | S Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing Constraints: epa-datetime
dateAsserted | S Σ C | 0..1 | dateTime | When the statement was asserted? Constraints: epa-datetime
informationSource | C | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | Person or organization that provided the information about the taking of this medication Constraints: ref-1
derivedFrom | S C | 0..* | Reference(EPA MedicationRequest | EPA MedicationDispense) | Information des Verschreibungs- und Dispensierprozesses Constraints: ref-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
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | S Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | S Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
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 Σ | 0..1 | uri | Identity of the terminology system
version | S Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..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
system | S Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ C | 0..1 | Period | Time period when id is/was valid for use Constraints: per-1
assigner | Σ C | 0..1 | Reference(Organization) | Organization that issued id (may be just text) Constraints: ref-1
display | S Σ | 0..1 | string | Text alternative for the resource
reasonCode |  | 0..* | CodeableConcept | Reason for why the medication is being/was taken Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken.
reasonReference | C | 0..* | Reference(Condition | Observation | DiagnosticReport) | Condition or observation that supports why the medication is being/was taken Constraints: ref-1
note |  | 0..* | Annotation | Further information about the statement
dosage | S | 0..* | DosageDgMP | Strukturierte Dosierung/Gebrauchsanweisung
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
text | S Σ | 0..1 | string | Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
timing | S Σ | 0..1 | TimingDgMP | Wann das Medikament verabreicht werden soll
doseAndRate | S Σ | 0..1 | Element | Menge des verabreichten Medikaments
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 dose[x] | S Σ | 0..1 | SimpleQuantity | Amount of medication per dose Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 0..1 | SimpleQuantity | Menge des Medikaments pro Dosis Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT (required)
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)
unit | S Σ | 1..1 | string | Unit representation
system | S Σ C | 1..1 | uri | System that defines coded unit form
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationStatement.​meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
MedicationStatement.​meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
MedicationStatement.​language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:context.value[x] | Base | required | ePA MedicationStatement Context Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:rxPrescriptionProcessIdentifier.​value[x].type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​extension:processingEvent.​extension:event.value[x] | Base | required | EPA MedicationStatement Processing Codes | 📦1.3.0 | This IG
MedicationStatement.​extension:generatedDosageInstructionsMeta.​extension:language.value[x]:valueCode | Base | required | All Languages | 📦4.0.1 | FHIR Std.
MedicationStatement.​basedOn.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​basedOn.identifier.type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​status | Base | required | ePA MedicationStatement Status Value Set | 📦1.3.0 | This IG
MedicationStatement.​statusReason | Base | example | SNOMED CT Drug Therapy Status codes | 📍4.0.1 | FHIR Std.
MedicationStatement.​category | Base | preferred | Medication usage category codes | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​medication[x].identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​subject.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
MedicationStatement.​derivedFrom.identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
MedicationStatement.​reasonCode | Base | example | Condition/Problem/Diagnosis Codes | 📍4.0.1 | FHIR Std.
MedicationStatement.​dosage.doseAndRate.dose[x]:doseQuantity | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT | Not State | Unknown

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | MedicationStatement | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationStatement | 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 | MedicationStatement | 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 | MedicationStatement | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationStatement | 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-datetime | error | MedicationStatement.effective[x]:effectiveDateTime, MedicationStatement.effective[x]:effectivePeriod.start, MedicationStatement.effective[x]:effectivePeriod.end, MedicationStatement.dateAsserted | dateTime muss mindestens aus Tag, Monat und Jahr bestehen | `toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')`
epa-med-statement-status | error | MedicationStatement | Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben | `extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
per-1 | error | MedicationStatement.extension:rxPrescriptionProcessIdentifier.value[x].period, MedicationStatement.basedOn.identifier.period, MedicationStatement.medication[x].identifier.period, MedicationStatement.derivedFrom.identifier.period | If present, start SHALL have a lower value than end | `start.hasValue().not() or end.hasValue().not() or (start <= end)`
ref-1 | error | MedicationStatement.extension:rxPrescriptionProcessIdentifier.value[x].assigner, MedicationStatement.basedOn, MedicationStatement.basedOn.identifier.assigner, MedicationStatement.partOf, MedicationStatement.medication[x].identifier.assigner, MedicationStatement.subject, MedicationStatement.context, MedicationStatement.informationSource, MedicationStatement.derivedFrom, MedicationStatement.derivedFrom.identifier.assigner, MedicationStatement.reasonReference | 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'))`

This structure is derived from MedicationStatement

Summary

Mandatory: 3 elements
Must-Support: 82 elements
Prohibited: 1 element

Structures

This structure refers to these other structures:

- EPA MedicationRequest (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request)
- eMP MedicationRequest (https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request)
- EPA Medication (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication)
- Identifier-Profil für die 10-stellige Krankenversichertennummer (http://fhir.de/StructureDefinition/identifier-kvid-10)
- EPA MedicationDispense (https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense)
- Dosage dgMP (http://ig.fhir.de/igs/medication/StructureDefinition/DosageDgMP)
- SimpleQuantity (http://hl7.org/fhir/StructureDefinition/SimpleQuantity)

Extensions

This structure refers to these extensions:

- https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
- https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
- https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
- http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
- http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
- https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of MedicationStatement.effective[x]

Other representations of profile: CSV, Excel, Schematron