org.hl7.fhir.Goal 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;
/**
* If the element is present, it must have either a @value, an @id, or extensions
*
* Java class for Goal complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Goal">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
* <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="startDate" type="{http://hl7.org/fhir}date"/>
* <element name="startCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
* </choice>
* <choice minOccurs="0">
* <element name="targetDate" type="{http://hl7.org/fhir}date"/>
* <element name="targetQuantity" type="{http://hl7.org/fhir}Duration"/>
* </choice>
* <element name="category" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
* <element name="description" type="{http://hl7.org/fhir}string"/>
* <element name="status" type="{http://hl7.org/fhir}GoalStatus"/>
* <element name="statusDate" type="{http://hl7.org/fhir}date" minOccurs="0"/>
* <element name="statusReason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="author" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="priority" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="addresses" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
* <element name="outcome" type="{http://hl7.org/fhir}Goal.Outcome" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Goal", propOrder = {
"identifier",
"subject",
"startDate",
"startCodeableConcept",
"targetDate",
"targetQuantity",
"category",
"description",
"status",
"statusDate",
"statusReason",
"author",
"priority",
"addresses",
"note",
"outcome"
})
public class Goal
extends DomainResource
implements Equals2, HashCode2, ToString2
{
protected List identifier;
protected Reference subject;
protected Date startDate;
protected CodeableConcept startCodeableConcept;
protected Date targetDate;
protected Duration targetQuantity;
protected List category;
@XmlElement(required = true)
protected org.hl7.fhir.String description;
@XmlElement(required = true)
protected GoalStatus status;
protected Date statusDate;
protected CodeableConcept statusReason;
protected Reference author;
protected CodeableConcept priority;
protected List addresses;
protected List note;
protected List outcome;
/**
* 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 subject property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getSubject() {
return subject;
}
/**
* Sets the value of the subject property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setSubject(Reference value) {
this.subject = value;
}
/**
* Gets the value of the startDate property.
*
* @return
* possible object is
* {@link Date }
*
*/
public Date getStartDate() {
return startDate;
}
/**
* Sets the value of the startDate property.
*
* @param value
* allowed object is
* {@link Date }
*
*/
public void setStartDate(Date value) {
this.startDate = value;
}
/**
* Gets the value of the startCodeableConcept property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getStartCodeableConcept() {
return startCodeableConcept;
}
/**
* Sets the value of the startCodeableConcept property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setStartCodeableConcept(CodeableConcept value) {
this.startCodeableConcept = value;
}
/**
* Gets the value of the targetDate property.
*
* @return
* possible object is
* {@link Date }
*
*/
public Date getTargetDate() {
return targetDate;
}
/**
* Sets the value of the targetDate property.
*
* @param value
* allowed object is
* {@link Date }
*
*/
public void setTargetDate(Date value) {
this.targetDate = value;
}
/**
* Gets the value of the targetQuantity property.
*
* @return
* possible object is
* {@link Duration }
*
*/
public Duration getTargetQuantity() {
return targetQuantity;
}
/**
* Sets the value of the targetQuantity property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setTargetQuantity(Duration value) {
this.targetQuantity = value;
}
/**
* Gets the value of the category 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 category property.
*
*
* For example, to add a new item, do as follows:
*
* getCategory().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeableConcept }
*
*
*/
public List getCategory() {
if (category == null) {
category = new ArrayList();
}
return this.category;
}
/**
* 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;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link GoalStatus }
*
*/
public GoalStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link GoalStatus }
*
*/
public void setStatus(GoalStatus value) {
this.status = value;
}
/**
* Gets the value of the statusDate property.
*
* @return
* possible object is
* {@link Date }
*
*/
public Date getStatusDate() {
return statusDate;
}
/**
* Sets the value of the statusDate property.
*
* @param value
* allowed object is
* {@link Date }
*
*/
public void setStatusDate(Date value) {
this.statusDate = 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 author property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getAuthor() {
return author;
}
/**
* Sets the value of the author property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setAuthor(Reference value) {
this.author = value;
}
/**
* Gets the value of the priority property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getPriority() {
return priority;
}
/**
* Sets the value of the priority property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setPriority(CodeableConcept value) {
this.priority = value;
}
/**
* Gets the value of the addresses 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 addresses property.
*
*
* For example, to add a new item, do as follows:
*
* getAddresses().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getAddresses() {
if (addresses == null) {
addresses = new ArrayList();
}
return this.addresses;
}
/**
* Gets the value of the note 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 note property.
*
*
* For example, to add a new item, do as follows:
*
* getNote().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Annotation }
*
*
*/
public List getNote() {
if (note == null) {
note = new ArrayList();
}
return this.note;
}
/**
* Gets the value of the outcome 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 outcome property.
*
*
* For example, to add a new item, do as follows:
*
* getOutcome().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GoalOutcome }
*
*
*/
public List getOutcome() {
if (outcome == null) {
outcome = new ArrayList();
}
return this.outcome;
}
public Goal withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public Goal withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public Goal withSubject(Reference value) {
setSubject(value);
return this;
}
public Goal withStartDate(Date value) {
setStartDate(value);
return this;
}
public Goal withStartCodeableConcept(CodeableConcept value) {
setStartCodeableConcept(value);
return this;
}
public Goal withTargetDate(Date value) {
setTargetDate(value);
return this;
}
public Goal withTargetQuantity(Duration value) {
setTargetQuantity(value);
return this;
}
public Goal withCategory(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getCategory().add(value);
}
}
return this;
}
public Goal withCategory(Collection values) {
if (values!= null) {
getCategory().addAll(values);
}
return this;
}
public Goal withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
public Goal withStatus(GoalStatus value) {
setStatus(value);
return this;
}
public Goal withStatusDate(Date value) {
setStatusDate(value);
return this;
}
public Goal withStatusReason(CodeableConcept value) {
setStatusReason(value);
return this;
}
public Goal withAuthor(Reference value) {
setAuthor(value);
return this;
}
public Goal withPriority(CodeableConcept value) {
setPriority(value);
return this;
}
public Goal withAddresses(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getAddresses().add(value);
}
}
return this;
}
public Goal withAddresses(Collection values) {
if (values!= null) {
getAddresses().addAll(values);
}
return this;
}
public Goal withNote(Annotation... values) {
if (values!= null) {
for (Annotation value: values) {
getNote().add(value);
}
}
return this;
}
public Goal withNote(Collection values) {
if (values!= null) {
getNote().addAll(values);
}
return this;
}
public Goal withOutcome(GoalOutcome... values) {
if (values!= null) {
for (GoalOutcome value: values) {
getOutcome().add(value);
}
}
return this;
}
public Goal withOutcome(Collection values) {
if (values!= null) {
getOutcome().addAll(values);
}
return this;
}
@Override
public Goal withText(Narrative value) {
setText(value);
return this;
}
@Override
public Goal withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public Goal withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public Goal withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public Goal withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public Goal withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public Goal withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public Goal withId(Id value) {
setId(value);
return this;
}
@Override
public Goal withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public Goal withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public Goal 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 Goal that = ((Goal) 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 lhsSubject;
lhsSubject = this.getSubject();
Reference rhsSubject;
rhsSubject = that.getSubject();
if (!strategy.equals(LocatorUtils.property(thisLocator, "subject", lhsSubject), LocatorUtils.property(thatLocator, "subject", rhsSubject), lhsSubject, rhsSubject, (this.subject!= null), (that.subject!= null))) {
return false;
}
}
{
Date lhsStartDate;
lhsStartDate = this.getStartDate();
Date rhsStartDate;
rhsStartDate = that.getStartDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "startDate", lhsStartDate), LocatorUtils.property(thatLocator, "startDate", rhsStartDate), lhsStartDate, rhsStartDate, (this.startDate!= null), (that.startDate!= null))) {
return false;
}
}
{
CodeableConcept lhsStartCodeableConcept;
lhsStartCodeableConcept = this.getStartCodeableConcept();
CodeableConcept rhsStartCodeableConcept;
rhsStartCodeableConcept = that.getStartCodeableConcept();
if (!strategy.equals(LocatorUtils.property(thisLocator, "startCodeableConcept", lhsStartCodeableConcept), LocatorUtils.property(thatLocator, "startCodeableConcept", rhsStartCodeableConcept), lhsStartCodeableConcept, rhsStartCodeableConcept, (this.startCodeableConcept!= null), (that.startCodeableConcept!= null))) {
return false;
}
}
{
Date lhsTargetDate;
lhsTargetDate = this.getTargetDate();
Date rhsTargetDate;
rhsTargetDate = that.getTargetDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetDate", lhsTargetDate), LocatorUtils.property(thatLocator, "targetDate", rhsTargetDate), lhsTargetDate, rhsTargetDate, (this.targetDate!= null), (that.targetDate!= null))) {
return false;
}
}
{
Duration lhsTargetQuantity;
lhsTargetQuantity = this.getTargetQuantity();
Duration rhsTargetQuantity;
rhsTargetQuantity = that.getTargetQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetQuantity", lhsTargetQuantity), LocatorUtils.property(thatLocator, "targetQuantity", rhsTargetQuantity), lhsTargetQuantity, rhsTargetQuantity, (this.targetQuantity!= null), (that.targetQuantity!= null))) {
return false;
}
}
{
List lhsCategory;
lhsCategory = (((this.category!= null)&&(!this.category.isEmpty()))?this.getCategory():null);
List rhsCategory;
rhsCategory = (((that.category!= null)&&(!that.category.isEmpty()))?that.getCategory():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory, ((this.category!= null)&&(!this.category.isEmpty())), ((that.category!= null)&&(!that.category.isEmpty())))) {
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;
}
}
{
GoalStatus lhsStatus;
lhsStatus = this.getStatus();
GoalStatus 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;
}
}
{
Date lhsStatusDate;
lhsStatusDate = this.getStatusDate();
Date rhsStatusDate;
rhsStatusDate = that.getStatusDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "statusDate", lhsStatusDate), LocatorUtils.property(thatLocator, "statusDate", rhsStatusDate), lhsStatusDate, rhsStatusDate, (this.statusDate!= null), (that.statusDate!= 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;
}
}
{
Reference lhsAuthor;
lhsAuthor = this.getAuthor();
Reference rhsAuthor;
rhsAuthor = that.getAuthor();
if (!strategy.equals(LocatorUtils.property(thisLocator, "author", lhsAuthor), LocatorUtils.property(thatLocator, "author", rhsAuthor), lhsAuthor, rhsAuthor, (this.author!= null), (that.author!= null))) {
return false;
}
}
{
CodeableConcept lhsPriority;
lhsPriority = this.getPriority();
CodeableConcept rhsPriority;
rhsPriority = that.getPriority();
if (!strategy.equals(LocatorUtils.property(thisLocator, "priority", lhsPriority), LocatorUtils.property(thatLocator, "priority", rhsPriority), lhsPriority, rhsPriority, (this.priority!= null), (that.priority!= null))) {
return false;
}
}
{
List lhsAddresses;
lhsAddresses = (((this.addresses!= null)&&(!this.addresses.isEmpty()))?this.getAddresses():null);
List rhsAddresses;
rhsAddresses = (((that.addresses!= null)&&(!that.addresses.isEmpty()))?that.getAddresses():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "addresses", lhsAddresses), LocatorUtils.property(thatLocator, "addresses", rhsAddresses), lhsAddresses, rhsAddresses, ((this.addresses!= null)&&(!this.addresses.isEmpty())), ((that.addresses!= null)&&(!that.addresses.isEmpty())))) {
return false;
}
}
{
List lhsNote;
lhsNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
List rhsNote;
rhsNote = (((that.note!= null)&&(!that.note.isEmpty()))?that.getNote():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, ((this.note!= null)&&(!this.note.isEmpty())), ((that.note!= null)&&(!that.note.isEmpty())))) {
return false;
}
}
{
List lhsOutcome;
lhsOutcome = (((this.outcome!= null)&&(!this.outcome.isEmpty()))?this.getOutcome():null);
List rhsOutcome;
rhsOutcome = (((that.outcome!= null)&&(!that.outcome.isEmpty()))?that.getOutcome():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "outcome", lhsOutcome), LocatorUtils.property(thatLocator, "outcome", rhsOutcome), lhsOutcome, rhsOutcome, ((this.outcome!= null)&&(!this.outcome.isEmpty())), ((that.outcome!= null)&&(!that.outcome.isEmpty())))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
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 theSubject;
theSubject = this.getSubject();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null));
}
{
Date theStartDate;
theStartDate = this.getStartDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startDate", theStartDate), currentHashCode, theStartDate, (this.startDate!= null));
}
{
CodeableConcept theStartCodeableConcept;
theStartCodeableConcept = this.getStartCodeableConcept();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startCodeableConcept", theStartCodeableConcept), currentHashCode, theStartCodeableConcept, (this.startCodeableConcept!= null));
}
{
Date theTargetDate;
theTargetDate = this.getTargetDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetDate", theTargetDate), currentHashCode, theTargetDate, (this.targetDate!= null));
}
{
Duration theTargetQuantity;
theTargetQuantity = this.getTargetQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetQuantity", theTargetQuantity), currentHashCode, theTargetQuantity, (this.targetQuantity!= null));
}
{
List theCategory;
theCategory = (((this.category!= null)&&(!this.category.isEmpty()))?this.getCategory():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, ((this.category!= null)&&(!this.category.isEmpty())));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
GoalStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
Date theStatusDate;
theStatusDate = this.getStatusDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "statusDate", theStatusDate), currentHashCode, theStatusDate, (this.statusDate!= null));
}
{
CodeableConcept theStatusReason;
theStatusReason = this.getStatusReason();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "statusReason", theStatusReason), currentHashCode, theStatusReason, (this.statusReason!= null));
}
{
Reference theAuthor;
theAuthor = this.getAuthor();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "author", theAuthor), currentHashCode, theAuthor, (this.author!= null));
}
{
CodeableConcept thePriority;
thePriority = this.getPriority();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "priority", thePriority), currentHashCode, thePriority, (this.priority!= null));
}
{
List theAddresses;
theAddresses = (((this.addresses!= null)&&(!this.addresses.isEmpty()))?this.getAddresses():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addresses", theAddresses), currentHashCode, theAddresses, ((this.addresses!= null)&&(!this.addresses.isEmpty())));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
{
List theOutcome;
theOutcome = (((this.outcome!= null)&&(!this.outcome.isEmpty()))?this.getOutcome():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outcome", theOutcome), currentHashCode, theOutcome, ((this.outcome!= null)&&(!this.outcome.isEmpty())));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public java.lang.String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
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 theSubject;
theSubject = this.getSubject();
strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null));
}
{
Date theStartDate;
theStartDate = this.getStartDate();
strategy.appendField(locator, this, "startDate", buffer, theStartDate, (this.startDate!= null));
}
{
CodeableConcept theStartCodeableConcept;
theStartCodeableConcept = this.getStartCodeableConcept();
strategy.appendField(locator, this, "startCodeableConcept", buffer, theStartCodeableConcept, (this.startCodeableConcept!= null));
}
{
Date theTargetDate;
theTargetDate = this.getTargetDate();
strategy.appendField(locator, this, "targetDate", buffer, theTargetDate, (this.targetDate!= null));
}
{
Duration theTargetQuantity;
theTargetQuantity = this.getTargetQuantity();
strategy.appendField(locator, this, "targetQuantity", buffer, theTargetQuantity, (this.targetQuantity!= null));
}
{
List theCategory;
theCategory = (((this.category!= null)&&(!this.category.isEmpty()))?this.getCategory():null);
strategy.appendField(locator, this, "category", buffer, theCategory, ((this.category!= null)&&(!this.category.isEmpty())));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
GoalStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
Date theStatusDate;
theStatusDate = this.getStatusDate();
strategy.appendField(locator, this, "statusDate", buffer, theStatusDate, (this.statusDate!= null));
}
{
CodeableConcept theStatusReason;
theStatusReason = this.getStatusReason();
strategy.appendField(locator, this, "statusReason", buffer, theStatusReason, (this.statusReason!= null));
}
{
Reference theAuthor;
theAuthor = this.getAuthor();
strategy.appendField(locator, this, "author", buffer, theAuthor, (this.author!= null));
}
{
CodeableConcept thePriority;
thePriority = this.getPriority();
strategy.appendField(locator, this, "priority", buffer, thePriority, (this.priority!= null));
}
{
List theAddresses;
theAddresses = (((this.addresses!= null)&&(!this.addresses.isEmpty()))?this.getAddresses():null);
strategy.appendField(locator, this, "addresses", buffer, theAddresses, ((this.addresses!= null)&&(!this.addresses.isEmpty())));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
strategy.appendField(locator, this, "note", buffer, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
{
List theOutcome;
theOutcome = (((this.outcome!= null)&&(!this.outcome.isEmpty()))?this.getOutcome():null);
strategy.appendField(locator, this, "outcome", buffer, theOutcome, ((this.outcome!= null)&&(!this.outcome.isEmpty())));
}
return buffer;
}
public void setIdentifier(List value) {
this.identifier = value;
}
public void setCategory(List value) {
this.category = value;
}
public void setAddresses(List value) {
this.addresses = value;
}
public void setNote(List value) {
this.note = value;
}
public void setOutcome(List value) {
this.outcome = value;
}
}