gov.healthit.qdm.v4_2.EncounterRecommended Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qdm Show documentation
Show all versions of qdm Show documentation
The qdm library for the Clinical Quality Language Java reference implementation
//
// 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.09.27 at 11:16:11 AM MDT
//
package gov.healthit.qdm.v4_2;
import javax.xml.datatype.XMLGregorianCalendar;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
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;
/**
*
* Data elements that meet criteria using this
* datatype should document
* that the encounter indicated by the QDM
* category and its
* corresponding value set has been recommended.
*
*
* Java class for EncounterRecommended complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="EncounterRecommended">
* <complexContent>
* <extension base="{urn:healthit-gov:qdm:v4_2}QDMBaseType">
* <sequence>
* <element name="startDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="stopDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="negationRationale" type="{urn:healthit-gov:qdm:v4_2}Concept" minOccurs="0"/>
* <element name="reason" type="{urn:healthit-gov:qdm:v4_2}Concept" minOccurs="0"/>
* <element name="facilityLocation" type="{urn:healthit-gov:qdm:v4_2}Concept" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EncounterRecommended", propOrder = {
"startDatetime",
"stopDatetime",
"negationRationale",
"reason",
"facilityLocation"
})
public class EncounterRecommended
extends QDMBaseType
implements Equals2, HashCode2, ToString2
{
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar startDatetime;
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar stopDatetime;
protected Concept negationRationale;
protected Concept reason;
protected Concept facilityLocation;
/**
* Gets the value of the startDatetime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getStartDatetime() {
return startDatetime;
}
/**
* Sets the value of the startDatetime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setStartDatetime(XMLGregorianCalendar value) {
this.startDatetime = value;
}
/**
* Gets the value of the stopDatetime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getStopDatetime() {
return stopDatetime;
}
/**
* Sets the value of the stopDatetime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setStopDatetime(XMLGregorianCalendar value) {
this.stopDatetime = value;
}
/**
* Gets the value of the negationRationale property.
*
* @return
* possible object is
* {@link Concept }
*
*/
public Concept getNegationRationale() {
return negationRationale;
}
/**
* Sets the value of the negationRationale property.
*
* @param value
* allowed object is
* {@link Concept }
*
*/
public void setNegationRationale(Concept value) {
this.negationRationale = value;
}
/**
* Gets the value of the reason property.
*
* @return
* possible object is
* {@link Concept }
*
*/
public Concept getReason() {
return reason;
}
/**
* Sets the value of the reason property.
*
* @param value
* allowed object is
* {@link Concept }
*
*/
public void setReason(Concept value) {
this.reason = value;
}
/**
* Gets the value of the facilityLocation property.
*
* @return
* possible object is
* {@link Concept }
*
*/
public Concept getFacilityLocation() {
return facilityLocation;
}
/**
* Sets the value of the facilityLocation property.
*
* @param value
* allowed object is
* {@link Concept }
*
*/
public void setFacilityLocation(Concept value) {
this.facilityLocation = value;
}
public EncounterRecommended withStartDatetime(XMLGregorianCalendar value) {
setStartDatetime(value);
return this;
}
public EncounterRecommended withStopDatetime(XMLGregorianCalendar value) {
setStopDatetime(value);
return this;
}
public EncounterRecommended withNegationRationale(Concept value) {
setNegationRationale(value);
return this;
}
public EncounterRecommended withReason(Concept value) {
setReason(value);
return this;
}
public EncounterRecommended withFacilityLocation(Concept value) {
setFacilityLocation(value);
return this;
}
@Override
public EncounterRecommended withCode(Concept value) {
setCode(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 EncounterRecommended that = ((EncounterRecommended) object);
{
XMLGregorianCalendar lhsStartDatetime;
lhsStartDatetime = this.getStartDatetime();
XMLGregorianCalendar rhsStartDatetime;
rhsStartDatetime = that.getStartDatetime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "startDatetime", lhsStartDatetime), LocatorUtils.property(thatLocator, "startDatetime", rhsStartDatetime), lhsStartDatetime, rhsStartDatetime, (this.startDatetime!= null), (that.startDatetime!= null))) {
return false;
}
}
{
XMLGregorianCalendar lhsStopDatetime;
lhsStopDatetime = this.getStopDatetime();
XMLGregorianCalendar rhsStopDatetime;
rhsStopDatetime = that.getStopDatetime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "stopDatetime", lhsStopDatetime), LocatorUtils.property(thatLocator, "stopDatetime", rhsStopDatetime), lhsStopDatetime, rhsStopDatetime, (this.stopDatetime!= null), (that.stopDatetime!= null))) {
return false;
}
}
{
Concept lhsNegationRationale;
lhsNegationRationale = this.getNegationRationale();
Concept rhsNegationRationale;
rhsNegationRationale = that.getNegationRationale();
if (!strategy.equals(LocatorUtils.property(thisLocator, "negationRationale", lhsNegationRationale), LocatorUtils.property(thatLocator, "negationRationale", rhsNegationRationale), lhsNegationRationale, rhsNegationRationale, (this.negationRationale!= null), (that.negationRationale!= null))) {
return false;
}
}
{
Concept lhsReason;
lhsReason = this.getReason();
Concept 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;
}
}
{
Concept lhsFacilityLocation;
lhsFacilityLocation = this.getFacilityLocation();
Concept 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;
}
}
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 theStartDatetime;
theStartDatetime = this.getStartDatetime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startDatetime", theStartDatetime), currentHashCode, theStartDatetime, (this.startDatetime!= null));
}
{
XMLGregorianCalendar theStopDatetime;
theStopDatetime = this.getStopDatetime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stopDatetime", theStopDatetime), currentHashCode, theStopDatetime, (this.stopDatetime!= null));
}
{
Concept theNegationRationale;
theNegationRationale = this.getNegationRationale();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "negationRationale", theNegationRationale), currentHashCode, theNegationRationale, (this.negationRationale!= null));
}
{
Concept theReason;
theReason = this.getReason();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reason", theReason), currentHashCode, theReason, (this.reason!= null));
}
{
Concept theFacilityLocation;
theFacilityLocation = this.getFacilityLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "facilityLocation", theFacilityLocation), currentHashCode, theFacilityLocation, (this.facilityLocation!= 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 theStartDatetime;
theStartDatetime = this.getStartDatetime();
strategy.appendField(locator, this, "startDatetime", buffer, theStartDatetime, (this.startDatetime!= null));
}
{
XMLGregorianCalendar theStopDatetime;
theStopDatetime = this.getStopDatetime();
strategy.appendField(locator, this, "stopDatetime", buffer, theStopDatetime, (this.stopDatetime!= null));
}
{
Concept theNegationRationale;
theNegationRationale = this.getNegationRationale();
strategy.appendField(locator, this, "negationRationale", buffer, theNegationRationale, (this.negationRationale!= null));
}
{
Concept theReason;
theReason = this.getReason();
strategy.appendField(locator, this, "reason", buffer, theReason, (this.reason!= null));
}
{
Concept theFacilityLocation;
theFacilityLocation = this.getFacilityLocation();
strategy.appendField(locator, this, "facilityLocation", buffer, theFacilityLocation, (this.facilityLocation!= null));
}
return buffer;
}
}