@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 -------------------------------------------------------------------

<https://gematik.de/fhir/epa-medication/Bundle/example-get-medication-list-bundle1> 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/Patient/641f4cf5-e54b-406c-b8a8-1d3292fd5087"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Patient/641f4cf5-e54b-406c-b8a8-1d3292fd5087> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Provenance/de42aa65-f84e-4e96-acfb-b9fd5e104b2d"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Provenance/de42aa65-f84e-4e96-acfb-b9fd5e104b2d> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Medication/ec4d55a0-dec1-46b7-96cc-096845b74c4b"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Medication/ec4d55a0-dec1-46b7-96cc-096845b74c4b> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/bb91cde8-0426-4f4b-a766-5d818d0605bd"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/bb91cde8-0426-4f4b-a766-5d818d0605bd> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     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 "include" ]
     ]
  ] [
     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:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Organization/ad7dc0e7-cb44-4740-ba67-cb573e29d596"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Organization/ad7dc0e7-cb44-4740-ba67-cb573e29d596> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     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:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     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> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/1cb0f018-178d-4488-a6b4-2be32dbda784"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/1cb0f018-178d-4488-a6b4-2be32dbda784> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Provenance/a9def8f0-5f57-4ee7-948d-819c3ab6e6c9"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Provenance/a9def8f0-5f57-4ee7-948d-819c3ab6e6c9> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Medication/ef5d5baf-0c42-4240-9604-7fba9cea926d"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Medication/ef5d5baf-0c42-4240-9604-7fba9cea926d> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Provenance/176eec9c-8d5a-46a7-96e3-7af3f68c49ed"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Provenance/176eec9c-8d5a-46a7-96e3-7af3f68c49ed> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] [
     fhir:fullUrl [ fhir:v "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c"^^xsd:anyURI ] ;
     fhir:resource ( <http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/Patient/641f4cf5-e54b-406c-b8a8-1d3292fd5087> a fhir:Patient ;
  fhir:id [ fhir:v "641f4cf5-e54b-406c-b8a8-1d3292fd5087"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa/StructureDefinition/epa-patient"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa/StructureDefinition/epa-patient>
     ] )
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "X110411319" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:family [ fhir:v "Mustermann" ] ;
     fhir:given ( [ fhir:v "Max" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1976-02-01"^^xsd:date] . # 

<http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "f3988023-2313-4645-bd6b-f9e37cfb6fc7"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     fhir:lastUpdated [ fhir:v "2025-05-22T14:43:34.244Z"^^xsd:dateTime ] ;
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement>
     ] )
  ] ; # 
  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:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "PRESCRIPTION"
     ]
  ] ) ; # 
  fhir:status [ fhir:v "unknown"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/bb91cde8-0426-4f4b-a766-5d818d0605bd> ;
     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:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2025-05-22"^^xsd:date ]
  ] ; # 
  fhir:dateAsserted [ fhir:v "2025-05-22"^^xsd:date] ; # 
  fhir:derivedFrom ( [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationRequest/3191d752-3adf-4c7f-848d-8d43766fed72> ;
     fhir:reference [ fhir:v "MedicationRequest/3191d752-3adf-4c7f-848d-8d43766fed72" ]
  ] [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationDispense/4e6e1623-778e-44a3-b208-8479f5339e43> ;
     fhir:reference [ fhir:v "MedicationDispense/4e6e1623-778e-44a3-b208-8479f5339e43" ]
  ] ) ; # 
  fhir:dosage ( [
     fhir:extension ( [
       fhir:extension ( [
         fhir:url [ fhir:v "algorithm"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:Coding ;
           fhir:system [ fhir:v "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"^^xsd:anyURI ] ;
           fhir:version [ fhir:v "1.0.0" ] ;
           fhir:code [ fhir:v "GematikDosageTextGenerator" ]
         ]
       ] [
         fhir:url [ fhir:v "algorithmVersion"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "1.0.0"
         ]
       ] [
         fhir:url [ fhir:v "language"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:code ;
           fhir:v "de-DE"
         ]
       ] [
         fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "2 x täglich: morgens und abends — je 1 Stück"
         ]
       ] ) ;
       fhir:url [ fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"^^xsd:anyURI ]
     ] ) ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ] ;
         fhir:when ( [ fhir:v "MORN" ] [ fhir:v "EVE" ] )
       ]
     ] ;
     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:code [ fhir:v "1" ]
       ]
     ] )
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/Provenance/de42aa65-f84e-4e96-acfb-b9fd5e104b2d> a fhir:Provenance ;
  fhir:id [ fhir:v "de42aa65-f84e-4e96-acfb-b9fd5e104b2d"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance>
     ] )
  ] ; # 
  fhir:target ( [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7/_history/2> ;
     fhir:reference [ fhir:v "MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7/_history/2" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2025-05-22T14:43:34.244Z"^^xsd:dateTime] ; # 
  fhir:activity [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-DataOperation"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "UPDATE" ]
     ] )
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "author" ]
       ] )
     ] ;
     fhir:who [
       fhir:display [ fhir:v "MEDSVC" ]
     ]
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/Medication/ec4d55a0-dec1-46b7-96cc-096845b74c4b> a fhir:Medication ;
  fhir:id [ fhir:v "ec4d55a0-dec1-46b7-96cc-096845b74c4b"] ; # 
  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/drug-category-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Coding ;
       fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "00" ]
     ]
  ] [
     fhir:url [ fhir:v "http://fhir.de/StructureDefinition/normgroesse"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "N1"
     ]
  ] [
     fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:boolean ;
       fhir:v false
     ]
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://fhir.de/CodeSystem/ifa/pzn"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "00814665" ]
     ] ) ;
     fhir:text [ fhir:v "Januvia® 50 mg 28 Filmtabletten N1" ]
  ] ; # 
  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:code [ fhir:v "FTA" ] ;
       fhir:display [ fhir:v "Tabletten" ]
     ] )
  ] . # 

<http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/bb91cde8-0426-4f4b-a766-5d818d0605bd> a fhir:MedicationRequest ;
  fhir:id [ fhir:v "3191d752-3adf-4c7f-848d-8d43766fed72"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     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-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.100.000.000.006.24_20250520" ]
  ] [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "bb91cde8-0426-4f4b-a766-5d818d0605bd_160.100.000.000.006.24" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "filler-order"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/bb91cde8-0426-4f4b-a766-5d818d0605bd> ;
     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:authoredOn [ fhir:v "2025-05-20"^^xsd:date] ; # 
  fhir:requester [
     fhir:link <https://gematik.de/fhir/epa-medication/PractitionerRole/73a551f8-d8cd-4b44-823d-ab5f8aeab1aa> ;
     fhir:reference [ fhir:v "PractitionerRole/73a551f8-d8cd-4b44-823d-ab5f8aeab1aa" ]
  ] ; # 
  fhir:dosageInstruction ( [
     fhir:extension ( [
       fhir:extension ( [
         fhir:url [ fhir:v "algorithm"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:Coding ;
           fhir:system [ fhir:v "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"^^xsd:anyURI ] ;
           fhir:version [ fhir:v "1.0.0" ] ;
           fhir:code [ fhir:v "GematikDosageTextGenerator" ]
         ]
       ] [
         fhir:url [ fhir:v "algorithmVersion"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "1.0.0"
         ]
       ] [
         fhir:url [ fhir:v "language"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:code ;
           fhir:v "de-DE"
         ]
       ] [
         fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "2 x täglich: morgens und abends — je 1 Stück"
         ]
       ] ) ;
       fhir:url [ fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"^^xsd:anyURI ]
     ] ) ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ] ;
         fhir:when ( [ fhir:v "MORN" ] [ fhir:v "EVE" ] )
       ]
     ] ;
     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:code [ fhir:v "1" ]
       ]
     ] )
  ] ) ; # 
  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 true
     ]
  ] . # 

<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:link <https://gematik.de/fhir/epa-medication/Medication/bb91cde8-0426-4f4b-a766-5d818d0605bd> ;
     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:link <https://gematik.de/fhir/epa-medication/Organization/151f1697-7512-4e21-9466-1b75207475d8> ;
       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:link <https://gematik.de/fhir/epa-medication/MedicationRequest/3191d752-3adf-4c7f-848d-8d43766fed72> ;
     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/PractitionerRole/73a551f8-d8cd-4b44-823d-ab5f8aeab1aa> a fhir:PractitionerRole ;
  fhir:id [ fhir:v "73a551f8-d8cd-4b44-823d-ab5f8aeab1aa"] ; # 
  fhir:practitioner [
     fhir:link <https://gematik.de/fhir/epa-medication/Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c> ;
     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.00000056" ]
     ] ;
     fhir:display [ fhir:v "Dr. Max Manfred Mustermann" ]
  ] ; # 
  fhir:organization [
     fhir:link <https://gematik.de/fhir/epa-medication/Organization/ad7dc0e7-cb44-4740-ba67-cb573e29d596> ;
     fhir:reference [ fhir:v "Organization/ad7dc0e7-cb44-4740-ba67-cb573e29d596" ] ;
     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.00000045" ]
     ] ;
     fhir:display [ fhir:v "Praxis Dr. med. Max Mustermann" ]
  ] . # 

<http://epa4all/epa/medication/api/v1/fhir/Organization/ad7dc0e7-cb44-4740-ba67-cb573e29d596> a fhir:Organization ;
  fhir:id [ fhir:v "ad7dc0e7-cb44-4740-ba67-cb573e29d596"] ; # 
  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.00000045" ]
  ] [
     fhir:system [ fhir:v "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "012300004" ]
  ] ) ; # 
  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.50" ] ;
       fhir:display [ fhir:v "Betriebsstätte Arzt" ]
     ] )
  ] ) ; # 
  fhir:name [ fhir:v "Praxis Dr. med. Max Mustermann"] ; # 
  fhir:address ( [
     fhir:type [ fhir:v "both" ] ;
     fhir:line ( [ fhir:v "Musterstr. 1" ] [ fhir:v "Mitte" ] ) ;
     fhir:city [ fhir:v "Darmstadt" ] ;
     fhir:postalCode [ fhir:v "64283" ] ;
     fhir:country [ fhir:v "DE" ]
  ] [
     fhir:type [ fhir:v "postal" ] ;
     fhir:line ( [ fhir:v "45678" ] ) ;
     fhir:city [ fhir:v "Darmstadt" ] ;
     fhir:country [ fhir:v "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.00000056" ]
  ] [
     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." ] )
  ] ) . # 

<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.00000023" ]
  ] ) ; # 
  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" ]
     ] )
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/1cb0f018-178d-4488-a6b4-2be32dbda784> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "1cb0f018-178d-4488-a6b4-2be32dbda784"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ] ;
     fhir:lastUpdated [ fhir:v "2026-08-18T14:43:33.244Z"^^xsd:dateTime ] ;
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement>
     ] )
  ] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "MANUAL"
     ]
  ] ) ; # 
  fhir:status [ fhir:v "unknown"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/ef5d5baf-0c42-4240-9604-7fba9cea926d> ;
     fhir:reference [ fhir:v "Medication/ef5d5baf-0c42-4240-9604-7fba9cea926d" ]
  ] ; # 
  fhir:subject [
     fhir:identifier [
       fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "X110411319" ]
     ]
  ] ; # 
  fhir:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2026-08-18"^^xsd:date ]
  ] ; # 
  fhir:dateAsserted [ fhir:v "2026-08-18"^^xsd:date] . # 

<http://epa4all/epa/medication/api/v1/fhir/Provenance/a9def8f0-5f57-4ee7-948d-819c3ab6e6c9> a fhir:Provenance ;
  fhir:id [ fhir:v "f35a13e2-d82c-4826-97d7-b7e32721c4af"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance>
     ] )
  ] ; # 
  fhir:target ( [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationStatement/1cb0f018-178d-4488-a6b4-2be32dbda784/_history/1> ;
     fhir:reference [ fhir:v "MedicationStatement/1cb0f018-178d-4488-a6b4-2be32dbda784/_history/1" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2026-08-18T14:43:33.344Z"^^xsd:dateTime] ; # 
  fhir:activity [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-DataOperation"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "CREATE" ]
     ] )
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "author" ]
       ] )
     ] ;
     fhir:who [
       fhir:link <https://gematik.de/fhir/epa-medication/Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5> ;
       fhir:reference [ fhir:v "Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5" ] ;
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "PRN" ]
           ] )
         ] ;
         fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "9-2.58.00000060" ]
       ] ;
       fhir:display [ fhir:v "Die Apotheke" ]
     ]
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/Medication/ef5d5baf-0c42-4240-9604-7fba9cea926d> a fhir:Medication ;
  fhir:id [ fhir:v "ef5d5baf-0c42-4240-9604-7fba9cea926d"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ] ;
     fhir:lastUpdated [ fhir:v "2026-08-18T14:43:33.244Z"^^xsd:dateTime ] ;
     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:identifier ( [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "004C0F718C63EFADC20D838B772BD4DC4C4E6EB31293B6F689E624534A9C56CD" ]
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://fhir.de/CodeSystem/ifa/pzn"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "11722423" ]
     ] ) ;
     fhir:text [ fhir:v "IBU-RATIOPHARM direkt 400 mg Pulver zum Einnehmen 20 St Pulver" ]
  ] ; # 
  fhir:form [
     fhir:coding ( [
       fhir:system [ fhir:v "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "PUE" ] ;
       fhir:display [ fhir:v "Pulver zum Einnehmen" ]
     ] )
  ] . # 

<http://epa4all/epa/medication/api/v1/fhir/Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5> a fhir:Organization ;
  fhir:id [ fhir:v "8B421590-9F7F-46BE-BD1E-C987063AC4F5"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/ti/StructureDefinition/ti-organization"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/ti/StructureDefinition/ti-organization>
     ] )
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "9-2.58.00000060" ]
  ] ) ; # 
  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 "Die Apotheke"] ; # 
  fhir:alias ( [ fhir:v "Apotheke"] ) ; # 
  fhir:address ( [
     fhir:text [ fhir:v "Die 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" ]
     ] )
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "f29f1d0c-be05-4b0d-a335-3e508da39c0c"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     fhir:lastUpdated [ fhir:v "2026-11-01T15:43:33.244Z"^^xsd:dateTime ] ;
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement>
     ] )
  ] ; # 
  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.007.24_20261101" ]
     ]
  ] [
     fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "PRESCRIPTION"
     ]
  ] ) ; # 
  fhir:basedOn ( [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5> ;
     fhir:extension ( [
       fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:boolean ;
         fhir:v true
       ]
     ] ) ;
     fhir:reference [ fhir:v "MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5" ]
  ] ) ; # 
  fhir:status [ fhir:v "unknown"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e> ;
     fhir:reference [ fhir:v "Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e" ]
  ] ; # 
  fhir:subject [
     fhir:identifier [
       fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "X110411319" ]
     ]
  ] ; # 
  fhir:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2025-11-01"^^xsd:date ]
  ] ; # 
  fhir:dateAsserted [ fhir:v "2026-11-01"^^xsd:date] ; # 
  fhir:derivedFrom ( [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8> ;
     fhir:reference [ fhir:v "MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8" ]
  ] [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c> ;
     fhir:reference [ fhir:v "MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c" ]
  ] ) ; # 
  fhir:dosage ( [
     fhir:extension ( [
       fhir:extension ( [
         fhir:url [ fhir:v "algorithm"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:Coding ;
           fhir:system [ fhir:v "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"^^xsd:anyURI ] ;
           fhir:version [ fhir:v "1.0.0" ] ;
           fhir:code [ fhir:v "GematikDosageTextGenerator" ]
         ]
       ] [
         fhir:url [ fhir:v "algorithmVersion"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "1.0.0"
         ]
       ] [
         fhir:url [ fhir:v "language"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:code ;
           fhir:v "de-DE"
         ]
       ] [
         fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "täglich: morgens — je 1 Stück"
         ]
       ] ) ;
       fhir:url [ fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"^^xsd:anyURI ]
     ] ) ;
     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:code [ fhir:v "1" ]
       ]
     ] )
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/Provenance/176eec9c-8d5a-46a7-96e3-7af3f68c49ed> a fhir:Provenance ;
  fhir:id [ fhir:v "176eec9c-8d5a-46a7-96e3-7af3f68c49ed"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance>
     ] )
  ] ; # 
  fhir:target ( [
     fhir:link <https://gematik.de/fhir/epa-medication/MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c/_history/2> ;
     fhir:reference [ fhir:v "MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c/_history/2" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2026-11-01T15:43:33.244Z"^^xsd:dateTime] ; # 
  fhir:activity [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-DataOperation"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "UPDATE" ]
     ] )
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "author" ]
       ] )
     ] ;
     fhir:who [
       fhir:display [ fhir:v "MEDSVC" ]
     ]
  ] ) . # 

<http://epa4all/epa/medication/api/v1/fhir/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e> a fhir:Medication ;
  fhir:id [ fhir:v "fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     fhir:lastUpdated [ fhir:v "2026-11-01T14:43:33.244Z"^^xsd:dateTime ] ;
     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.100.000.000.007.24_20261101" ]
     ]
  ] [
     fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Coding, sct:781405001 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "781405001" ] ;
       fhir:display [ fhir:v "Medicinal product package (product)" ]
     ]
  ] [
     fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Coding ;
       fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "00" ]
     ]
  ] [
     fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:boolean ;
       fhir:v false
     ]
  ] [
     fhir:url [ fhir:v "http://fhir.de/StructureDefinition/normgroesse"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "N1"
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "5CA9B89A31D81FFF6869E6A93B192C03C7F715FC4A568FB060630DD639F94EF1" ]
  ] [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "a3197c39-d03c-45fa-bcb7-b32578143c56_160.100.000.000.007.24" ]
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://fhir.de/CodeSystem/ifa/pzn"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "06313728" ]
     ] ) ;
     fhir:text [ fhir:v "Sumatriptan-1a Pharma 100 mg Tabletten" ]
  ] ; # 
  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:code [ fhir:v "TAB" ] ;
       fhir:display [ fhir:v "Tabletten" ]
     ] )
  ] ; # 
  fhir:amount [
     fhir:numerator [
       fhir:extension ( [
         fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "20 St."
         ]
       ] ) ;
       fhir:value [ fhir:v "20"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "St" ]
     ] ;
     fhir:denominator [
       fhir:value [ fhir:v "1"^^xsd:decimal ]
     ]
  ] . # 

<http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8> a fhir:MedicationRequest ;
  fhir:id [ fhir:v "4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     fhir:lastUpdated [ fhir:v "2026-11-01T14:43:33.244Z"^^xsd:dateTime ] ;
     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.100.000.000.007.24_20250425" ]
  ] [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "5f4bc41c-480e-4ee4-b58e-a99268c1a1d0_160.100.000.000.007.24" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "filler-order"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e> ;
     fhir:reference [ fhir:v "Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e" ]
  ] ; # 
  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 "2026-11-01"^^xsd:date] ; # 
  fhir:requester [
     fhir:link <https://gematik.de/fhir/epa-medication/PractitionerRole/b9eb9668-b61e-43b5-b3ea-485234836d59> ;
     fhir:reference [ fhir:v "PractitionerRole/b9eb9668-b61e-43b5-b3ea-485234836d59" ]
  ] ; # 
  fhir:basedOn ( [
     fhir:identifier [
       fhir:system [ fhir:v "https://gematik.de/fhir/sid/emp-identifier"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8" ]
     ]
  ] ) ; # 
  fhir:dosageInstruction ( [
     fhir:extension ( [
       fhir:extension ( [
         fhir:url [ fhir:v "algorithm"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:Coding ;
           fhir:system [ fhir:v "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"^^xsd:anyURI ] ;
           fhir:version [ fhir:v "1.0.0" ] ;
           fhir:code [ fhir:v "GematikDosageTextGenerator" ]
         ]
       ] [
         fhir:url [ fhir:v "algorithmVersion"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "1.0.0"
         ]
       ] [
         fhir:url [ fhir:v "language"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:code ;
           fhir:v "de-DE"
         ]
       ] [
         fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:string ;
           fhir:v "täglich: morgens — je 1 Stück"
         ]
       ] ) ;
       fhir:url [ fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"^^xsd:anyURI ]
     ] ) ;
     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:code [ fhir:v "1" ]
       ]
     ] )
  ] ) ; # 
  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 true
     ]
  ] . # 

<http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c> a fhir:MedicationDispense ;
  fhir:id [ fhir:v "fa0c29e1-c4e7-4f08-91ab-598a2233867c"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ] ;
     fhir:lastUpdated [ fhir:v "2026-11-01T15: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.007.24_20261101" ]
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "1da91bd3-d5cb-459b-a270-32fad7d5d5d5_160.100.000.000.007.24" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e> ;
     fhir:reference [ fhir:v "Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e" ]
  ] ; # 
  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:link <https://gematik.de/fhir/epa-medication/Organization/151f1697-7512-4e21-9466-1b75207475d8> ;
       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:link <https://gematik.de/fhir/epa-medication/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8> ;
     fhir:reference [ fhir:v "MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8" ]
  ] ) ; # 
  fhir:whenHandedOver [ fhir:v "2026-11-01"^^xsd:date] ; # 
  fhir:substitution [
     fhir:wasSubstituted [ fhir:v false ]
  ] . # 

# -------------------------------------------------------------------------------------

