Implementation Guide
ePA Medication Service
Version 1.3.0 - release

Extension: ContextExtension

Official URL: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension Version: 1.3.0
Active as of 2025-12-15 Computable Name: ContextExtension

Copyright/Legal: gematik GmbH / Dieses Artefakt ist lizenziert unter Apache License, Version 2.0.

Extension for indicating the context.

Context of Use

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

  • Element ID MedicationStatement
  • Element ID Medication
  • Element ID MedicationRequest

Usage info

Usages:

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.

This structure is derived from Extension

Summary

Simple Extension with the type code: Extension for indicating the context.

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Extension
... extension 0..0 Extension
... url 1..1 uri "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"
... value[x] 1..1 code Context of the resource
Binding: Context Codes (required)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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/context-extension"

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type code: Extension for indicating the context.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Extension
... extension 0..0 Extension
... url 1..1 uri "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"
... value[x] 1..1 code Context of the resource
Binding: Context Codes (required)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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/context-extension"

doco Documentation for this format

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

Path Status Usage ValueSet Version Source
Extension.value[x] Base required Context Codes 📦1.3.0 This IG

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()