Package org.hl7.fhir

Class NutritionOrder

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class NutritionOrder
    extends DomainResource
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    If the element is present, it must have either a @value, an @id, or extensions

    Java class for NutritionOrder complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="NutritionOrder">
       <complexContent>
         <extension base="{http://hl7.org/fhir}DomainResource">
           <sequence>
             <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
             <element name="status" type="{http://hl7.org/fhir}NutritionOrderStatus" minOccurs="0"/>
             <element name="patient" type="{http://hl7.org/fhir}Reference"/>
             <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="dateTime" type="{http://hl7.org/fhir}dateTime"/>
             <element name="orderer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="allergyIntolerance" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="foodPreferenceModifier" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="excludeFoodModifier" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="oralDiet" type="{http://hl7.org/fhir}NutritionOrder.OralDiet" minOccurs="0"/>
             <element name="supplement" type="{http://hl7.org/fhir}NutritionOrder.Supplement" maxOccurs="unbounded" minOccurs="0"/>
             <element name="enteralFormula" type="{http://hl7.org/fhir}NutritionOrder.EnteralFormula" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • NutritionOrder

        public NutritionOrder()
    • Method Detail

      • getIdentifier

        public java.util.List<Identifier> getIdentifier()
        Gets the value of the identifier property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the identifier property.

        For example, to add a new item, do as follows:

            getIdentifier().add(newItem);
         

        Objects of the following type(s) are allowed in the list Identifier

      • getPatient

        public Reference getPatient()
        Gets the value of the patient property.
        Returns:
        possible object is Reference
      • setPatient

        public void setPatient​(Reference value)
        Sets the value of the patient property.
        Parameters:
        value - allowed object is Reference
      • getEncounter

        public Reference getEncounter()
        Gets the value of the encounter property.
        Returns:
        possible object is Reference
      • setEncounter

        public void setEncounter​(Reference value)
        Sets the value of the encounter property.
        Parameters:
        value - allowed object is Reference
      • getDateTime

        public DateTime getDateTime()
        Gets the value of the dateTime property.
        Returns:
        possible object is DateTime
      • setDateTime

        public void setDateTime​(DateTime value)
        Sets the value of the dateTime property.
        Parameters:
        value - allowed object is DateTime
      • getOrderer

        public Reference getOrderer()
        Gets the value of the orderer property.
        Returns:
        possible object is Reference
      • setOrderer

        public void setOrderer​(Reference value)
        Sets the value of the orderer property.
        Parameters:
        value - allowed object is Reference
      • getAllergyIntolerance

        public java.util.List<Reference> getAllergyIntolerance()
        Gets the value of the allergyIntolerance property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the allergyIntolerance property.

        For example, to add a new item, do as follows:

            getAllergyIntolerance().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getFoodPreferenceModifier

        public java.util.List<CodeableConcept> getFoodPreferenceModifier()
        Gets the value of the foodPreferenceModifier property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the foodPreferenceModifier property.

        For example, to add a new item, do as follows:

            getFoodPreferenceModifier().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getExcludeFoodModifier

        public java.util.List<CodeableConcept> getExcludeFoodModifier()
        Gets the value of the excludeFoodModifier property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the excludeFoodModifier property.

        For example, to add a new item, do as follows:

            getExcludeFoodModifier().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getSupplement

        public java.util.List<NutritionOrderSupplement> getSupplement()
        Gets the value of the supplement property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the supplement property.

        For example, to add a new item, do as follows:

            getSupplement().add(newItem);
         

        Objects of the following type(s) are allowed in the list NutritionOrderSupplement

      • withAllergyIntolerance

        public NutritionOrder withAllergyIntolerance​(java.util.Collection<Reference> values)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class DomainResource
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class DomainResource
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class DomainResource
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class DomainResource
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class DomainResource