org.hl7.fhir.CarePlanDetail 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.08.16 at 09:36:55 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;
/**
* Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.
*
* Java class for CarePlan.Detail complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CarePlan.Detail">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="code" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="reasonCode" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
* <element name="reasonReference" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="goal" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="status" type="{http://hl7.org/fhir}CarePlanActivityStatus" minOccurs="0"/>
* <element name="statusReason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="prohibited" type="{http://hl7.org/fhir}boolean"/>
* <choice minOccurs="0">
* <element name="scheduledTiming" type="{http://hl7.org/fhir}Timing"/>
* <element name="scheduledPeriod" type="{http://hl7.org/fhir}Period"/>
* <element name="scheduledString" type="{http://hl7.org/fhir}string"/>
* </choice>
* <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="performer" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="productCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
* <element name="productReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <element name="dailyAmount" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
* <element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
* <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CarePlan.Detail", propOrder = {
"category",
"code",
"reasonCode",
"reasonReference",
"goal",
"status",
"statusReason",
"prohibited",
"scheduledTiming",
"scheduledPeriod",
"scheduledString",
"location",
"performer",
"productCodeableConcept",
"productReference",
"dailyAmount",
"quantity",
"description"
})
public class CarePlanDetail
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
protected CodeableConcept category;
protected CodeableConcept code;
protected List reasonCode;
protected List reasonReference;
protected List goal;
protected CarePlanActivityStatus status;
protected CodeableConcept statusReason;
@XmlElement(required = true)
protected Boolean prohibited;
protected Timing scheduledTiming;
protected Period scheduledPeriod;
protected org.hl7.fhir.String scheduledString;
protected Reference location;
protected List performer;
protected CodeableConcept productCodeableConcept;
protected Reference productReference;
protected SimpleQuantity dailyAmount;
protected SimpleQuantity quantity;
protected org.hl7.fhir.String description;
/**
* 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 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 reasonCode 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 reasonCode property.
*
*
* For example, to add a new item, do as follows:
*
* getReasonCode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeableConcept }
*
*
*/
public List getReasonCode() {
if (reasonCode == null) {
reasonCode = new ArrayList();
}
return this.reasonCode;
}
/**
* Gets the value of the reasonReference 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 reasonReference property.
*
*
* For example, to add a new item, do as follows:
*
* getReasonReference().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getReasonReference() {
if (reasonReference == null) {
reasonReference = new ArrayList();
}
return this.reasonReference;
}
/**
* Gets the value of the goal 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 goal property.
*
*
* For example, to add a new item, do as follows:
*
* getGoal().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getGoal() {
if (goal == null) {
goal = new ArrayList();
}
return this.goal;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link CarePlanActivityStatus }
*
*/
public CarePlanActivityStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link CarePlanActivityStatus }
*
*/
public void setStatus(CarePlanActivityStatus value) {
this.status = value;
}
/**
* Gets the value of the statusReason property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getStatusReason() {
return statusReason;
}
/**
* Sets the value of the statusReason property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setStatusReason(CodeableConcept value) {
this.statusReason = value;
}
/**
* Gets the value of the prohibited property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getProhibited() {
return prohibited;
}
/**
* Sets the value of the prohibited property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setProhibited(Boolean value) {
this.prohibited = value;
}
/**
* Gets the value of the scheduledTiming property.
*
* @return
* possible object is
* {@link Timing }
*
*/
public Timing getScheduledTiming() {
return scheduledTiming;
}
/**
* Sets the value of the scheduledTiming property.
*
* @param value
* allowed object is
* {@link Timing }
*
*/
public void setScheduledTiming(Timing value) {
this.scheduledTiming = value;
}
/**
* Gets the value of the scheduledPeriod property.
*
* @return
* possible object is
* {@link Period }
*
*/
public Period getScheduledPeriod() {
return scheduledPeriod;
}
/**
* Sets the value of the scheduledPeriod property.
*
* @param value
* allowed object is
* {@link Period }
*
*/
public void setScheduledPeriod(Period value) {
this.scheduledPeriod = value;
}
/**
* Gets the value of the scheduledString property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getScheduledString() {
return scheduledString;
}
/**
* Sets the value of the scheduledString property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setScheduledString(org.hl7.fhir.String value) {
this.scheduledString = value;
}
/**
* Gets the value of the location property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getLocation() {
return location;
}
/**
* Sets the value of the location property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setLocation(Reference value) {
this.location = value;
}
/**
* Gets the value of the performer 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 performer property.
*
*
* For example, to add a new item, do as follows:
*
* getPerformer().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getPerformer() {
if (performer == null) {
performer = new ArrayList();
}
return this.performer;
}
/**
* Gets the value of the productCodeableConcept property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getProductCodeableConcept() {
return productCodeableConcept;
}
/**
* Sets the value of the productCodeableConcept property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setProductCodeableConcept(CodeableConcept value) {
this.productCodeableConcept = value;
}
/**
* Gets the value of the productReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getProductReference() {
return productReference;
}
/**
* Sets the value of the productReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setProductReference(Reference value) {
this.productReference = value;
}
/**
* Gets the value of the dailyAmount property.
*
* @return
* possible object is
* {@link SimpleQuantity }
*
*/
public SimpleQuantity getDailyAmount() {
return dailyAmount;
}
/**
* Sets the value of the dailyAmount property.
*
* @param value
* allowed object is
* {@link SimpleQuantity }
*
*/
public void setDailyAmount(SimpleQuantity value) {
this.dailyAmount = value;
}
/**
* Gets the value of the quantity property.
*
* @return
* possible object is
* {@link SimpleQuantity }
*
*/
public SimpleQuantity getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
* @param value
* allowed object is
* {@link SimpleQuantity }
*
*/
public void setQuantity(SimpleQuantity value) {
this.quantity = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setDescription(org.hl7.fhir.String value) {
this.description = value;
}
public CarePlanDetail withCategory(CodeableConcept value) {
setCategory(value);
return this;
}
public CarePlanDetail withCode(CodeableConcept value) {
setCode(value);
return this;
}
public CarePlanDetail withReasonCode(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getReasonCode().add(value);
}
}
return this;
}
public CarePlanDetail withReasonCode(Collection values) {
if (values!= null) {
getReasonCode().addAll(values);
}
return this;
}
public CarePlanDetail withReasonReference(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getReasonReference().add(value);
}
}
return this;
}
public CarePlanDetail withReasonReference(Collection values) {
if (values!= null) {
getReasonReference().addAll(values);
}
return this;
}
public CarePlanDetail withGoal(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getGoal().add(value);
}
}
return this;
}
public CarePlanDetail withGoal(Collection values) {
if (values!= null) {
getGoal().addAll(values);
}
return this;
}
public CarePlanDetail withStatus(CarePlanActivityStatus value) {
setStatus(value);
return this;
}
public CarePlanDetail withStatusReason(CodeableConcept value) {
setStatusReason(value);
return this;
}
public CarePlanDetail withProhibited(Boolean value) {
setProhibited(value);
return this;
}
public CarePlanDetail withScheduledTiming(Timing value) {
setScheduledTiming(value);
return this;
}
public CarePlanDetail withScheduledPeriod(Period value) {
setScheduledPeriod(value);
return this;
}
public CarePlanDetail withScheduledString(org.hl7.fhir.String value) {
setScheduledString(value);
return this;
}
public CarePlanDetail withLocation(Reference value) {
setLocation(value);
return this;
}
public CarePlanDetail withPerformer(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getPerformer().add(value);
}
}
return this;
}
public CarePlanDetail withPerformer(Collection values) {
if (values!= null) {
getPerformer().addAll(values);
}
return this;
}
public CarePlanDetail withProductCodeableConcept(CodeableConcept value) {
setProductCodeableConcept(value);
return this;
}
public CarePlanDetail withProductReference(Reference value) {
setProductReference(value);
return this;
}
public CarePlanDetail withDailyAmount(SimpleQuantity value) {
setDailyAmount(value);
return this;
}
public CarePlanDetail withQuantity(SimpleQuantity value) {
setQuantity(value);
return this;
}
public CarePlanDetail withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
@Override
public CarePlanDetail withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public CarePlanDetail withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public CarePlanDetail withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public CarePlanDetail withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public CarePlanDetail 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 CarePlanDetail that = ((CarePlanDetail) object);
{
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;
}
}
{
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;
}
}
{
List lhsReasonCode;
lhsReasonCode = (((this.reasonCode!= null)&&(!this.reasonCode.isEmpty()))?this.getReasonCode():null);
List rhsReasonCode;
rhsReasonCode = (((that.reasonCode!= null)&&(!that.reasonCode.isEmpty()))?that.getReasonCode():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonCode", lhsReasonCode), LocatorUtils.property(thatLocator, "reasonCode", rhsReasonCode), lhsReasonCode, rhsReasonCode, ((this.reasonCode!= null)&&(!this.reasonCode.isEmpty())), ((that.reasonCode!= null)&&(!that.reasonCode.isEmpty())))) {
return false;
}
}
{
List lhsReasonReference;
lhsReasonReference = (((this.reasonReference!= null)&&(!this.reasonReference.isEmpty()))?this.getReasonReference():null);
List rhsReasonReference;
rhsReasonReference = (((that.reasonReference!= null)&&(!that.reasonReference.isEmpty()))?that.getReasonReference():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonReference", lhsReasonReference), LocatorUtils.property(thatLocator, "reasonReference", rhsReasonReference), lhsReasonReference, rhsReasonReference, ((this.reasonReference!= null)&&(!this.reasonReference.isEmpty())), ((that.reasonReference!= null)&&(!that.reasonReference.isEmpty())))) {
return false;
}
}
{
List lhsGoal;
lhsGoal = (((this.goal!= null)&&(!this.goal.isEmpty()))?this.getGoal():null);
List rhsGoal;
rhsGoal = (((that.goal!= null)&&(!that.goal.isEmpty()))?that.getGoal():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "goal", lhsGoal), LocatorUtils.property(thatLocator, "goal", rhsGoal), lhsGoal, rhsGoal, ((this.goal!= null)&&(!this.goal.isEmpty())), ((that.goal!= null)&&(!that.goal.isEmpty())))) {
return false;
}
}
{
CarePlanActivityStatus lhsStatus;
lhsStatus = this.getStatus();
CarePlanActivityStatus rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) {
return false;
}
}
{
CodeableConcept lhsStatusReason;
lhsStatusReason = this.getStatusReason();
CodeableConcept rhsStatusReason;
rhsStatusReason = that.getStatusReason();
if (!strategy.equals(LocatorUtils.property(thisLocator, "statusReason", lhsStatusReason), LocatorUtils.property(thatLocator, "statusReason", rhsStatusReason), lhsStatusReason, rhsStatusReason, (this.statusReason!= null), (that.statusReason!= null))) {
return false;
}
}
{
Boolean lhsProhibited;
lhsProhibited = this.getProhibited();
Boolean rhsProhibited;
rhsProhibited = that.getProhibited();
if (!strategy.equals(LocatorUtils.property(thisLocator, "prohibited", lhsProhibited), LocatorUtils.property(thatLocator, "prohibited", rhsProhibited), lhsProhibited, rhsProhibited, (this.prohibited!= null), (that.prohibited!= null))) {
return false;
}
}
{
Timing lhsScheduledTiming;
lhsScheduledTiming = this.getScheduledTiming();
Timing rhsScheduledTiming;
rhsScheduledTiming = that.getScheduledTiming();
if (!strategy.equals(LocatorUtils.property(thisLocator, "scheduledTiming", lhsScheduledTiming), LocatorUtils.property(thatLocator, "scheduledTiming", rhsScheduledTiming), lhsScheduledTiming, rhsScheduledTiming, (this.scheduledTiming!= null), (that.scheduledTiming!= null))) {
return false;
}
}
{
Period lhsScheduledPeriod;
lhsScheduledPeriod = this.getScheduledPeriod();
Period rhsScheduledPeriod;
rhsScheduledPeriod = that.getScheduledPeriod();
if (!strategy.equals(LocatorUtils.property(thisLocator, "scheduledPeriod", lhsScheduledPeriod), LocatorUtils.property(thatLocator, "scheduledPeriod", rhsScheduledPeriod), lhsScheduledPeriod, rhsScheduledPeriod, (this.scheduledPeriod!= null), (that.scheduledPeriod!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsScheduledString;
lhsScheduledString = this.getScheduledString();
org.hl7.fhir.String rhsScheduledString;
rhsScheduledString = that.getScheduledString();
if (!strategy.equals(LocatorUtils.property(thisLocator, "scheduledString", lhsScheduledString), LocatorUtils.property(thatLocator, "scheduledString", rhsScheduledString), lhsScheduledString, rhsScheduledString, (this.scheduledString!= null), (that.scheduledString!= null))) {
return false;
}
}
{
Reference lhsLocation;
lhsLocation = this.getLocation();
Reference rhsLocation;
rhsLocation = that.getLocation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation, (this.location!= null), (that.location!= null))) {
return false;
}
}
{
List lhsPerformer;
lhsPerformer = (((this.performer!= null)&&(!this.performer.isEmpty()))?this.getPerformer():null);
List rhsPerformer;
rhsPerformer = (((that.performer!= null)&&(!that.performer.isEmpty()))?that.getPerformer():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "performer", lhsPerformer), LocatorUtils.property(thatLocator, "performer", rhsPerformer), lhsPerformer, rhsPerformer, ((this.performer!= null)&&(!this.performer.isEmpty())), ((that.performer!= null)&&(!that.performer.isEmpty())))) {
return false;
}
}
{
CodeableConcept lhsProductCodeableConcept;
lhsProductCodeableConcept = this.getProductCodeableConcept();
CodeableConcept rhsProductCodeableConcept;
rhsProductCodeableConcept = that.getProductCodeableConcept();
if (!strategy.equals(LocatorUtils.property(thisLocator, "productCodeableConcept", lhsProductCodeableConcept), LocatorUtils.property(thatLocator, "productCodeableConcept", rhsProductCodeableConcept), lhsProductCodeableConcept, rhsProductCodeableConcept, (this.productCodeableConcept!= null), (that.productCodeableConcept!= null))) {
return false;
}
}
{
Reference lhsProductReference;
lhsProductReference = this.getProductReference();
Reference rhsProductReference;
rhsProductReference = that.getProductReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "productReference", lhsProductReference), LocatorUtils.property(thatLocator, "productReference", rhsProductReference), lhsProductReference, rhsProductReference, (this.productReference!= null), (that.productReference!= null))) {
return false;
}
}
{
SimpleQuantity lhsDailyAmount;
lhsDailyAmount = this.getDailyAmount();
SimpleQuantity rhsDailyAmount;
rhsDailyAmount = that.getDailyAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dailyAmount", lhsDailyAmount), LocatorUtils.property(thatLocator, "dailyAmount", rhsDailyAmount), lhsDailyAmount, rhsDailyAmount, (this.dailyAmount!= null), (that.dailyAmount!= null))) {
return false;
}
}
{
SimpleQuantity lhsQuantity;
lhsQuantity = this.getQuantity();
SimpleQuantity rhsQuantity;
rhsQuantity = that.getQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "quantity", lhsQuantity), LocatorUtils.property(thatLocator, "quantity", rhsQuantity), lhsQuantity, rhsQuantity, (this.quantity!= null), (that.quantity!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsDescription;
lhsDescription = this.getDescription();
org.hl7.fhir.String rhsDescription;
rhsDescription = that.getDescription();
if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= 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);
{
CodeableConcept theCategory;
theCategory = this.getCategory();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null));
}
{
CodeableConcept theCode;
theCode = this.getCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null));
}
{
List theReasonCode;
theReasonCode = (((this.reasonCode!= null)&&(!this.reasonCode.isEmpty()))?this.getReasonCode():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonCode", theReasonCode), currentHashCode, theReasonCode, ((this.reasonCode!= null)&&(!this.reasonCode.isEmpty())));
}
{
List theReasonReference;
theReasonReference = (((this.reasonReference!= null)&&(!this.reasonReference.isEmpty()))?this.getReasonReference():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonReference", theReasonReference), currentHashCode, theReasonReference, ((this.reasonReference!= null)&&(!this.reasonReference.isEmpty())));
}
{
List theGoal;
theGoal = (((this.goal!= null)&&(!this.goal.isEmpty()))?this.getGoal():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "goal", theGoal), currentHashCode, theGoal, ((this.goal!= null)&&(!this.goal.isEmpty())));
}
{
CarePlanActivityStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
CodeableConcept theStatusReason;
theStatusReason = this.getStatusReason();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "statusReason", theStatusReason), currentHashCode, theStatusReason, (this.statusReason!= null));
}
{
Boolean theProhibited;
theProhibited = this.getProhibited();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prohibited", theProhibited), currentHashCode, theProhibited, (this.prohibited!= null));
}
{
Timing theScheduledTiming;
theScheduledTiming = this.getScheduledTiming();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scheduledTiming", theScheduledTiming), currentHashCode, theScheduledTiming, (this.scheduledTiming!= null));
}
{
Period theScheduledPeriod;
theScheduledPeriod = this.getScheduledPeriod();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scheduledPeriod", theScheduledPeriod), currentHashCode, theScheduledPeriod, (this.scheduledPeriod!= null));
}
{
org.hl7.fhir.String theScheduledString;
theScheduledString = this.getScheduledString();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scheduledString", theScheduledString), currentHashCode, theScheduledString, (this.scheduledString!= null));
}
{
Reference theLocation;
theLocation = this.getLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null));
}
{
List thePerformer;
thePerformer = (((this.performer!= null)&&(!this.performer.isEmpty()))?this.getPerformer():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer, ((this.performer!= null)&&(!this.performer.isEmpty())));
}
{
CodeableConcept theProductCodeableConcept;
theProductCodeableConcept = this.getProductCodeableConcept();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "productCodeableConcept", theProductCodeableConcept), currentHashCode, theProductCodeableConcept, (this.productCodeableConcept!= null));
}
{
Reference theProductReference;
theProductReference = this.getProductReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "productReference", theProductReference), currentHashCode, theProductReference, (this.productReference!= null));
}
{
SimpleQuantity theDailyAmount;
theDailyAmount = this.getDailyAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dailyAmount", theDailyAmount), currentHashCode, theDailyAmount, (this.dailyAmount!= null));
}
{
SimpleQuantity theQuantity;
theQuantity = this.getQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity, (this.quantity!= null));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= 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);
{
CodeableConcept theCategory;
theCategory = this.getCategory();
strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null));
}
{
CodeableConcept theCode;
theCode = this.getCode();
strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null));
}
{
List theReasonCode;
theReasonCode = (((this.reasonCode!= null)&&(!this.reasonCode.isEmpty()))?this.getReasonCode():null);
strategy.appendField(locator, this, "reasonCode", buffer, theReasonCode, ((this.reasonCode!= null)&&(!this.reasonCode.isEmpty())));
}
{
List theReasonReference;
theReasonReference = (((this.reasonReference!= null)&&(!this.reasonReference.isEmpty()))?this.getReasonReference():null);
strategy.appendField(locator, this, "reasonReference", buffer, theReasonReference, ((this.reasonReference!= null)&&(!this.reasonReference.isEmpty())));
}
{
List theGoal;
theGoal = (((this.goal!= null)&&(!this.goal.isEmpty()))?this.getGoal():null);
strategy.appendField(locator, this, "goal", buffer, theGoal, ((this.goal!= null)&&(!this.goal.isEmpty())));
}
{
CarePlanActivityStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
CodeableConcept theStatusReason;
theStatusReason = this.getStatusReason();
strategy.appendField(locator, this, "statusReason", buffer, theStatusReason, (this.statusReason!= null));
}
{
Boolean theProhibited;
theProhibited = this.getProhibited();
strategy.appendField(locator, this, "prohibited", buffer, theProhibited, (this.prohibited!= null));
}
{
Timing theScheduledTiming;
theScheduledTiming = this.getScheduledTiming();
strategy.appendField(locator, this, "scheduledTiming", buffer, theScheduledTiming, (this.scheduledTiming!= null));
}
{
Period theScheduledPeriod;
theScheduledPeriod = this.getScheduledPeriod();
strategy.appendField(locator, this, "scheduledPeriod", buffer, theScheduledPeriod, (this.scheduledPeriod!= null));
}
{
org.hl7.fhir.String theScheduledString;
theScheduledString = this.getScheduledString();
strategy.appendField(locator, this, "scheduledString", buffer, theScheduledString, (this.scheduledString!= null));
}
{
Reference theLocation;
theLocation = this.getLocation();
strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null));
}
{
List thePerformer;
thePerformer = (((this.performer!= null)&&(!this.performer.isEmpty()))?this.getPerformer():null);
strategy.appendField(locator, this, "performer", buffer, thePerformer, ((this.performer!= null)&&(!this.performer.isEmpty())));
}
{
CodeableConcept theProductCodeableConcept;
theProductCodeableConcept = this.getProductCodeableConcept();
strategy.appendField(locator, this, "productCodeableConcept", buffer, theProductCodeableConcept, (this.productCodeableConcept!= null));
}
{
Reference theProductReference;
theProductReference = this.getProductReference();
strategy.appendField(locator, this, "productReference", buffer, theProductReference, (this.productReference!= null));
}
{
SimpleQuantity theDailyAmount;
theDailyAmount = this.getDailyAmount();
strategy.appendField(locator, this, "dailyAmount", buffer, theDailyAmount, (this.dailyAmount!= null));
}
{
SimpleQuantity theQuantity;
theQuantity = this.getQuantity();
strategy.appendField(locator, this, "quantity", buffer, theQuantity, (this.quantity!= null));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
return buffer;
}
public void setReasonCode(List value) {
this.reasonCode = value;
}
public void setReasonReference(List value) {
this.reasonReference = value;
}
public void setGoal(List value) {
this.goal = value;
}
public void setPerformer(List value) {
this.performer = value;
}
}