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

<https://gematik.de/fhir/epa-medication/MedicationRequest/08cb8487-2758-406c-999a-e23a05e63c0b> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "08cb8487-2758-406c-999a-e23a05e63c0b"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     fhir:lastUpdated [ fhir:v "2025-09-08T14:50:01.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.011.09_20250906" ]
  ] [
     fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "59b9fa64-4ca1-4bd2-8388-652d0fec32b2_160.100.000.000.011.09" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:intent [ fhir:v "filler-order"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://gematik.de/fhir/epa-medication/Medication/19549515-60a8-4e1c-b86a-49518053fe9f> ;
     fhir:reference [ fhir:v "Medication/19549515-60a8-4e1c-b86a-49518053fe9f" ]
  ] ; # 
  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-09-06"^^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 "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:unit [ fhir:v "Packung" ]
     ]
  ] ; # 
  fhir:substitution [
     fhir:allowed [
       a fhir:boolean ;
       fhir:v true
     ]
  ] . # 

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

