@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/MedicationStatement/f3988023-2313-4645-bd6b-f9e37cfb6fc7> a fhir:MedicationStatement ;
  fhir:nodeRole fhir:treeRoot ;
  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:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationStatement f3988023-2313-4645-bd6b-f9e37cfb6fc7</b></p><a name=\"f3988023-2313-4645-bd6b-f9e37cfb6fc7\"> </a><a name=\"hcf3988023-2313-4645-bd6b-f9e37cfb6fc7\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">version: 2; Last updated: 2025-05-22 14:43:34+0000</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-epa-medication-statement.html\">EPA MedicationStatement</a></p></div><p><b>RxPrescriptionProcessIdentifierExtension</b>: <code>https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier</code>/160.100.000.000.006.24_20250520</p><p><b>ContextExtension</b>: PRESCRIPTION</p><p><b>status</b>: Unknown</p><p><b>medication</b>: <a href=\"Medication-bb91cde8-0426-4f4b-a766-5d818d0605bd.html\">Medication 00814665</a></p><p><b>subject</b>: Identifier: NamingSystemKVID/X110411319</p><p><b>effective</b>: 2025-05-22 --&gt; (ongoing)</p><p><b>dateAsserted</b>: 2025-05-22</p><p><b>derivedFrom</b>: </p><ul><li><a href=\"MedicationRequest-3191d752-3adf-4c7f-848d-8d43766fed72.html\">MedicationRequest: extension = ; identifier = https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier#160.100.000.000.006.24_20250520,https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier#bb91cde8-0426-4f4b-a766-5d818d0605bd_160.100.000.000.006.24; status = active; intent = filler-order; medication[x] = -&gt;Medication 00814665; authoredOn = 2025-05-20</a></li><li><a href=\"MedicationDispense-4e6e1623-778e-44a3-b208-8479f5339e43.html\">MedicationDispense: extension = https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier#160.100.000.000.006.24_20250520; identifier = https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier#5d8fbf7c-bdb0-44c2-95fe-423ae0404ccd_160.100.000.000.006.24; status = completed; medication[x] = -&gt;Medication 00814665; whenHandedOver = 2025-05-22</a></li></ul><blockquote><p><b>dosage</b></p><blockquote><p><b>Generated Dosage Instructions</b></p><ul><li>algorithm: <a href=\"http://ig.fhir.de/igs/medication/1.0.0-ballot/CodeSystem-DosageTextAlgorithm.html#DosageTextAlgorithm-GematikDosageTextGenerator\">Dosage Text Algorithm CodeSystem GematikDosageTextGenerator</a>: Gematik Dosage Text Generator (version = 1.0.0 )</li><li>algorithmVersion: 1.0.0</li><li>language: de-DE</li><li>text: 2 x täglich: morgens und abends — je 1 Stück</li></ul></blockquote><p><b>timing</b>: Morning, Evening, 2 per 1 day</p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1 Stück<span style=\"background: LightGoldenRodYellow\"> (Details: KBV_CS_SFHIR_BMP_DOSIEREINHEIT  code1 = '1')</span></td></tr></table></blockquote></div>"^^rdf:XMLLiteral
  ] ; # 
  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" ]
       ]
     ] )
  ] ) . # 

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

