org.hl7.fhir.EncounterHospitalization 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.10.07 at 09:31:25 AM MDT
//
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;
/**
* 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 Equals2, HashCode2, ToString2
{
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 Jakarta XML Binding 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 Jakarta XML Binding 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 Jakarta XML Binding 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 Jakarta XML Binding 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 Jakarta XML Binding 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;
}
@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 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, (this.preAdmissionIdentifier!= null), (that.preAdmissionIdentifier!= null))) {
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, (this.origin!= null), (that.origin!= null))) {
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, (this.admitSource!= null), (that.admitSource!= null))) {
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, ((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty())), ((that.admittingDiagnosis!= null)&&(!that.admittingDiagnosis.isEmpty())))) {
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, (this.reAdmission!= null), (that.reAdmission!= null))) {
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, ((this.dietPreference!= null)&&(!this.dietPreference.isEmpty())), ((that.dietPreference!= null)&&(!that.dietPreference.isEmpty())))) {
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, ((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty())), ((that.specialCourtesy!= null)&&(!that.specialCourtesy.isEmpty())))) {
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, ((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty())), ((that.specialArrangement!= null)&&(!that.specialArrangement.isEmpty())))) {
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, (this.destination!= null), (that.destination!= null))) {
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, (this.dischargeDisposition!= null), (that.dischargeDisposition!= null))) {
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, ((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty())), ((that.dischargeDiagnosis!= null)&&(!that.dischargeDiagnosis.isEmpty())))) {
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);
{
Identifier thePreAdmissionIdentifier;
thePreAdmissionIdentifier = this.getPreAdmissionIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "preAdmissionIdentifier", thePreAdmissionIdentifier), currentHashCode, thePreAdmissionIdentifier, (this.preAdmissionIdentifier!= null));
}
{
Reference theOrigin;
theOrigin = this.getOrigin();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "origin", theOrigin), currentHashCode, theOrigin, (this.origin!= null));
}
{
CodeableConcept theAdmitSource;
theAdmitSource = this.getAdmitSource();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admitSource", theAdmitSource), currentHashCode, theAdmitSource, (this.admitSource!= null));
}
{
List theAdmittingDiagnosis;
theAdmittingDiagnosis = (((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty()))?this.getAdmittingDiagnosis():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admittingDiagnosis", theAdmittingDiagnosis), currentHashCode, theAdmittingDiagnosis, ((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty())));
}
{
CodeableConcept theReAdmission;
theReAdmission = this.getReAdmission();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reAdmission", theReAdmission), currentHashCode, theReAdmission, (this.reAdmission!= null));
}
{
List theDietPreference;
theDietPreference = (((this.dietPreference!= null)&&(!this.dietPreference.isEmpty()))?this.getDietPreference():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dietPreference", theDietPreference), currentHashCode, theDietPreference, ((this.dietPreference!= null)&&(!this.dietPreference.isEmpty())));
}
{
List theSpecialCourtesy;
theSpecialCourtesy = (((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty()))?this.getSpecialCourtesy():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specialCourtesy", theSpecialCourtesy), currentHashCode, theSpecialCourtesy, ((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty())));
}
{
List theSpecialArrangement;
theSpecialArrangement = (((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty()))?this.getSpecialArrangement():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specialArrangement", theSpecialArrangement), currentHashCode, theSpecialArrangement, ((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty())));
}
{
Reference theDestination;
theDestination = this.getDestination();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination, (this.destination!= null));
}
{
CodeableConcept theDischargeDisposition;
theDischargeDisposition = this.getDischargeDisposition();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dischargeDisposition", theDischargeDisposition), currentHashCode, theDischargeDisposition, (this.dischargeDisposition!= null));
}
{
List theDischargeDiagnosis;
theDischargeDiagnosis = (((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty()))?this.getDischargeDiagnosis():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dischargeDiagnosis", theDischargeDiagnosis), currentHashCode, theDischargeDiagnosis, ((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty())));
}
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);
{
Identifier thePreAdmissionIdentifier;
thePreAdmissionIdentifier = this.getPreAdmissionIdentifier();
strategy.appendField(locator, this, "preAdmissionIdentifier", buffer, thePreAdmissionIdentifier, (this.preAdmissionIdentifier!= null));
}
{
Reference theOrigin;
theOrigin = this.getOrigin();
strategy.appendField(locator, this, "origin", buffer, theOrigin, (this.origin!= null));
}
{
CodeableConcept theAdmitSource;
theAdmitSource = this.getAdmitSource();
strategy.appendField(locator, this, "admitSource", buffer, theAdmitSource, (this.admitSource!= null));
}
{
List theAdmittingDiagnosis;
theAdmittingDiagnosis = (((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty()))?this.getAdmittingDiagnosis():null);
strategy.appendField(locator, this, "admittingDiagnosis", buffer, theAdmittingDiagnosis, ((this.admittingDiagnosis!= null)&&(!this.admittingDiagnosis.isEmpty())));
}
{
CodeableConcept theReAdmission;
theReAdmission = this.getReAdmission();
strategy.appendField(locator, this, "reAdmission", buffer, theReAdmission, (this.reAdmission!= null));
}
{
List theDietPreference;
theDietPreference = (((this.dietPreference!= null)&&(!this.dietPreference.isEmpty()))?this.getDietPreference():null);
strategy.appendField(locator, this, "dietPreference", buffer, theDietPreference, ((this.dietPreference!= null)&&(!this.dietPreference.isEmpty())));
}
{
List theSpecialCourtesy;
theSpecialCourtesy = (((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty()))?this.getSpecialCourtesy():null);
strategy.appendField(locator, this, "specialCourtesy", buffer, theSpecialCourtesy, ((this.specialCourtesy!= null)&&(!this.specialCourtesy.isEmpty())));
}
{
List theSpecialArrangement;
theSpecialArrangement = (((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty()))?this.getSpecialArrangement():null);
strategy.appendField(locator, this, "specialArrangement", buffer, theSpecialArrangement, ((this.specialArrangement!= null)&&(!this.specialArrangement.isEmpty())));
}
{
Reference theDestination;
theDestination = this.getDestination();
strategy.appendField(locator, this, "destination", buffer, theDestination, (this.destination!= null));
}
{
CodeableConcept theDischargeDisposition;
theDischargeDisposition = this.getDischargeDisposition();
strategy.appendField(locator, this, "dischargeDisposition", buffer, theDischargeDisposition, (this.dischargeDisposition!= null));
}
{
List theDischargeDiagnosis;
theDischargeDiagnosis = (((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty()))?this.getDischargeDiagnosis():null);
strategy.appendField(locator, this, "dischargeDiagnosis", buffer, theDischargeDiagnosis, ((this.dischargeDiagnosis!= null)&&(!this.dischargeDiagnosis.isEmpty())));
}
return buffer;
}
public void setAdmittingDiagnosis(List value) {
this.admittingDiagnosis = value;
}
public void setDietPreference(List value) {
this.dietPreference = value;
}
public void setSpecialCourtesy(List value) {
this.specialCourtesy = value;
}
public void setSpecialArrangement(List value) {
this.specialArrangement = value;
}
public void setDischargeDiagnosis(List value) {
this.dischargeDiagnosis = value;
}
}