Implementation Guide
ePA Medication Service
Version 1.3.5 - release

## Extension: PatientIDExtension

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

Patienten-ID, welche bei der Verordnung bestimmter Arzneimittel angegeben werden kann.

Context of Use

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

- Element ID Element

Usage info

Usages:

- Use this Extension: EPA MedicationRequest

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 Identifier: Patienten-ID, welche bei der Verordnung bestimmter Arzneimittel angegeben werden kann.

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] |  | 1..1 | Identifier | Value of extension
use |  | 0..0 |  | usual | official | temp | secondary | old (If known)
type |  | 0..0 |  | Description of identifier
value |  | 1..1 | string | Patienten-ID
period |  | 0..0 |  | Time period when id is/was valid for use
assigner |  | 0..0 |  | Organization that issued id (may be just text)
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
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] |  | 1..1 | Identifier | 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
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | Patienten-ID Example General: 123456
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Identifier: Patienten-ID, welche bei der Verordnung bestimmter Arzneimittel angegeben werden kann.

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] |  | 1..1 | Identifier | Value of extension
use |  | 0..0 |  | usual | official | temp | secondary | old (If known)
type |  | 0..0 |  | Description of identifier
value |  | 1..1 | string | Patienten-ID
period |  | 0..0 |  | Time period when id is/was valid for use
assigner |  | 0..0 |  | Organization that issued id (may be just text)
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
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] |  | 1..1 | Identifier | 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
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | Patienten-ID Example General: 123456
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()`