Implementation Guide
ePA Medication Service
Version 1.3.0 - release

## Extension: Origin Medication Reference (eMP)

Official URL: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension | Version: 1.3.0
Active as of 2025-12-15 | Computable Name: EMPOriginMedicationExtension
Copyright/Legal: gematik GmbH / Dieses Artefakt ist lizenziert unter Apache License, Version 2.0.

Erlaubt einem eMP MedicationRequest, auf die ursprünglich verwendete Medication-Instanz zu referenzieren (Ursprung des eMP-Eintrags).

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 8 more, MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb, Parameters/7ccb2670-7178-4f82-912a-de70f68ecd51, Parameters/example-epa-op-add-emp-entry-input-parameters-1, Parameters/example-epa-op-add-emp-entry-with-reference-input-parameters-1, Parameters/example-epa-op-emp-entry-output-parameters-1, Parameters/example-epa-op-emp-entry-output-parameters-2, Parameters/example-epa-op-link-emp-entry-output-parameters-1 and Parameters/example-epa-op-update-emp-entry-input-parameters-1

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

Simple Extension with the type Reference: Erlaubt einem eMP MedicationRequest, auf die ursprünglich verwendete Medication-Instanz zu referenzieren (Ursprung des eMP-Eintrags).

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Origin Medication Reference (eMP)
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension"
value[x] |  | 1..1 | Reference(Medication) | Referenz auf die Ursprungs-Medication (Basis des eMP-Eintrags)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Origin Medication Reference (eMP)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension"
value[x] |  | 1..1 | Reference(Medication) | Referenz auf die Ursprungs-Medication (Basis des eMP-Eintrags)
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Reference: Erlaubt einem eMP MedicationRequest, auf die ursprünglich verwendete Medication-Instanz zu referenzieren (Ursprung des eMP-Eintrags).

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Origin Medication Reference (eMP)
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension"
value[x] |  | 1..1 | Reference(Medication) | Referenz auf die Ursprungs-Medication (Basis des eMP-Eintrags)
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Origin Medication Reference (eMP)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension"
value[x] |  | 1..1 | Reference(Medication) | Referenz auf die Ursprungs-Medication (Basis des eMP-Eintrags)
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())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`