org.hl7.fhir.NutritionOrder Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.01.18 at 08:26:13 AM MST
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NutritionOrder", propOrder = {
"identifier",
"status",
"patient",
"encounter",
"dateTime",
"orderer",
"allergyIntolerance",
"foodPreferenceModifier",
"excludeFoodModifier",
"oralDiet",
"supplement",
"enteralFormula"
})
public class NutritionOrder
extends DomainResource
implements Equals2, HashCode2, ToString2
{
protected List identifier;
protected NutritionOrderStatus status;
@XmlElement(required = true)
protected Reference patient;
protected Reference encounter;
@XmlElement(required = true)
protected DateTime dateTime;
protected Reference orderer;
protected List allergyIntolerance;
protected List foodPreferenceModifier;
protected List excludeFoodModifier;
protected NutritionOrderOralDiet oralDiet;
protected List supplement;
protected NutritionOrderEnteralFormula enteralFormula;
/**
* 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 Jakarta XML Binding 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
* {@link Identifier }
*
*
*/
public List getIdentifier() {
if (identifier == null) {
identifier = new ArrayList();
}
return this.identifier;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link NutritionOrderStatus }
*
*/
public NutritionOrderStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link NutritionOrderStatus }
*
*/
public void setStatus(NutritionOrderStatus value) {
this.status = value;
}
/**
* Gets the value of the patient property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPatient() {
return patient;
}
/**
* Sets the value of the patient property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPatient(Reference value) {
this.patient = value;
}
/**
* Gets the value of the encounter property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getEncounter() {
return encounter;
}
/**
* Sets the value of the encounter property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setEncounter(Reference value) {
this.encounter = value;
}
/**
* Gets the value of the dateTime property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getDateTime() {
return dateTime;
}
/**
* Sets the value of the dateTime property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setDateTime(DateTime value) {
this.dateTime = value;
}
/**
* Gets the value of the orderer property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getOrderer() {
return orderer;
}
/**
* Sets the value of the orderer property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setOrderer(Reference value) {
this.orderer = value;
}
/**
* 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 Jakarta XML Binding 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
* {@link Reference }
*
*
*/
public List getAllergyIntolerance() {
if (allergyIntolerance == null) {
allergyIntolerance = new ArrayList();
}
return this.allergyIntolerance;
}
/**
* 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 Jakarta XML Binding 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
* {@link CodeableConcept }
*
*
*/
public List getFoodPreferenceModifier() {
if (foodPreferenceModifier == null) {
foodPreferenceModifier = new ArrayList();
}
return this.foodPreferenceModifier;
}
/**
* 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 Jakarta XML Binding 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
* {@link CodeableConcept }
*
*
*/
public List getExcludeFoodModifier() {
if (excludeFoodModifier == null) {
excludeFoodModifier = new ArrayList();
}
return this.excludeFoodModifier;
}
/**
* Gets the value of the oralDiet property.
*
* @return
* possible object is
* {@link NutritionOrderOralDiet }
*
*/
public NutritionOrderOralDiet getOralDiet() {
return oralDiet;
}
/**
* Sets the value of the oralDiet property.
*
* @param value
* allowed object is
* {@link NutritionOrderOralDiet }
*
*/
public void setOralDiet(NutritionOrderOralDiet value) {
this.oralDiet = value;
}
/**
* 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 Jakarta XML Binding 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
* {@link NutritionOrderSupplement }
*
*
*/
public List getSupplement() {
if (supplement == null) {
supplement = new ArrayList();
}
return this.supplement;
}
/**
* Gets the value of the enteralFormula property.
*
* @return
* possible object is
* {@link NutritionOrderEnteralFormula }
*
*/
public NutritionOrderEnteralFormula getEnteralFormula() {
return enteralFormula;
}
/**
* Sets the value of the enteralFormula property.
*
* @param value
* allowed object is
* {@link NutritionOrderEnteralFormula }
*
*/
public void setEnteralFormula(NutritionOrderEnteralFormula value) {
this.enteralFormula = value;
}
public NutritionOrder withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public NutritionOrder withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public NutritionOrder withStatus(NutritionOrderStatus value) {
setStatus(value);
return this;
}
public NutritionOrder withPatient(Reference value) {
setPatient(value);
return this;
}
public NutritionOrder withEncounter(Reference value) {
setEncounter(value);
return this;
}
public NutritionOrder withDateTime(DateTime value) {
setDateTime(value);
return this;
}
public NutritionOrder withOrderer(Reference value) {
setOrderer(value);
return this;
}
public NutritionOrder withAllergyIntolerance(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getAllergyIntolerance().add(value);
}
}
return this;
}
public NutritionOrder withAllergyIntolerance(Collection values) {
if (values!= null) {
getAllergyIntolerance().addAll(values);
}
return this;
}
public NutritionOrder withFoodPreferenceModifier(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getFoodPreferenceModifier().add(value);
}
}
return this;
}
public NutritionOrder withFoodPreferenceModifier(Collection values) {
if (values!= null) {
getFoodPreferenceModifier().addAll(values);
}
return this;
}
public NutritionOrder withExcludeFoodModifier(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getExcludeFoodModifier().add(value);
}
}
return this;
}
public NutritionOrder withExcludeFoodModifier(Collection values) {
if (values!= null) {
getExcludeFoodModifier().addAll(values);
}
return this;
}
public NutritionOrder withOralDiet(NutritionOrderOralDiet value) {
setOralDiet(value);
return this;
}
public NutritionOrder withSupplement(NutritionOrderSupplement... values) {
if (values!= null) {
for (NutritionOrderSupplement value: values) {
getSupplement().add(value);
}
}
return this;
}
public NutritionOrder withSupplement(Collection values) {
if (values!= null) {
getSupplement().addAll(values);
}
return this;
}
public NutritionOrder withEnteralFormula(NutritionOrderEnteralFormula value) {
setEnteralFormula(value);
return this;
}
@Override
public NutritionOrder withText(Narrative value) {
setText(value);
return this;
}
@Override
public NutritionOrder withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public NutritionOrder withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public NutritionOrder withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public NutritionOrder withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public NutritionOrder withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public NutritionOrder withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public NutritionOrder withId(Id value) {
setId(value);
return this;
}
@Override
public NutritionOrder withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public NutritionOrder withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public NutritionOrder withLanguage(Code value) {
setLanguage(value);
return this;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final NutritionOrder that = ((NutritionOrder) object);
{
List lhsIdentifier;
lhsIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null);
List rhsIdentifier;
rhsIdentifier = (((that.identifier!= null)&&(!that.identifier.isEmpty()))?that.getIdentifier():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())), ((that.identifier!= null)&&(!that.identifier.isEmpty())))) {
return false;
}
}
{
NutritionOrderStatus lhsStatus;
lhsStatus = this.getStatus();
NutritionOrderStatus rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) {
return false;
}
}
{
Reference lhsPatient;
lhsPatient = this.getPatient();
Reference rhsPatient;
rhsPatient = that.getPatient();
if (!strategy.equals(LocatorUtils.property(thisLocator, "patient", lhsPatient), LocatorUtils.property(thatLocator, "patient", rhsPatient), lhsPatient, rhsPatient, (this.patient!= null), (that.patient!= null))) {
return false;
}
}
{
Reference lhsEncounter;
lhsEncounter = this.getEncounter();
Reference rhsEncounter;
rhsEncounter = that.getEncounter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) {
return false;
}
}
{
DateTime lhsDateTime;
lhsDateTime = this.getDateTime();
DateTime rhsDateTime;
rhsDateTime = that.getDateTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dateTime", lhsDateTime), LocatorUtils.property(thatLocator, "dateTime", rhsDateTime), lhsDateTime, rhsDateTime, (this.dateTime!= null), (that.dateTime!= null))) {
return false;
}
}
{
Reference lhsOrderer;
lhsOrderer = this.getOrderer();
Reference rhsOrderer;
rhsOrderer = that.getOrderer();
if (!strategy.equals(LocatorUtils.property(thisLocator, "orderer", lhsOrderer), LocatorUtils.property(thatLocator, "orderer", rhsOrderer), lhsOrderer, rhsOrderer, (this.orderer!= null), (that.orderer!= null))) {
return false;
}
}
{
List lhsAllergyIntolerance;
lhsAllergyIntolerance = (((this.allergyIntolerance!= null)&&(!this.allergyIntolerance.isEmpty()))?this.getAllergyIntolerance():null);
List rhsAllergyIntolerance;
rhsAllergyIntolerance = (((that.allergyIntolerance!= null)&&(!that.allergyIntolerance.isEmpty()))?that.getAllergyIntolerance():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "allergyIntolerance", lhsAllergyIntolerance), LocatorUtils.property(thatLocator, "allergyIntolerance", rhsAllergyIntolerance), lhsAllergyIntolerance, rhsAllergyIntolerance, ((this.allergyIntolerance!= null)&&(!this.allergyIntolerance.isEmpty())), ((that.allergyIntolerance!= null)&&(!that.allergyIntolerance.isEmpty())))) {
return false;
}
}
{
List lhsFoodPreferenceModifier;
lhsFoodPreferenceModifier = (((this.foodPreferenceModifier!= null)&&(!this.foodPreferenceModifier.isEmpty()))?this.getFoodPreferenceModifier():null);
List rhsFoodPreferenceModifier;
rhsFoodPreferenceModifier = (((that.foodPreferenceModifier!= null)&&(!that.foodPreferenceModifier.isEmpty()))?that.getFoodPreferenceModifier():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "foodPreferenceModifier", lhsFoodPreferenceModifier), LocatorUtils.property(thatLocator, "foodPreferenceModifier", rhsFoodPreferenceModifier), lhsFoodPreferenceModifier, rhsFoodPreferenceModifier, ((this.foodPreferenceModifier!= null)&&(!this.foodPreferenceModifier.isEmpty())), ((that.foodPreferenceModifier!= null)&&(!that.foodPreferenceModifier.isEmpty())))) {
return false;
}
}
{
List lhsExcludeFoodModifier;
lhsExcludeFoodModifier = (((this.excludeFoodModifier!= null)&&(!this.excludeFoodModifier.isEmpty()))?this.getExcludeFoodModifier():null);
List rhsExcludeFoodModifier;
rhsExcludeFoodModifier = (((that.excludeFoodModifier!= null)&&(!that.excludeFoodModifier.isEmpty()))?that.getExcludeFoodModifier():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "excludeFoodModifier", lhsExcludeFoodModifier), LocatorUtils.property(thatLocator, "excludeFoodModifier", rhsExcludeFoodModifier), lhsExcludeFoodModifier, rhsExcludeFoodModifier, ((this.excludeFoodModifier!= null)&&(!this.excludeFoodModifier.isEmpty())), ((that.excludeFoodModifier!= null)&&(!that.excludeFoodModifier.isEmpty())))) {
return false;
}
}
{
NutritionOrderOralDiet lhsOralDiet;
lhsOralDiet = this.getOralDiet();
NutritionOrderOralDiet rhsOralDiet;
rhsOralDiet = that.getOralDiet();
if (!strategy.equals(LocatorUtils.property(thisLocator, "oralDiet", lhsOralDiet), LocatorUtils.property(thatLocator, "oralDiet", rhsOralDiet), lhsOralDiet, rhsOralDiet, (this.oralDiet!= null), (that.oralDiet!= null))) {
return false;
}
}
{
List lhsSupplement;
lhsSupplement = (((this.supplement!= null)&&(!this.supplement.isEmpty()))?this.getSupplement():null);
List rhsSupplement;
rhsSupplement = (((that.supplement!= null)&&(!that.supplement.isEmpty()))?that.getSupplement():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "supplement", lhsSupplement), LocatorUtils.property(thatLocator, "supplement", rhsSupplement), lhsSupplement, rhsSupplement, ((this.supplement!= null)&&(!this.supplement.isEmpty())), ((that.supplement!= null)&&(!that.supplement.isEmpty())))) {
return false;
}
}
{
NutritionOrderEnteralFormula lhsEnteralFormula;
lhsEnteralFormula = this.getEnteralFormula();
NutritionOrderEnteralFormula rhsEnteralFormula;
rhsEnteralFormula = that.getEnteralFormula();
if (!strategy.equals(LocatorUtils.property(thisLocator, "enteralFormula", lhsEnteralFormula), LocatorUtils.property(thatLocator, "enteralFormula", rhsEnteralFormula), lhsEnteralFormula, rhsEnteralFormula, (this.enteralFormula!= null), (that.enteralFormula!= null))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
List theIdentifier;
theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())));
}
{
NutritionOrderStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
Reference thePatient;
thePatient = this.getPatient();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null));
}
{
DateTime theDateTime;
theDateTime = this.getDateTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateTime", theDateTime), currentHashCode, theDateTime, (this.dateTime!= null));
}
{
Reference theOrderer;
theOrderer = this.getOrderer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderer", theOrderer), currentHashCode, theOrderer, (this.orderer!= null));
}
{
List theAllergyIntolerance;
theAllergyIntolerance = (((this.allergyIntolerance!= null)&&(!this.allergyIntolerance.isEmpty()))?this.getAllergyIntolerance():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allergyIntolerance", theAllergyIntolerance), currentHashCode, theAllergyIntolerance, ((this.allergyIntolerance!= null)&&(!this.allergyIntolerance.isEmpty())));
}
{
List theFoodPreferenceModifier;
theFoodPreferenceModifier = (((this.foodPreferenceModifier!= null)&&(!this.foodPreferenceModifier.isEmpty()))?this.getFoodPreferenceModifier():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "foodPreferenceModifier", theFoodPreferenceModifier), currentHashCode, theFoodPreferenceModifier, ((this.foodPreferenceModifier!= null)&&(!this.foodPreferenceModifier.isEmpty())));
}
{
List theExcludeFoodModifier;
theExcludeFoodModifier = (((this.excludeFoodModifier!= null)&&(!this.excludeFoodModifier.isEmpty()))?this.getExcludeFoodModifier():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "excludeFoodModifier", theExcludeFoodModifier), currentHashCode, theExcludeFoodModifier, ((this.excludeFoodModifier!= null)&&(!this.excludeFoodModifier.isEmpty())));
}
{
NutritionOrderOralDiet theOralDiet;
theOralDiet = this.getOralDiet();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oralDiet", theOralDiet), currentHashCode, theOralDiet, (this.oralDiet!= null));
}
{
List theSupplement;
theSupplement = (((this.supplement!= null)&&(!this.supplement.isEmpty()))?this.getSupplement():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supplement", theSupplement), currentHashCode, theSupplement, ((this.supplement!= null)&&(!this.supplement.isEmpty())));
}
{
NutritionOrderEnteralFormula theEnteralFormula;
theEnteralFormula = this.getEnteralFormula();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enteralFormula", theEnteralFormula), currentHashCode, theEnteralFormula, (this.enteralFormula!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public java.lang.String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
List theIdentifier;
theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null);
strategy.appendField(locator, this, "identifier", buffer, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())));
}
{
NutritionOrderStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
Reference thePatient;
thePatient = this.getPatient();
strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null));
}
{
DateTime theDateTime;
theDateTime = this.getDateTime();
strategy.appendField(locator, this, "dateTime", buffer, theDateTime, (this.dateTime!= null));
}
{
Reference theOrderer;
theOrderer = this.getOrderer();
strategy.appendField(locator, this, "orderer", buffer, theOrderer, (this.orderer!= null));
}
{
List theAllergyIntolerance;
theAllergyIntolerance = (((this.allergyIntolerance!= null)&&(!this.allergyIntolerance.isEmpty()))?this.getAllergyIntolerance():null);
strategy.appendField(locator, this, "allergyIntolerance", buffer, theAllergyIntolerance, ((this.allergyIntolerance!= null)&&(!this.allergyIntolerance.isEmpty())));
}
{
List theFoodPreferenceModifier;
theFoodPreferenceModifier = (((this.foodPreferenceModifier!= null)&&(!this.foodPreferenceModifier.isEmpty()))?this.getFoodPreferenceModifier():null);
strategy.appendField(locator, this, "foodPreferenceModifier", buffer, theFoodPreferenceModifier, ((this.foodPreferenceModifier!= null)&&(!this.foodPreferenceModifier.isEmpty())));
}
{
List theExcludeFoodModifier;
theExcludeFoodModifier = (((this.excludeFoodModifier!= null)&&(!this.excludeFoodModifier.isEmpty()))?this.getExcludeFoodModifier():null);
strategy.appendField(locator, this, "excludeFoodModifier", buffer, theExcludeFoodModifier, ((this.excludeFoodModifier!= null)&&(!this.excludeFoodModifier.isEmpty())));
}
{
NutritionOrderOralDiet theOralDiet;
theOralDiet = this.getOralDiet();
strategy.appendField(locator, this, "oralDiet", buffer, theOralDiet, (this.oralDiet!= null));
}
{
List theSupplement;
theSupplement = (((this.supplement!= null)&&(!this.supplement.isEmpty()))?this.getSupplement():null);
strategy.appendField(locator, this, "supplement", buffer, theSupplement, ((this.supplement!= null)&&(!this.supplement.isEmpty())));
}
{
NutritionOrderEnteralFormula theEnteralFormula;
theEnteralFormula = this.getEnteralFormula();
strategy.appendField(locator, this, "enteralFormula", buffer, theEnteralFormula, (this.enteralFormula!= null));
}
return buffer;
}
public void setIdentifier(List value) {
this.identifier = value;
}
public void setAllergyIntolerance(List value) {
this.allergyIntolerance = value;
}
public void setFoodPreferenceModifier(List value) {
this.foodPreferenceModifier = value;
}
public void setExcludeFoodModifier(List value) {
this.excludeFoodModifier = value;
}
public void setSupplement(List value) {
this.supplement = value;
}
}