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

org.hl7.fhir.CarePlanActivity 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.06.14 at 01:52:11 PM 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.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.Activity complex type. * *

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

 * <complexType name="CarePlan.Activity">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="actionResulting" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="progress" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="reference" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="detail" type="{http://hl7.org/fhir}CarePlan.Detail" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CarePlan.Activity", propOrder = { "actionResulting", "progress", "reference", "detail" }) public class CarePlanActivity extends BackboneElement implements Equals2, HashCode2, ToString2 { protected List actionResulting; protected List progress; protected Reference reference; protected CarePlanDetail detail; /** * Gets the value of the actionResulting 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 actionResulting property. * *

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

     *    getActionResulting().add(newItem);
     * 
* * *

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

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

     *    getProgress().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Annotation } * * */ public List getProgress() { if (progress == null) { progress = new ArrayList(); } return this.progress; } /** * Gets the value of the reference property. * * @return * possible object is * {@link Reference } * */ public Reference getReference() { return reference; } /** * Sets the value of the reference property. * * @param value * allowed object is * {@link Reference } * */ public void setReference(Reference value) { this.reference = value; } /** * Gets the value of the detail property. * * @return * possible object is * {@link CarePlanDetail } * */ public CarePlanDetail getDetail() { return detail; } /** * Sets the value of the detail property. * * @param value * allowed object is * {@link CarePlanDetail } * */ public void setDetail(CarePlanDetail value) { this.detail = value; } public CarePlanActivity withActionResulting(Reference... values) { if (values!= null) { for (Reference value: values) { getActionResulting().add(value); } } return this; } public CarePlanActivity withActionResulting(Collection values) { if (values!= null) { getActionResulting().addAll(values); } return this; } public CarePlanActivity withProgress(Annotation... values) { if (values!= null) { for (Annotation value: values) { getProgress().add(value); } } return this; } public CarePlanActivity withProgress(Collection values) { if (values!= null) { getProgress().addAll(values); } return this; } public CarePlanActivity withReference(Reference value) { setReference(value); return this; } public CarePlanActivity withDetail(CarePlanDetail value) { setDetail(value); return this; } @Override public CarePlanActivity withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public CarePlanActivity withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public CarePlanActivity withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public CarePlanActivity withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public CarePlanActivity 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 CarePlanActivity that = ((CarePlanActivity) object); { List lhsActionResulting; lhsActionResulting = (((this.actionResulting!= null)&&(!this.actionResulting.isEmpty()))?this.getActionResulting():null); List rhsActionResulting; rhsActionResulting = (((that.actionResulting!= null)&&(!that.actionResulting.isEmpty()))?that.getActionResulting():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "actionResulting", lhsActionResulting), LocatorUtils.property(thatLocator, "actionResulting", rhsActionResulting), lhsActionResulting, rhsActionResulting, ((this.actionResulting!= null)&&(!this.actionResulting.isEmpty())), ((that.actionResulting!= null)&&(!that.actionResulting.isEmpty())))) { return false; } } { List lhsProgress; lhsProgress = (((this.progress!= null)&&(!this.progress.isEmpty()))?this.getProgress():null); List rhsProgress; rhsProgress = (((that.progress!= null)&&(!that.progress.isEmpty()))?that.getProgress():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "progress", lhsProgress), LocatorUtils.property(thatLocator, "progress", rhsProgress), lhsProgress, rhsProgress, ((this.progress!= null)&&(!this.progress.isEmpty())), ((that.progress!= null)&&(!that.progress.isEmpty())))) { return false; } } { Reference lhsReference; lhsReference = this.getReference(); Reference rhsReference; rhsReference = that.getReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reference", lhsReference), LocatorUtils.property(thatLocator, "reference", rhsReference), lhsReference, rhsReference, (this.reference!= null), (that.reference!= null))) { return false; } } { CarePlanDetail lhsDetail; lhsDetail = this.getDetail(); CarePlanDetail rhsDetail; rhsDetail = that.getDetail(); if (!strategy.equals(LocatorUtils.property(thisLocator, "detail", lhsDetail), LocatorUtils.property(thatLocator, "detail", rhsDetail), lhsDetail, rhsDetail, (this.detail!= null), (that.detail!= 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 theActionResulting; theActionResulting = (((this.actionResulting!= null)&&(!this.actionResulting.isEmpty()))?this.getActionResulting():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "actionResulting", theActionResulting), currentHashCode, theActionResulting, ((this.actionResulting!= null)&&(!this.actionResulting.isEmpty()))); } { List theProgress; theProgress = (((this.progress!= null)&&(!this.progress.isEmpty()))?this.getProgress():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "progress", theProgress), currentHashCode, theProgress, ((this.progress!= null)&&(!this.progress.isEmpty()))); } { Reference theReference; theReference = this.getReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reference", theReference), currentHashCode, theReference, (this.reference!= null)); } { CarePlanDetail theDetail; theDetail = this.getDetail(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detail", theDetail), currentHashCode, theDetail, (this.detail!= 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 theActionResulting; theActionResulting = (((this.actionResulting!= null)&&(!this.actionResulting.isEmpty()))?this.getActionResulting():null); strategy.appendField(locator, this, "actionResulting", buffer, theActionResulting, ((this.actionResulting!= null)&&(!this.actionResulting.isEmpty()))); } { List theProgress; theProgress = (((this.progress!= null)&&(!this.progress.isEmpty()))?this.getProgress():null); strategy.appendField(locator, this, "progress", buffer, theProgress, ((this.progress!= null)&&(!this.progress.isEmpty()))); } { Reference theReference; theReference = this.getReference(); strategy.appendField(locator, this, "reference", buffer, theReference, (this.reference!= null)); } { CarePlanDetail theDetail; theDetail = this.getDetail(); strategy.appendField(locator, this, "detail", buffer, theDetail, (this.detail!= null)); } return buffer; } public void setActionResulting(List value) { this.actionResulting = value; } public void setProgress(List value) { this.progress = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy