@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 -------------------------------------------------------------------

<http://fhir.ehdsi.eu/core/MedicationRequest/f6a7b8c9-d0e1-2345-fabc-456789012345> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "f6a7b8c9-d0e1-2345-fabc-456789012345"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.ehdsi.eu/core/StructureDefinition/medicationRequest-myhealtheu-core"^^xsd:anyURI ;
       fhir:l <http://fhir.ehdsi.eu/core/StructureDefinition/medicationRequest-myhealtheu-core>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Metformin 500mg prescription - John Doe</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:l <http://fhir.ehdsi.eu/core/Medication/d4e5f6a7-b8c9-0123-defa-234567890123> ;
     fhir:reference [ fhir:v "Medication/d4e5f6a7-b8c9-0123-defa-234567890123" ]
  ] ; # 
  fhir:subject [
     fhir:l <http://fhir.ehdsi.eu/core/Patient/1d4bbc93-63b7-4f2b-8f0f-8380aa138f49> ;
     fhir:reference [ fhir:v "Patient/1d4bbc93-63b7-4f2b-8f0f-8380aa138f49" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2024-01-15"^^xsd:date] ; # 
  fhir:requester [
     fhir:l <http://fhir.ehdsi.eu/core/PractitionerRole/b975ec26-4ecf-4588-9fa2-afbb0d9fc530> ;
     fhir:reference [ fhir:v "PractitionerRole/b975ec26-4ecf-4588-9fa2-afbb0d9fc530" ]
  ] ; # 
  fhir:dosageInstruction ( [
     fhir:text [ fhir:v "500mg twice daily with meals" ] ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:route [
       fhir:coding ( [
         a sct:26643006 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "26643006" ] ;
         fhir:display [ fhir:v "Oral route" ]
       ] )
     ] ;
     fhir:doseAndRate ( [
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "500"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mg" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "mg" ]
       ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

