Implementation Guide
ePA Medication Service
Version 1.3.5 - release

## : ExampleSearchsetBundleEPAMedicationDispense - 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/example-searchset-medicationdispense> a fhir:Bundle ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "example-searchset-medicationdispense"] ;
      fhir:Bundle.type [ fhir:value "searchset"] ;
      fhir:Bundle.total [ fhir:value "100"^^xsd:nonNegativeInteger] ;
      fhir:Bundle.link [
         fhir:index 0 ;
         fhir:Bundle.link.relation [ fhir:value "self" ] ;
         fhir:Bundle.link.url [ fhir:value "/epa/medication/api/v1/fhir/MedicationDispense?_offset=20&_count=10" ]
      ], [
         fhir:index 1 ;
         fhir:Bundle.link.relation [ fhir:value "previous" ] ;
         fhir:Bundle.link.url [ fhir:value "/epa/medication/api/v1/fhir/MedicationDispense?_offset=10&_count=10" ]
      ], [
         fhir:index 2 ;
         fhir:Bundle.link.relation [ fhir:value "next" ] ;
         fhir:Bundle.link.url [ fhir:value "/epa/medication/api/v1/fhir/MedicationDispense?_offset=30&_count=10" ]
      ] ;
      fhir:Bundle.entry [
         fhir:index 0 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/c0b553bd-2542-49d7-b5e1-0a770185e39f" ] ;
         fhir:Bundle.entry.resource <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/c0b553bd-2542-49d7-b5e1-0a770185e39f> ;
         fhir:Bundle.entry.search [
           fhir:Bundle.entry.search.mode [ fhir:value "match" ]
         ]
      ], [
         fhir:index 1 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/4e6e1623-778e-44a3-b208-8479f5339e43" ] ;
         fhir:Bundle.entry.resource <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/4e6e1623-778e-44a3-b208-8479f5339e43> ;
         fhir:Bundle.entry.search [
           fhir:Bundle.entry.search.mode [ fhir:value "match" ]
         ]
      ], [
         fhir:index 2 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/3c10c1ad-1d7a-47e8-abab-00b8299b49b8" ] ;
         fhir:Bundle.entry.resource <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/3c10c1ad-1d7a-47e8-abab-00b8299b49b8> ;
         fhir:Bundle.entry.search [
           fhir:Bundle.entry.search.mode [ fhir:value "match" ]
         ]
      ], [
         fhir:index 3 ;
         fhir:Bundle.entry.fullUrl [ fhir:value "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/5aeaf266-a7ee-4e9d-bcb9-3c7dde96abad" ] ;
         fhir:Bundle.entry.resource <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/5aeaf266-a7ee-4e9d-bcb9-3c7dde96abad> ;
         fhir:Bundle.entry.search [
           fhir:Bundle.entry.search.mode [ fhir:value "match" ]
         ]
      ] .

    <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/c0b553bd-2542-49d7-b5e1-0a770185e39f> a fhir:MedicationDispense ;
      fhir:Resource.id [ fhir:value "c0b553bd-2542-49d7-b5e1-0a770185e39f"] ;
      fhir:Resource.meta [
         fhir:Meta.versionId [ fhir:value "1" ] ;
         fhir:Meta.lastUpdated [ fhir:value "2025-02-27T14:43:33.244Z"^^xsd:dateTime ] ;
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0>
         ]
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension" ] ;
         fhir:Extension.valueIdentifier [
           fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier" ] ;
           fhir:Identifier.value [ fhir:value "160.100.000.000.001.39_20250227" ]
         ]
      ] ;
      fhir:MedicationDispense.identifier [
         fhir:index 0 ;
         fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier" ] ;
         fhir:Identifier.value [ fhir:value "9475102b-7677-4ab8-9449-91b91c6aeaa3_160.100.000.000.001.39" ]
      ] ;
      fhir:MedicationDispense.status [ fhir:value "completed"] ;
      fhir:MedicationDispense.medicationReference [
         fhir:link <http://hl7.org/fhir/Medication/56ca34f1-a3f3-42f7-95a2-f5a6423c2031> ;
         fhir:Reference.reference [ fhir:value "Medication/56ca34f1-a3f3-42f7-95a2-f5a6423c2031" ]
      ] ;
      fhir:MedicationDispense.subject [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:Identifier.value [ fhir:value "X110411319" ]
         ]
      ] ;
      fhir:MedicationDispense.performer [
         fhir:index 0 ;
         fhir:MedicationDispense.performer.actor [
           fhir:link <http://hl7.org/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> ;
           fhir:Reference.reference [ fhir:value "Organization/151f1697-7512-4e21-9466-1b75207475d8" ] ;
           fhir:Reference.identifier [
             fhir:Identifier.type [
               fhir:CodeableConcept.coding [
                 fhir:index 0 ;
                 fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
                 fhir:Coding.code [ fhir:value "PRN" ] ;
                 fhir:Coding.display [ fhir:value "Provider number" ]
               ]
             ] ;
             fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/sid/telematik-id" ] ;
             fhir:Identifier.value [ fhir:value "9-2.58.00000023" ]
           ] ;
           fhir:Reference.display [ fhir:value "gematik Apotheke" ]
         ]
      ] ;
      fhir:MedicationDispense.authorizingPrescription [
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/MedicationRequest/7efae80a-a4d9-4e26-a1b9-92c72e79cfaa> ;
         fhir:Reference.reference [ fhir:value "MedicationRequest/7efae80a-a4d9-4e26-a1b9-92c72e79cfaa" ]
      ] ;
      fhir:MedicationDispense.whenHandedOver [ fhir:value "2025-02-27"^^xsd:date] ;
      fhir:MedicationDispense.substitution [
         fhir:MedicationDispense.substitution.wasSubstituted [ fhir:value "false"^^xsd:boolean ]
      ] .

    <http://hl7.org/fhir/Medication/56ca34f1-a3f3-42f7-95a2-f5a6423c2031> a fhir:Medication .

    <http://hl7.org/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> a fhir:Organization .

    <http://hl7.org/fhir/MedicationRequest/7efae80a-a4d9-4e26-a1b9-92c72e79cfaa> a fhir:MedicationRequest .

    <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/4e6e1623-778e-44a3-b208-8479f5339e43> a fhir:MedicationDispense ;
      fhir:Resource.id [ fhir:value "4e6e1623-778e-44a3-b208-8479f5339e43"] ;
      fhir:Resource.meta [
         fhir:Meta.versionId [ fhir:value "1" ] ;
         fhir:Meta.lastUpdated [ fhir:value "2025-05-22T14:43:33.244Z"^^xsd:dateTime ] ;
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0>
         ]
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension" ] ;
         fhir:Extension.valueIdentifier [
           fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier" ] ;
           fhir:Identifier.value [ fhir:value "160.100.000.000.006.24_20250520" ]
         ]
      ] ;
      fhir:MedicationDispense.identifier [
         fhir:index 0 ;
         fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier" ] ;
         fhir:Identifier.value [ fhir:value "5d8fbf7c-bdb0-44c2-95fe-423ae0404ccd_160.100.000.000.006.24" ]
      ] ;
      fhir:MedicationDispense.status [ fhir:value "completed"] ;
      fhir:MedicationDispense.medicationReference [
         fhir:link <http://hl7.org/fhir/Medication/bb91cde8-0426-4f4b-a766-5d818d0605bd> ;
         fhir:Reference.reference [ fhir:value "Medication/bb91cde8-0426-4f4b-a766-5d818d0605bd" ]
      ] ;
      fhir:MedicationDispense.subject [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:Identifier.value [ fhir:value "X110411319" ]
         ]
      ] ;
      fhir:MedicationDispense.performer [
         fhir:index 0 ;
         fhir:MedicationDispense.performer.actor [
           fhir:link <http://hl7.org/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> ;
           fhir:Reference.reference [ fhir:value "Organization/151f1697-7512-4e21-9466-1b75207475d8" ] ;
           fhir:Reference.identifier [
             fhir:Identifier.type [
               fhir:CodeableConcept.coding [
                 fhir:index 0 ;
                 fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
                 fhir:Coding.code [ fhir:value "PRN" ] ;
                 fhir:Coding.display [ fhir:value "Provider number" ]
               ]
             ] ;
             fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/sid/telematik-id" ] ;
             fhir:Identifier.value [ fhir:value "9-2.58.00000023" ]
           ] ;
           fhir:Reference.display [ fhir:value "gematik Apotheke" ]
         ]
      ] ;
      fhir:MedicationDispense.authorizingPrescription [
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/MedicationRequest/3191d752-3adf-4c7f-848d-8d43766fed72> ;
         fhir:Reference.reference [ fhir:value "MedicationRequest/3191d752-3adf-4c7f-848d-8d43766fed72" ]
      ] ;
      fhir:MedicationDispense.whenHandedOver [ fhir:value "2025-05-22"^^xsd:date] ;
      fhir:MedicationDispense.substitution [
         fhir:MedicationDispense.substitution.wasSubstituted [ fhir:value "false"^^xsd:boolean ]
      ] .

    <http://hl7.org/fhir/Medication/bb91cde8-0426-4f4b-a766-5d818d0605bd> a fhir:Medication .

    <http://hl7.org/fhir/MedicationRequest/3191d752-3adf-4c7f-848d-8d43766fed72> a fhir:MedicationRequest .

    <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/3c10c1ad-1d7a-47e8-abab-00b8299b49b8> a fhir:MedicationDispense ;
      fhir:Resource.id [ fhir:value "3c10c1ad-1d7a-47e8-abab-00b8299b49b8"] ;
      fhir:Resource.meta [
         fhir:Meta.versionId [ fhir:value "1" ] ;
         fhir:Meta.lastUpdated [ fhir:value "2025-11-27T14:43:40.244Z"^^xsd:dateTime ] ;
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0>
         ]
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension" ] ;
         fhir:Extension.valueIdentifier [
           fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier" ] ;
           fhir:Identifier.value [ fhir:value "160.100.000.000.002.36_20251127" ]
         ]
      ] ;
      fhir:MedicationDispense.identifier [
         fhir:index 0 ;
         fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier" ] ;
         fhir:Identifier.value [ fhir:value "6c94dbcb-e8b0-41cc-b45e-cd00c3495cad_160.100.000.000.002.36" ]
      ] ;
      fhir:MedicationDispense.status [ fhir:value "completed"] ;
      fhir:MedicationDispense.medicationReference [
         fhir:link <http://hl7.org/fhir/Medication/ab8addbd-c4c7-48d2-bf4b-4a7c99f9fd6e> ;
         fhir:Reference.reference [ fhir:value "Medication/ab8addbd-c4c7-48d2-bf4b-4a7c99f9fd6e" ]
      ] ;
      fhir:MedicationDispense.subject [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:Identifier.value [ fhir:value "X110411319" ]
         ]
      ] ;
      fhir:MedicationDispense.performer [
         fhir:index 0 ;
         fhir:MedicationDispense.performer.actor [
           fhir:link <http://hl7.org/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> ;
           fhir:Reference.reference [ fhir:value "Organization/151f1697-7512-4e21-9466-1b75207475d8" ] ;
           fhir:Reference.identifier [
             fhir:Identifier.type [
               fhir:CodeableConcept.coding [
                 fhir:index 0 ;
                 fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
                 fhir:Coding.code [ fhir:value "PRN" ] ;
                 fhir:Coding.display [ fhir:value "Provider number" ]
               ]
             ] ;
             fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/sid/telematik-id" ] ;
             fhir:Identifier.value [ fhir:value "9-2.58.00000023" ]
           ] ;
           fhir:Reference.display [ fhir:value "gematik Apotheke" ]
         ]
      ] ;
      fhir:MedicationDispense.authorizingPrescription [
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/MedicationRequest/40df19aa-40e2-4ebc-a11d-9d232dcb0f67> ;
         fhir:Reference.reference [ fhir:value "MedicationRequest/40df19aa-40e2-4ebc-a11d-9d232dcb0f67" ]
      ] ;
      fhir:MedicationDispense.whenHandedOver [ fhir:value "2025-02-27"^^xsd:date] ;
      fhir:MedicationDispense.substitution [
         fhir:MedicationDispense.substitution.wasSubstituted [ fhir:value "false"^^xsd:boolean ]
      ] .

    <http://hl7.org/fhir/Medication/ab8addbd-c4c7-48d2-bf4b-4a7c99f9fd6e> a fhir:Medication .

    <http://hl7.org/fhir/MedicationRequest/40df19aa-40e2-4ebc-a11d-9d232dcb0f67> a fhir:MedicationRequest .

    <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/5aeaf266-a7ee-4e9d-bcb9-3c7dde96abad> a fhir:MedicationDispense ;
      fhir:Resource.id [ fhir:value "5aeaf266-a7ee-4e9d-bcb9-3c7dde96abad"] ;
      fhir:Resource.meta [
         fhir:Meta.versionId [ fhir:value "1" ] ;
         fhir:Meta.lastUpdated [ fhir:value "2025-12-03T14:00:00.244Z"^^xsd:dateTime ] ;
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.3.0>
         ]
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension" ] ;
         fhir:Extension.valueIdentifier [
           fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier" ] ;
           fhir:Identifier.value [ fhir:value "160.100.000.000.019.82_20251202" ]
         ]
      ] ;
      fhir:MedicationDispense.identifier [
         fhir:index 0 ;
         fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier" ] ;
         fhir:Identifier.value [ fhir:value "ad9696d3-bc6b-4033-bdd7-14b934dc4426_160.100.000.000.019.82" ]
      ] ;
      fhir:MedicationDispense.status [ fhir:value "completed"] ;
      fhir:MedicationDispense.medicationReference [
         fhir:link <http://hl7.org/fhir/Medication/3f0b0cb0-e8cf-4aaf-bad8-01a51619417b> ;
         fhir:Reference.reference [ fhir:value "Medication/3f0b0cb0-e8cf-4aaf-bad8-01a51619417b" ]
      ] ;
      fhir:MedicationDispense.subject [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:Identifier.value [ fhir:value "X110411319" ]
         ]
      ] ;
      fhir:MedicationDispense.performer [
         fhir:index 0 ;
         fhir:MedicationDispense.performer.actor [
           fhir:link <http://hl7.org/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> ;
           fhir:Reference.reference [ fhir:value "Organization/151f1697-7512-4e21-9466-1b75207475d8" ] ;
           fhir:Reference.identifier [
             fhir:Identifier.type [
               fhir:CodeableConcept.coding [
                 fhir:index 0 ;
                 fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
                 fhir:Coding.code [ fhir:value "PRN" ] ;
                 fhir:Coding.display [ fhir:value "Provider number" ]
               ]
             ] ;
             fhir:Identifier.system [ fhir:value "https://gematik.de/fhir/sid/telematik-id" ] ;
             fhir:Identifier.value [ fhir:value "9-2.58.00000023" ]
           ] ;
           fhir:Reference.display [ fhir:value "gematik Apotheke" ]
         ]
      ] ;
      fhir:MedicationDispense.authorizingPrescription [
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/MedicationRequest/0e7f16e4-d879-4a2c-8292-41c55201bbdd> ;
         fhir:Reference.reference [ fhir:value "MedicationRequest/0e7f16e4-d879-4a2c-8292-41c55201bbdd" ]
      ] ;
      fhir:MedicationDispense.whenHandedOver [ fhir:value "2025-12-03"^^xsd:date] ;
      fhir:MedicationDispense.substitution [
         fhir:MedicationDispense.substitution.wasSubstituted [ fhir:value "false"^^xsd:boolean ]
      ] .

    <http://hl7.org/fhir/Medication/3f0b0cb0-e8cf-4aaf-bad8-01a51619417b> a fhir:Medication .

    <http://hl7.org/fhir/MedicationRequest/0e7f16e4-d879-4a2c-8292-41c55201bbdd> a fhir:MedicationRequest .

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

    <http://hl7.org/fhir/Bundle/example-searchset-medicationdispense.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/Bundle/example-searchset-medicationdispense.ttl> .