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

org.hl7.fhir.EncounterHospitalization 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;


/**
 * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
 * 
 * 

Java class for Encounter.Hospitalization complex type. * *

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

 * <complexType name="Encounter.Hospitalization">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="preAdmissionIdentifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
 *         <element name="origin" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="admitSource" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="admittingDiagnosis" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="reAdmission" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="dietPreference" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="specialCourtesy" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="specialArrangement" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="destination" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="dischargeDisposition" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="dischargeDiagnosis" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Encounter.Hospitalization", propOrder = { "preAdmissionIdentifier", "origin", "admitSource", "admittingDiagnosis", "reAdmission", "dietPreference", "specialCourtesy", "specialArrangement", "destination", "dischargeDisposition", "dischargeDiagnosis" }) public class EncounterHospitalization extends BackboneElement implements Equals, HashCode, ToString { protected Identifier preAdmissionIdentifier; protected Reference origin; protected CodeableConcept admitSource; protected List admittingDiagnosis; protected CodeableConcept reAdmission; protected List dietPreference; protected List specialCourtesy; protected List specialArrangement; protected Reference destination; protected CodeableConcept dischargeDisposition; protected List dischargeDiagnosis; /** * Gets the value of the preAdmissionIdentifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getPreAdmissionIdentifier() { return preAdmissionIdentifier; } /** * Sets the value of the preAdmissionIdentifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setPreAdmissionIdentifier(Identifier value) { this.preAdmissionIdentifier = value; } /** * Gets the value of the origin property. * * @return * possible object is * {@link Reference } * */ public Reference getOrigin() { return origin; } /** * Sets the value of the origin property. * * @param value * allowed object is * {@link Reference } * */ public void setOrigin(Reference value) { this.origin = value; } /** * Gets the value of the admitSource property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getAdmitSource() { return admitSource; } /** * Sets the value of the admitSource property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setAdmitSource(CodeableConcept value) { this.admitSource = value; } /** * Gets the value of the admittingDiagnosis 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 admittingDiagnosis property. * *

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

     *    getAdmittingDiagnosis().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getAdmittingDiagnosis() { if (admittingDiagnosis == null) { admittingDiagnosis = new ArrayList(); } return this.admittingDiagnosis; } /** * Gets the value of the reAdmission property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getReAdmission() { return reAdmission; } /** * Sets the value of the reAdmission property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setReAdmission(CodeableConcept value) { this.reAdmission = value; } /** * Gets the value of the dietPreference 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 dietPreference property. * *

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

     *    getDietPreference().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getDietPreference() { if (dietPreference == null) { dietPreference = new ArrayList(); } return this.dietPreference; } /** * Gets the value of the specialCourtesy 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 specialCourtesy property. * *

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

     *    getSpecialCourtesy().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getSpecialCourtesy() { if (specialCourtesy == null) { specialCourtesy = new ArrayList(); } return this.specialCourtesy; } /** * Gets the value of the specialArrangement 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 specialArrangement property. * *

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

     *    getSpecialArrangement().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getSpecialArrangement() { if (specialArrangement == null) { specialArrangement = new ArrayList(); } return this.specialArrangement; } /** * Gets the value of the destination property. * * @return * possible object is * {@link Reference } * */ public Reference getDestination() { return destination; } /** * Sets the value of the destination property. * * @param value * allowed object is * {@link Reference } * */ public void setDestination(Reference value) { this.destination = value; } /** * Gets the value of the dischargeDisposition property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getDischargeDisposition() { return dischargeDisposition; } /** * Sets the value of the dischargeDisposition property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setDischargeDisposition(CodeableConcept value) { this.dischargeDisposition = value; } /** * Gets the value of the dischargeDiagnosis 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 dischargeDiagnosis property. * *

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

     *    getDischargeDiagnosis().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getDischargeDiagnosis() { if (dischargeDiagnosis == null) { dischargeDiagnosis = new ArrayList(); } return this.dischargeDiagnosis; } public EncounterHospitalization withPreAdmissionIdentifier(Identifier value) { setPreAdmissionIdentifier(value); return this; } public EncounterHospitalization withOrigin(Reference value) { setOrigin(value); return this; } public EncounterHospitalization withAdmitSource(CodeableConcept value) { setAdmitSource(value); return this; } public EncounterHospitalization withAdmittingDiagnosis(Reference... values) { if (values!= null) { for (Reference value: values) { getAdmittingDiagnosis().add(value); } } return this; } public EncounterHospitalization withAdmittingDiagnosis(Collection values) { if (values!= null) { getAdmittingDiagnosis().addAll(values); } return this; } public EncounterHospitalization withReAdmission(CodeableConcept value) { setReAdmission(value); return this; } public EncounterHospitalization withDietPreference(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getDietPreference().add(value); } } return this; } public EncounterHospitalization withDietPreference(Collection values) { if (values!= null) { getDietPreference().addAll(values); } return this; } public EncounterHospitalization withSpecialCourtesy(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getSpecialCourtesy().add(value); } } return this; } public EncounterHospitalization withSpecialCourtesy(Collection values) { if (values!= null) { getSpecialCourtesy().addAll(values); } return this; } public EncounterHospitalization withSpecialArrangement(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getSpecialArrangement().add(value); } } return this; } public EncounterHospitalization withSpecialArrangement(Collection values) { if (values!= null) { getSpecialArrangement().addAll(values); } return this; } public EncounterHospitalization withDestination(Reference value) { setDestination(value); return this; } public EncounterHospitalization withDischargeDisposition(CodeableConcept value) { setDischargeDisposition(value); return this; } public EncounterHospitalization withDischargeDiagnosis(Reference... values) { if (values!= null) { for (Reference value: values) { getDischargeDiagnosis().add(value); } } return this; } public EncounterHospitalization withDischargeDiagnosis(Collection values) { if (values!= null) { getDischargeDiagnosis().addAll(values); } return this; } @Override public EncounterHospitalization withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public EncounterHospitalization withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public EncounterHospitalization withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public EncounterHospitalization withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public EncounterHospitalization withId(java.lang.String value) { setId(value); return this; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof EncounterHospitalization)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final EncounterHospitalization that = ((EncounterHospitalization) object); { Identifier lhsPreAdmissionIdentifier; lhsPreAdmissionIdentifier = this.getPreAdmissionIdentifier(); Identifier rhsPreAdmissionIdentifier; rhsPreAdmissionIdentifier = that.getPreAdmissionIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "preAdmissionIdentifier", lhsPreAdmissionIdentifier), LocatorUtils.property(thatLocator, "preAdmissionIdentifier", rhsPreAdmissionIdentifier), lhsPreAdmissionIdentifier, rhsPreAdmissionIdentifier)) { return false; } } { Reference lhsOrigin; lhsOrigin = this.getOrigin(); Reference rhsOrigin; rhsOrigin = that.getOrigin(); if (!strategy.equals(LocatorUtils.property(thisLocator, "origin", lhsOrigin), LocatorUtils.property(thatLocator, "origin", rhsOrigin), lhsOrigin, rhsOrigin)) { return false; } } { CodeableConcept lhsAdmitSource; lhsAdmitSource = this.getAdmitSource(); CodeableConcept rhsAdmitSource; rhsAdmitSource = that.getAdmitSource(); if (!strategy.equals(LocatorUtils.property(thisLocator, "admitSource", lhsAdmitSource), LocatorUtils.property(thatLocator, "admitSource", rhsAdmitSource), lhsAdmitSource, rhsAdmitSource)) { return false; } } { List lhsAdmittingDiagnosis; lhsAdmittingDiagnosis = (((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty()))?this.getAdmittingDiagnosis():null); List rhsAdmittingDiagnosis; rhsAdmittingDiagnosis = (((that.admittingDiagnosis!= null)&&(!that.admittingDiagnosis.isEmpty()))?that.getAdmittingDiagnosis():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "admittingDiagnosis", lhsAdmittingDiagnosis), LocatorUtils.property(thatLocator, "admittingDiagnosis", rhsAdmittingDiagnosis), lhsAdmittingDiagnosis, rhsAdmittingDiagnosis)) { return false; } } { CodeableConcept lhsReAdmission; lhsReAdmission = this.getReAdmission(); CodeableConcept rhsReAdmission; rhsReAdmission = that.getReAdmission(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reAdmission", lhsReAdmission), LocatorUtils.property(thatLocator, "reAdmission", rhsReAdmission), lhsReAdmission, rhsReAdmission)) { return false; } } { List lhsDietPreference; lhsDietPreference = (((this.dietPreference!= null)&&(!this.dietPreference.isEmpty()))?this.getDietPreference():null); List rhsDietPreference; rhsDietPreference = (((that.dietPreference!= null)&&(!that.dietPreference.isEmpty()))?that.getDietPreference():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dietPreference", lhsDietPreference), LocatorUtils.property(thatLocator, "dietPreference", rhsDietPreference), lhsDietPreference, rhsDietPreference)) { return false; } } { List lhsSpecialCourtesy; lhsSpecialCourtesy = (((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty()))?this.getSpecialCourtesy():null); List rhsSpecialCourtesy; rhsSpecialCourtesy = (((that.specialCourtesy!= null)&&(!that.specialCourtesy.isEmpty()))?that.getSpecialCourtesy():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "specialCourtesy", lhsSpecialCourtesy), LocatorUtils.property(thatLocator, "specialCourtesy", rhsSpecialCourtesy), lhsSpecialCourtesy, rhsSpecialCourtesy)) { return false; } } { List lhsSpecialArrangement; lhsSpecialArrangement = (((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty()))?this.getSpecialArrangement():null); List rhsSpecialArrangement; rhsSpecialArrangement = (((that.specialArrangement!= null)&&(!that.specialArrangement.isEmpty()))?that.getSpecialArrangement():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "specialArrangement", lhsSpecialArrangement), LocatorUtils.property(thatLocator, "specialArrangement", rhsSpecialArrangement), lhsSpecialArrangement, rhsSpecialArrangement)) { return false; } } { Reference lhsDestination; lhsDestination = this.getDestination(); Reference rhsDestination; rhsDestination = that.getDestination(); if (!strategy.equals(LocatorUtils.property(thisLocator, "destination", lhsDestination), LocatorUtils.property(thatLocator, "destination", rhsDestination), lhsDestination, rhsDestination)) { return false; } } { CodeableConcept lhsDischargeDisposition; lhsDischargeDisposition = this.getDischargeDisposition(); CodeableConcept rhsDischargeDisposition; rhsDischargeDisposition = that.getDischargeDisposition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dischargeDisposition", lhsDischargeDisposition), LocatorUtils.property(thatLocator, "dischargeDisposition", rhsDischargeDisposition), lhsDischargeDisposition, rhsDischargeDisposition)) { return false; } } { List lhsDischargeDiagnosis; lhsDischargeDiagnosis = (((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty()))?this.getDischargeDiagnosis():null); List rhsDischargeDiagnosis; rhsDischargeDiagnosis = (((that.dischargeDiagnosis!= null)&&(!that.dischargeDiagnosis.isEmpty()))?that.getDischargeDiagnosis():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dischargeDiagnosis", lhsDischargeDiagnosis), LocatorUtils.property(thatLocator, "dischargeDiagnosis", rhsDischargeDiagnosis), lhsDischargeDiagnosis, rhsDischargeDiagnosis)) { 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); { Identifier thePreAdmissionIdentifier; thePreAdmissionIdentifier = this.getPreAdmissionIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "preAdmissionIdentifier", thePreAdmissionIdentifier), currentHashCode, thePreAdmissionIdentifier); } { Reference theOrigin; theOrigin = this.getOrigin(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "origin", theOrigin), currentHashCode, theOrigin); } { CodeableConcept theAdmitSource; theAdmitSource = this.getAdmitSource(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admitSource", theAdmitSource), currentHashCode, theAdmitSource); } { List theAdmittingDiagnosis; theAdmittingDiagnosis = (((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty()))?this.getAdmittingDiagnosis():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admittingDiagnosis", theAdmittingDiagnosis), currentHashCode, theAdmittingDiagnosis); } { CodeableConcept theReAdmission; theReAdmission = this.getReAdmission(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reAdmission", theReAdmission), currentHashCode, theReAdmission); } { List theDietPreference; theDietPreference = (((this.dietPreference!= null)&&(!this.dietPreference.isEmpty()))?this.getDietPreference():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dietPreference", theDietPreference), currentHashCode, theDietPreference); } { List theSpecialCourtesy; theSpecialCourtesy = (((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty()))?this.getSpecialCourtesy():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specialCourtesy", theSpecialCourtesy), currentHashCode, theSpecialCourtesy); } { List theSpecialArrangement; theSpecialArrangement = (((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty()))?this.getSpecialArrangement():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specialArrangement", theSpecialArrangement), currentHashCode, theSpecialArrangement); } { Reference theDestination; theDestination = this.getDestination(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination); } { CodeableConcept theDischargeDisposition; theDischargeDisposition = this.getDischargeDisposition(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dischargeDisposition", theDischargeDisposition), currentHashCode, theDischargeDisposition); } { List theDischargeDiagnosis; theDischargeDiagnosis = (((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty()))?this.getDischargeDiagnosis():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dischargeDiagnosis", theDischargeDiagnosis), currentHashCode, theDischargeDiagnosis); } 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); { Identifier thePreAdmissionIdentifier; thePreAdmissionIdentifier = this.getPreAdmissionIdentifier(); strategy.appendField(locator, this, "preAdmissionIdentifier", buffer, thePreAdmissionIdentifier); } { Reference theOrigin; theOrigin = this.getOrigin(); strategy.appendField(locator, this, "origin", buffer, theOrigin); } { CodeableConcept theAdmitSource; theAdmitSource = this.getAdmitSource(); strategy.appendField(locator, this, "admitSource", buffer, theAdmitSource); } { List theAdmittingDiagnosis; theAdmittingDiagnosis = (((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty()))?this.getAdmittingDiagnosis():null); strategy.appendField(locator, this, "admittingDiagnosis", buffer, theAdmittingDiagnosis); } { CodeableConcept theReAdmission; theReAdmission = this.getReAdmission(); strategy.appendField(locator, this, "reAdmission", buffer, theReAdmission); } { List theDietPreference; theDietPreference = (((this.dietPreference!= null)&&(!this.dietPreference.isEmpty()))?this.getDietPreference():null); strategy.appendField(locator, this, "dietPreference", buffer, theDietPreference); } { List theSpecialCourtesy; theSpecialCourtesy = (((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty()))?this.getSpecialCourtesy():null); strategy.appendField(locator, this, "specialCourtesy", buffer, theSpecialCourtesy); } { List theSpecialArrangement; theSpecialArrangement = (((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty()))?this.getSpecialArrangement():null); strategy.appendField(locator, this, "specialArrangement", buffer, theSpecialArrangement); } { Reference theDestination; theDestination = this.getDestination(); strategy.appendField(locator, this, "destination", buffer, theDestination); } { CodeableConcept theDischargeDisposition; theDischargeDisposition = this.getDischargeDisposition(); strategy.appendField(locator, this, "dischargeDisposition", buffer, theDischargeDisposition); } { List theDischargeDiagnosis; theDischargeDiagnosis = (((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty()))?this.getDischargeDiagnosis():null); strategy.appendField(locator, this, "dischargeDiagnosis", buffer, theDischargeDiagnosis); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy