Implementation Guide
ePA Medication Service
Version 1.3.2 - release

## Extension: MedicationTotalQuantityFormulationExtension

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

Total quantity of the formulation (without the unit).

Context of Use

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

- Element ID Element

Usage info

Usages:

- Use this Extension: EPA Pharmaceutical Product Medication, EPA Medication PZN Ingredient and EPA Medication
- Examples for this Extension: Bundle/example-epa-batch-emp-request-bundle, Bundle/example-epa-batch-emp-response-bundle, Bundle/example-get-medication-list-bundle1, Bundle/example-get-medication-plan-bundle-1... Show 15 more, Bundle/example-searchset-medication, Medication/1254591a-dd2d-4d17-b8f8-ee3155da0699, Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f, Medication/19549515-60a8-4e1c-b86a-49518053fe9f, Medication/2571d29b-e213-40ec-b817-a1490718f491, Medication/3f0b0cb0-e8cf-4aaf-bad8-01a51619417b, Medication/87f08ba2-da7e-467e-86aa-404d9035297c, Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e, Parameters/example-epa-op-add-eml-entry-input-parameters-1, Parameters/example-epa-op-add-emp-entry-input-parameters-1, Parameters/example-epa-op-eml-entry-output-parameters-1, Parameters/example-epa-op-emp-entry-output-parameters-1, Parameters/example-epa-op-emp-entry-output-parameters-2, Parameters/example-epa-op-provide-dispensation-erp-input-parameters-1 and Parameters/example-epa-op-provide-prescription-erp-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 string: Total quantity of the formulation (without the unit).

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/medication-total-quantity-formulation-extension"
value[x] |  | 1..1 | string | Total quantity of the formulation. Max Length:7
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/medication-total-quantity-formulation-extension"
value[x] |  | 1..1 | string | Total quantity of the formulation. Max Length:7
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type string: Total quantity of the formulation (without the unit).

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/medication-total-quantity-formulation-extension"
value[x] |  | 1..1 | string | Total quantity of the formulation. Max Length:7
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/medication-total-quantity-formulation-extension"
value[x] |  | 1..1 | string | Total quantity of the formulation. Max Length:7
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()`