@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/NutritionOrder/diabeticsupplement> a fhir:NutritionOrder ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "diabeticsupplement"] ; # id = diabeticsupplement  file name = nutritionorder-example-diabeticsupplement.xml Name= Diabetic Supplement  Description = Nutrition Order Diabetic Supplement Canonical Example
#edited by Eric Haas Health eData Inc, EH: use supplement element
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://goodhealthhospital.org/nutrition-requests"^^xsd:anyURI ;
       fhir:l <http://goodhealthhospital.org/nutrition-requests>
     ] ;
     fhir:value [ fhir:v "123" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "Peter Chalmers" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://hl7.org/fhir/Encounter/example> ;
     fhir:reference [ fhir:v "Encounter/example" ] ;
     fhir:display [ fhir:v "Inpatient" ]
  ] ; # 
  fhir:dateTime [ fhir:v "2014-09-17"^^xsd:date] ; # 
  fhir:allergyIntolerance ( [
     fhir:l <http://hl7.org/fhir/AllergyIntolerance/example> ;
     fhir:reference [ fhir:v "AllergyIntolerance/example" ] ;
     fhir:display [ fhir:v "Cashew Nuts" ]
  ] ) ; # 
  fhir:foodPreferenceModifier ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/diet"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/diet>
       ] ;
       fhir:code [ fhir:v "kosher" ]
     ] )
  ] ) ; # 
  fhir:excludeFoodModifier ( [
     a sct:227493005 ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "227493005" ] ;
       fhir:display [ fhir:v "Cashew Nut" ]
     ] )
  ] ) ; # 
  fhir:supplement ( [
     fhir:type [
       fhir:concept [
         a sct:443051000124104 ;
         fhir:coding ( [
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:code [ fhir:v "443051000124104" ] ;
           fhir:display [ fhir:v "Adult diabetic specialty formula" ]
         ] [
           fhir:system [
             fhir:v "http://goodhealthhospital.org/supplement-type-codes"^^xsd:anyURI ;
             fhir:l <http://goodhealthhospital.org/supplement-type-codes>
           ] ;
           fhir:code [ fhir:v "1010" ] ;
           fhir:display [ fhir:v "Adult diabetic formula" ]
         ] ) ;
         fhir:text [ fhir:v "Adult diabetic formula" ]
       ]
     ] ;
     fhir:productName [ fhir:v "Glucerna" ] ;
     fhir:schedule [
       fhir:timing ( [
         fhir:repeat [
           fhir:bounds [
             a fhir:Period ;
             fhir:start [ fhir:v "2015-02-10T15:00:00Z"^^xsd:dateTime ]
           ] ;
           fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
           fhir:period [ fhir:v "24"^^xsd:decimal ] ;
           fhir:periodUnit [ fhir:v "h" ]
         ]
       ] [
         fhir:repeat [
           fhir:duration [ fhir:v "1"^^xsd:decimal ] ;
           fhir:durationUnit [ fhir:v "h" ] ;
           fhir:when ( [ fhir:v "HS" ] )
         ]
       ] ) ;
       fhir:asNeeded [ fhir:v true ] ;
       fhir:asNeededFor [
         a sct:440321000124101 ;
         fhir:coding ( [
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:code [ fhir:v "440321000124101" ] ;
           fhir:display [ fhir:v "Inadequate oral intake" ]
         ] )
       ]
     ] ; # EH:Glucerna Shake at 3pm and HS
     fhir:quantity [
       fhir:value [ fhir:v "1"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "8 oz serving" ]
     ]
  ] ) . # 

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

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

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

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

