All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.NutritionOrderEnteralFormula Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// 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: 2023.12.08 at 08:47:56 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.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;


/**
 * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.
 * 
 * 

Java class for NutritionOrder.EnteralFormula complex type. * *

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

 * <complexType name="NutritionOrder.EnteralFormula">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="baseFormulaType" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="baseFormulaProductName" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="additiveType" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="additiveProductName" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="caloricDensity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
 *         <element name="routeofAdministration" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="administration" type="{http://hl7.org/fhir}NutritionOrder.Administration" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="maxVolumeToDeliver" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
 *         <element name="administrationInstruction" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NutritionOrder.EnteralFormula", propOrder = { "baseFormulaType", "baseFormulaProductName", "additiveType", "additiveProductName", "caloricDensity", "routeofAdministration", "administration", "maxVolumeToDeliver", "administrationInstruction" }) public class NutritionOrderEnteralFormula extends BackboneElement implements Equals2, HashCode2, ToString2 { protected CodeableConcept baseFormulaType; protected org.hl7.fhir.String baseFormulaProductName; protected CodeableConcept additiveType; protected org.hl7.fhir.String additiveProductName; protected SimpleQuantity caloricDensity; protected CodeableConcept routeofAdministration; protected List administration; protected SimpleQuantity maxVolumeToDeliver; protected org.hl7.fhir.String administrationInstruction; /** * Gets the value of the baseFormulaType property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getBaseFormulaType() { return baseFormulaType; } /** * Sets the value of the baseFormulaType property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setBaseFormulaType(CodeableConcept value) { this.baseFormulaType = value; } /** * Gets the value of the baseFormulaProductName property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getBaseFormulaProductName() { return baseFormulaProductName; } /** * Sets the value of the baseFormulaProductName property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setBaseFormulaProductName(org.hl7.fhir.String value) { this.baseFormulaProductName = value; } /** * Gets the value of the additiveType property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getAdditiveType() { return additiveType; } /** * Sets the value of the additiveType property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setAdditiveType(CodeableConcept value) { this.additiveType = value; } /** * Gets the value of the additiveProductName property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getAdditiveProductName() { return additiveProductName; } /** * Sets the value of the additiveProductName property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setAdditiveProductName(org.hl7.fhir.String value) { this.additiveProductName = value; } /** * Gets the value of the caloricDensity property. * * @return * possible object is * {@link SimpleQuantity } * */ public SimpleQuantity getCaloricDensity() { return caloricDensity; } /** * Sets the value of the caloricDensity property. * * @param value * allowed object is * {@link SimpleQuantity } * */ public void setCaloricDensity(SimpleQuantity value) { this.caloricDensity = value; } /** * Gets the value of the routeofAdministration property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getRouteofAdministration() { return routeofAdministration; } /** * Sets the value of the routeofAdministration property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setRouteofAdministration(CodeableConcept value) { this.routeofAdministration = value; } /** * Gets the value of the administration 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 administration property. * *

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

     *    getAdministration().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NutritionOrderAdministration } * * */ public List getAdministration() { if (administration == null) { administration = new ArrayList(); } return this.administration; } /** * Gets the value of the maxVolumeToDeliver property. * * @return * possible object is * {@link SimpleQuantity } * */ public SimpleQuantity getMaxVolumeToDeliver() { return maxVolumeToDeliver; } /** * Sets the value of the maxVolumeToDeliver property. * * @param value * allowed object is * {@link SimpleQuantity } * */ public void setMaxVolumeToDeliver(SimpleQuantity value) { this.maxVolumeToDeliver = value; } /** * Gets the value of the administrationInstruction property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getAdministrationInstruction() { return administrationInstruction; } /** * Sets the value of the administrationInstruction property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setAdministrationInstruction(org.hl7.fhir.String value) { this.administrationInstruction = value; } public NutritionOrderEnteralFormula withBaseFormulaType(CodeableConcept value) { setBaseFormulaType(value); return this; } public NutritionOrderEnteralFormula withBaseFormulaProductName(org.hl7.fhir.String value) { setBaseFormulaProductName(value); return this; } public NutritionOrderEnteralFormula withAdditiveType(CodeableConcept value) { setAdditiveType(value); return this; } public NutritionOrderEnteralFormula withAdditiveProductName(org.hl7.fhir.String value) { setAdditiveProductName(value); return this; } public NutritionOrderEnteralFormula withCaloricDensity(SimpleQuantity value) { setCaloricDensity(value); return this; } public NutritionOrderEnteralFormula withRouteofAdministration(CodeableConcept value) { setRouteofAdministration(value); return this; } public NutritionOrderEnteralFormula withAdministration(NutritionOrderAdministration... values) { if (values!= null) { for (NutritionOrderAdministration value: values) { getAdministration().add(value); } } return this; } public NutritionOrderEnteralFormula withAdministration(Collection values) { if (values!= null) { getAdministration().addAll(values); } return this; } public NutritionOrderEnteralFormula withMaxVolumeToDeliver(SimpleQuantity value) { setMaxVolumeToDeliver(value); return this; } public NutritionOrderEnteralFormula withAdministrationInstruction(org.hl7.fhir.String value) { setAdministrationInstruction(value); return this; } @Override public NutritionOrderEnteralFormula withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public NutritionOrderEnteralFormula withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public NutritionOrderEnteralFormula withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public NutritionOrderEnteralFormula withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public NutritionOrderEnteralFormula withId(java.lang.String value) { setId(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 NutritionOrderEnteralFormula that = ((NutritionOrderEnteralFormula) object); { CodeableConcept lhsBaseFormulaType; lhsBaseFormulaType = this.getBaseFormulaType(); CodeableConcept rhsBaseFormulaType; rhsBaseFormulaType = that.getBaseFormulaType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "baseFormulaType", lhsBaseFormulaType), LocatorUtils.property(thatLocator, "baseFormulaType", rhsBaseFormulaType), lhsBaseFormulaType, rhsBaseFormulaType, (this.baseFormulaType!= null), (that.baseFormulaType!= null))) { return false; } } { org.hl7.fhir.String lhsBaseFormulaProductName; lhsBaseFormulaProductName = this.getBaseFormulaProductName(); org.hl7.fhir.String rhsBaseFormulaProductName; rhsBaseFormulaProductName = that.getBaseFormulaProductName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "baseFormulaProductName", lhsBaseFormulaProductName), LocatorUtils.property(thatLocator, "baseFormulaProductName", rhsBaseFormulaProductName), lhsBaseFormulaProductName, rhsBaseFormulaProductName, (this.baseFormulaProductName!= null), (that.baseFormulaProductName!= null))) { return false; } } { CodeableConcept lhsAdditiveType; lhsAdditiveType = this.getAdditiveType(); CodeableConcept rhsAdditiveType; rhsAdditiveType = that.getAdditiveType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "additiveType", lhsAdditiveType), LocatorUtils.property(thatLocator, "additiveType", rhsAdditiveType), lhsAdditiveType, rhsAdditiveType, (this.additiveType!= null), (that.additiveType!= null))) { return false; } } { org.hl7.fhir.String lhsAdditiveProductName; lhsAdditiveProductName = this.getAdditiveProductName(); org.hl7.fhir.String rhsAdditiveProductName; rhsAdditiveProductName = that.getAdditiveProductName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "additiveProductName", lhsAdditiveProductName), LocatorUtils.property(thatLocator, "additiveProductName", rhsAdditiveProductName), lhsAdditiveProductName, rhsAdditiveProductName, (this.additiveProductName!= null), (that.additiveProductName!= null))) { return false; } } { SimpleQuantity lhsCaloricDensity; lhsCaloricDensity = this.getCaloricDensity(); SimpleQuantity rhsCaloricDensity; rhsCaloricDensity = that.getCaloricDensity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "caloricDensity", lhsCaloricDensity), LocatorUtils.property(thatLocator, "caloricDensity", rhsCaloricDensity), lhsCaloricDensity, rhsCaloricDensity, (this.caloricDensity!= null), (that.caloricDensity!= null))) { return false; } } { CodeableConcept lhsRouteofAdministration; lhsRouteofAdministration = this.getRouteofAdministration(); CodeableConcept rhsRouteofAdministration; rhsRouteofAdministration = that.getRouteofAdministration(); if (!strategy.equals(LocatorUtils.property(thisLocator, "routeofAdministration", lhsRouteofAdministration), LocatorUtils.property(thatLocator, "routeofAdministration", rhsRouteofAdministration), lhsRouteofAdministration, rhsRouteofAdministration, (this.routeofAdministration!= null), (that.routeofAdministration!= null))) { return false; } } { List lhsAdministration; lhsAdministration = (((this.administration!= null)&&(!this.administration.isEmpty()))?this.getAdministration():null); List rhsAdministration; rhsAdministration = (((that.administration!= null)&&(!that.administration.isEmpty()))?that.getAdministration():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "administration", lhsAdministration), LocatorUtils.property(thatLocator, "administration", rhsAdministration), lhsAdministration, rhsAdministration, ((this.administration!= null)&&(!this.administration.isEmpty())), ((that.administration!= null)&&(!that.administration.isEmpty())))) { return false; } } { SimpleQuantity lhsMaxVolumeToDeliver; lhsMaxVolumeToDeliver = this.getMaxVolumeToDeliver(); SimpleQuantity rhsMaxVolumeToDeliver; rhsMaxVolumeToDeliver = that.getMaxVolumeToDeliver(); if (!strategy.equals(LocatorUtils.property(thisLocator, "maxVolumeToDeliver", lhsMaxVolumeToDeliver), LocatorUtils.property(thatLocator, "maxVolumeToDeliver", rhsMaxVolumeToDeliver), lhsMaxVolumeToDeliver, rhsMaxVolumeToDeliver, (this.maxVolumeToDeliver!= null), (that.maxVolumeToDeliver!= null))) { return false; } } { org.hl7.fhir.String lhsAdministrationInstruction; lhsAdministrationInstruction = this.getAdministrationInstruction(); org.hl7.fhir.String rhsAdministrationInstruction; rhsAdministrationInstruction = that.getAdministrationInstruction(); if (!strategy.equals(LocatorUtils.property(thisLocator, "administrationInstruction", lhsAdministrationInstruction), LocatorUtils.property(thatLocator, "administrationInstruction", rhsAdministrationInstruction), lhsAdministrationInstruction, rhsAdministrationInstruction, (this.administrationInstruction!= null), (that.administrationInstruction!= 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); { CodeableConcept theBaseFormulaType; theBaseFormulaType = this.getBaseFormulaType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "baseFormulaType", theBaseFormulaType), currentHashCode, theBaseFormulaType, (this.baseFormulaType!= null)); } { org.hl7.fhir.String theBaseFormulaProductName; theBaseFormulaProductName = this.getBaseFormulaProductName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "baseFormulaProductName", theBaseFormulaProductName), currentHashCode, theBaseFormulaProductName, (this.baseFormulaProductName!= null)); } { CodeableConcept theAdditiveType; theAdditiveType = this.getAdditiveType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additiveType", theAdditiveType), currentHashCode, theAdditiveType, (this.additiveType!= null)); } { org.hl7.fhir.String theAdditiveProductName; theAdditiveProductName = this.getAdditiveProductName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additiveProductName", theAdditiveProductName), currentHashCode, theAdditiveProductName, (this.additiveProductName!= null)); } { SimpleQuantity theCaloricDensity; theCaloricDensity = this.getCaloricDensity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "caloricDensity", theCaloricDensity), currentHashCode, theCaloricDensity, (this.caloricDensity!= null)); } { CodeableConcept theRouteofAdministration; theRouteofAdministration = this.getRouteofAdministration(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "routeofAdministration", theRouteofAdministration), currentHashCode, theRouteofAdministration, (this.routeofAdministration!= null)); } { List theAdministration; theAdministration = (((this.administration!= null)&&(!this.administration.isEmpty()))?this.getAdministration():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "administration", theAdministration), currentHashCode, theAdministration, ((this.administration!= null)&&(!this.administration.isEmpty()))); } { SimpleQuantity theMaxVolumeToDeliver; theMaxVolumeToDeliver = this.getMaxVolumeToDeliver(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maxVolumeToDeliver", theMaxVolumeToDeliver), currentHashCode, theMaxVolumeToDeliver, (this.maxVolumeToDeliver!= null)); } { org.hl7.fhir.String theAdministrationInstruction; theAdministrationInstruction = this.getAdministrationInstruction(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "administrationInstruction", theAdministrationInstruction), currentHashCode, theAdministrationInstruction, (this.administrationInstruction!= 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); { CodeableConcept theBaseFormulaType; theBaseFormulaType = this.getBaseFormulaType(); strategy.appendField(locator, this, "baseFormulaType", buffer, theBaseFormulaType, (this.baseFormulaType!= null)); } { org.hl7.fhir.String theBaseFormulaProductName; theBaseFormulaProductName = this.getBaseFormulaProductName(); strategy.appendField(locator, this, "baseFormulaProductName", buffer, theBaseFormulaProductName, (this.baseFormulaProductName!= null)); } { CodeableConcept theAdditiveType; theAdditiveType = this.getAdditiveType(); strategy.appendField(locator, this, "additiveType", buffer, theAdditiveType, (this.additiveType!= null)); } { org.hl7.fhir.String theAdditiveProductName; theAdditiveProductName = this.getAdditiveProductName(); strategy.appendField(locator, this, "additiveProductName", buffer, theAdditiveProductName, (this.additiveProductName!= null)); } { SimpleQuantity theCaloricDensity; theCaloricDensity = this.getCaloricDensity(); strategy.appendField(locator, this, "caloricDensity", buffer, theCaloricDensity, (this.caloricDensity!= null)); } { CodeableConcept theRouteofAdministration; theRouteofAdministration = this.getRouteofAdministration(); strategy.appendField(locator, this, "routeofAdministration", buffer, theRouteofAdministration, (this.routeofAdministration!= null)); } { List theAdministration; theAdministration = (((this.administration!= null)&&(!this.administration.isEmpty()))?this.getAdministration():null); strategy.appendField(locator, this, "administration", buffer, theAdministration, ((this.administration!= null)&&(!this.administration.isEmpty()))); } { SimpleQuantity theMaxVolumeToDeliver; theMaxVolumeToDeliver = this.getMaxVolumeToDeliver(); strategy.appendField(locator, this, "maxVolumeToDeliver", buffer, theMaxVolumeToDeliver, (this.maxVolumeToDeliver!= null)); } { org.hl7.fhir.String theAdministrationInstruction; theAdministrationInstruction = this.getAdministrationInstruction(); strategy.appendField(locator, this, "administrationInstruction", buffer, theAdministrationInstruction, (this.administrationInstruction!= null)); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy