Implementation Guide
ePA Medication Service
Version 1.3.3 - release

## Extension: EMPMedicationRequestActitvityExtension

Official URL: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension | Version: 1.3.1
Active as of 2026-03-20 | Computable Name: EMPMedicationRequestActitvityExtension
Copyright/Legal: gematik GmbH / Dieses Artefakt ist lizenziert unter Apache License, Version 2.0.

Bildet eine Aktivität in bezug auf ein EMPMedicationRequest ab

Context of Use

This extension may be used on the following element(s):

- Element ID MedicationRequest

Usage info

Usages:

- Use this Extension: eMP MedicationRequest
- Examples for this Extension: Bundle/example-epa-batch-emp-request-bundle, Bundle/example-epa-batch-emp-response-bundle, Bundle/example-get-medication-plan-bundle-1, MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5... Show 4 more, MedicationRequest/55b8a1f8-daeb-4d1e-a0e1-36279e2d9913, MedicationRequest/Technical-Exp-NachtragEmpMedicationRequestEmp, Parameters/7ccb2670-7178-4f82-912a-de70f68ecd51 and Parameters/example-epa-op-link-emp-entry-output-parameters-1
- Search Parameters using this Extension: MedicationRequestActivitySP

You can also check for usages in the FHIR IG Statistics

### Formal Views of Extension Content

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

- Text Summary
- Differential Table
- Snapshot Table
- All

This structure is derived from Extension

Summary

Complex Extension: Bildet eine Aktivität in bezug auf ein EMPMedicationRequest ab

- reference: Reference: An Extension
- addedOn: dateTime: An Extension

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:reference | C | 1..1 | Extension | Extension Constraints: epa-no-history-reference
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "reference"
value[x] |  | 1..1 | Reference(EPA MedicationStatement) | Referenz zu der Resource, die aus der Aktivität resultiert
extension:addedOn |  | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "addedOn"
value[x] |  | 1..1 | dateTime | Zeitpunkt, zu dem diese Referenz in den eMP-Eintrag aufgenommen wurde
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension"
value[x] |  | 0..0 |  | Value of extension
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:reference | C | 1..1 | Extension | Extension Constraints: epa-no-history-reference
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "reference"
value[x] |  | 1..1 | Reference(EPA MedicationStatement) | Referenz zu der Resource, die aus der Aktivität resultiert
extension:addedOn |  | 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 |  | 1..1 | uri | "addedOn"
value[x] |  | 1..1 | dateTime | Zeitpunkt, zu dem diese Referenz in den eMP-Eintrag aufgenommen wurde
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension"
Documentation for this format

This structure is derived from Extension

Summary

Complex Extension: Bildet eine Aktivität in bezug auf ein EMPMedicationRequest ab

- reference: Reference: An Extension
- addedOn: dateTime: An Extension

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:reference | C | 1..1 | Extension | Extension Constraints: epa-no-history-reference
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "reference"
value[x] |  | 1..1 | Reference(EPA MedicationStatement) | Referenz zu der Resource, die aus der Aktivität resultiert
extension:addedOn |  | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "addedOn"
value[x] |  | 1..1 | dateTime | Zeitpunkt, zu dem diese Referenz in den eMP-Eintrag aufgenommen wurde
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension"
value[x] |  | 0..0 |  | Value of extension
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 2..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:reference | C | 1..1 | Extension | Extension Constraints: epa-no-history-reference
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "reference"
value[x] |  | 1..1 | Reference(EPA MedicationStatement) | Referenz zu der Resource, die aus der Aktivität resultiert
extension:addedOn |  | 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 |  | 1..1 | uri | "addedOn"
value[x] |  | 1..1 | dateTime | Zeitpunkt, zu dem diese Referenz in den eMP-Eintrag aufgenommen wurde
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension"
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Constraints

Id | Grade | Path(s) | Description | Expression
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
epa-no-history-reference | error | Extension.extension:reference | Die Referenz darf keine History-Referenz enthalten ('/_history/' ist nicht erlaubt). | `value.where($this is Reference).reference.exists() implies value.where($this is Reference).reference.contains('/_history/').not()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`