Implementation Guide
ePA Medication Service
Version 1.0.5-1 - release

## : ExampleEpaGetMedicationListBundle1 - 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 sct: <http://snomed.info/id/> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

     a fhir:Bundle ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "example-get-medication-list-bundle1"] ; #
      fhir:identifier [
    fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "urn:uuid:9e1f5895-ab0b-4237-856d-fa1065631400" ]
      ] ; #
      fhir:type [ fhir:v "searchset"] ; #
      fhir:timestamp [ fhir:v "2025-01-01T00:00:00Z"^^xsd:dateTime] ; #
      fhir:total [ fhir:v "16"^^xsd:nonNegativeInteger] ; #
      fhir:link ( [
    fhir:relation [ fhir:v "self" ] ;
    fhir:url [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/$medication-list&date=le2025-12-24&date=ge2025-01-01&_count=10&_offset=0"^^xsd:anyURI ]
      ] [
    fhir:relation [ fhir:v "first" ] ;
    fhir:url [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/$medication-list&date=le2025-12-24&date=ge2025-01-01&_count=10&_offset=0"^^xsd:anyURI ]
      ] [
    fhir:relation [ fhir:v "next" ] ;
    fhir:url [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/$medication-list&date=le2025-12-24&date=ge2025-01-01&_count=10&_offset=10"^^xsd:anyURI ]
      ] [
    fhir:relation [ fhir:v "last" ] ;
    fhir:url [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/$medication-list&date=le2025-12-24&date=ge2025-01-01&_count=10&_offset=10"^^xsd:anyURI ]
      ] ) ; #
      fhir:entry ( [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Medication/2d5a0317-b2df-4d7b-ad72-07f5f66f9f12"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/Medication/2d5a0317-b2df-4d7b-ad72-07f5f66f9f12> )
      ] [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/ebdd8651-3971-4ecc-b651-8e54083b0339"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/ebdd8651-3971-4ecc-b651-8e54083b0339> )
      ] [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/158311c5-c2da-4e2a-ac0b-0d54c9fe419c"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/158311c5-c2da-4e2a-ac0b-0d54c9fe419c> )
      ] [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/PractitionerRole/73a551f8-d8cd-4b44-823d-ab5f8aeab1aa"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/PractitionerRole/73a551f8-d8cd-4b44-823d-ab5f8aeab1aa> )
      ] [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Organization/be51e0d2-783d-4e21-b16b-1a4cd7403515"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/Organization/be51e0d2-783d-4e21-b16b-1a4cd7403515> )
      ] [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c> )
      ] [
    fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8"^^xsd:anyURI ] ;
        ( fhir:resource <http://epa4all/epa/medication/api/v1/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> )
      ] ) . #

    <http://epa4all/epa/medication/api/v1/fhir/Medication/2d5a0317-b2df-4d7b-ad72-07f5f66f9f12> a fhir:Medication ;
      fhir:id [ fhir:v "2d5a0317-b2df-4d7b-ad72-07f5f66f9f12"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"^^xsd:anyURI ;
    fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication>     ] )
      ] ; #
      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.153.303.260.460_202508220" ]     ]
      ] ) ; #
      fhir:identifier ( [
    fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "48E951DFE10F5669D3C66D581E5767DE32CFD788C94693E5C78193DB2D3F095B" ]
      ] [
    fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "5a2a0f6c-b1d9-46b9-b377-c61586d1aa1e_160.153.303.260.460" ]
      ] ) ; #
      fhir:code [
        ( fhir:coding [
    fhir:system [ fhir:v "http://fhir.de/CodeSystem/ifa/pzn"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "03953522" ] ;
    fhir:display [ fhir:v "Metoprolol-ratiopharm® 100 mg Tabletten" ]     ] [
    a sct:7092007 ;
    fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "7092007" ] ;
    fhir:display [ fhir:v "Product containing metoprolol (medicinal product)" ]     ] [
    fhir:system [ fhir:v "http://fhir.de/CodeSystem/bfarm/atc"^^xsd:anyURI ] ;
    fhir:version [ fhir:v "2022" ] ;
    fhir:code [ fhir:v "C07AB02" ] ;
    fhir:display [ fhir:v "Metoprolol" ]     ] )
      ] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:form [
        ( fhir:coding [
    fhir:system [ fhir:v "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"^^xsd:anyURI ] ;
    fhir:version [ fhir:v "1.10" ] ;
    fhir:code [ fhir:v "TAB" ] ;
    fhir:display [ fhir:v "Tabletten" ]     ] [
    a sct:385055001 ;
    fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "385055001" ] ;
    fhir:display [ fhir:v "Tablet (basic dose form)" ]     ] [
    fhir:system [ fhir:v "http://standardterms.edqm.eu"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "12200" ] ;
    fhir:display [ fhir:v "Tablet" ]     ] )
      ] ; #
      fhir:amount [
    fhir:numerator [
    fhir:value [ fhir:v "100"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "MilliGram" ] ;
    fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "mg" ]     ] ;
    fhir:denominator [
    fhir:value [ fhir:v "1"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "Tablet" ] ;
    fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "{Tablet}" ]     ]
      ] . #

    <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/ebdd8651-3971-4ecc-b651-8e54083b0339> a fhir:MedicationRequest ;
      fhir:id [ fhir:v "ebdd8651-3971-4ecc-b651-8e54083b0339"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"^^xsd:anyURI ;
    fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request>     ] )
      ] ; #
      fhir:extension ( [
        ( fhir:extension [
    fhir:url [ fhir:v "indicator"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] ) ;
    fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"^^xsd:anyURI ]
      ] ) ; #
      fhir:identifier ( [
    fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "160.153.303.257.459_20250122" ]
      ] [
    fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "6ae6a7ca-c9b5-46bf-9411-2ba49d96f988_160.153.303.257.459" ]
      ] ) ; #
      fhir:status [ fhir:v "completed"] ; #
      fhir:intent [ fhir:v "order"] ; #
      fhir:medication [
    a fhir:Reference ;
    fhir:reference [ fhir:v "Medication/2d5a0317-b2df-4d7b-ad72-07f5f66f9f12" ]
      ] ; #
      fhir:subject [
    fhir:identifier [
    fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "X110411319" ]     ]
      ] ; #
      fhir:authoredOn [ fhir:v "2025-08-22"^^xsd:date] ; #
      fhir:requester [
    fhir:reference [ fhir:v "Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c" ]
      ] ; #
      fhir:dosageInstruction ( [
    fhir:text [ fhir:v "1-1-1-0" ]
      ] ) ; #
      fhir:dispenseRequest [
    fhir:quantity [
    fhir:value [ fhir:v "1"^^xsd:decimal ] ;
    fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "{Package}" ]     ]
      ] ; #
      fhir:substitution [
    fhir:allowed [
    a fhir:boolean ;
    fhir:v false     ]
      ] . #

    <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/158311c5-c2da-4e2a-ac0b-0d54c9fe419c> a fhir:MedicationDispense ;
      fhir:id [ fhir:v "158311c5-c2da-4e2a-ac0b-0d54c9fe419c"] ; #
      fhir:meta [
        ( 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.153.303.260.460_202508220" ]     ]
      ] ) ; #
      fhir:identifier ( [
    fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "014e141a-df43-447c-927e-9d83ef7eddb3_160.153.303.260.460" ]
      ] ) ; #
      fhir:status [ fhir:v "completed"] ; #
      fhir:medication [
    a fhir:Reference ;
    fhir:reference [ fhir:v "Medication/2d5a0317-b2df-4d7b-ad72-07f5f66f9f12" ]
      ] ; #
      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:whenHandedOver [ fhir:v "2025-08-22"^^xsd:date] ; #
      fhir:dosageInstruction ( [
    fhir:text [ fhir:v "1-0-0-0" ]
      ] ) ; #
      fhir:substitution [
    fhir:wasSubstituted [ fhir:v false ]
      ] . #

    <http://epa4all/epa/medication/api/v1/fhir/PractitionerRole/73a551f8-d8cd-4b44-823d-ab5f8aeab1aa> a fhir:PractitionerRole ;
      fhir:id [ fhir:v "73a551f8-d8cd-4b44-823d-ab5f8aeab1aa"] ; #
      fhir:practitioner [
    fhir:reference [ fhir:v "Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c" ] ;
    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 "1-1.58.00000040" ]     ]
      ] ; #
      fhir:organization [
    fhir:reference [ fhir:v "Organization/be51e0d2-783d-4e21-b16b-1a4cd7403515" ] ;
    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.00000040" ]     ]
      ] . #

    <http://epa4all/epa/medication/api/v1/fhir/Organization/be51e0d2-783d-4e21-b16b-1a4cd7403515> a fhir:Organization ;
      fhir:id [ fhir:v "be51e0d2-783d-4e21-b16b-1a4cd7403515"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"^^xsd:anyURI ;
    fhir:link <https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory>     ] ) ;
        ( fhir:tag [
    fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/Origin"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "ldap" ]     ] )
      ] ; #
      fhir:identifier ( [
    fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "9-2.58.00000040" ]
      ] ) ; #
      fhir:active [ fhir:v true] ; #
      fhir:type ( [
        ( fhir:coding [
    fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "1.2.276.0.76.4.58" ] ;
    fhir:display [ fhir:v "Betriebsstätte gematik" ]     ] )
      ] ) ; #
      fhir:name [ fhir:v "gematik GmbH"] ; #
      fhir:alias ( [ fhir:v "gematik"] ) ; #
      fhir:address ( [
    fhir:text [ fhir:v "gematik GmbH\nFriedrichstr. 136,\n10117 Berlin" ] ;
        ( fhir:line [ fhir:v "Friedrichstr. 136" ] ) ;
    fhir:city [ fhir:v "Berlin" ] ;
    fhir:district [ fhir:v "Mitte" ] ;
    fhir:state [ fhir:v "Berlin" ] ;
    fhir:postalCode [ fhir:v "10117" ] ;
    fhir:country [ fhir:v "DE" ]
      ] ) ; #
      fhir:contact ( [
    fhir:purpose [
          ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/contactentity-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "ADMIN" ]       ] )     ] ;
    fhir:name [
    fhir:text [ fhir:v "gematik ITSM" ]     ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "betrieb@gematik.de" ]     ] )
      ] ) . #

    <http://epa4all/epa/medication/api/v1/fhir/Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c> a fhir:Practitioner ;
      fhir:id [ fhir:v "498c345f-31f5-4da6-9f04-00fa2bc8af7c"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"^^xsd:anyURI ;
    fhir:link <https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory>     ] ) ;
        ( fhir:tag [
    fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/Origin"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "ldap" ]     ] )
      ] ; #
      fhir:identifier ( [
    fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "1-1.58.00000040" ]
      ] [
    fhir:system [ fhir:v "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "123456789" ]
      ] ) ; #
      fhir:active [ fhir:v true] ; #
      fhir:name ( [
    fhir:text [ fhir:v "Dr. Max Manfred Mustermann" ] ;
    fhir:family [ fhir:v "Musterman" ] ;
        ( fhir:given [ fhir:v "Max" ] [ fhir:v "Manfred" ] ) ;
        ( fhir:prefix [ fhir:v "Dr." ] )
      ] ) ; #
      fhir:qualification ( [
    fhir:code [
          ( fhir:coding [
    fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/PractitionerProfessionOID"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "1.2.276.0.76.4.31" ]       ] )     ]
      ] [
    fhir:code [
          ( fhir:coding [
    fhir:system [ fhir:v "urn:oid:1.2.276.0.76.5.514"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "011001" ] ;
    fhir:display [ fhir:v "FA Allgemeinmedizin" ]       ] )     ]
      ] [
    fhir:code [
          ( fhir:coding [
    fhir:system [ fhir:v "urn:oid:1.2.276.0.76.5.514"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "141104" ] ;
    fhir:display [ fhir:v "FA Innere Medizin und Schwerpunkt Gastroenterologie" ]       ] )     ]
      ] ) . #

    <http://epa4all/epa/medication/api/v1/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8> a fhir:Organization ;
      fhir:id [ fhir:v "151f1697-7512-4e21-9466-1b75207475d8"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"^^xsd:anyURI ;
    fhir:link <https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory>     ] ) ;
        ( fhir:tag [
    fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/Origin"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "ldap" ]     ] )
      ] ; #
      fhir:identifier ( [
    fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "9-2.58.00000040" ]
      ] ) ; #
      fhir:active [ fhir:v true] ; #
      fhir:type ( [
        ( fhir:coding [
    fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "1.2.276.0.76.4.54" ] ;
    fhir:display [ fhir:v "Öffentliche Apotheke" ]     ] )
      ] ) ; #
      fhir:name [ fhir:v "gematik Apotheke"] ; #
      fhir:alias ( [ fhir:v "Apotheke"] ) ; #
      fhir:address ( [
    fhir:text [ fhir:v "gematik Apotheke\nFriedrichstr. 136,\n10117 Berlin" ] ;
        ( fhir:line [ fhir:v "Friedrichstr. 136" ] ) ;
    fhir:city [ fhir:v "Berlin" ] ;
    fhir:district [ fhir:v "Mitte" ] ;
    fhir:state [ fhir:v "Berlin" ] ;
    fhir:postalCode [ fhir:v "10117" ] ;
    fhir:country [ fhir:v "DE" ]
      ] ) ; #
      fhir:contact ( [
    fhir:purpose [
          ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/contactentity-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "ADMIN" ]       ] )     ] ;
    fhir:name [
    fhir:text [ fhir:v "gematik ITSM" ]     ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "betrieb@gematik.de" ]     ] )
      ] ) . #