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

org.hl7.fhir.Condition Maven / Gradle / Ivy

Go to download

The quick 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.05.02 at 09:57:28 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.XmlElement;
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;


/**
 * If the element is present, it must have either a @value, an @id, or extensions
 * 
 * 

Java class for Condition complex type. * *

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

 * <complexType name="Condition">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="patient" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="asserter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="dateRecorded" type="{http://hl7.org/fhir}date" minOccurs="0"/>
 *         <element name="code" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="clinicalStatus" type="{http://hl7.org/fhir}code" minOccurs="0"/>
 *         <element name="verificationStatus" type="{http://hl7.org/fhir}ConditionVerificationStatus"/>
 *         <element name="severity" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="onsetDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *           <element name="onsetQuantity" type="{http://hl7.org/fhir}Age"/>
 *           <element name="onsetPeriod" type="{http://hl7.org/fhir}Period"/>
 *           <element name="onsetRange" type="{http://hl7.org/fhir}Range"/>
 *           <element name="onsetString" type="{http://hl7.org/fhir}string"/>
 *         </choice>
 *         <choice minOccurs="0">
 *           <element name="abatementDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *           <element name="abatementQuantity" type="{http://hl7.org/fhir}Age"/>
 *           <element name="abatementBoolean" type="{http://hl7.org/fhir}boolean"/>
 *           <element name="abatementPeriod" type="{http://hl7.org/fhir}Period"/>
 *           <element name="abatementRange" type="{http://hl7.org/fhir}Range"/>
 *           <element name="abatementString" type="{http://hl7.org/fhir}string"/>
 *         </choice>
 *         <element name="stage" type="{http://hl7.org/fhir}Condition.Stage" minOccurs="0"/>
 *         <element name="evidence" type="{http://hl7.org/fhir}Condition.Evidence" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="bodySite" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="notes" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Condition", propOrder = { "identifier", "patient", "encounter", "asserter", "dateRecorded", "code", "category", "clinicalStatus", "verificationStatus", "severity", "onsetDateTime", "onsetQuantity", "onsetPeriod", "onsetRange", "onsetString", "abatementDateTime", "abatementQuantity", "abatementBoolean", "abatementPeriod", "abatementRange", "abatementString", "stage", "evidence", "bodySite", "notes" }) public class Condition extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected Reference patient; protected Reference encounter; protected Reference asserter; protected Date dateRecorded; @XmlElement(required = true) protected CodeableConcept code; protected CodeableConcept category; protected Code clinicalStatus; @XmlElement(required = true) protected ConditionVerificationStatus verificationStatus; protected CodeableConcept severity; protected DateTime onsetDateTime; protected Age onsetQuantity; protected Period onsetPeriod; protected Range onsetRange; protected org.hl7.fhir.String onsetString; protected DateTime abatementDateTime; protected Age abatementQuantity; protected Boolean abatementBoolean; protected Period abatementPeriod; protected Range abatementRange; protected org.hl7.fhir.String abatementString; protected ConditionStage stage; protected List evidence; protected List bodySite; protected org.hl7.fhir.String notes; /** * Gets the value of the identifier 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 identifier property. * *

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

     *    getIdentifier().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Identifier } * * */ public List getIdentifier() { if (identifier == null) { identifier = new ArrayList(); } return this.identifier; } /** * Gets the value of the patient property. * * @return * possible object is * {@link Reference } * */ public Reference getPatient() { return patient; } /** * Sets the value of the patient property. * * @param value * allowed object is * {@link Reference } * */ public void setPatient(Reference value) { this.patient = value; } /** * Gets the value of the encounter property. * * @return * possible object is * {@link Reference } * */ public Reference getEncounter() { return encounter; } /** * Sets the value of the encounter property. * * @param value * allowed object is * {@link Reference } * */ public void setEncounter(Reference value) { this.encounter = value; } /** * Gets the value of the asserter property. * * @return * possible object is * {@link Reference } * */ public Reference getAsserter() { return asserter; } /** * Sets the value of the asserter property. * * @param value * allowed object is * {@link Reference } * */ public void setAsserter(Reference value) { this.asserter = value; } /** * Gets the value of the dateRecorded property. * * @return * possible object is * {@link Date } * */ public Date getDateRecorded() { return dateRecorded; } /** * Sets the value of the dateRecorded property. * * @param value * allowed object is * {@link Date } * */ public void setDateRecorded(Date value) { this.dateRecorded = value; } /** * Gets the value of the code property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCode(CodeableConcept value) { this.code = value; } /** * Gets the value of the category property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCategory(CodeableConcept value) { this.category = value; } /** * Gets the value of the clinicalStatus property. * * @return * possible object is * {@link Code } * */ public Code getClinicalStatus() { return clinicalStatus; } /** * Sets the value of the clinicalStatus property. * * @param value * allowed object is * {@link Code } * */ public void setClinicalStatus(Code value) { this.clinicalStatus = value; } /** * Gets the value of the verificationStatus property. * * @return * possible object is * {@link ConditionVerificationStatus } * */ public ConditionVerificationStatus getVerificationStatus() { return verificationStatus; } /** * Sets the value of the verificationStatus property. * * @param value * allowed object is * {@link ConditionVerificationStatus } * */ public void setVerificationStatus(ConditionVerificationStatus value) { this.verificationStatus = value; } /** * Gets the value of the severity property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getSeverity() { return severity; } /** * Sets the value of the severity property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setSeverity(CodeableConcept value) { this.severity = value; } /** * Gets the value of the onsetDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getOnsetDateTime() { return onsetDateTime; } /** * Sets the value of the onsetDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setOnsetDateTime(DateTime value) { this.onsetDateTime = value; } /** * Gets the value of the onsetQuantity property. * * @return * possible object is * {@link Age } * */ public Age getOnsetQuantity() { return onsetQuantity; } /** * Sets the value of the onsetQuantity property. * * @param value * allowed object is * {@link Age } * */ public void setOnsetQuantity(Age value) { this.onsetQuantity = value; } /** * Gets the value of the onsetPeriod property. * * @return * possible object is * {@link Period } * */ public Period getOnsetPeriod() { return onsetPeriod; } /** * Sets the value of the onsetPeriod property. * * @param value * allowed object is * {@link Period } * */ public void setOnsetPeriod(Period value) { this.onsetPeriod = value; } /** * Gets the value of the onsetRange property. * * @return * possible object is * {@link Range } * */ public Range getOnsetRange() { return onsetRange; } /** * Sets the value of the onsetRange property. * * @param value * allowed object is * {@link Range } * */ public void setOnsetRange(Range value) { this.onsetRange = value; } /** * Gets the value of the onsetString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getOnsetString() { return onsetString; } /** * Sets the value of the onsetString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setOnsetString(org.hl7.fhir.String value) { this.onsetString = value; } /** * Gets the value of the abatementDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getAbatementDateTime() { return abatementDateTime; } /** * Sets the value of the abatementDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setAbatementDateTime(DateTime value) { this.abatementDateTime = value; } /** * Gets the value of the abatementQuantity property. * * @return * possible object is * {@link Age } * */ public Age getAbatementQuantity() { return abatementQuantity; } /** * Sets the value of the abatementQuantity property. * * @param value * allowed object is * {@link Age } * */ public void setAbatementQuantity(Age value) { this.abatementQuantity = value; } /** * Gets the value of the abatementBoolean property. * * @return * possible object is * {@link Boolean } * */ public Boolean getAbatementBoolean() { return abatementBoolean; } /** * Sets the value of the abatementBoolean property. * * @param value * allowed object is * {@link Boolean } * */ public void setAbatementBoolean(Boolean value) { this.abatementBoolean = value; } /** * Gets the value of the abatementPeriod property. * * @return * possible object is * {@link Period } * */ public Period getAbatementPeriod() { return abatementPeriod; } /** * Sets the value of the abatementPeriod property. * * @param value * allowed object is * {@link Period } * */ public void setAbatementPeriod(Period value) { this.abatementPeriod = value; } /** * Gets the value of the abatementRange property. * * @return * possible object is * {@link Range } * */ public Range getAbatementRange() { return abatementRange; } /** * Sets the value of the abatementRange property. * * @param value * allowed object is * {@link Range } * */ public void setAbatementRange(Range value) { this.abatementRange = value; } /** * Gets the value of the abatementString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getAbatementString() { return abatementString; } /** * Sets the value of the abatementString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setAbatementString(org.hl7.fhir.String value) { this.abatementString = value; } /** * Gets the value of the stage property. * * @return * possible object is * {@link ConditionStage } * */ public ConditionStage getStage() { return stage; } /** * Sets the value of the stage property. * * @param value * allowed object is * {@link ConditionStage } * */ public void setStage(ConditionStage value) { this.stage = value; } /** * Gets the value of the evidence 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 evidence property. * *

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

     *    getEvidence().add(newItem);
     * 
* * *

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

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

     *    getBodySite().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getBodySite() { if (bodySite == null) { bodySite = new ArrayList(); } return this.bodySite; } /** * Gets the value of the notes property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getNotes() { return notes; } /** * Sets the value of the notes property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setNotes(org.hl7.fhir.String value) { this.notes = value; } public Condition withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public Condition withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public Condition withPatient(Reference value) { setPatient(value); return this; } public Condition withEncounter(Reference value) { setEncounter(value); return this; } public Condition withAsserter(Reference value) { setAsserter(value); return this; } public Condition withDateRecorded(Date value) { setDateRecorded(value); return this; } public Condition withCode(CodeableConcept value) { setCode(value); return this; } public Condition withCategory(CodeableConcept value) { setCategory(value); return this; } public Condition withClinicalStatus(Code value) { setClinicalStatus(value); return this; } public Condition withVerificationStatus(ConditionVerificationStatus value) { setVerificationStatus(value); return this; } public Condition withSeverity(CodeableConcept value) { setSeverity(value); return this; } public Condition withOnsetDateTime(DateTime value) { setOnsetDateTime(value); return this; } public Condition withOnsetQuantity(Age value) { setOnsetQuantity(value); return this; } public Condition withOnsetPeriod(Period value) { setOnsetPeriod(value); return this; } public Condition withOnsetRange(Range value) { setOnsetRange(value); return this; } public Condition withOnsetString(org.hl7.fhir.String value) { setOnsetString(value); return this; } public Condition withAbatementDateTime(DateTime value) { setAbatementDateTime(value); return this; } public Condition withAbatementQuantity(Age value) { setAbatementQuantity(value); return this; } public Condition withAbatementBoolean(Boolean value) { setAbatementBoolean(value); return this; } public Condition withAbatementPeriod(Period value) { setAbatementPeriod(value); return this; } public Condition withAbatementRange(Range value) { setAbatementRange(value); return this; } public Condition withAbatementString(org.hl7.fhir.String value) { setAbatementString(value); return this; } public Condition withStage(ConditionStage value) { setStage(value); return this; } public Condition withEvidence(ConditionEvidence... values) { if (values!= null) { for (ConditionEvidence value: values) { getEvidence().add(value); } } return this; } public Condition withEvidence(Collection values) { if (values!= null) { getEvidence().addAll(values); } return this; } public Condition withBodySite(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getBodySite().add(value); } } return this; } public Condition withBodySite(Collection values) { if (values!= null) { getBodySite().addAll(values); } return this; } public Condition withNotes(org.hl7.fhir.String value) { setNotes(value); return this; } @Override public Condition withText(Narrative value) { setText(value); return this; } @Override public Condition withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public Condition withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public Condition withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public Condition withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public Condition withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public Condition withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public Condition withId(Id value) { setId(value); return this; } @Override public Condition withMeta(Meta value) { setMeta(value); return this; } @Override public Condition withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public Condition withLanguage(Code value) { setLanguage(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 Condition that = ((Condition) object); { List lhsIdentifier; lhsIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); List rhsIdentifier; rhsIdentifier = (((that.identifier!= null)&&(!that.identifier.isEmpty()))?that.getIdentifier():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())), ((that.identifier!= null)&&(!that.identifier.isEmpty())))) { return false; } } { Reference lhsPatient; lhsPatient = this.getPatient(); Reference rhsPatient; rhsPatient = that.getPatient(); if (!strategy.equals(LocatorUtils.property(thisLocator, "patient", lhsPatient), LocatorUtils.property(thatLocator, "patient", rhsPatient), lhsPatient, rhsPatient, (this.patient!= null), (that.patient!= null))) { return false; } } { Reference lhsEncounter; lhsEncounter = this.getEncounter(); Reference rhsEncounter; rhsEncounter = that.getEncounter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) { return false; } } { Reference lhsAsserter; lhsAsserter = this.getAsserter(); Reference rhsAsserter; rhsAsserter = that.getAsserter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "asserter", lhsAsserter), LocatorUtils.property(thatLocator, "asserter", rhsAsserter), lhsAsserter, rhsAsserter, (this.asserter!= null), (that.asserter!= null))) { return false; } } { Date lhsDateRecorded; lhsDateRecorded = this.getDateRecorded(); Date rhsDateRecorded; rhsDateRecorded = that.getDateRecorded(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dateRecorded", lhsDateRecorded), LocatorUtils.property(thatLocator, "dateRecorded", rhsDateRecorded), lhsDateRecorded, rhsDateRecorded, (this.dateRecorded!= null), (that.dateRecorded!= null))) { return false; } } { CodeableConcept lhsCode; lhsCode = this.getCode(); CodeableConcept rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= null))) { return false; } } { CodeableConcept lhsCategory; lhsCategory = this.getCategory(); CodeableConcept rhsCategory; rhsCategory = that.getCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory, (this.category!= null), (that.category!= null))) { return false; } } { Code lhsClinicalStatus; lhsClinicalStatus = this.getClinicalStatus(); Code rhsClinicalStatus; rhsClinicalStatus = that.getClinicalStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "clinicalStatus", lhsClinicalStatus), LocatorUtils.property(thatLocator, "clinicalStatus", rhsClinicalStatus), lhsClinicalStatus, rhsClinicalStatus, (this.clinicalStatus!= null), (that.clinicalStatus!= null))) { return false; } } { ConditionVerificationStatus lhsVerificationStatus; lhsVerificationStatus = this.getVerificationStatus(); ConditionVerificationStatus rhsVerificationStatus; rhsVerificationStatus = that.getVerificationStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "verificationStatus", lhsVerificationStatus), LocatorUtils.property(thatLocator, "verificationStatus", rhsVerificationStatus), lhsVerificationStatus, rhsVerificationStatus, (this.verificationStatus!= null), (that.verificationStatus!= null))) { return false; } } { CodeableConcept lhsSeverity; lhsSeverity = this.getSeverity(); CodeableConcept rhsSeverity; rhsSeverity = that.getSeverity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "severity", lhsSeverity), LocatorUtils.property(thatLocator, "severity", rhsSeverity), lhsSeverity, rhsSeverity, (this.severity!= null), (that.severity!= null))) { return false; } } { DateTime lhsOnsetDateTime; lhsOnsetDateTime = this.getOnsetDateTime(); DateTime rhsOnsetDateTime; rhsOnsetDateTime = that.getOnsetDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetDateTime", lhsOnsetDateTime), LocatorUtils.property(thatLocator, "onsetDateTime", rhsOnsetDateTime), lhsOnsetDateTime, rhsOnsetDateTime, (this.onsetDateTime!= null), (that.onsetDateTime!= null))) { return false; } } { Age lhsOnsetQuantity; lhsOnsetQuantity = this.getOnsetQuantity(); Age rhsOnsetQuantity; rhsOnsetQuantity = that.getOnsetQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetQuantity", lhsOnsetQuantity), LocatorUtils.property(thatLocator, "onsetQuantity", rhsOnsetQuantity), lhsOnsetQuantity, rhsOnsetQuantity, (this.onsetQuantity!= null), (that.onsetQuantity!= null))) { return false; } } { Period lhsOnsetPeriod; lhsOnsetPeriod = this.getOnsetPeriod(); Period rhsOnsetPeriod; rhsOnsetPeriod = that.getOnsetPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetPeriod", lhsOnsetPeriod), LocatorUtils.property(thatLocator, "onsetPeriod", rhsOnsetPeriod), lhsOnsetPeriod, rhsOnsetPeriod, (this.onsetPeriod!= null), (that.onsetPeriod!= null))) { return false; } } { Range lhsOnsetRange; lhsOnsetRange = this.getOnsetRange(); Range rhsOnsetRange; rhsOnsetRange = that.getOnsetRange(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetRange", lhsOnsetRange), LocatorUtils.property(thatLocator, "onsetRange", rhsOnsetRange), lhsOnsetRange, rhsOnsetRange, (this.onsetRange!= null), (that.onsetRange!= null))) { return false; } } { org.hl7.fhir.String lhsOnsetString; lhsOnsetString = this.getOnsetString(); org.hl7.fhir.String rhsOnsetString; rhsOnsetString = that.getOnsetString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetString", lhsOnsetString), LocatorUtils.property(thatLocator, "onsetString", rhsOnsetString), lhsOnsetString, rhsOnsetString, (this.onsetString!= null), (that.onsetString!= null))) { return false; } } { DateTime lhsAbatementDateTime; lhsAbatementDateTime = this.getAbatementDateTime(); DateTime rhsAbatementDateTime; rhsAbatementDateTime = that.getAbatementDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "abatementDateTime", lhsAbatementDateTime), LocatorUtils.property(thatLocator, "abatementDateTime", rhsAbatementDateTime), lhsAbatementDateTime, rhsAbatementDateTime, (this.abatementDateTime!= null), (that.abatementDateTime!= null))) { return false; } } { Age lhsAbatementQuantity; lhsAbatementQuantity = this.getAbatementQuantity(); Age rhsAbatementQuantity; rhsAbatementQuantity = that.getAbatementQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "abatementQuantity", lhsAbatementQuantity), LocatorUtils.property(thatLocator, "abatementQuantity", rhsAbatementQuantity), lhsAbatementQuantity, rhsAbatementQuantity, (this.abatementQuantity!= null), (that.abatementQuantity!= null))) { return false; } } { Boolean lhsAbatementBoolean; lhsAbatementBoolean = this.getAbatementBoolean(); Boolean rhsAbatementBoolean; rhsAbatementBoolean = that.getAbatementBoolean(); if (!strategy.equals(LocatorUtils.property(thisLocator, "abatementBoolean", lhsAbatementBoolean), LocatorUtils.property(thatLocator, "abatementBoolean", rhsAbatementBoolean), lhsAbatementBoolean, rhsAbatementBoolean, (this.abatementBoolean!= null), (that.abatementBoolean!= null))) { return false; } } { Period lhsAbatementPeriod; lhsAbatementPeriod = this.getAbatementPeriod(); Period rhsAbatementPeriod; rhsAbatementPeriod = that.getAbatementPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "abatementPeriod", lhsAbatementPeriod), LocatorUtils.property(thatLocator, "abatementPeriod", rhsAbatementPeriod), lhsAbatementPeriod, rhsAbatementPeriod, (this.abatementPeriod!= null), (that.abatementPeriod!= null))) { return false; } } { Range lhsAbatementRange; lhsAbatementRange = this.getAbatementRange(); Range rhsAbatementRange; rhsAbatementRange = that.getAbatementRange(); if (!strategy.equals(LocatorUtils.property(thisLocator, "abatementRange", lhsAbatementRange), LocatorUtils.property(thatLocator, "abatementRange", rhsAbatementRange), lhsAbatementRange, rhsAbatementRange, (this.abatementRange!= null), (that.abatementRange!= null))) { return false; } } { org.hl7.fhir.String lhsAbatementString; lhsAbatementString = this.getAbatementString(); org.hl7.fhir.String rhsAbatementString; rhsAbatementString = that.getAbatementString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "abatementString", lhsAbatementString), LocatorUtils.property(thatLocator, "abatementString", rhsAbatementString), lhsAbatementString, rhsAbatementString, (this.abatementString!= null), (that.abatementString!= null))) { return false; } } { ConditionStage lhsStage; lhsStage = this.getStage(); ConditionStage rhsStage; rhsStage = that.getStage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stage", lhsStage), LocatorUtils.property(thatLocator, "stage", rhsStage), lhsStage, rhsStage, (this.stage!= null), (that.stage!= null))) { return false; } } { List lhsEvidence; lhsEvidence = (((this.evidence!= null)&&(!this.evidence.isEmpty()))?this.getEvidence():null); List rhsEvidence; rhsEvidence = (((that.evidence!= null)&&(!that.evidence.isEmpty()))?that.getEvidence():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "evidence", lhsEvidence), LocatorUtils.property(thatLocator, "evidence", rhsEvidence), lhsEvidence, rhsEvidence, ((this.evidence!= null)&&(!this.evidence.isEmpty())), ((that.evidence!= null)&&(!that.evidence.isEmpty())))) { return false; } } { List lhsBodySite; lhsBodySite = (((this.bodySite!= null)&&(!this.bodySite.isEmpty()))?this.getBodySite():null); List rhsBodySite; rhsBodySite = (((that.bodySite!= null)&&(!that.bodySite.isEmpty()))?that.getBodySite():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "bodySite", lhsBodySite), LocatorUtils.property(thatLocator, "bodySite", rhsBodySite), lhsBodySite, rhsBodySite, ((this.bodySite!= null)&&(!this.bodySite.isEmpty())), ((that.bodySite!= null)&&(!that.bodySite.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsNotes; lhsNotes = this.getNotes(); org.hl7.fhir.String rhsNotes; rhsNotes = that.getNotes(); if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes, (this.notes!= null), (that.notes!= 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); { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null)); } { Reference theAsserter; theAsserter = this.getAsserter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "asserter", theAsserter), currentHashCode, theAsserter, (this.asserter!= null)); } { Date theDateRecorded; theDateRecorded = this.getDateRecorded(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateRecorded", theDateRecorded), currentHashCode, theDateRecorded, (this.dateRecorded!= null)); } { CodeableConcept theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null)); } { CodeableConcept theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null)); } { Code theClinicalStatus; theClinicalStatus = this.getClinicalStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "clinicalStatus", theClinicalStatus), currentHashCode, theClinicalStatus, (this.clinicalStatus!= null)); } { ConditionVerificationStatus theVerificationStatus; theVerificationStatus = this.getVerificationStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "verificationStatus", theVerificationStatus), currentHashCode, theVerificationStatus, (this.verificationStatus!= null)); } { CodeableConcept theSeverity; theSeverity = this.getSeverity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "severity", theSeverity), currentHashCode, theSeverity, (this.severity!= null)); } { DateTime theOnsetDateTime; theOnsetDateTime = this.getOnsetDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetDateTime", theOnsetDateTime), currentHashCode, theOnsetDateTime, (this.onsetDateTime!= null)); } { Age theOnsetQuantity; theOnsetQuantity = this.getOnsetQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetQuantity", theOnsetQuantity), currentHashCode, theOnsetQuantity, (this.onsetQuantity!= null)); } { Period theOnsetPeriod; theOnsetPeriod = this.getOnsetPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetPeriod", theOnsetPeriod), currentHashCode, theOnsetPeriod, (this.onsetPeriod!= null)); } { Range theOnsetRange; theOnsetRange = this.getOnsetRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetRange", theOnsetRange), currentHashCode, theOnsetRange, (this.onsetRange!= null)); } { org.hl7.fhir.String theOnsetString; theOnsetString = this.getOnsetString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetString", theOnsetString), currentHashCode, theOnsetString, (this.onsetString!= null)); } { DateTime theAbatementDateTime; theAbatementDateTime = this.getAbatementDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abatementDateTime", theAbatementDateTime), currentHashCode, theAbatementDateTime, (this.abatementDateTime!= null)); } { Age theAbatementQuantity; theAbatementQuantity = this.getAbatementQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abatementQuantity", theAbatementQuantity), currentHashCode, theAbatementQuantity, (this.abatementQuantity!= null)); } { Boolean theAbatementBoolean; theAbatementBoolean = this.getAbatementBoolean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abatementBoolean", theAbatementBoolean), currentHashCode, theAbatementBoolean, (this.abatementBoolean!= null)); } { Period theAbatementPeriod; theAbatementPeriod = this.getAbatementPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abatementPeriod", theAbatementPeriod), currentHashCode, theAbatementPeriod, (this.abatementPeriod!= null)); } { Range theAbatementRange; theAbatementRange = this.getAbatementRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abatementRange", theAbatementRange), currentHashCode, theAbatementRange, (this.abatementRange!= null)); } { org.hl7.fhir.String theAbatementString; theAbatementString = this.getAbatementString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abatementString", theAbatementString), currentHashCode, theAbatementString, (this.abatementString!= null)); } { ConditionStage theStage; theStage = this.getStage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stage", theStage), currentHashCode, theStage, (this.stage!= null)); } { List theEvidence; theEvidence = (((this.evidence!= null)&&(!this.evidence.isEmpty()))?this.getEvidence():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "evidence", theEvidence), currentHashCode, theEvidence, ((this.evidence!= null)&&(!this.evidence.isEmpty()))); } { List theBodySite; theBodySite = (((this.bodySite!= null)&&(!this.bodySite.isEmpty()))?this.getBodySite():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bodySite", theBodySite), currentHashCode, theBodySite, ((this.bodySite!= null)&&(!this.bodySite.isEmpty()))); } { org.hl7.fhir.String theNotes; theNotes = this.getNotes(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes, (this.notes!= null)); } 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); { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null)); } { Reference theAsserter; theAsserter = this.getAsserter(); strategy.appendField(locator, this, "asserter", buffer, theAsserter, (this.asserter!= null)); } { Date theDateRecorded; theDateRecorded = this.getDateRecorded(); strategy.appendField(locator, this, "dateRecorded", buffer, theDateRecorded, (this.dateRecorded!= null)); } { CodeableConcept theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null)); } { CodeableConcept theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null)); } { Code theClinicalStatus; theClinicalStatus = this.getClinicalStatus(); strategy.appendField(locator, this, "clinicalStatus", buffer, theClinicalStatus, (this.clinicalStatus!= null)); } { ConditionVerificationStatus theVerificationStatus; theVerificationStatus = this.getVerificationStatus(); strategy.appendField(locator, this, "verificationStatus", buffer, theVerificationStatus, (this.verificationStatus!= null)); } { CodeableConcept theSeverity; theSeverity = this.getSeverity(); strategy.appendField(locator, this, "severity", buffer, theSeverity, (this.severity!= null)); } { DateTime theOnsetDateTime; theOnsetDateTime = this.getOnsetDateTime(); strategy.appendField(locator, this, "onsetDateTime", buffer, theOnsetDateTime, (this.onsetDateTime!= null)); } { Age theOnsetQuantity; theOnsetQuantity = this.getOnsetQuantity(); strategy.appendField(locator, this, "onsetQuantity", buffer, theOnsetQuantity, (this.onsetQuantity!= null)); } { Period theOnsetPeriod; theOnsetPeriod = this.getOnsetPeriod(); strategy.appendField(locator, this, "onsetPeriod", buffer, theOnsetPeriod, (this.onsetPeriod!= null)); } { Range theOnsetRange; theOnsetRange = this.getOnsetRange(); strategy.appendField(locator, this, "onsetRange", buffer, theOnsetRange, (this.onsetRange!= null)); } { org.hl7.fhir.String theOnsetString; theOnsetString = this.getOnsetString(); strategy.appendField(locator, this, "onsetString", buffer, theOnsetString, (this.onsetString!= null)); } { DateTime theAbatementDateTime; theAbatementDateTime = this.getAbatementDateTime(); strategy.appendField(locator, this, "abatementDateTime", buffer, theAbatementDateTime, (this.abatementDateTime!= null)); } { Age theAbatementQuantity; theAbatementQuantity = this.getAbatementQuantity(); strategy.appendField(locator, this, "abatementQuantity", buffer, theAbatementQuantity, (this.abatementQuantity!= null)); } { Boolean theAbatementBoolean; theAbatementBoolean = this.getAbatementBoolean(); strategy.appendField(locator, this, "abatementBoolean", buffer, theAbatementBoolean, (this.abatementBoolean!= null)); } { Period theAbatementPeriod; theAbatementPeriod = this.getAbatementPeriod(); strategy.appendField(locator, this, "abatementPeriod", buffer, theAbatementPeriod, (this.abatementPeriod!= null)); } { Range theAbatementRange; theAbatementRange = this.getAbatementRange(); strategy.appendField(locator, this, "abatementRange", buffer, theAbatementRange, (this.abatementRange!= null)); } { org.hl7.fhir.String theAbatementString; theAbatementString = this.getAbatementString(); strategy.appendField(locator, this, "abatementString", buffer, theAbatementString, (this.abatementString!= null)); } { ConditionStage theStage; theStage = this.getStage(); strategy.appendField(locator, this, "stage", buffer, theStage, (this.stage!= null)); } { List theEvidence; theEvidence = (((this.evidence!= null)&&(!this.evidence.isEmpty()))?this.getEvidence():null); strategy.appendField(locator, this, "evidence", buffer, theEvidence, ((this.evidence!= null)&&(!this.evidence.isEmpty()))); } { List theBodySite; theBodySite = (((this.bodySite!= null)&&(!this.bodySite.isEmpty()))?this.getBodySite():null); strategy.appendField(locator, this, "bodySite", buffer, theBodySite, ((this.bodySite!= null)&&(!this.bodySite.isEmpty()))); } { org.hl7.fhir.String theNotes; theNotes = this.getNotes(); strategy.appendField(locator, this, "notes", buffer, theNotes, (this.notes!= null)); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setEvidence(List value) { this.evidence = value; } public void setBodySite(List value) { this.bodySite = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy