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

gov.healthit.qdm.v4_1_2.EncounterPerformed Maven / Gradle / Ivy

Go to download

The qdm 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: 2024.08.16 at 09:36:50 AM MDT 
//


package gov.healthit.qdm.v4_1_2;

import javax.xml.datatype.XMLGregorianCalendar;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
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;


/**
 * 

Java class for EncounterPerformed complex type. * *

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

 * <complexType name="EncounterPerformed">
 *   <complexContent>
 *     <extension base="{urn:healthit-gov:qdm:v4_1_2}QDMBaseType">
 *       <sequence>
 *         <element name="admissionDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="dischargeDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="dischargeStatus" type="{urn:healthit-gov:qdm:v4_1_2}CodeableConcept" minOccurs="0"/>
 *         <element name="facilityLocation" type="{urn:healthit-gov:qdm:v4_1_2}CodeableConcept" minOccurs="0"/>
 *         <element name="facilityLocationArrivalDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="facilityLocationDepartureDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="lengthOfStay" type="{urn:healthit-gov:qdm:v4_1_2}Quantity" minOccurs="0"/>
 *         <element name="reason" type="{urn:healthit-gov:qdm:v4_1_2}CodeableConcept" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EncounterPerformed", propOrder = { "admissionDatetime", "dischargeDatetime", "dischargeStatus", "facilityLocation", "facilityLocationArrivalDatetime", "facilityLocationDepartureDatetime", "lengthOfStay", "reason" }) public class EncounterPerformed extends QDMBaseType implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar admissionDatetime; @XmlElement(required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar dischargeDatetime; protected CodeableConcept dischargeStatus; protected CodeableConcept facilityLocation; @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar facilityLocationArrivalDatetime; @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar facilityLocationDepartureDatetime; protected Quantity lengthOfStay; protected CodeableConcept reason; /** * Gets the value of the admissionDatetime property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getAdmissionDatetime() { return admissionDatetime; } /** * Sets the value of the admissionDatetime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setAdmissionDatetime(XMLGregorianCalendar value) { this.admissionDatetime = value; } /** * Gets the value of the dischargeDatetime property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getDischargeDatetime() { return dischargeDatetime; } /** * Sets the value of the dischargeDatetime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setDischargeDatetime(XMLGregorianCalendar value) { this.dischargeDatetime = value; } /** * Gets the value of the dischargeStatus property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getDischargeStatus() { return dischargeStatus; } /** * Sets the value of the dischargeStatus property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setDischargeStatus(CodeableConcept value) { this.dischargeStatus = value; } /** * Gets the value of the facilityLocation property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getFacilityLocation() { return facilityLocation; } /** * Sets the value of the facilityLocation property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setFacilityLocation(CodeableConcept value) { this.facilityLocation = value; } /** * Gets the value of the facilityLocationArrivalDatetime property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getFacilityLocationArrivalDatetime() { return facilityLocationArrivalDatetime; } /** * Sets the value of the facilityLocationArrivalDatetime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setFacilityLocationArrivalDatetime(XMLGregorianCalendar value) { this.facilityLocationArrivalDatetime = value; } /** * Gets the value of the facilityLocationDepartureDatetime property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getFacilityLocationDepartureDatetime() { return facilityLocationDepartureDatetime; } /** * Sets the value of the facilityLocationDepartureDatetime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setFacilityLocationDepartureDatetime(XMLGregorianCalendar value) { this.facilityLocationDepartureDatetime = value; } /** * Gets the value of the lengthOfStay property. * * @return * possible object is * {@link Quantity } * */ public Quantity getLengthOfStay() { return lengthOfStay; } /** * Sets the value of the lengthOfStay property. * * @param value * allowed object is * {@link Quantity } * */ public void setLengthOfStay(Quantity value) { this.lengthOfStay = value; } /** * Gets the value of the reason property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getReason() { return reason; } /** * Sets the value of the reason property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setReason(CodeableConcept value) { this.reason = value; } public EncounterPerformed withAdmissionDatetime(XMLGregorianCalendar value) { setAdmissionDatetime(value); return this; } public EncounterPerformed withDischargeDatetime(XMLGregorianCalendar value) { setDischargeDatetime(value); return this; } public EncounterPerformed withDischargeStatus(CodeableConcept value) { setDischargeStatus(value); return this; } public EncounterPerformed withFacilityLocation(CodeableConcept value) { setFacilityLocation(value); return this; } public EncounterPerformed withFacilityLocationArrivalDatetime(XMLGregorianCalendar value) { setFacilityLocationArrivalDatetime(value); return this; } public EncounterPerformed withFacilityLocationDepartureDatetime(XMLGregorianCalendar value) { setFacilityLocationDepartureDatetime(value); return this; } public EncounterPerformed withLengthOfStay(Quantity value) { setLengthOfStay(value); return this; } public EncounterPerformed withReason(CodeableConcept value) { setReason(value); return this; } @Override public EncounterPerformed withCode(CodeableConcept value) { setCode(value); return this; } @Override public EncounterPerformed withStartDatetime(XMLGregorianCalendar value) { setStartDatetime(value); return this; } @Override public EncounterPerformed withStopDatetime(XMLGregorianCalendar value) { setStopDatetime(value); return this; } @Override public EncounterPerformed withNegationRationale(CodeableConcept value) { setNegationRationale(value); return this; } @Override public EncounterPerformed withPatientPreference(CodeableConcept value) { setPatientPreference(value); return this; } @Override public EncounterPerformed withProviderPreference(CodeableConcept value) { setProviderPreference(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 EncounterPerformed that = ((EncounterPerformed) object); { XMLGregorianCalendar lhsAdmissionDatetime; lhsAdmissionDatetime = this.getAdmissionDatetime(); XMLGregorianCalendar rhsAdmissionDatetime; rhsAdmissionDatetime = that.getAdmissionDatetime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "admissionDatetime", lhsAdmissionDatetime), LocatorUtils.property(thatLocator, "admissionDatetime", rhsAdmissionDatetime), lhsAdmissionDatetime, rhsAdmissionDatetime, (this.admissionDatetime!= null), (that.admissionDatetime!= null))) { return false; } } { XMLGregorianCalendar lhsDischargeDatetime; lhsDischargeDatetime = this.getDischargeDatetime(); XMLGregorianCalendar rhsDischargeDatetime; rhsDischargeDatetime = that.getDischargeDatetime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dischargeDatetime", lhsDischargeDatetime), LocatorUtils.property(thatLocator, "dischargeDatetime", rhsDischargeDatetime), lhsDischargeDatetime, rhsDischargeDatetime, (this.dischargeDatetime!= null), (that.dischargeDatetime!= null))) { return false; } } { CodeableConcept lhsDischargeStatus; lhsDischargeStatus = this.getDischargeStatus(); CodeableConcept rhsDischargeStatus; rhsDischargeStatus = that.getDischargeStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dischargeStatus", lhsDischargeStatus), LocatorUtils.property(thatLocator, "dischargeStatus", rhsDischargeStatus), lhsDischargeStatus, rhsDischargeStatus, (this.dischargeStatus!= null), (that.dischargeStatus!= null))) { return false; } } { CodeableConcept lhsFacilityLocation; lhsFacilityLocation = this.getFacilityLocation(); CodeableConcept rhsFacilityLocation; rhsFacilityLocation = that.getFacilityLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "facilityLocation", lhsFacilityLocation), LocatorUtils.property(thatLocator, "facilityLocation", rhsFacilityLocation), lhsFacilityLocation, rhsFacilityLocation, (this.facilityLocation!= null), (that.facilityLocation!= null))) { return false; } } { XMLGregorianCalendar lhsFacilityLocationArrivalDatetime; lhsFacilityLocationArrivalDatetime = this.getFacilityLocationArrivalDatetime(); XMLGregorianCalendar rhsFacilityLocationArrivalDatetime; rhsFacilityLocationArrivalDatetime = that.getFacilityLocationArrivalDatetime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "facilityLocationArrivalDatetime", lhsFacilityLocationArrivalDatetime), LocatorUtils.property(thatLocator, "facilityLocationArrivalDatetime", rhsFacilityLocationArrivalDatetime), lhsFacilityLocationArrivalDatetime, rhsFacilityLocationArrivalDatetime, (this.facilityLocationArrivalDatetime!= null), (that.facilityLocationArrivalDatetime!= null))) { return false; } } { XMLGregorianCalendar lhsFacilityLocationDepartureDatetime; lhsFacilityLocationDepartureDatetime = this.getFacilityLocationDepartureDatetime(); XMLGregorianCalendar rhsFacilityLocationDepartureDatetime; rhsFacilityLocationDepartureDatetime = that.getFacilityLocationDepartureDatetime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "facilityLocationDepartureDatetime", lhsFacilityLocationDepartureDatetime), LocatorUtils.property(thatLocator, "facilityLocationDepartureDatetime", rhsFacilityLocationDepartureDatetime), lhsFacilityLocationDepartureDatetime, rhsFacilityLocationDepartureDatetime, (this.facilityLocationDepartureDatetime!= null), (that.facilityLocationDepartureDatetime!= null))) { return false; } } { Quantity lhsLengthOfStay; lhsLengthOfStay = this.getLengthOfStay(); Quantity rhsLengthOfStay; rhsLengthOfStay = that.getLengthOfStay(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lengthOfStay", lhsLengthOfStay), LocatorUtils.property(thatLocator, "lengthOfStay", rhsLengthOfStay), lhsLengthOfStay, rhsLengthOfStay, (this.lengthOfStay!= null), (that.lengthOfStay!= null))) { return false; } } { CodeableConcept lhsReason; lhsReason = this.getReason(); CodeableConcept rhsReason; rhsReason = that.getReason(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reason", lhsReason), LocatorUtils.property(thatLocator, "reason", rhsReason), lhsReason, rhsReason, (this.reason!= null), (that.reason!= 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); { XMLGregorianCalendar theAdmissionDatetime; theAdmissionDatetime = this.getAdmissionDatetime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admissionDatetime", theAdmissionDatetime), currentHashCode, theAdmissionDatetime, (this.admissionDatetime!= null)); } { XMLGregorianCalendar theDischargeDatetime; theDischargeDatetime = this.getDischargeDatetime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dischargeDatetime", theDischargeDatetime), currentHashCode, theDischargeDatetime, (this.dischargeDatetime!= null)); } { CodeableConcept theDischargeStatus; theDischargeStatus = this.getDischargeStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dischargeStatus", theDischargeStatus), currentHashCode, theDischargeStatus, (this.dischargeStatus!= null)); } { CodeableConcept theFacilityLocation; theFacilityLocation = this.getFacilityLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "facilityLocation", theFacilityLocation), currentHashCode, theFacilityLocation, (this.facilityLocation!= null)); } { XMLGregorianCalendar theFacilityLocationArrivalDatetime; theFacilityLocationArrivalDatetime = this.getFacilityLocationArrivalDatetime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "facilityLocationArrivalDatetime", theFacilityLocationArrivalDatetime), currentHashCode, theFacilityLocationArrivalDatetime, (this.facilityLocationArrivalDatetime!= null)); } { XMLGregorianCalendar theFacilityLocationDepartureDatetime; theFacilityLocationDepartureDatetime = this.getFacilityLocationDepartureDatetime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "facilityLocationDepartureDatetime", theFacilityLocationDepartureDatetime), currentHashCode, theFacilityLocationDepartureDatetime, (this.facilityLocationDepartureDatetime!= null)); } { Quantity theLengthOfStay; theLengthOfStay = this.getLengthOfStay(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lengthOfStay", theLengthOfStay), currentHashCode, theLengthOfStay, (this.lengthOfStay!= null)); } { CodeableConcept theReason; theReason = this.getReason(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reason", theReason), currentHashCode, theReason, (this.reason!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public 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); { XMLGregorianCalendar theAdmissionDatetime; theAdmissionDatetime = this.getAdmissionDatetime(); strategy.appendField(locator, this, "admissionDatetime", buffer, theAdmissionDatetime, (this.admissionDatetime!= null)); } { XMLGregorianCalendar theDischargeDatetime; theDischargeDatetime = this.getDischargeDatetime(); strategy.appendField(locator, this, "dischargeDatetime", buffer, theDischargeDatetime, (this.dischargeDatetime!= null)); } { CodeableConcept theDischargeStatus; theDischargeStatus = this.getDischargeStatus(); strategy.appendField(locator, this, "dischargeStatus", buffer, theDischargeStatus, (this.dischargeStatus!= null)); } { CodeableConcept theFacilityLocation; theFacilityLocation = this.getFacilityLocation(); strategy.appendField(locator, this, "facilityLocation", buffer, theFacilityLocation, (this.facilityLocation!= null)); } { XMLGregorianCalendar theFacilityLocationArrivalDatetime; theFacilityLocationArrivalDatetime = this.getFacilityLocationArrivalDatetime(); strategy.appendField(locator, this, "facilityLocationArrivalDatetime", buffer, theFacilityLocationArrivalDatetime, (this.facilityLocationArrivalDatetime!= null)); } { XMLGregorianCalendar theFacilityLocationDepartureDatetime; theFacilityLocationDepartureDatetime = this.getFacilityLocationDepartureDatetime(); strategy.appendField(locator, this, "facilityLocationDepartureDatetime", buffer, theFacilityLocationDepartureDatetime, (this.facilityLocationDepartureDatetime!= null)); } { Quantity theLengthOfStay; theLengthOfStay = this.getLengthOfStay(); strategy.appendField(locator, this, "lengthOfStay", buffer, theLengthOfStay, (this.lengthOfStay!= null)); } { CodeableConcept theReason; theReason = this.getReason(); strategy.appendField(locator, this, "reason", buffer, theReason, (this.reason!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy