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

<NutritionOrder xmlns="http://hl7.org/fhir">
  <id value="chfdiet"/>
  <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="386619000"/>
        <display value="Low sodium diet"/>
      </coding>
      <coding>
        <system value="http://goodhealthhospital.org/diet-type-codes"/>
        <code value="1040"/>
        <display value="Low Sodium Diet"/>
      </coding>
      <text value="Low sodium diet"/>
    </type>
    <type>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="226208002"/>
        <display value="Fluid restricted diet"/>
      </coding>
      <coding>
        <system value="http://goodhealthhospital.org/diet-type-codes"/>
        <code value="1040"/>
        <display value="Fluid restricted diet"/>
      </coding>
      <text value="Fluid restricted diet"/>
    </type>
    <!--  list nutrients and amounts here  -->
    <nutrient>
      <modifier>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="39972003"/>
          <display value="Sodium"/>
        </coding>
      </modifier>
      <amount>
        <value value="2"/>
        <unit value="grams"/>
        <system value="http://unitsofmeasure.org"/>
        <code value="g"/>
      </amount>
    </nutrient>
    <nutrient>
      <modifier>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="33463005"/>
          <display value="Fluid"/>
        </coding>
      </modifier>
      <amount>
        <value value="1500"/>
        <unit value="milliliter"/>
        <system value="http://unitsofmeasure.org"/>
        <code value="mL"/>
      </amount>
    </nutrient>
    <!-- instructions as free text  -->
    <instruction value="Starting on 2/10 breakfast, maximum 400 ml fluids per meal"/>
  </oralDiet>
</NutritionOrder>