Implementation Guide
ePA Basisfunktionalitäten
Version 1.3.1 - release

## : Example Export History Bundle - TTL Representation

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:Bundle ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "31a277f5-6ed9-4ee2-a864-4abc26b5de5b"] ; #
      fhir:type [ fhir:v "history"] ; #
      fhir:total [ fhir:v "3"^^xsd:nonNegativeInteger] ; #
      fhir:entry ( [
    fhir:fullUrl [
    fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"^^xsd:anyURI ;
    fhir:l <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403>     ] ;
    fhir:request [
    fhir:method [ fhir:v "DELETE" ] ;
    fhir:url [
    fhir:v "MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"^^xsd:anyURI ;
    fhir:l fhir:MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403       ]     ] ;
    fhir:response [
    fhir:status [ fhir:v "200 OK" ] ;
    fhir:lastModified [ fhir:v "2026-08-22T15:00:00.000Z"^^xsd:dateTime ]     ]
      ] [
    fhir:fullUrl [
    fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"^^xsd:anyURI ;
    fhir:l <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403>     ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403> ) ;
    fhir:request [
    fhir:method [ fhir:v "PUT" ] ;
    fhir:url [
    fhir:v "MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"^^xsd:anyURI ;
    fhir:l fhir:MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403       ]     ] ;
    fhir:response [
    fhir:status [ fhir:v "200 OK" ] ;
    fhir:location [
    fhir:v "MedicationDispense/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/2"^^xsd:anyURI ;
    fhir:l fhir:MedicationDispense/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/2       ] ;
    fhir:lastModified [ fhir:v "2026-08-22T14:50:10.000Z"^^xsd:dateTime ]     ]
      ] [
    fhir:fullUrl [
    fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403"^^xsd:anyURI ;
    fhir:l <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403>     ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403> ) ;
    fhir:request [
    fhir:method [ fhir:v "POST" ] ;
    fhir:url [
    fhir:v "MedicationRequest"^^xsd:anyURI ;
    fhir:l fhir:MedicationRequest       ]     ] ;
    fhir:response [
    fhir:status [ fhir:v "201 Created" ] ;
    fhir:location [
    fhir:v "MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/1"^^xsd:anyURI ;
    fhir:l fhir:MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/1       ] ;
    fhir:lastModified [ fhir:v "2026-08-22T14:43:33.244Z"^^xsd:dateTime ]     ]
      ] ) . #

    <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403> a fhir:MedicationRequest, fhir:MedicationRequest ;
      fhir:id [ fhir:v "1959b8cd-58d2-4961-aa10-74d7e68896403"], [ fhir:v "1959b8cd-58d2-4961-aa10-74d7e68896403"] ; #
      fhir:meta [
    fhir:versionId [ fhir:v "2" ] ;
    fhir:lastUpdated [ fhir:v "2026-08-22T14:50:10.000Z"^^xsd:dateTime ] ;
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request?version=1.3.0>     ] )
      ], [
    fhir:versionId [ fhir:v "1" ] ;
    fhir:lastUpdated [ fhir:v "2026-08-22T14:43:33.244Z"^^xsd:dateTime ] ;
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request?version=1.3.0>     ] )
      ] ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "EMP"     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension>     ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "akuten Behandlung von Migräneanfällen mit und ohne Aura"     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension>     ] ;
    fhir:value [
    a fhir:Annotation ;
    fhir:text [ fhir:v "Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung." ]     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod>     ] ;
    fhir:value [
    a fhir:Period ;
    fhir:start [ fhir:v "2026-08-22"^^xsd:date ] ;
    fhir:end [ fhir:v "2026-08-25"^^xsd:date ]     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l fhir:Medication/9cbf1803-e125-40d3-ad68-1e155f71e252 ;
    fhir:reference [ fhir:v "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction>     ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "1-0-0-0 Stück"     ]
      ] [
        ( fhir:extension [
    fhir:url [
    fhir:v "algorithmVersion"^^xsd:anyURI ;
    fhir:l fhir:algorithmVersion       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "1.0.1"       ]     ] [
    fhir:url [
    fhir:v "language"^^xsd:anyURI ;
    fhir:l fhir:language       ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "de-DE"       ]     ] ) ;
    fhir:url [
    fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta"^^xsd:anyURI ;
    fhir:l <http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta>     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction>     ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "1-0-2-0 Stück"     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "EMP"     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension>     ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "akuten Behandlung von Migräneanfällen mit und ohne Aura"     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension>     ] ;
    fhir:value [
    a fhir:Annotation ;
    fhir:text [ fhir:v "Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung." ]     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod>     ] ;
    fhir:value [
    a fhir:Period ;
    fhir:start [ fhir:v "2026-08-22"^^xsd:date ] ;
    fhir:end [ fhir:v "2026-08-25"^^xsd:date ]     ]
      ] [
    fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l fhir:Medication/9cbf1803-e125-40d3-ad68-1e155f71e252 ;
    fhir:reference [ fhir:v "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction>     ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "1-0-0-0 Stück"     ]
      ] [
        ( fhir:extension [
    fhir:url [
    fhir:v "algorithmVersion"^^xsd:anyURI ;
    fhir:l fhir:algorithmVersion       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "1.0.1"       ]     ] [
    fhir:url [
    fhir:v "language"^^xsd:anyURI ;
    fhir:l fhir:language       ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "de-DE"       ]     ] ) ;
    fhir:url [
    fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta"^^xsd:anyURI ;
    fhir:l <http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta>     ]
      ] ) ; #
      fhir:status [ fhir:v "active"], [ fhir:v "active"] ; #
      fhir:intent [ fhir:v "plan"], [ fhir:v "plan"] ; #
      fhir:medication [
    a fhir:Reference ;
    fhir:l fhir:Medication/9cbf1803-e125-40d3-ad68-1e155f71e252 ;
    fhir:reference [ fhir:v "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]
      ], [
    a fhir:Reference ;
    fhir:l fhir:Medication/9cbf1803-e125-40d3-ad68-1e155f71e252 ;
    fhir:reference [ fhir:v "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]
      ] ; #
      fhir:subject [
    fhir:identifier [
    fhir:system [
    fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ;
    fhir:l <http://fhir.de/sid/gkv/kvid-10>       ] ;
    fhir:value [ fhir:v "X110411319" ]     ]
      ], [
    fhir:identifier [
    fhir:system [
    fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ;
    fhir:l <http://fhir.de/sid/gkv/kvid-10>       ] ;
    fhir:value [ fhir:v "X110411319" ]     ]
      ] ; #
      fhir:authoredOn [ fhir:v "2026-08-22"^^xsd:date], [ fhir:v "2026-08-22"^^xsd:date] ; #
      fhir:note ( [
    fhir:text [ fhir:v "Hinweis für den LE" ]
      ] [
    fhir:text [ fhir:v "Hinweis für den LE" ]
      ] ) ; #
      fhir:dosageInstruction ( [
    fhir:timing [
    fhir:repeat [
    fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
    fhir:period [ fhir:v "1"^^xsd:decimal ] ;
    fhir:periodUnit [ fhir:v "d" ] ;
            ( fhir:when [ fhir:v "MORN" ] )       ]     ] ;
        ( fhir:doseAndRate [
    fhir:dose [
    a fhir:Quantity ;
    fhir:value [ fhir:v "1"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "Stück" ] ;
    fhir:system [
    fhir:v "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"^^xsd:anyURI ;
    fhir:l <https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT>         ] ;
    fhir:code [ fhir:v "1" ]       ]     ] )
      ] [
    fhir:timing [
    fhir:repeat [
    fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
    fhir:period [ fhir:v "1"^^xsd:decimal ] ;
    fhir:periodUnit [ fhir:v "d" ] ;
            ( fhir:when [ fhir:v "MORN" ] )       ]     ] ;
        ( fhir:doseAndRate [
    fhir:dose [
    a fhir:Quantity ;
    fhir:value [ fhir:v "1"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "Stück" ] ;
    fhir:system [
    fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
    fhir:l <http://unitsofmeasure.org>         ] ;
    fhir:code [ fhir:v "1" ]       ]     ] )
      ] [
    fhir:timing [
    fhir:repeat [
    fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
    fhir:period [ fhir:v "1"^^xsd:decimal ] ;
    fhir:periodUnit [ fhir:v "d" ] ;
            ( fhir:when [ fhir:v "EVE" ] )       ]     ] ;
        ( fhir:doseAndRate [
    fhir:dose [
    a fhir:Quantity ;
    fhir:value [ fhir:v "2"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "Stück" ] ;
    fhir:system [
    fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
    fhir:l <http://unitsofmeasure.org>         ] ;
    fhir:code [ fhir:v "1" ]       ]     ] )
      ] [
    fhir:timing [
    fhir:repeat [
    fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
    fhir:period [ fhir:v "1"^^xsd:decimal ] ;
    fhir:periodUnit [ fhir:v "d" ] ;
            ( fhir:when [ fhir:v "MORN" ] )       ]     ] ;
        ( fhir:doseAndRate [
    fhir:dose [
    a fhir:Quantity ;
    fhir:value [ fhir:v "1"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "Stück" ] ;
    fhir:system [
    fhir:v "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"^^xsd:anyURI ;
    fhir:l <https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT>         ] ;
    fhir:code [ fhir:v "1" ]       ]     ] )
      ] ) . #