@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://hl7.org/fhir/MedicationAdministration/medadmin0301> a fhir:MedicationAdministration ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "medadmin0301"] ; # 
  fhir:contained ( [
     a fhir:Medication ;
     fhir:id [ fhir:v "med0301" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/sid/ndc"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/sid/ndc>
         ] ;
         fhir:code [ fhir:v "0409-6531-02" ] ;
         fhir:display [ fhir:v "Vancomycin Hydrochloride, 10 VIAL in 1 TRAY (0409-6531-02) > 1 INJECTION, POWDER, LYOPHILIZED, FOR SOLUTION in 1 VIAL (0409-6531-12) (package)" ]
       ] ) ; #   Vancomycin Hydrochloride (VANCOMYCIN HYDROCHLORIDE)\"  
       fhir:text [ fhir:v "Vancomycin Hydrochloride (VANCOMYCIN HYDROCHLORIDE)" ]
     ]
  ] [
     a fhir:Provenance ;
     fhir:id [ fhir:v "signature" ] ;
     fhir:target ( [
       fhir:l <http://hl7.org/fhir/ServiceRequest/physiotherapy> ;
       fhir:reference [ fhir:v "ServiceRequest/physiotherapy" ]
     ] ) ;
     fhir:recorded [ fhir:v "2017-02-01T17:23:07Z"^^xsd:dateTime ] ;
     fhir:agent ( [
       fhir:role ( [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v3-ParticipationType>
           ] ;
           fhir:code [ fhir:v "AUT" ]
         ] )
       ] ) ;
       fhir:who [
         fhir:l <http://hl7.org/fhir/Practitioner/example> ;
         fhir:reference [ fhir:v "Practitioner/example" ] ;
         fhir:display [ fhir:v "Dr Adam Careful" ]
       ]
     ] ) ;
     fhir:signature ( [
       fhir:type ( [
         fhir:system [
           fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ;
           fhir:l <urn:iso-astm:E1762-95:2013>
         ] ;
         fhir:code [ fhir:v "1.2.840.10065.1.12.1.1" ] ;
         fhir:display [ fhir:v "Author's Signature" ]
       ] ) ;
       fhir:when [ fhir:v "2017-02-01T17:23:07Z"^^xsd:dateTime ] ;
       fhir:who [
         fhir:l <http://hl7.org/fhir/Practitioner/example> ;
         fhir:reference [ fhir:v "Practitioner/example" ] ;
         fhir:display [ fhir:v "Dr Adam Careful" ]
       ] ;
       fhir:targetFormat [ fhir:v "application/fhir+xml" ] ;
       fhir:sigFormat [ fhir:v "application/signature+xml" ] ;
       fhir:data [ fhir:v "dGhpcyBibG9iIGlzIHNuaXBwZWQ="^^xsd:base64Binary ]
     ] )
  ] ) ; # 
  fhir:status [ fhir:v "in-progress"] ; # 
  fhir:medication [
     fhir:reference [
       fhir:l <#med0301> ;
       fhir:reference [ fhir:v "#med0301" ]
     ]
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ] ;
     fhir:display [ fhir:v "Donald Duck" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://hl7.org/fhir/Encounter/f001> ;
     fhir:reference [ fhir:v "Encounter/f001" ] ;
     fhir:display [ fhir:v "encounter who leads to this prescription" ]
  ] ; # 
  fhir:occurrence [
     a fhir:Period ;
     fhir:start [ fhir:v "2015-01-15T14:30:00+01:00"^^xsd:dateTime ]
  ] ; # 
  fhir:performer ( [
     fhir:actor [
       fhir:reference [
         fhir:l <http://hl7.org/fhir/Practitioner/f007> ;
         fhir:reference [ fhir:v "Practitioner/f007" ] ;
         fhir:display [ fhir:v "Patrick Pump" ]
       ]
     ]
  ] ) ; # 
  fhir:reason ( [
     fhir:concept [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/reason-medication-given"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/reason-medication-given>
         ] ;
         fhir:code [ fhir:v "b" ] ;
         fhir:display [ fhir:v "Given as Ordered" ]
       ] )
     ]
  ] ) ; # 
  fhir:request [
     fhir:l <http://hl7.org/fhir/MedicationRequest/medrx0318> ;
     fhir:reference [ fhir:v "MedicationRequest/medrx0318" ]
  ] ; # 
  fhir:dosage [
     fhir:text [ fhir:v "500mg IV q6h x 3 days" ] ;
     fhir:route [
       fhir:coding ( [
         a sct:47625008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "47625008" ] ;
         fhir:display [ fhir:v "Intravenous route" ]
       ] )
     ] ;
     fhir:method [
       fhir:text [ fhir:v "IV Push" ]
     ] ;
     fhir:dose [
       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" ]
     ]
  ] ; # 
  fhir:eventHistory ( [
     fhir:l <#signature> ;
     fhir:reference [ fhir:v "#signature" ] ;
     fhir:display [ fhir:v "Author's Signature" ]
  ] ) . # 

<http://hl7.org/fhir/ServiceRequest/physiotherapy> a fhir:ServiceRequest .

<http://hl7.org/fhir/Practitioner/example> a fhir:Practitioner .

<http://hl7.org/fhir/Patient/pat1> a fhir:Patient .

<http://hl7.org/fhir/Encounter/f001> a fhir:Encounter .

<http://hl7.org/fhir/Practitioner/f007> a fhir:Practitioner .

<http://hl7.org/fhir/MedicationRequest/medrx0318> a fhir:MedicationRequest .

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

