@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://ig.fhir.de/igs/medication/MedicationRequest/Example-MR-Dosage-1000-startandenddate> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Example-MR-Dosage-1000-startandenddate"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://ig.fhir.de/igs/medication/StructureDefinition/MedicationRequestDgMP" ;
       fhir:index 0 ;
       fhir:link <http://ig.fhir.de/igs/medication/StructureDefinition/MedicationRequestDgMP>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest Example-MR-Dosage-1000-startandenddate</b></p><a name=\"Example-MR-Dosage-1000-startandenddate\"> </a><a name=\"hcExample-MR-Dosage-1000-startandenddate\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-MedicationRequestDgMP.html\">Medication Request dgMP</a></p></div><p><b>R5: Full representation of the dosage instructions (new)</b>: </p><div><p>Vom 05.06.2026 bis zum 05.07.2026: 1-0-0-0 Stück</p>\n</div><blockquote><p><b>Generated Dosage Instructions Meta</b></p><ul><li>algorithmVersion: 1.1.0-beta-1</li><li>language: de-DE</li></ul></blockquote><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>medication</b>: <span title=\"Codes:\">Ibuprofen 400mg</span></p><p><b>subject</b>: Patient</p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: Morning, Once 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>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ] ;
     fhir:Extension.valueMarkdown [ fhir:value "Vom 05.06.2026 bis zum 05.07.2026: 1-0-0-0 Stück" ]
  ], [
     fhir:index 1 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "algorithmVersion" ] ;
       fhir:Extension.valueString [ fhir:value "1.1.0-beta-1" ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "language" ] ;
       fhir:Extension.valueCode [ fhir:value "de-DE" ]
     ] ;
     fhir:Extension.url [ fhir:value "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.medicationCodeableConcept [
     fhir:CodeableConcept.text [ fhir:value "Ibuprofen 400mg" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:Reference.display [ fhir:value "Patient" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.boundsPeriod [
           fhir:Period.start [ fhir:value "2026-06-05"^^xsd:date ] ;
           fhir:Period.end [ fhir:value "2026-07-05"^^xsd:date ]
         ] ;
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodUnit [ fhir:value "d" ] ;
         fhir:Timing.repeat.when [
           fhir:value "MORN" ;
           fhir:index 0
         ]
       ]
     ] ;
     fhir:Dosage.doseAndRate [
       fhir:index 0 ;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "Stück" ] ;
         fhir:Quantity.system [ fhir:value "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT" ] ;
         fhir:Quantity.code [ fhir:value "1" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://ig.fhir.de/igs/medication/MedicationRequest/Example-MR-Dosage-1000-startandenddate.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

