Implementation Guide
ePA Medication Service
Version 1.2.0-ballot.2 - draft

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

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

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

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

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