<?xml version="1.0" encoding="UTF-8"?>

<NutritionOrder xmlns="http://hl7.org/fhir">
  <!--  id = diabeticdiet  file name = nutritionorder-example-diabeticdiet.xml Name= Diabetic Diet  Description = Nutrition Order Diabetic Diet Canonical Example
edited by Eric Haas Health eData Inc -->
  <!-- EH  Show all the elements in this examples for preference, and intolerance  -->
  <!--  EH: use oral Diet element  -->
  <id value="carbcountdiet"/>
  <identifier>
    <system value="http://goodhealthhospital.org/nutrition-requests"/>
    <value value="123"/>
  </identifier>
  <status value="active"/>
  <intent value="order"/>
  <subject>
    <reference value="Patient/example"/>
    <display value="Peter Chalmers"/>
  </subject>
  <encounter>
    <reference value="Encounter/example"/>
    <display value="Inpatient"/>
  </encounter>
  <dateTime value="2014-09-17"/>
  <allergyIntolerance>
    <reference value="AllergyIntolerance/example"/>
    <display value="Cashew Nuts"/>
  </allergyIntolerance>
  <foodPreferenceModifier>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/diet"/>
      <code value="dairy-free"/>
    </coding>
  </foodPreferenceModifier>
  <excludeFoodModifier>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="227493005"/>
      <display value="Cashew Nut"/>
    </coding>
  </excludeFoodModifier>
  <oralDiet>
    <!--  EH:  list type of diet showing standard code and local codes  -->
    <type>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="435651000124106"/>
        <display value="Consistent carbohydrate diet (regime/therapy)"/>
      </coding>
      <coding>
        <system value="http://goodhealthhospital.org/diet-type-codes"/>
        <code value="1030"/>
        <display value="DD - Diabetic diet"/>
      </coding>
      <text value="DD - Diabetic diet"/>
    </type>
    <!--  EH example of three times a day starting on 2/10 using schedule  -->
    <schedule>
      <timing>
        <repeat>
          <boundsPeriod>
            <start value="2015-02-10"/>
          </boundsPeriod>
          <frequency value="3"/>
          <period value="1"/>
          <periodUnit value="d"/>
        </repeat>
      </timing>
    </schedule>
    <!--  list nutrients and amounts here  -->
    <nutrient>
      <modifier>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="2331003"/>
          <display value="Carbohydrate"/>
        </coding>
      </modifier>
      <amount>
        <value value="45"/>
        <unit value="grams/meal"/>
        <system value="http://unitsofmeasure.org"/>
        <code value="g"/>
      </amount>
    </nutrient>
  </oralDiet>
</NutritionOrder>