@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 -------------------------------------------------------------------

<https://fhir.hl7.at/elga/emed/r4/Bundle/At-Emed-Journey-01-03-Bundle-Geplante-Abgaben-Tx> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "At-Emed-Journey-01-03-Bundle-Geplante-Abgaben-Tx"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-bundle-geplanteabgaben-tx" ;
       fhir:index 0 ;
       fhir:link <https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-bundle-geplanteabgaben-tx>
     ]
  ] ;
  fhir:Bundle.type [ fhir:value "transaction"] ;
  fhir:Bundle.timestamp [ fhir:value "2026-02-27T10:20:00+00:00"^^xsd:dateTime] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:e68fbdbe-a04e-408b-a98f-865af70b1741" ] ;
     fhir:Bundle.entry.resource <urn:uuid:e68fbdbe-a04e-408b-a98f-865af70b1741> ;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ] ;
       fhir:Bundle.entry.request.url [ fhir:value "MedicationRequest" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:bc10cdbb-2fa8-4176-ac50-1f2b82275010" ] ;
     fhir:Bundle.entry.resource <urn:uuid:bc10cdbb-2fa8-4176-ac50-1f2b82275010> ;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ] ;
       fhir:Bundle.entry.request.url [ fhir:value "MedicationRequest" ]
     ]
  ] .

<urn:uuid:e68fbdbe-a04e-408b-a98f-865af70b1741> a fhir:MedicationRequest ;
  fhir:Resource.id [ fhir:value "At-Emed-Journey-01-03-Mr-Geplante-Abgabe-01"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medicationrequest-geplanteabgabe" ;
       fhir:index 0 ;
       fhir:link <https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medicationrequest-geplanteabgabe>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div><a name=\"MedicationRequest_At-Emed-Journey-01-03-Mr-Geplante-Abgabe-01\"> </a>TODO: Some Narrative</div>"
  ] ;
  fhir:DomainResource.contained [
     a fhir:Medication ;
     fhir:index 0 ;
     fhir:Resource.id [ fhir:value "at-emed-journey-medication-ramipril" ] ;
     fhir:Resource.meta [
       fhir:Meta.profile [
         fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medication-standard-medikation" ;
         fhir:index 0 ;
         fhir:link <https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medication-standard-medikation>
       ]
     ] ;
     fhir:Medication.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem/asp-liste" ] ;
         fhir:Coding.code [ fhir:value "2450836" ] ;
         fhir:Coding.display [ fhir:value "RAMIPRIL HEX TBL 5MG" ]
       ]
     ]
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod" ] ;
     fhir:Extension.valuePeriod [
       fhir:Period.start [ fhir:value "2026-02-27"^^xsd:date ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ] ;
     fhir:Extension.valueMarkdown [ fhir:value "1-0-0-1 | Täglich: 1-0-0-0" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://fhir.hl7.at/elga/emed/r4/CodeSystem/MedicationRequestCategoryCS" ] ;
       fhir:Coding.code [ fhir:value "2" ] ;
       fhir:Coding.display [ fhir:value "Geplante Abgabe" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem/medikationrezeptart" ] ;
       fhir:Coding.code [ fhir:value "KASSEN" ] ;
       fhir:Coding.display [ fhir:value "Kassenrezept" ]
     ]
  ] ;
  fhir:MedicationRequest.medicationReference [
     fhir:Reference.reference [ fhir:value "#at-emed-journey-medication-ramipril" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://fhir.hl7.at/elga/emed/r4/Patient/At-Emed-Example-Patient-01> ;
     fhir:Reference.reference [ fhir:value "Patient/At-Emed-Example-Patient-01" ] ;
     fhir:Reference.display [ fhir:value "Anton Mustermann" ]
  ] ;
  fhir:MedicationRequest.authoredOn [ fhir:value "2026-02-27T08:10:00+00:00"^^xsd:dateTime] ;
  fhir:MedicationRequest.requester [
     fhir:link <https://fhir.hl7.at/elga/emed/r4/PractitionerRole/At-Emed-Example-PractitionerRole-01> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/At-Emed-Example-PractitionerRole-01" ] ;
     fhir:Reference.display [ fhir:value "Dr. Hausärztin" ]
  ] ;
  fhir:MedicationRequest.basedOn [
     fhir:index 0 ;
     fhir:link <https://fhir.hl7.at/elga/emed/r4/MedicationRequest/At-Emed-Journey-01-02-Mr-Planeintrag-01> ;
     fhir:Reference.reference [ fhir:value "MedicationRequest/At-Emed-Journey-01-02-Mr-Planeintrag-01" ] ;
     fhir:Reference.display [ fhir:value "Planeintrag 1" ]
  ] ;
  fhir:MedicationRequest.groupIdentifier [
     fhir:Identifier.value [ fhir:value "WYE82A2G8EEW" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-extension-dosage-category" ] ;
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "https://fhir.hl7.at/elga/emed/r4/CodeSystem/AtElgaEmedCodeSystemDosageCategory" ] ;
           fhir:Coding.code [ fhir:value "standard" ]
         ]
       ]
     ] ;
     fhir:Dosage.sequence [ fhir:value "1"^^xsd:integer ] ;
     fhir:Dosage.patientInstruction [ fhir:value "Nehmen Sie die Tablette vor dem Essen mit ausreichend Flüssigkeit ein." ] ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         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.route [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem/medikationartanwendung" ] ;
         fhir:Coding.code [ fhir:value "100000073619" ] ;
         fhir:Coding.display [ fhir:value "zum Einnehmen" ]
       ]
     ] ;
     fhir:Dosage.doseAndRate [
       fhir:index 0 ;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.unit [ fhir:value "Stück" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{Stueck}" ]
       ]
     ]
  ] ;
  fhir:MedicationRequest.dispenseRequest [
     fhir:MedicationRequest.dispenseRequest.validityPeriod [
       fhir:Period.end [ fhir:value "2026-03-27"^^xsd:date ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
     fhir:MedicationRequest.dispenseRequest.quantity [
       fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "Packung" ]
     ]
  ] .

<urn:uuid:bc10cdbb-2fa8-4176-ac50-1f2b82275010> a fhir:MedicationRequest ;
  fhir:Resource.id [ fhir:value "At-Emed-Journey-01-03-Mr-Geplante-Abgabe-02"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medicationrequest-geplanteabgabe" ;
       fhir:index 0 ;
       fhir:link <https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medicationrequest-geplanteabgabe>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div><a name=\"MedicationRequest_At-Emed-Journey-01-03-Mr-Geplante-Abgabe-02\"> </a>TODO: Some Narrative</div>"
  ] ;
  fhir:DomainResource.contained [
     a fhir:Medication ;
     fhir:index 0 ;
     fhir:Resource.id [ fhir:value "contained-medication-journey-01-03-02-magistral" ] ;
     fhir:Resource.meta [
       fhir:Meta.profile [
         fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medication-magistrale-zubereitung" ;
         fhir:index 0 ;
         fhir:link <https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-medication-magistrale-zubereitung>
       ]
     ] ;
     fhir:Medication.form [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem/medikationdarreichungsform" ] ;
         fhir:Coding.code [ fhir:value "100000073713" ] ;
         fhir:Coding.display [ fhir:value "Salbe" ]
       ]
     ] ;
     fhir:Medication.ingredient [
       fhir:index 0 ;
       fhir:Medication.ingredient.itemCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem/atc-deutsch-wido" ] ;
           fhir:Coding.code [ fhir:value "A11HA30" ] ;
           fhir:Coding.display [ fhir:value "Dexpanthenol" ]
         ]
       ] ;
       fhir:Medication.ingredient.strength [
         fhir:Ratio.numerator [
           fhir:Quantity.value [ fhir:value "5"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "g" ] ;
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
           fhir:Quantity.code [ fhir:value "g" ]
         ] ;
         fhir:Ratio.denominator [
           fhir:Quantity.value [ fhir:value "100"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "g" ] ;
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
           fhir:Quantity.code [ fhir:value "g" ]
         ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Medication.ingredient.itemCodeableConcept [
         fhir:CodeableConcept.text [ fhir:value "Salbengrundlage" ]
       ] ;
       fhir:Medication.ingredient.isActive [ fhir:value "false"^^xsd:boolean ] ;
       fhir:Medication.ingredient.strength [
         fhir:Ratio.numerator [
           fhir:Quantity.value [ fhir:value "95"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "g" ]
         ] ;
         fhir:Ratio.denominator [
           fhir:Quantity.value [ fhir:value "100"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "g" ]
         ]
       ]
     ]
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod" ] ;
     fhir:Extension.valuePeriod [
       fhir:Period.start [ fhir:value "2026-02-27"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-03-20"^^xsd:date ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ] ;
     fhir:Extension.valueMarkdown [ fhir:value "1-0-1-0 | Täglich 1-0-1-0" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://fhir.hl7.at/elga/emed/r4/CodeSystem/MedicationRequestCategoryCS" ] ;
       fhir:Coding.code [ fhir:value "2" ] ;
       fhir:Coding.display [ fhir:value "Geplante Abgabe" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem/medikationrezeptart" ] ;
       fhir:Coding.code [ fhir:value "KASSEN" ] ;
       fhir:Coding.display [ fhir:value "Kassenrezept" ]
     ]
  ] ;
  fhir:MedicationRequest.medicationReference [
     fhir:Reference.reference [ fhir:value "#contained-medication-journey-01-03-02-magistral" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://fhir.hl7.at/elga/emed/r4/Patient/At-Emed-Example-Patient-01> ;
     fhir:Reference.reference [ fhir:value "Patient/At-Emed-Example-Patient-01" ] ;
     fhir:Reference.display [ fhir:value "Anton Mustermann" ]
  ] ;
  fhir:MedicationRequest.authoredOn [ fhir:value "2026-02-27T10:20:00+00:00"^^xsd:dateTime] ;
  fhir:MedicationRequest.requester [
     fhir:link <https://fhir.hl7.at/elga/emed/r4/PractitionerRole/At-Emed-Example-PractitionerRole-01> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/At-Emed-Example-PractitionerRole-01" ] ;
     fhir:Reference.display [ fhir:value "Dr. Hausärztin" ]
  ] ;
  fhir:MedicationRequest.basedOn [
     fhir:index 0 ;
     fhir:link <https://fhir.hl7.at/elga/emed/r4/MedicationRequest/At-Emed-Journey-01-02-Mr-Planeintrag-02> ;
     fhir:Reference.reference [ fhir:value "MedicationRequest/At-Emed-Journey-01-02-Mr-Planeintrag-02" ] ;
     fhir:Reference.display [ fhir:value "Planeintrag 2" ]
  ] ;
  fhir:MedicationRequest.groupIdentifier [
     fhir:Identifier.value [ fhir:value "WYE82A2G8EEW" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "https://fhir.hl7.at/elga/emed/r4/StructureDefinition/at-elga-emed-extension-dosage-category" ] ;
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "https://fhir.hl7.at/elga/emed/r4/CodeSystem/AtElgaEmedCodeSystemDosageCategory" ] ;
           fhir:Coding.code [ fhir:value "standard" ]
         ]
       ]
     ] ;
     fhir:Dosage.sequence [ fhir:value "1"^^xsd:integer ] ;
     fhir:Dosage.patientInstruction [ fhir:value "Dünn auftragen." ] ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.boundsDuration [
           fhir:Quantity.value [ fhir:value "3"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "wk" ]
         ] ;
         fhir:Timing.repeat.frequency [ fhir:value "2"^^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:value "EVE" ;
           fhir:index 1
         ]
       ]
     ] ;
     fhir:Dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://termgit.elga.gv.at/CodeSystem-medikationartanwendung.html" ] ;
         fhir:Coding.code [ fhir:value "100000073566" ] ;
         fhir:Coding.display [ fhir:value "Anwendung auf der Haut" ]
       ]
     ]
  ] ;
  fhir:MedicationRequest.dispenseRequest [
     fhir:MedicationRequest.dispenseRequest.validityPeriod [
       fhir:Period.end [ fhir:value "2026-03-27"^^xsd:date ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
     fhir:MedicationRequest.dispenseRequest.quantity [
       fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "Packung" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.hl7.at/elga/emed/r4/Bundle/At-Emed-Journey-01-03-Bundle-Geplante-Abgaben-Tx.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

