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.22.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.01.12 at 11:04:27 AM MST 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString { 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 JAXB 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof NutritionOrderEnteralFormula)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { CodeableConcept theBaseFormulaType; theBaseFormulaType = this.getBaseFormulaType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "baseFormulaType", theBaseFormulaType), currentHashCode, theBaseFormulaType); } { org.hl7.fhir.String theBaseFormulaProductName; theBaseFormulaProductName = this.getBaseFormulaProductName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "baseFormulaProductName", theBaseFormulaProductName), currentHashCode, theBaseFormulaProductName); } { CodeableConcept theAdditiveType; theAdditiveType = this.getAdditiveType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additiveType", theAdditiveType), currentHashCode, theAdditiveType); } { org.hl7.fhir.String theAdditiveProductName; theAdditiveProductName = this.getAdditiveProductName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additiveProductName", theAdditiveProductName), currentHashCode, theAdditiveProductName); } { SimpleQuantity theCaloricDensity; theCaloricDensity = this.getCaloricDensity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "caloricDensity", theCaloricDensity), currentHashCode, theCaloricDensity); } { CodeableConcept theRouteofAdministration; theRouteofAdministration = this.getRouteofAdministration(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "routeofAdministration", theRouteofAdministration), currentHashCode, theRouteofAdministration); } { List theAdministration; theAdministration = (((this.administration!= null)&&(!this.administration.isEmpty()))?this.getAdministration():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "administration", theAdministration), currentHashCode, theAdministration); } { SimpleQuantity theMaxVolumeToDeliver; theMaxVolumeToDeliver = this.getMaxVolumeToDeliver(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maxVolumeToDeliver", theMaxVolumeToDeliver), currentHashCode, theMaxVolumeToDeliver); } { org.hl7.fhir.String theAdministrationInstruction; theAdministrationInstruction = this.getAdministrationInstruction(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "administrationInstruction", theAdministrationInstruction), currentHashCode, theAdministrationInstruction); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public java.lang.String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { CodeableConcept theBaseFormulaType; theBaseFormulaType = this.getBaseFormulaType(); strategy.appendField(locator, this, "baseFormulaType", buffer, theBaseFormulaType); } { org.hl7.fhir.String theBaseFormulaProductName; theBaseFormulaProductName = this.getBaseFormulaProductName(); strategy.appendField(locator, this, "baseFormulaProductName", buffer, theBaseFormulaProductName); } { CodeableConcept theAdditiveType; theAdditiveType = this.getAdditiveType(); strategy.appendField(locator, this, "additiveType", buffer, theAdditiveType); } { org.hl7.fhir.String theAdditiveProductName; theAdditiveProductName = this.getAdditiveProductName(); strategy.appendField(locator, this, "additiveProductName", buffer, theAdditiveProductName); } { SimpleQuantity theCaloricDensity; theCaloricDensity = this.getCaloricDensity(); strategy.appendField(locator, this, "caloricDensity", buffer, theCaloricDensity); } { CodeableConcept theRouteofAdministration; theRouteofAdministration = this.getRouteofAdministration(); strategy.appendField(locator, this, "routeofAdministration", buffer, theRouteofAdministration); } { List theAdministration; theAdministration = (((this.administration!= null)&&(!this.administration.isEmpty()))?this.getAdministration():null); strategy.appendField(locator, this, "administration", buffer, theAdministration); } { SimpleQuantity theMaxVolumeToDeliver; theMaxVolumeToDeliver = this.getMaxVolumeToDeliver(); strategy.appendField(locator, this, "maxVolumeToDeliver", buffer, theMaxVolumeToDeliver); } { org.hl7.fhir.String theAdministrationInstruction; theAdministrationInstruction = this.getAdministrationInstruction(); strategy.appendField(locator, this, "administrationInstruction", buffer, theAdministrationInstruction); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy