FHIR © HL7.org  |  Server Home  |  Health Intersections FHIR Server v2.0.12  |  FHIR Version 3.0.2  | User: ANONYMOUS (Unknown)  

Resource "NutritionOrder" Version "1" (StructureDefinition)

Tags:

XML or JSON representation. Try out the Profile as a questionnaire based web form . Edit this as XML or JSON. provenance for this resource

Generated Narrative with Details

id: NutritionOrder

meta:

url: http://hl7.org/fhir/StructureDefinition/NutritionOrder

name: NutritionOrder

status: draft

date: 10/24/2019 11:53:00 AM

publisher: Health Level Seven International (Orders and Observations)

contact: ,

description: Base StructureDefinition for NutritionOrder Resource

fhirVersion: 3.0.2

kind: resource

abstract: false

type: NutritionOrder

baseDefinition: http://hl7.org/fhir/StructureDefinition/DomainResource

derivation: specialization


<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NutritionOrder"/>
  <meta>
    <versionId value="1"/>
    <lastUpdated value="2020-11-06T21:34:28.751Z"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>Generated Narrative with Details</b>
      </p>
      <p>
        <b>id</b>: NutritionOrder</p>
      <p>
        <b>meta</b>: </p>
      <p>
        <b>url</b>:
        <a href="http://hl7.org/fhir/StructureDefinition/NutritionOrder">http://hl7.org/fhir/StructureDefinition/NutritionOrder</a>
      </p>
      <p>
        <b>name</b>: NutritionOrder</p>
      <p>
        <b>status</b>: draft</p>
      <p>
        <b>date</b>: 10/24/2019 11:53:00 AM</p>
      <p>
        <b>publisher</b>: Health Level Seven International (Orders and Observations)</p>
      <p>
        <b>contact</b>: , </p>
      <p>
        <b>description</b>: Base StructureDefinition for NutritionOrder Resource</p>
      <p>
        <b>fhirVersion</b>: 3.0.2</p>
      <p>
        <b>kind</b>: resource</p>
      <p>
        <b>abstract</b>: false</p>
      <p>
        <b>type</b>: NutritionOrder</p>
      <p>
        <b>baseDefinition</b>:
        <a href="http://hl7.org/fhir/StructureDefinition/DomainResource">http://hl7.org/fhir/StructureDefinition/DomainResource</a>
      </p>
      <p>
        <b>derivation</b>: specialization</p>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo"/>
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/NutritionOrder"/>
  <name value="NutritionOrder"/>
  <status value="draft"/>
  <date value="2019-10-24T11:53:00+11:00"/>
  <publisher value="Health Level Seven International (Orders and Observations)"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/fhir"/>
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/orders/index.cfm"/>
    </telecom>
  </contact>
  <description value="Base StructureDefinition for NutritionOrder Resource"/>
  <fhirVersion value="3.0.2"/>
  <mapping>
    <identity value="workflow"/>
    <uri value="http://hl7.org/fhir/workflow"/>
    <name value="Workflow Mapping"/>
  </mapping>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="NutritionOrder"/>
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
  <derivation value="specialization"/>
  <snapshot>
    <element id="NutritionOrder">
      <path value="NutritionOrder"/>
      <short value="Diet, formula or nutritional supplement request"/>
      <definition value="A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."/>
      <comment value="Referenced by an Order Request (workflow)."/>
      <alias value="Nutrition Order"/>
      <alias value="Diet Order"/>
      <alias value="Diet"/>
      <alias value="Nutritional Supplement"/>
      <alias value="Enteral Nutrition"/>
      <min value="0"/>
      <max value="*"/>
      <constraint>
        <key value="dom-2"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
        <expression value="contained.contained.empty()"/>
        <xpath value="not(parent::f:contained and f:contained)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-1"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-4"/>
        <severity value="error"/>
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-3"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
        <expression value="contained.where((&apos;#&apos;+id in %resource.descendants().reference).not()).empty()"/>
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat(&apos;#&apos;, $id))]))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="nor-1"/>
        <severity value="warning"/>
        <human value="Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class"/>
        <expression value="oralDiet.exists() or supplement.exists() or enteralFormula.exists()"/>
        <xpath value="exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="workflow"/>
        <map value="Request"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="SupplyRequest"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="clinical.careprovision"/>
      </mapping>
    </element>
    <element id="NutritionOrder.id">
      <path value="NutritionOrder.id"/>
      <short value="Logical id of this artifact"/>
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="NutritionOrder.meta">
      <path value="NutritionOrder.meta"/>
      <short value="Metadata about the resource"/>
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="NutritionOrder.implicitRules">
      <path value="NutritionOrder.implicitRules"/>
      <short value="A set of rules under which this content was created"/>
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/>
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. &#10;&#10;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it&apos;s meaning or interpretation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="NutritionOrder.language">
      <path value="NutritionOrder.language"/>
      <short value="Language of the resource content"/>
      <definition value="The base language in which the resource is written."/>
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="NutritionOrder.text">
      <path value="NutritionOrder.text"/>
      <short value="Text summary of the resource, for human interpretation"/>
      <definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
      <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later."/>
      <alias value="narrative"/>
      <alias value="html"/>
      <alias value="xhtml"/>
      <alias value="display"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="DomainResource.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="NutritionOrder.contained">
      <path value="NutritionOrder.contained"/>
      <short value="Contained, inline Resources"/>
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
      <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."/>
      <alias value="inline resources"/>
      <alias value="anonymous resources"/>
      <alias value="contained resources"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.contained"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.extension">
      <path value="NutritionOrder.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.modifierExtension">
      <path value="NutritionOrder.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.identifier">
      <path value="NutritionOrder.identifier"/>
      <short value="Identifiers assigned to this order"/>
      <definition value="Identifiers assigned to this order by the order sender or by the order receiver."/>
      <comment value="The Identifier.type element can be to indicate filler vs. placer if needed. This is explained in further detail [here](procedurerequest.html#notes)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Identifier"/>
      </type>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.identifier"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="NutritionOrder.status">
      <path value="NutritionOrder.status"/>
      <short value="proposed | draft | planned | requested | active | on-hold | completed | cancelled | entered-in-error"/>
      <definition value="The workflow status of the nutrition order/request."/>
      <comment value="Typically the system placing the order sets the status to &quot;requested&quot;. Thereafter, the order is maintained by the receiver that updates the status as the request is handled.&#10;&#10;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="NutritionOrderStatus"/>
        </extension>
        <strength value="required"/>
        <description value="Codes specifying the state of the request. Describes the lifecycle of the nutrition order."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/nutrition-request-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.status"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".statusCode"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="NutritionOrder.patient">
      <path value="NutritionOrder.patient"/>
      <short value="The person who requires the diet, formula or nutritional supplement"/>
      <definition value="The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.subject.reference(Patient)"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=SBJ].role"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="NutritionOrder.encounter">
      <path value="NutritionOrder.encounter"/>
      <short value="The encounter associated with this nutrition order"/>
      <definition value="An encounter that provides additional information about the healthcare context in which this request is made."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      </type>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.context.reference(Encounter)"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="context"/>
      </mapping>
    </element>
    <element id="NutritionOrder.dateTime">
      <path value="NutritionOrder.dateTime"/>
      <short value="Date and time the nutrition order was requested"/>
      <definition value="The date and time that this nutrition order was requested."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.authoredOn"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="author.time"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="NutritionOrder.orderer">
      <path value="NutritionOrder.orderer"/>
      <short value="Who ordered the diet, formula or nutritional supplement"/>
      <definition value="The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.requester"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=AUT].role"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.author"/>
      </mapping>
    </element>
    <element id="NutritionOrder.allergyIntolerance">
      <path value="NutritionOrder.allergyIntolerance"/>
      <short value="List of the patient&apos;s food and nutrition-related allergies and intolerances"/>
      <definition value="A link to a record of allergies or intolerances which should be included in the nutrition order."/>
      <comment value="Information on a patient&apos;s food allergies and intolerances to inform healthcare personnel about the type of foods that the patient shouldn&apos;t receive or consume."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.foodPreferenceModifier">
      <path value="NutritionOrder.foodPreferenceModifier"/>
      <short value="Order-specific modifier about the type of food that should be given"/>
      <definition value="This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings."/>
      <comment value="Information on a patient&apos;s food preferences that inform healthcare personnel about the food that the patient should receive or consume."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PatientDiet"/>
        </extension>
        <strength value="example"/>
        <description value="Medical, cultural or ethical food preferences to help with catering requirements"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/encounter-diet"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=NutritionModificationType]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.excludeFoodModifier">
      <path value="NutritionOrder.excludeFoodModifier"/>
      <short value="Order-specific modifier about the type of food that should not be given"/>
      <definition value="This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or Gluten-Free. While it should not be necessary to repeat allergy or intolerance information captured in the referenced AllergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient&#x2019;s diet for any reason. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings."/>
      <comment value="Information on a patient&apos;s food allergies, intolerances and preferences to inform healthcare personnel about the type of foods that the patient shouldn&apos;t receive or consume."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FoodType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes used to indicate the type of food that should NOT be given to the patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/food-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet">
      <path value="NutritionOrder.oralDiet"/>
      <short value="Oral diet components"/>
      <definition value="Diet given orally in contrast to enteral (tube) feeding."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="nor-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="oralDiet .outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=OralDietSupplyType]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.id">
      <path value="NutritionOrder.oralDiet.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.extension">
      <path value="NutritionOrder.oralDiet.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.modifierExtension">
      <path value="NutritionOrder.oralDiet.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.type">
      <path value="NutritionOrder.oralDiet.type"/>
      <short value="Type of oral diet or diet restrictions that describe what can be consumed orally"/>
      <definition value="The kind of diet or dietary restriction such as fiber restricted diet or diabetic diet."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="OralDiet"/>
        </extension>
        <strength value="example"/>
        <description value="Codes used to indicate the type of diet being ordered for a patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/diet-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.schedule">
      <path value="NutritionOrder.oralDiet.schedule"/>
      <short value="Scheduled frequency of diet"/>
      <definition value="The time period and frequency at which the diet should be given. The diet should be given for the combination of all schedules if more than one schedule is present."/>
      <alias value="Frequency"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Timing"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".expectedUseTime"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient">
      <path value="NutritionOrder.oralDiet.nutrient"/>
      <short value="Required nutrient modifications"/>
      <definition value="Class that defines the quantity and type of nutrient modifications (for example carbohydrate, fiber or sodium) required for the oral diet."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.id">
      <path value="NutritionOrder.oralDiet.nutrient.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.extension">
      <path value="NutritionOrder.oralDiet.nutrient.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.modifierExtension">
      <path value="NutritionOrder.oralDiet.nutrient.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.modifier">
      <path value="NutritionOrder.oralDiet.nutrient.modifier"/>
      <short value="Type of nutrient that is being modified"/>
      <definition value="The nutrient that is being modified such as carbohydrate or sodium."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="NutrientModifier"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for types of nutrient that is being modified such as carbohydrate or sodium."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/nutrient-code"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.amount">
      <path value="NutritionOrder.oralDiet.nutrient.amount"/>
      <short value="Quantity of the specified nutrient"/>
      <definition value="The quantity of the specified nutrient to include in diet."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".quantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture">
      <path value="NutritionOrder.oralDiet.texture"/>
      <short value="Required texture modifications"/>
      <definition value="Class that describes any texture modifications required for the patient to safely consume various types of solid foods."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value=".inboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=DietTextureModificationType]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.id">
      <path value="NutritionOrder.oralDiet.texture.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.extension">
      <path value="NutritionOrder.oralDiet.texture.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.modifierExtension">
      <path value="NutritionOrder.oralDiet.texture.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.modifier">
      <path value="NutritionOrder.oralDiet.texture.modifier"/>
      <short value="Code to indicate how to alter the texture of the foods, e.g. pureed"/>
      <definition value="Any texture modifications (for solid foods) that should be made, e.g. easy to chew, chopped, ground, and pureed."/>
      <comment value="Coupled with the foodType (Meat)."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TextureModifier"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for food consistency types or texture modifications to apply to foods."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/texture-code"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.foodType">
      <path value="NutritionOrder.oralDiet.texture.foodType"/>
      <short value="Concepts that are used to identify an entity that is ingested for nutritional purposes"/>
      <definition value="The food type(s) (e.g. meats, all foods) that the texture modification applies to. This could be all foods types."/>
      <comment value="Coupled with the textureModifier could be (All Foods)."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TextureModifiedFoodType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for types of foods that are texture modified."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/modified-foodtype"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind .code"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.fluidConsistencyType">
      <path value="NutritionOrder.oralDiet.fluidConsistencyType"/>
      <short value="The required consistency of fluids and liquids provided to the patient"/>
      <definition value="The required consistency (e.g. honey-thick, nectar-thick, thin, thickened.) of liquids or fluids served to the patient."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FluidConsistencyType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes used to represent the consistency of fluids and liquids provided to the patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consistency-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code (Not differentiated from dietTextureModificationType in HL7 v3)"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.instruction">
      <path value="NutritionOrder.oralDiet.instruction"/>
      <short value="Instructions or additional information about the oral diet"/>
      <definition value="Free text or additional instructions or information pertaining to the oral diet."/>
      <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement">
      <path value="NutritionOrder.supplement"/>
      <short value="Supplement components"/>
      <definition value="Oral nutritional products given in order to add further nutritional value to the patient&apos;s diet."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="nor-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=SUPPLEMENT]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.id">
      <path value="NutritionOrder.supplement.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.extension">
      <path value="NutritionOrder.supplement.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.modifierExtension">
      <path value="NutritionOrder.supplement.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.type">
      <path value="NutritionOrder.supplement.type"/>
      <short value="Type of supplement product requested"/>
      <definition value="The kind of nutritional supplement product required such as a high protein or pediatric clear liquid supplement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SupplementType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for nutritional supplements to be provided to the patient"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/supplement-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind .code (NutritionalSupplementType)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.productName">
      <path value="NutritionOrder.supplement.productName"/>
      <short value="Product or brand name of the nutritional supplement"/>
      <definition value="The product or brand name of the nutritional supplement such as &quot;Acme Protein Shake&quot;."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.schedule">
      <path value="NutritionOrder.supplement.schedule"/>
      <short value="Scheduled frequency of supplement"/>
      <definition value="The time period and frequency at which the supplement(s) should be given. The supplement should be given for the combination of all schedules if more than one schedule is present."/>
      <alias value="Frequency"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Timing"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveTime"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.quantity">
      <path value="NutritionOrder.supplement.quantity"/>
      <short value="Amount of the nutritional supplement"/>
      <definition value="The amount of the nutritional supplement to be given."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".quantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.instruction">
      <path value="NutritionOrder.supplement.instruction"/>
      <short value="Instructions or additional information about the oral supplement"/>
      <definition value="Free text or additional instructions or information pertaining to the oral supplement."/>
      <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula">
      <path value="NutritionOrder.enteralFormula"/>
      <short value="Enteral formula components"/>
      <definition value="Feeding provided through the gastrointestinal tract via a tube, catheter, or stoma that delivers nutrition distal to the oral cavity."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="nor-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=FORMULA]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.id">
      <path value="NutritionOrder.enteralFormula.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.extension">
      <path value="NutritionOrder.enteralFormula.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.modifierExtension">
      <path value="NutritionOrder.enteralFormula.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.baseFormulaType">
      <path value="NutritionOrder.enteralFormula.baseFormulaType"/>
      <short value="Type of enteral or infant formula"/>
      <definition value="The type of enteral or infant formula such as an adult standard formula with fiber or a soy-based infant formula."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EnteralFormulaType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for type of enteral formula to be administered to patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/entformula-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind .code (NutritionalFormulaType)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.baseFormulaProductName">
      <path value="NutritionOrder.enteralFormula.baseFormulaProductName"/>
      <short value="Product or brand name of the enteral or infant formula"/>
      <definition value="The product or brand name of the enteral or infant formula product such as &quot;ACME Adult Standard Formula&quot;."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.additiveType">
      <path value="NutritionOrder.enteralFormula.additiveType"/>
      <short value="Type of modular component to add to the feeding"/>
      <definition value="Indicates the type of modular component such as protein, carbohydrate, fat or fiber to be provided in addition to or mixed with the base formula."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EnteralFormulaAdditiveType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/entformula-additive"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="N/A (not differentiated from NutritionalFormulaType in HL7 v3)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.additiveProductName">
      <path value="NutritionOrder.enteralFormula.additiveProductName"/>
      <short value="Product or brand name of the modular additive"/>
      <definition value="The product or brand name of the type of modular component to be added to the formula."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.caloricDensity">
      <path value="NutritionOrder.enteralFormula.caloricDensity"/>
      <short value="Amount of energy per specified volume that is required"/>
      <definition value="The amount of energy (calories) that the formula should provide per specified volume, typically per mL or fluid oz. For example, an infant may require a formula that provides 24 calories per fluid ounce or an adult may require an enteral formula that provides 1.5 calorie/mL."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".quantity (caloricDensity)"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.routeofAdministration">
      <path value="NutritionOrder.enteralFormula.routeofAdministration"/>
      <short value="How the formula should enter the patient&apos;s gastrointestinal tract"/>
      <definition value="The route or physiological path of administration into the patient&apos;s gastrointestinal tract for purposes of providing the formula feeding, e.g. nasogastric tube."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EnteralRouteOfAdministration"/>
        </extension>
        <strength value="extensible"/>
        <description value="Codes specifying the route of administration of enteral formula."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/enteral-route"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".routeCode"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration">
      <path value="NutritionOrder.enteralFormula.administration"/>
      <short value="Formula feeding instruction as structured data"/>
      <definition value="Formula administration instructions as structured data. This repeating structure allows for changing the administration rate or volume over time for both bolus and continuous feeding. An example of this would be an instruction to increase the rate of continuous feeding every 2 hours."/>
      <comment value="See implementation notes below for further discussion on how to order continuous vs bolus enteral feeding using this resource."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=SBADM, moodCode=RQO]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.id">
      <path value="NutritionOrder.enteralFormula.administration.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.extension">
      <path value="NutritionOrder.enteralFormula.administration.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.modifierExtension">
      <path value="NutritionOrder.enteralFormula.administration.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.schedule">
      <path value="NutritionOrder.enteralFormula.administration.schedule"/>
      <short value="Scheduled frequency of enteral feeding"/>
      <definition value="The time period and frequency at which the enteral formula should be delivered to the patient."/>
      <alias value="Frequency"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Timing"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveUseTime"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.quantity">
      <path value="NutritionOrder.enteralFormula.administration.quantity"/>
      <short value="The volume of formula to provide"/>
      <definition value="The volume of formula to provide to the patient per the specified administration schedule."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".doseQuantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.rate[x]">
      <path value="NutritionOrder.enteralFormula.administration.rate[x]"/>
      <short value="Speed with which the formula is provided per period of time"/>
      <definition value="The rate of administration of formula via a feeding pump, e.g. 60 mL per hour, according to the specified schedule."/>
      <comment value="Ratio is used when the quantity value in the denominator is not &quot;1&quot;, otherwise use Quantity. For example, the Ratio datatype is used for &quot;200 mL/4 hrs&quot; versus the Quantity datatype for &quot;50 mL/hr&quot;."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <type>
        <code value="Ratio"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".rateQuantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.maxVolumeToDeliver">
      <path value="NutritionOrder.enteralFormula.maxVolumeToDeliver"/>
      <short value="Upper limit on formula volume per unit of time"/>
      <definition value="The maximum total quantity of formula that may be administered to a subject over the period of time, e.g. 1440 mL over 24 hours."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".maxDoseQuantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administrationInstruction">
      <path value="NutritionOrder.enteralFormula.administrationInstruction"/>
      <short value="Formula feeding instructions expressed as text"/>
      <definition value="Free text formula administration, feeding instructions or additional instructions or information."/>
      <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="NutritionOrder">
      <path value="NutritionOrder"/>
      <short value="Diet, formula or nutritional supplement request"/>
      <definition value="A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."/>
      <comment value="Referenced by an Order Request (workflow)."/>
      <alias value="Nutrition Order"/>
      <alias value="Diet Order"/>
      <alias value="Diet"/>
      <alias value="Nutritional Supplement"/>
      <alias value="Enteral Nutrition"/>
      <min value="0"/>
      <max value="*"/>
      <constraint>
        <key value="nor-1"/>
        <severity value="warning"/>
        <human value="Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class"/>
        <expression value="oralDiet.exists() or supplement.exists() or enteralFormula.exists()"/>
        <xpath value="exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)"/>
      </constraint>
      <mapping>
        <identity value="workflow"/>
        <map value="Request"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="SupplyRequest"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="clinical.careprovision"/>
      </mapping>
    </element>
    <element id="NutritionOrder.identifier">
      <path value="NutritionOrder.identifier"/>
      <short value="Identifiers assigned to this order"/>
      <definition value="Identifiers assigned to this order by the order sender or by the order receiver."/>
      <comment value="The Identifier.type element can be to indicate filler vs. placer if needed. This is explained in further detail [here](procedurerequest.html#notes)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Identifier"/>
      </type>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.identifier"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="NutritionOrder.status">
      <path value="NutritionOrder.status"/>
      <short value="proposed | draft | planned | requested | active | on-hold | completed | cancelled | entered-in-error"/>
      <definition value="The workflow status of the nutrition order/request."/>
      <comment value="Typically the system placing the order sets the status to &quot;requested&quot;. Thereafter, the order is maintained by the receiver that updates the status as the request is handled.&#10;&#10;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="NutritionOrderStatus"/>
        </extension>
        <strength value="required"/>
        <description value="Codes specifying the state of the request. Describes the lifecycle of the nutrition order."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/nutrition-request-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.status"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".statusCode"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="NutritionOrder.patient">
      <path value="NutritionOrder.patient"/>
      <short value="The person who requires the diet, formula or nutritional supplement"/>
      <definition value="The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.subject.reference(Patient)"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=SBJ].role"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="NutritionOrder.encounter">
      <path value="NutritionOrder.encounter"/>
      <short value="The encounter associated with this nutrition order"/>
      <definition value="An encounter that provides additional information about the healthcare context in which this request is made."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      </type>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.context.reference(Encounter)"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="context"/>
      </mapping>
    </element>
    <element id="NutritionOrder.dateTime">
      <path value="NutritionOrder.dateTime"/>
      <short value="Date and time the nutrition order was requested"/>
      <definition value="The date and time that this nutrition order was requested."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.authoredOn"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="author.time"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="NutritionOrder.orderer">
      <path value="NutritionOrder.orderer"/>
      <short value="Who ordered the diet, formula or nutritional supplement"/>
      <definition value="The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Request.requester"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=AUT].role"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.author"/>
      </mapping>
    </element>
    <element id="NutritionOrder.allergyIntolerance">
      <path value="NutritionOrder.allergyIntolerance"/>
      <short value="List of the patient&apos;s food and nutrition-related allergies and intolerances"/>
      <definition value="A link to a record of allergies or intolerances which should be included in the nutrition order."/>
      <comment value="Information on a patient&apos;s food allergies and intolerances to inform healthcare personnel about the type of foods that the patient shouldn&apos;t receive or consume."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.foodPreferenceModifier">
      <path value="NutritionOrder.foodPreferenceModifier"/>
      <short value="Order-specific modifier about the type of food that should be given"/>
      <definition value="This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings."/>
      <comment value="Information on a patient&apos;s food preferences that inform healthcare personnel about the food that the patient should receive or consume."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PatientDiet"/>
        </extension>
        <strength value="example"/>
        <description value="Medical, cultural or ethical food preferences to help with catering requirements"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/encounter-diet"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=NutritionModificationType]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.excludeFoodModifier">
      <path value="NutritionOrder.excludeFoodModifier"/>
      <short value="Order-specific modifier about the type of food that should not be given"/>
      <definition value="This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or Gluten-Free. While it should not be necessary to repeat allergy or intolerance information captured in the referenced AllergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient&#x2019;s diet for any reason. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings."/>
      <comment value="Information on a patient&apos;s food allergies, intolerances and preferences to inform healthcare personnel about the type of foods that the patient shouldn&apos;t receive or consume."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FoodType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes used to indicate the type of food that should NOT be given to the patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/food-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet">
      <path value="NutritionOrder.oralDiet"/>
      <short value="Oral diet components"/>
      <definition value="Diet given orally in contrast to enteral (tube) feeding."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="nor-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="oralDiet .outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=OralDietSupplyType]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.type">
      <path value="NutritionOrder.oralDiet.type"/>
      <short value="Type of oral diet or diet restrictions that describe what can be consumed orally"/>
      <definition value="The kind of diet or dietary restriction such as fiber restricted diet or diabetic diet."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="OralDiet"/>
        </extension>
        <strength value="example"/>
        <description value="Codes used to indicate the type of diet being ordered for a patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/diet-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.schedule">
      <path value="NutritionOrder.oralDiet.schedule"/>
      <short value="Scheduled frequency of diet"/>
      <definition value="The time period and frequency at which the diet should be given. The diet should be given for the combination of all schedules if more than one schedule is present."/>
      <alias value="Frequency"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Timing"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".expectedUseTime"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient">
      <path value="NutritionOrder.oralDiet.nutrient"/>
      <short value="Required nutrient modifications"/>
      <definition value="Class that defines the quantity and type of nutrient modifications (for example carbohydrate, fiber or sodium) required for the oral diet."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.modifier">
      <path value="NutritionOrder.oralDiet.nutrient.modifier"/>
      <short value="Type of nutrient that is being modified"/>
      <definition value="The nutrient that is being modified such as carbohydrate or sodium."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="NutrientModifier"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for types of nutrient that is being modified such as carbohydrate or sodium."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/nutrient-code"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.nutrient.amount">
      <path value="NutritionOrder.oralDiet.nutrient.amount"/>
      <short value="Quantity of the specified nutrient"/>
      <definition value="The quantity of the specified nutrient to include in diet."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".quantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture">
      <path value="NutritionOrder.oralDiet.texture"/>
      <short value="Required texture modifications"/>
      <definition value="Class that describes any texture modifications required for the patient to safely consume various types of solid foods."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".inboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=DietTextureModificationType]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.modifier">
      <path value="NutritionOrder.oralDiet.texture.modifier"/>
      <short value="Code to indicate how to alter the texture of the foods, e.g. pureed"/>
      <definition value="Any texture modifications (for solid foods) that should be made, e.g. easy to chew, chopped, ground, and pureed."/>
      <comment value="Coupled with the foodType (Meat)."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TextureModifier"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for food consistency types or texture modifications to apply to foods."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/texture-code"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.texture.foodType">
      <path value="NutritionOrder.oralDiet.texture.foodType"/>
      <short value="Concepts that are used to identify an entity that is ingested for nutritional purposes"/>
      <definition value="The food type(s) (e.g. meats, all foods) that the texture modification applies to. This could be all foods types."/>
      <comment value="Coupled with the textureModifier could be (All Foods)."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TextureModifiedFoodType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for types of foods that are texture modified."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/modified-foodtype"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind .code"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.fluidConsistencyType">
      <path value="NutritionOrder.oralDiet.fluidConsistencyType"/>
      <short value="The required consistency of fluids and liquids provided to the patient"/>
      <definition value="The required consistency (e.g. honey-thick, nectar-thick, thin, thickened.) of liquids or fluids served to the patient."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FluidConsistencyType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes used to represent the consistency of fluids and liquids provided to the patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/consistency-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".code (Not differentiated from dietTextureModificationType in HL7 v3)"/>
      </mapping>
    </element>
    <element id="NutritionOrder.oralDiet.instruction">
      <path value="NutritionOrder.oralDiet.instruction"/>
      <short value="Instructions or additional information about the oral diet"/>
      <definition value="Free text or additional instructions or information pertaining to the oral diet."/>
      <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement">
      <path value="NutritionOrder.supplement"/>
      <short value="Supplement components"/>
      <definition value="Oral nutritional products given in order to add further nutritional value to the patient&apos;s diet."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="nor-1"/>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=SUPPLEMENT]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.type">
      <path value="NutritionOrder.supplement.type"/>
      <short value="Type of supplement product requested"/>
      <definition value="The kind of nutritional supplement product required such as a high protein or pediatric clear liquid supplement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SupplementType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for nutritional supplements to be provided to the patient"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/supplement-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind .code (NutritionalSupplementType)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.productName">
      <path value="NutritionOrder.supplement.productName"/>
      <short value="Product or brand name of the nutritional supplement"/>
      <definition value="The product or brand name of the nutritional supplement such as &quot;Acme Protein Shake&quot;."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.schedule">
      <path value="NutritionOrder.supplement.schedule"/>
      <short value="Scheduled frequency of supplement"/>
      <definition value="The time period and frequency at which the supplement(s) should be given. The supplement should be given for the combination of all schedules if more than one schedule is present."/>
      <alias value="Frequency"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Timing"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveTime"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.quantity">
      <path value="NutritionOrder.supplement.quantity"/>
      <short value="Amount of the nutritional supplement"/>
      <definition value="The amount of the nutritional supplement to be given."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".quantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.supplement.instruction">
      <path value="NutritionOrder.supplement.instruction"/>
      <short value="Instructions or additional information about the oral supplement"/>
      <definition value="Free text or additional instructions or information pertaining to the oral supplement."/>
      <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula">
      <path value="NutritionOrder.enteralFormula"/>
      <short value="Enteral formula components"/>
      <definition value="Feeding provided through the gastrointestinal tract via a tube, catheter, or stoma that delivers nutrition distal to the oral cavity."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="nor-1"/>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=FORMULA]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.baseFormulaType">
      <path value="NutritionOrder.enteralFormula.baseFormulaType"/>
      <short value="Type of enteral or infant formula"/>
      <definition value="The type of enteral or infant formula such as an adult standard formula with fiber or a soy-based infant formula."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EnteralFormulaType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for type of enteral formula to be administered to patient."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/entformula-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind .code (NutritionalFormulaType)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.baseFormulaProductName">
      <path value="NutritionOrder.enteralFormula.baseFormulaProductName"/>
      <short value="Product or brand name of the enteral or infant formula"/>
      <definition value="The product or brand name of the enteral or infant formula product such as &quot;ACME Adult Standard Formula&quot;."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".id"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.additiveType">
      <path value="NutritionOrder.enteralFormula.additiveType"/>
      <short value="Type of modular component to add to the feeding"/>
      <definition value="Indicates the type of modular component such as protein, carbohydrate, fat or fiber to be provided in addition to or mixed with the base formula."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EnteralFormulaAdditiveType"/>
        </extension>
        <strength value="example"/>
        <description value="Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/entformula-additive"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="N/A (not differentiated from NutritionalFormulaType in HL7 v3)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.additiveProductName">
      <path value="NutritionOrder.enteralFormula.additiveProductName"/>
      <short value="Product or brand name of the modular additive"/>
      <definition value="The product or brand name of the type of modular component to be added to the formula."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.caloricDensity">
      <path value="NutritionOrder.enteralFormula.caloricDensity"/>
      <short value="Amount of energy per specified volume that is required"/>
      <definition value="The amount of energy (calories) that the formula should provide per specified volume, typically per mL or fluid oz. For example, an infant may require a formula that provides 24 calories per fluid ounce or an adult may require an enteral formula that provides 1.5 calorie/mL."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".quantity (caloricDensity)"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.routeofAdministration">
      <path value="NutritionOrder.enteralFormula.routeofAdministration"/>
      <short value="How the formula should enter the patient&apos;s gastrointestinal tract"/>
      <definition value="The route or physiological path of administration into the patient&apos;s gastrointestinal tract for purposes of providing the formula feeding, e.g. nasogastric tube."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EnteralRouteOfAdministration"/>
        </extension>
        <strength value="extensible"/>
        <description value="Codes specifying the route of administration of enteral formula."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/enteral-route"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".routeCode"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration">
      <path value="NutritionOrder.enteralFormula.administration"/>
      <short value="Formula feeding instruction as structured data"/>
      <definition value="Formula administration instructions as structured data. This repeating structure allows for changing the administration rate or volume over time for both bolus and continuous feeding. An example of this would be an instruction to increase the rate of continuous feeding every 2 hours."/>
      <comment value="See implementation notes below for further discussion on how to order continuous vs bolus enteral feeding using this resource."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".outboundRelationship [typeCode =COMP], target [classCode=SBADM, moodCode=RQO]"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.schedule">
      <path value="NutritionOrder.enteralFormula.administration.schedule"/>
      <short value="Scheduled frequency of enteral feeding"/>
      <definition value="The time period and frequency at which the enteral formula should be delivered to the patient."/>
      <alias value="Frequency"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Timing"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveUseTime"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.quantity">
      <path value="NutritionOrder.enteralFormula.administration.quantity"/>
      <short value="The volume of formula to provide"/>
      <definition value="The volume of formula to provide to the patient per the specified administration schedule."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".doseQuantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administration.rate[x]">
      <path value="NutritionOrder.enteralFormula.administration.rate[x]"/>
      <short value="Speed with which the formula is provided per period of time"/>
      <definition value="The rate of administration of formula via a feeding pump, e.g. 60 mL per hour, according to the specified schedule."/>
      <comment value="Ratio is used when the quantity value in the denominator is not &quot;1&quot;, otherwise use Quantity. For example, the Ratio datatype is used for &quot;200 mL/4 hrs&quot; versus the Quantity datatype for &quot;50 mL/hr&quot;."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <type>
        <code value="Ratio"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".rateQuantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.maxVolumeToDeliver">
      <path value="NutritionOrder.enteralFormula.maxVolumeToDeliver"/>
      <short value="Upper limit on formula volume per unit of time"/>
      <definition value="The maximum total quantity of formula that may be administered to a subject over the period of time, e.g. 1440 mL over 24 hours."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".maxDoseQuantity"/>
      </mapping>
    </element>
    <element id="NutritionOrder.enteralFormula.administrationInstruction">
      <path value="NutritionOrder.enteralFormula.administrationInstruction"/>
      <short value="Formula feeding instructions expressed as text"/>
      <definition value="Free text formula administration, feeding instructions or additional instructions or information."/>
      <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
  </differential>
</StructureDefinition>