@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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/Procedure/ventilator-setting> a fhir:Procedure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ventilator-setting"] ; # 
  fhir:contained ( [
     a fhir:Device ;
     fhir:id [ fhir:v "vent-device-1" ] ;
     fhir:manufacturer [ fhir:v "Medtronic, Inc" ] ;
     fhir:lotNumber [ fhir:v "1234-9876" ] ;
     fhir:type ( [
       fhir:coding ( [
         a sct:40617009 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "40617009" ]
       ] ) ;
       fhir:text [ fhir:v "Ventilator, device" ]
     ] )
  ] [
     a fhir:Observation ;
     fhir:id [ fhir:v "tidal-volume-obs" ] ;
     fhir:status [ fhir:v "final" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:76222-9 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "76222-9" ]
       ] ) ;
       fhir:text [ fhir:v "Tidal volume Ventilator" ]
     ] ;
     fhir:subject [
       fhir:l <http://hl7.org/fhir/Patient/example> ;
       fhir:reference [ fhir:v "Patient/example" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "500"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "mL" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "mL" ]
     ]
  ] [
     a fhir:Observation ;
     fhir:id [ fhir:v "fio2-obs" ] ;
     fhir:status [ fhir:v "final" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:3150-0 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "3150-0" ]
       ] ) ;
       fhir:text [ fhir:v "Inhaled oxygen concentration" ]
     ] ;
     fhir:subject [
       fhir:l <http://hl7.org/fhir/Patient/example> ;
       fhir:reference [ fhir:v "Patient/example" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "40"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "%" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "%" ]
     ]
  ] [
     a fhir:Observation ;
     fhir:id [ fhir:v "peep-obs" ] ;
     fhir:status [ fhir:v "final" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:76248-4 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "76248-4" ]
       ] ) ;
       fhir:text [ fhir:v "PEEP Ventilator" ]
     ] ;
     fhir:subject [
       fhir:l <http://hl7.org/fhir/Patient/example> ;
       fhir:reference [ fhir:v "Patient/example" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "5"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "cm[H2O]" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "cm[H2O]" ]
     ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:1258985005 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "1258985005" ] ;
       fhir:display [ fhir:v "Invasive mechanical ventilation (regime/therapy)" ]
     ] ) ;
     fhir:text [ fhir:v "Mechanical Ventilation" ]
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2015-04-05"^^xsd:date
  ] ; # 
  fhir:performer ( [
     fhir:actor [
       fhir:l <http://hl7.org/fhir/Practitioner/example> ;
       fhir:reference [ fhir:v "Practitioner/example" ] ;
       fhir:display [ fhir:v "Dr Cecil Surgeon" ]
     ]
  ] ) ; # 
  fhir:reason ( [
     fhir:concept [
       fhir:text [ fhir:v "Acute Respiratory Distress Syndrome (ARDS)" ]
     ]
  ] ) ; # 
  fhir:outcome ( [
     fhir:concept [
       fhir:text [ fhir:v "Respiratory rate 24 bpm" ]
     ]
  ] [
     fhir:reference [
       fhir:l <#tidal-volume-obs> ;
       fhir:reference [ fhir:v "#tidal-volume-obs" ] ;
       fhir:display [ fhir:v "Tidal volume 500 mL" ]
     ]
  ] [
     fhir:reference [
       fhir:l <#fio2-obs> ;
       fhir:reference [ fhir:v "#fio2-obs" ] ;
       fhir:display [ fhir:v "FiO2 40%" ]
     ]
  ] [
     fhir:reference [
       fhir:l <#peep-obs> ;
       fhir:reference [ fhir:v "#peep-obs" ] ;
       fhir:display [ fhir:v "PEEP 5 cmH2O" ]
     ]
  ] ) ; # 
  fhir:followUp ( [
     fhir:concept [
       fhir:text [ fhir:v "Daily chest x-rays and ongoing ventilation monitoring" ]
     ]
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "ARDS due to sepsis" ]
  ] ) ; # 
  fhir:focalDevice ( [
     fhir:action [
       fhir:coding ( [
         a sct:232679009 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "232679009" ] ;
         fhir:display [ fhir:v "Nasotracheal intubation (procedure)" ]
       ] )
     ] ;
     fhir:manipulated [
       fhir:l <#vent-device-1> ;
       fhir:reference [ fhir:v "#vent-device-1" ]
     ]
  ] ) . # 

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

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

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

