Implementation Guide
ePA Medication Service
Version 1.0.5-1 - release

## Extension: DrugCategoryExtension

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

Extension for indicating the medication category.

Context of Use

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

- Element ID Element

Usage info

Usage:

- Use this Extension: EPA Pharmaceutical Product Medication, EPA Medication PZN Ingredient and EPA Medication
- Examples for this Extension: Bundle/example-searchset-medication, Medication/4bfef107-7d81-4d36-8aa0-7ea937969046, Medication/4f9ab221-0eef-4e46-a8a9-38302e0488b1, Medication/CortisonDexpantenolMedicationPreparation... Show 5 more, Medication/SumatripanMedication, Medication/TabletSprayKombipackung, Parameters/example-epa-op-provide-dispensation-erp-input-parameters-1, Parameters/example-epa-op-provide-dispensation-erp-input-parameters-2 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

Simple Extension of type Coding: Extension for indicating the medication category.

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"
value[x] |  | 1..1 | Coding | Value of extension Binding: TI Drug Category ValueSet (required)
code |  | 0..1 | code | Category
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"
value[x] |  | 1..1 | Coding | Value of extension Binding: TI Drug Category ValueSet (required)
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 | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | Σ | 0..1 | code | Category
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension of type Coding: Extension for indicating the medication category.

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"
value[x] |  | 1..1 | Coding | Value of extension Binding: TI Drug Category ValueSet (required)
code |  | 0..1 | code | Category
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"
value[x] |  | 1..1 | Coding | Value of extension Binding: TI Drug Category ValueSet (required)
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 | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | Σ | 0..1 | code | Category
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Extension.value[x] | required | TIDrugCategoryVS `https://gematik.de/fhir/terminology/ValueSet/ti-drug-category-vs`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
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() |