Implementation Guide
ePA Medication Service
Version 1.0.5-1 - release

## Extension: MultiplePrescription

Official URL: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension | Version: 1.0.5-1
Active as of 2025-02-28 | Computable Name: MultiplePrescriptionExtension

This FHIR Extension for multiple prescriptions adds details such as repetition count and time intervals for repeated medication orders to FHIR resources.

Context of Use

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

- Element ID Element

Usage info

Usage:

- Use this Extension: EPA MedicationRequest
- Examples for this Extension: Bundle/example-get-medication-list-bundle1, Bundle/example-searchset-medicationrequest, MedicationRequest/3d7252b4-7814-4d40-8ca2-2f731648f22d, MedicationRequest/bb91cde8-0426-4f4b-a766-5d818d0605bd... Show 2 more, Parameters/example-epa-op-provide-prescription-erp-input-parameters-1 and Parameters/example-epa-op-provide-prescription-erp-input-parameters-2

### 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: This FHIR Extension for multiple prescriptions adds details such as repetition count and time intervals for repeated medication orders to FHIR resources.

- indicator: boolean: An Extension
- counter: Ratio: An Extension
- period: Period: An Extension
- id: Identifier: An Extension

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | MultiplePrescription
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:indicator |  | 0..1 | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "indicator"
value[x] |  | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "counter"
value[x] |  | 1..1 | Ratio | Value of extension
numerator |  | 1..1 | Quantity | Numerator value
value |  | 1..1 | decimal | Multiple Prescription Counter
comparator |  | 0..0 |  |
unit |  | 0..0 |  |
system |  | 0..0 |  |
code |  | 0..0 |  |
denominator |  | 1..1 | Quantity | Denominator value
value |  | 1..1 | decimal | Denominator of Multiple Prescription Series
comparator |  | 0..0 |  |
unit |  | 0..0 |  |
system |  | 0..0 |  |
code |  | 0..0 |  |
extension:period |  | 0..1 | Extension | Zeitraum der Einlösefrist
extension |  | 0..0 |  |
url |  | 1..1 | uri | "period"
value[x] | C | 1..1 | Period | Value of extension -limitationDateStart: Limitation of the date format to 10 characters YYYY-MM-DD -limitationDateEnd: Limitation of the date format to 10 characters YYYY-MM-DD
start |  | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end |  | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "id"
value[x] |  | 1..1 | Identifier | Value of extension
use |  | 0..0 |  |
type |  | 0..0 |  |
system |  | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value |  | 0..1 | string | Multiple Prescription ID
period |  | 0..0 |  |
assigner |  | 0..0 |  |
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
value[x] |  | 0..0 |  |
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | MultiplePrescription
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:indicator |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "indicator"
value[x] |  | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "counter"
value[x] |  | 1..1 | Ratio | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
numerator | Σ C | 1..1 | Quantity | Numerator value qty-3: If a code for the unit is present, the system SHALL also be present
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | Σ | 1..1 | decimal | Multiple Prescription Counter
denominator | Σ C | 1..1 | Quantity | Denominator value qty-3: If a code for the unit is present, the system SHALL also be present
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | Σ | 1..1 | decimal | Denominator of Multiple Prescription Series
extension:period |  | 0..1 | Extension | Zeitraum der Einlösefrist
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "period"
value[x] | C | 1..1 | Period | Value of extension -limitationDateStart: Limitation of the date format to 10 characters YYYY-MM-DD -limitationDateEnd: Limitation of the date format to 10 characters YYYY-MM-DD
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | Σ C | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end | Σ C | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "id"
value[x] |  | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | Σ | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value | Σ | 0..1 | string | Multiple Prescription ID Example General: 123456
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
Documentation for this format

This structure is derived from Extension

Summary

Complex Extension: This FHIR Extension for multiple prescriptions adds details such as repetition count and time intervals for repeated medication orders to FHIR resources.

- indicator: boolean: An Extension
- counter: Ratio: An Extension
- period: Period: An Extension
- id: Identifier: An Extension

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | MultiplePrescription
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:indicator |  | 0..1 | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "indicator"
value[x] |  | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "counter"
value[x] |  | 1..1 | Ratio | Value of extension
numerator |  | 1..1 | Quantity | Numerator value
value |  | 1..1 | decimal | Multiple Prescription Counter
comparator |  | 0..0 |  |
unit |  | 0..0 |  |
system |  | 0..0 |  |
code |  | 0..0 |  |
denominator |  | 1..1 | Quantity | Denominator value
value |  | 1..1 | decimal | Denominator of Multiple Prescription Series
comparator |  | 0..0 |  |
unit |  | 0..0 |  |
system |  | 0..0 |  |
code |  | 0..0 |  |
extension:period |  | 0..1 | Extension | Zeitraum der Einlösefrist
extension |  | 0..0 |  |
url |  | 1..1 | uri | "period"
value[x] | C | 1..1 | Period | Value of extension -limitationDateStart: Limitation of the date format to 10 characters YYYY-MM-DD -limitationDateEnd: Limitation of the date format to 10 characters YYYY-MM-DD
start |  | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end |  | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "id"
value[x] |  | 1..1 | Identifier | Value of extension
use |  | 0..0 |  |
type |  | 0..0 |  |
system |  | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value |  | 0..1 | string | Multiple Prescription ID
period |  | 0..0 |  |
assigner |  | 0..0 |  |
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
value[x] |  | 0..0 |  |
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | MultiplePrescription
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:indicator |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "indicator"
value[x] |  | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "counter"
value[x] |  | 1..1 | Ratio | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
numerator | Σ C | 1..1 | Quantity | Numerator value qty-3: If a code for the unit is present, the system SHALL also be present
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | Σ | 1..1 | decimal | Multiple Prescription Counter
denominator | Σ C | 1..1 | Quantity | Denominator value qty-3: If a code for the unit is present, the system SHALL also be present
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | Σ | 1..1 | decimal | Denominator of Multiple Prescription Series
extension:period |  | 0..1 | Extension | Zeitraum der Einlösefrist
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "period"
value[x] | C | 1..1 | Period | Value of extension -limitationDateStart: Limitation of the date format to 10 characters YYYY-MM-DD -limitationDateEnd: Limitation of the date format to 10 characters YYYY-MM-DD
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | Σ C | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end | Σ C | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "id"
value[x] |  | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | Σ | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value | Σ | 0..1 | string | Multiple Prescription ID Example General: 123456
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Constraints

Id | Grade | Path(s) | Details | Requirements
-limitationDateEnd | error | Extension.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD : end.exists().not() or end.toString().length()=10 |
-limitationDateStart | error | Extension.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD : start.toString().length()=10 |
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() |
qty-3 | error | Extension.extension:counter.value[x].numerator, Extension.extension:counter.value[x].denominator | If a code for the unit is present, the system SHALL also be present : code.empty() or system.exists() |