Implementation Guide
ePA Basisfunktionalitäten
Version 1.3.2 - 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

    <http://hl7.org/fhir/Bundle/31a277f5-6ed9-4ee2-a864-4abc26b5de5b> a fhir:Bundle ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "31a277f5-6ed9-4ee2-a864-4abc26b5de5b"] ;
      fhir:Bundle.type [ fhir:value "history"] ;
      fhir:Bundle.total [ fhir:value "3"^^xsd:nonNegativeInteger] ;
      fhir:Bundle.entry [
         fhir:index 0 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403" ] ;
         fhir:Bundle.entry.request [
           fhir:Bundle.entry.request.method [ fhir:value "DELETE" ] ;
           fhir:Bundle.entry.request.url [ fhir:value "MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403" ]
         ] ;
         fhir:Bundle.entry.response [
           fhir:Bundle.entry.response.status [ fhir:value "200 OK" ] ;
           fhir:Bundle.entry.response.lastModified [ fhir:value "2026-08-22T15:00:00.000Z"^^xsd:dateTime ]
         ]
      ], [
         fhir:index 1 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403" ] ;
         fhir:Bundle.entry.resource <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403> ;
         fhir:Bundle.entry.request [
           fhir:Bundle.entry.request.method [ fhir:value "PUT" ] ;
           fhir:Bundle.entry.request.url [ fhir:value "MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403" ]
         ] ;
         fhir:Bundle.entry.response [
           fhir:Bundle.entry.response.status [ fhir:value "200 OK" ] ;
           fhir:Bundle.entry.response.location [ fhir:value "MedicationDispense/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/2" ] ;
           fhir:Bundle.entry.response.lastModified [ fhir:value "2026-08-22T14:50:10.000Z"^^xsd:dateTime ]
         ]
      ], [
         fhir:index 2 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403" ] ;
         fhir:Bundle.entry.resource <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403> ;
         fhir:Bundle.entry.request [
           fhir:Bundle.entry.request.method [ fhir:value "POST" ] ;
           fhir:Bundle.entry.request.url [ fhir:value "MedicationRequest" ]
         ] ;
         fhir:Bundle.entry.response [
           fhir:Bundle.entry.response.status [ fhir:value "201 Created" ] ;
           fhir:Bundle.entry.response.location [ fhir:value "MedicationRequest/1959b8cd-58d2-4961-aa10-74d7e68896403/_history/1" ] ;
           fhir:Bundle.entry.response.lastModified [ fhir:value "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:Resource.id [ fhir:value "1959b8cd-58d2-4961-aa10-74d7e68896403"], [ fhir:value "1959b8cd-58d2-4961-aa10-74d7e68896403"] ;
      fhir:Resource.meta [
         fhir:Meta.versionId [ fhir:value "2" ] ;
         fhir:Meta.lastUpdated [ fhir:value "2026-08-22T14:50:10.000Z"^^xsd:dateTime ] ;
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0>
         ]
      ], [
         fhir:Meta.versionId [ fhir:value "1" ] ;
         fhir:Meta.lastUpdated [ fhir:value "2026-08-22T14:43:33.244Z"^^xsd:dateTime ] ;
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request|1.3.0>
         ]
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension" ] ;
         fhir:Extension.valueCode [ fhir:value "EMP" ]
      ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension" ] ;
         fhir:Extension.valueString [ fhir:value "akuten Behandlung von Migräneanfällen mit und ohne Aura" ]
      ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension" ] ;
         fhir:Extension.valueAnnotation [
           fhir:Annotation.text [ fhir:value "Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung." ]
         ]
      ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod" ] ;
         fhir:Extension.valuePeriod [
           fhir:Period.start [ fhir:value "2026-08-22"^^xsd:date ] ;
           fhir:Period.end [ fhir:value "2026-08-25"^^xsd:date ]
         ]
      ], [
         fhir:index 4 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension" ] ;
         fhir:Extension.valueReference [
           fhir:link <http://hl7.org/fhir/Medication/9cbf1803-e125-40d3-ad68-1e155f71e252> ;
           fhir:Reference.reference [ fhir:value "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]
         ]
      ], [
         fhir:index 5 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ] ;
         fhir:Extension.valueMarkdown [ fhir:value "1-0-0-0 Stück" ]
      ], [
         fhir:index 6 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "algorithmVersion" ] ;
           fhir:Extension.valueString [ fhir:value "1.0.1" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "language" ] ;
           fhir:Extension.valueCode [ fhir:value "de-DE" ]
         ] ;
         fhir:Extension.url [ fhir:value "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta" ]
      ], [
         fhir:index 7 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ] ;
         fhir:Extension.valueMarkdown [ fhir:value "1-0-2-0 Stück" ]
      ], [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension" ] ;
         fhir:Extension.valueCode [ fhir:value "EMP" ]
      ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension" ] ;
         fhir:Extension.valueString [ fhir:value "akuten Behandlung von Migräneanfällen mit und ohne Aura" ]
      ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension" ] ;
         fhir:Extension.valueAnnotation [
           fhir:Annotation.text [ fhir:value "Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung." ]
         ]
      ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod" ] ;
         fhir:Extension.valuePeriod [
           fhir:Period.start [ fhir:value "2026-08-22"^^xsd:date ] ;
           fhir:Period.end [ fhir:value "2026-08-25"^^xsd:date ]
         ]
      ], [
         fhir:index 4 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension" ] ;
         fhir:Extension.valueReference [
           fhir:link <http://hl7.org/fhir/Medication/9cbf1803-e125-40d3-ad68-1e155f71e252> ;
           fhir:Reference.reference [ fhir:value "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]
         ]
      ], [
         fhir:index 5 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ] ;
         fhir:Extension.valueMarkdown [ fhir:value "1-0-0-0 Stück" ]
      ], [
         fhir:index 6 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "algorithmVersion" ] ;
           fhir:Extension.valueString [ fhir:value "1.0.1" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "language" ] ;
           fhir:Extension.valueCode [ fhir:value "de-DE" ]
         ] ;
         fhir:Extension.url [ fhir:value "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta" ]
      ] ;
      fhir:MedicationRequest.status [ fhir:value "active"], [ fhir:value "active"] ;
      fhir:MedicationRequest.intent [ fhir:value "plan"], [ fhir:value "plan"] ;
      fhir:MedicationRequest.medicationReference [
         fhir:link <http://hl7.org/fhir/Medication/9cbf1803-e125-40d3-ad68-1e155f71e252> ;
         fhir:Reference.reference [ fhir:value "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]
      ], [
         fhir:link <http://hl7.org/fhir/Medication/9cbf1803-e125-40d3-ad68-1e155f71e252> ;
         fhir:Reference.reference [ fhir:value "Medication/9cbf1803-e125-40d3-ad68-1e155f71e252" ]
      ] ;
      fhir:MedicationRequest.subject [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:Identifier.value [ fhir:value "X110411319" ]
         ]
      ], [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:Identifier.value [ fhir:value "X110411319" ]
         ]
      ] ;
      fhir:MedicationRequest.authoredOn [ fhir:value "2026-08-22"^^xsd:date], [ fhir:value "2026-08-22"^^xsd:date] ;
      fhir:MedicationRequest.note [
         fhir:index 0 ;
         fhir:Annotation.text [ fhir:value "Hinweis für den LE" ]
      ], [
         fhir:index 0 ;
         fhir:Annotation.text [ fhir:value "Hinweis für den LE" ]
      ] ;
      fhir:MedicationRequest.dosageInstruction [
         fhir:index 0 ;
         fhir:Dosage.timing [
           fhir:Timing.repeat [
             fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
             fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Timing.repeat.periodUnit [ fhir:value "d" ] ;
             fhir:Timing.repeat.when [
               fhir:value "MORN" ;
               fhir:index 0
             ]
           ]
         ] ;
         fhir:Dosage.doseAndRate [
           fhir:index 0 ;
           fhir:Dosage.doseAndRate.doseQuantity [
             fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Quantity.unit [ fhir:value "Stück" ] ;
             fhir:Quantity.system [ fhir:value "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT" ] ;
             fhir:Quantity.code [ fhir:value "1" ]
           ]
         ]
      ], [
         fhir:index 1 ;
         fhir:Dosage.timing [
           fhir:Timing.repeat [
             fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
             fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Timing.repeat.periodUnit [ fhir:value "d" ] ;
             fhir:Timing.repeat.when [
               fhir:value "MORN" ;
               fhir:index 0
             ]
           ]
         ] ;
         fhir:Dosage.doseAndRate [
           fhir:index 0 ;
           fhir:Dosage.doseAndRate.doseQuantity [
             fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Quantity.unit [ fhir:value "Stück" ] ;
             fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
             fhir:Quantity.code [ fhir:value "1" ]
           ]
         ]
      ], [
         fhir:index 2 ;
         fhir:Dosage.timing [
           fhir:Timing.repeat [
             fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
             fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Timing.repeat.periodUnit [ fhir:value "d" ] ;
             fhir:Timing.repeat.when [
               fhir:value "EVE" ;
               fhir:index 0
             ]
           ]
         ] ;
         fhir:Dosage.doseAndRate [
           fhir:index 0 ;
           fhir:Dosage.doseAndRate.doseQuantity [
             fhir:Quantity.value [ fhir:value "2"^^xsd:decimal ] ;
             fhir:Quantity.unit [ fhir:value "Stück" ] ;
             fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
             fhir:Quantity.code [ fhir:value "1" ]
           ]
         ]
      ], [
         fhir:index 0 ;
         fhir:Dosage.timing [
           fhir:Timing.repeat [
             fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
             fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Timing.repeat.periodUnit [ fhir:value "d" ] ;
             fhir:Timing.repeat.when [
               fhir:value "MORN" ;
               fhir:index 0
             ]
           ]
         ] ;
         fhir:Dosage.doseAndRate [
           fhir:index 0 ;
           fhir:Dosage.doseAndRate.doseQuantity [
             fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
             fhir:Quantity.unit [ fhir:value "Stück" ] ;
             fhir:Quantity.system [ fhir:value "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT" ] ;
             fhir:Quantity.code [ fhir:value "1" ]
           ]
         ]
      ] .

    <http://hl7.org/fhir/Medication/9cbf1803-e125-40d3-ad68-1e155f71e252> a fhir:Medication .

    # - ontology header ------------------------------------------------------------

    <http://hl7.org/fhir/Bundle/31a277f5-6ed9-4ee2-a864-4abc26b5de5b.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/Bundle/31a277f5-6ed9-4ee2-a864-4abc26b5de5b.ttl> .