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

org.hl7.fhir.CarePlan 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.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 CarePlan complex type. * *

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

 * <complexType name="CarePlan">
 *   <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"/>
 *         <element name="status" type="{http://hl7.org/fhir}CarePlanStatus"/>
 *         <element name="context" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
 *         <element name="author" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="modified" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="category" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="addresses" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="support" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="relatedPlan" type="{http://hl7.org/fhir}CarePlan.RelatedPlan" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="participant" type="{http://hl7.org/fhir}CarePlan.Participant" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="goal" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="activity" type="{http://hl7.org/fhir}CarePlan.Activity" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="note" type="{http://hl7.org/fhir}Annotation" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CarePlan", propOrder = { "identifier", "subject", "status", "context", "period", "author", "modified", "category", "description", "addresses", "support", "relatedPlan", "participant", "goal", "activity", "note" }) public class CarePlan extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; protected Reference subject; @XmlElement(required = true) protected CarePlanStatus status; protected Reference context; protected Period period; protected List author; protected DateTime modified; protected List category; protected org.hl7.fhir.String description; protected List addresses; protected List support; protected List relatedPlan; protected List participant; protected List goal; protected List activity; protected Annotation note; /** * 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 status property. * * @return * possible object is * {@link CarePlanStatus } * */ public CarePlanStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link CarePlanStatus } * */ public void setStatus(CarePlanStatus value) { this.status = value; } /** * Gets the value of the context property. * * @return * possible object is * {@link Reference } * */ public Reference getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link Reference } * */ public void setContext(Reference value) { this.context = value; } /** * Gets the value of the period property. * * @return * possible object is * {@link Period } * */ public Period getPeriod() { return period; } /** * Sets the value of the period property. * * @param value * allowed object is * {@link Period } * */ public void setPeriod(Period value) { this.period = value; } /** * Gets the value of the author 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 author property. * *

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

     *    getAuthor().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getAuthor() { if (author == null) { author = new ArrayList(); } return this.author; } /** * Gets the value of the modified property. * * @return * possible object is * {@link DateTime } * */ public DateTime getModified() { return modified; } /** * Sets the value of the modified property. * * @param value * allowed object is * {@link DateTime } * */ public void setModified(DateTime value) { this.modified = 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 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 support 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 support property. * *

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

     *    getSupport().add(newItem);
     * 
* * *

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

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

     *    getRelatedPlan().add(newItem);
     * 
* * *

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

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

     *    getParticipant().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CarePlanParticipant } * * */ public List getParticipant() { if (participant == null) { participant = new ArrayList(); } return this.participant; } /** * 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 activity 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 activity property. * *

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

     *    getActivity().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CarePlanActivity } * * */ public List getActivity() { if (activity == null) { activity = new ArrayList(); } return this.activity; } /** * Gets the value of the note property. * * @return * possible object is * {@link Annotation } * */ public Annotation getNote() { return note; } /** * Sets the value of the note property. * * @param value * allowed object is * {@link Annotation } * */ public void setNote(Annotation value) { this.note = value; } public CarePlan withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public CarePlan withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public CarePlan withSubject(Reference value) { setSubject(value); return this; } public CarePlan withStatus(CarePlanStatus value) { setStatus(value); return this; } public CarePlan withContext(Reference value) { setContext(value); return this; } public CarePlan withPeriod(Period value) { setPeriod(value); return this; } public CarePlan withAuthor(Reference... values) { if (values!= null) { for (Reference value: values) { getAuthor().add(value); } } return this; } public CarePlan withAuthor(Collection values) { if (values!= null) { getAuthor().addAll(values); } return this; } public CarePlan withModified(DateTime value) { setModified(value); return this; } public CarePlan withCategory(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getCategory().add(value); } } return this; } public CarePlan withCategory(Collection values) { if (values!= null) { getCategory().addAll(values); } return this; } public CarePlan withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public CarePlan withAddresses(Reference... values) { if (values!= null) { for (Reference value: values) { getAddresses().add(value); } } return this; } public CarePlan withAddresses(Collection values) { if (values!= null) { getAddresses().addAll(values); } return this; } public CarePlan withSupport(Reference... values) { if (values!= null) { for (Reference value: values) { getSupport().add(value); } } return this; } public CarePlan withSupport(Collection values) { if (values!= null) { getSupport().addAll(values); } return this; } public CarePlan withRelatedPlan(CarePlanRelatedPlan... values) { if (values!= null) { for (CarePlanRelatedPlan value: values) { getRelatedPlan().add(value); } } return this; } public CarePlan withRelatedPlan(Collection values) { if (values!= null) { getRelatedPlan().addAll(values); } return this; } public CarePlan withParticipant(CarePlanParticipant... values) { if (values!= null) { for (CarePlanParticipant value: values) { getParticipant().add(value); } } return this; } public CarePlan withParticipant(Collection values) { if (values!= null) { getParticipant().addAll(values); } return this; } public CarePlan withGoal(Reference... values) { if (values!= null) { for (Reference value: values) { getGoal().add(value); } } return this; } public CarePlan withGoal(Collection values) { if (values!= null) { getGoal().addAll(values); } return this; } public CarePlan withActivity(CarePlanActivity... values) { if (values!= null) { for (CarePlanActivity value: values) { getActivity().add(value); } } return this; } public CarePlan withActivity(Collection values) { if (values!= null) { getActivity().addAll(values); } return this; } public CarePlan withNote(Annotation value) { setNote(value); return this; } @Override public CarePlan withText(Narrative value) { setText(value); return this; } @Override public CarePlan withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public CarePlan withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public CarePlan withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public CarePlan withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public CarePlan withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public CarePlan withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public CarePlan withId(Id value) { setId(value); return this; } @Override public CarePlan withMeta(Meta value) { setMeta(value); return this; } @Override public CarePlan withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public CarePlan 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 CarePlan that = ((CarePlan) 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; } } { CarePlanStatus lhsStatus; lhsStatus = this.getStatus(); CarePlanStatus 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; } } { Reference lhsContext; lhsContext = this.getContext(); Reference rhsContext; rhsContext = that.getContext(); if (!strategy.equals(LocatorUtils.property(thisLocator, "context", lhsContext), LocatorUtils.property(thatLocator, "context", rhsContext), lhsContext, rhsContext, (this.context!= null), (that.context!= null))) { return false; } } { Period lhsPeriod; lhsPeriod = this.getPeriod(); Period rhsPeriod; rhsPeriod = that.getPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "period", lhsPeriod), LocatorUtils.property(thatLocator, "period", rhsPeriod), lhsPeriod, rhsPeriod, (this.period!= null), (that.period!= null))) { return false; } } { List lhsAuthor; lhsAuthor = (((this.author!= null)&&(!this.author.isEmpty()))?this.getAuthor():null); List rhsAuthor; rhsAuthor = (((that.author!= null)&&(!that.author.isEmpty()))?that.getAuthor():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "author", lhsAuthor), LocatorUtils.property(thatLocator, "author", rhsAuthor), lhsAuthor, rhsAuthor, ((this.author!= null)&&(!this.author.isEmpty())), ((that.author!= null)&&(!that.author.isEmpty())))) { return false; } } { DateTime lhsModified; lhsModified = this.getModified(); DateTime rhsModified; rhsModified = that.getModified(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modified", lhsModified), LocatorUtils.property(thatLocator, "modified", rhsModified), lhsModified, rhsModified, (this.modified!= null), (that.modified!= 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; } } { 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 lhsSupport; lhsSupport = (((this.support!= null)&&(!this.support.isEmpty()))?this.getSupport():null); List rhsSupport; rhsSupport = (((that.support!= null)&&(!that.support.isEmpty()))?that.getSupport():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "support", lhsSupport), LocatorUtils.property(thatLocator, "support", rhsSupport), lhsSupport, rhsSupport, ((this.support!= null)&&(!this.support.isEmpty())), ((that.support!= null)&&(!that.support.isEmpty())))) { return false; } } { List lhsRelatedPlan; lhsRelatedPlan = (((this.relatedPlan!= null)&&(!this.relatedPlan.isEmpty()))?this.getRelatedPlan():null); List rhsRelatedPlan; rhsRelatedPlan = (((that.relatedPlan!= null)&&(!that.relatedPlan.isEmpty()))?that.getRelatedPlan():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "relatedPlan", lhsRelatedPlan), LocatorUtils.property(thatLocator, "relatedPlan", rhsRelatedPlan), lhsRelatedPlan, rhsRelatedPlan, ((this.relatedPlan!= null)&&(!this.relatedPlan.isEmpty())), ((that.relatedPlan!= null)&&(!that.relatedPlan.isEmpty())))) { return false; } } { List lhsParticipant; lhsParticipant = (((this.participant!= null)&&(!this.participant.isEmpty()))?this.getParticipant():null); List rhsParticipant; rhsParticipant = (((that.participant!= null)&&(!that.participant.isEmpty()))?that.getParticipant():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "participant", lhsParticipant), LocatorUtils.property(thatLocator, "participant", rhsParticipant), lhsParticipant, rhsParticipant, ((this.participant!= null)&&(!this.participant.isEmpty())), ((that.participant!= null)&&(!that.participant.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; } } { List lhsActivity; lhsActivity = (((this.activity!= null)&&(!this.activity.isEmpty()))?this.getActivity():null); List rhsActivity; rhsActivity = (((that.activity!= null)&&(!that.activity.isEmpty()))?that.getActivity():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "activity", lhsActivity), LocatorUtils.property(thatLocator, "activity", rhsActivity), lhsActivity, rhsActivity, ((this.activity!= null)&&(!this.activity.isEmpty())), ((that.activity!= null)&&(!that.activity.isEmpty())))) { return false; } } { Annotation lhsNote; lhsNote = this.getNote(); Annotation rhsNote; rhsNote = that.getNote(); if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, (this.note!= null), (that.note!= 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 theSubject; theSubject = this.getSubject(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null)); } { CarePlanStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { Reference theContext; theContext = this.getContext(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "context", theContext), currentHashCode, theContext, (this.context!= null)); } { Period thePeriod; thePeriod = this.getPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "period", thePeriod), currentHashCode, thePeriod, (this.period!= null)); } { List theAuthor; theAuthor = (((this.author!= null)&&(!this.author.isEmpty()))?this.getAuthor():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "author", theAuthor), currentHashCode, theAuthor, ((this.author!= null)&&(!this.author.isEmpty()))); } { DateTime theModified; theModified = this.getModified(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modified", theModified), currentHashCode, theModified, (this.modified!= 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)); } { 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 theSupport; theSupport = (((this.support!= null)&&(!this.support.isEmpty()))?this.getSupport():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "support", theSupport), currentHashCode, theSupport, ((this.support!= null)&&(!this.support.isEmpty()))); } { List theRelatedPlan; theRelatedPlan = (((this.relatedPlan!= null)&&(!this.relatedPlan.isEmpty()))?this.getRelatedPlan():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relatedPlan", theRelatedPlan), currentHashCode, theRelatedPlan, ((this.relatedPlan!= null)&&(!this.relatedPlan.isEmpty()))); } { List theParticipant; theParticipant = (((this.participant!= null)&&(!this.participant.isEmpty()))?this.getParticipant():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "participant", theParticipant), currentHashCode, theParticipant, ((this.participant!= null)&&(!this.participant.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()))); } { List theActivity; theActivity = (((this.activity!= null)&&(!this.activity.isEmpty()))?this.getActivity():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activity", theActivity), currentHashCode, theActivity, ((this.activity!= null)&&(!this.activity.isEmpty()))); } { Annotation theNote; theNote = this.getNote(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, (this.note!= 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 theSubject; theSubject = this.getSubject(); strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null)); } { CarePlanStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { Reference theContext; theContext = this.getContext(); strategy.appendField(locator, this, "context", buffer, theContext, (this.context!= null)); } { Period thePeriod; thePeriod = this.getPeriod(); strategy.appendField(locator, this, "period", buffer, thePeriod, (this.period!= null)); } { List theAuthor; theAuthor = (((this.author!= null)&&(!this.author.isEmpty()))?this.getAuthor():null); strategy.appendField(locator, this, "author", buffer, theAuthor, ((this.author!= null)&&(!this.author.isEmpty()))); } { DateTime theModified; theModified = this.getModified(); strategy.appendField(locator, this, "modified", buffer, theModified, (this.modified!= 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)); } { 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 theSupport; theSupport = (((this.support!= null)&&(!this.support.isEmpty()))?this.getSupport():null); strategy.appendField(locator, this, "support", buffer, theSupport, ((this.support!= null)&&(!this.support.isEmpty()))); } { List theRelatedPlan; theRelatedPlan = (((this.relatedPlan!= null)&&(!this.relatedPlan.isEmpty()))?this.getRelatedPlan():null); strategy.appendField(locator, this, "relatedPlan", buffer, theRelatedPlan, ((this.relatedPlan!= null)&&(!this.relatedPlan.isEmpty()))); } { List theParticipant; theParticipant = (((this.participant!= null)&&(!this.participant.isEmpty()))?this.getParticipant():null); strategy.appendField(locator, this, "participant", buffer, theParticipant, ((this.participant!= null)&&(!this.participant.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()))); } { List theActivity; theActivity = (((this.activity!= null)&&(!this.activity.isEmpty()))?this.getActivity():null); strategy.appendField(locator, this, "activity", buffer, theActivity, ((this.activity!= null)&&(!this.activity.isEmpty()))); } { Annotation theNote; theNote = this.getNote(); strategy.appendField(locator, this, "note", buffer, theNote, (this.note!= null)); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setAuthor(List value) { this.author = value; } public void setCategory(List value) { this.category = value; } public void setAddresses(List value) { this.addresses = value; } public void setSupport(List value) { this.support = value; } public void setRelatedPlan(List value) { this.relatedPlan = value; } public void setParticipant(List value) { this.participant = value; } public void setGoal(List value) { this.goal = value; } public void setActivity(List value) { this.activity = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy