@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/MedicationStatement/e5f6a7b8-c9d0-1234-efab-345678901234> a fhir:MedicationStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "e5f6a7b8-c9d0-1234-efab-345678901234"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.ehdsi.eu/core/StructureDefinition/medicationStatement-myhealtheu-core"^^xsd:anyURI ;
       fhir:l <http://fhir.ehdsi.eu/core/StructureDefinition/medicationStatement-myhealtheu-core>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Metformin 500mg - active - John Doe</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  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:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2015-07-01"^^xsd:date ]
  ] ; # 
  fhir:informationSource [
     fhir:l <http://fhir.ehdsi.eu/core/Practitioner/b06b2c2c-15dd-4e58-b27e-37326ba51407> ;
     fhir:reference [ fhir:v "Practitioner/b06b2c2c-15dd-4e58-b27e-37326ba51407" ]
  ] ; # 
  fhir:dosage ( [
     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" ]
       ] )
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

