org.hl7.fhir.Procedure 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.05.02 at 09:57:28 AM MDT
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* If the element is present, it must have either a @value, an @id, or extensions
*
* Java class for Procedure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Procedure">
* <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"/>
* <element name="status" type="{http://hl7.org/fhir}ProcedureStatus"/>
* <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="code" type="{http://hl7.org/fhir}CodeableConcept"/>
* <element name="notPerformed" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
* <element name="reasonNotPerformed" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
* <element name="bodySite" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="reasonCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
* <element name="reasonReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <element name="performer" type="{http://hl7.org/fhir}Procedure.Performer" maxOccurs="unbounded" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="performedDateTime" type="{http://hl7.org/fhir}dateTime"/>
* <element name="performedPeriod" type="{http://hl7.org/fhir}Period"/>
* </choice>
* <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="outcome" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="report" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="complication" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
* <element name="followUp" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
* <element name="request" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="notes" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
* <element name="focalDevice" type="{http://hl7.org/fhir}Procedure.FocalDevice" maxOccurs="unbounded" minOccurs="0"/>
* <element name="used" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Procedure", propOrder = {
"identifier",
"subject",
"status",
"category",
"code",
"notPerformed",
"reasonNotPerformed",
"bodySite",
"reasonCodeableConcept",
"reasonReference",
"performer",
"performedDateTime",
"performedPeriod",
"encounter",
"location",
"outcome",
"report",
"complication",
"followUp",
"request",
"notes",
"focalDevice",
"used"
})
public class Procedure
extends DomainResource
implements Equals2, HashCode2, ToString2
{
protected List identifier;
@XmlElement(required = true)
protected Reference subject;
@XmlElement(required = true)
protected ProcedureStatus status;
protected CodeableConcept category;
@XmlElement(required = true)
protected CodeableConcept code;
protected Boolean notPerformed;
protected List reasonNotPerformed;
protected List bodySite;
protected CodeableConcept reasonCodeableConcept;
protected Reference reasonReference;
protected List performer;
protected DateTime performedDateTime;
protected Period performedPeriod;
protected Reference encounter;
protected Reference location;
protected CodeableConcept outcome;
protected List report;
protected List complication;
protected List followUp;
protected Reference request;
protected List notes;
protected List focalDevice;
protected List used;
/**
* 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 ProcedureStatus }
*
*/
public ProcedureStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link ProcedureStatus }
*
*/
public void setStatus(ProcedureStatus value) {
this.status = value;
}
/**
* Gets the value of the category property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getCategory() {
return category;
}
/**
* Sets the value of the category property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setCategory(CodeableConcept value) {
this.category = value;
}
/**
* Gets the value of the 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 notPerformed property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getNotPerformed() {
return notPerformed;
}
/**
* Sets the value of the notPerformed property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setNotPerformed(Boolean value) {
this.notPerformed = value;
}
/**
* Gets the value of the reasonNotPerformed 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 reasonNotPerformed property.
*
*
* For example, to add a new item, do as follows:
*
* getReasonNotPerformed().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeableConcept }
*
*
*/
public List getReasonNotPerformed() {
if (reasonNotPerformed == null) {
reasonNotPerformed = new ArrayList();
}
return this.reasonNotPerformed;
}
/**
* Gets the value of the bodySite property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the bodySite property.
*
*
* For example, to add a new item, do as follows:
*
* getBodySite().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeableConcept }
*
*
*/
public List getBodySite() {
if (bodySite == null) {
bodySite = new ArrayList();
}
return this.bodySite;
}
/**
* Gets the value of the reasonCodeableConcept property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getReasonCodeableConcept() {
return reasonCodeableConcept;
}
/**
* Sets the value of the reasonCodeableConcept property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setReasonCodeableConcept(CodeableConcept value) {
this.reasonCodeableConcept = value;
}
/**
* Gets the value of the reasonReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getReasonReference() {
return reasonReference;
}
/**
* Sets the value of the reasonReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setReasonReference(Reference value) {
this.reasonReference = 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 ProcedurePerformer }
*
*
*/
public List getPerformer() {
if (performer == null) {
performer = new ArrayList();
}
return this.performer;
}
/**
* Gets the value of the performedDateTime property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getPerformedDateTime() {
return performedDateTime;
}
/**
* Sets the value of the performedDateTime property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setPerformedDateTime(DateTime value) {
this.performedDateTime = value;
}
/**
* Gets the value of the performedPeriod property.
*
* @return
* possible object is
* {@link Period }
*
*/
public Period getPerformedPeriod() {
return performedPeriod;
}
/**
* Sets the value of the performedPeriod property.
*
* @param value
* allowed object is
* {@link Period }
*
*/
public void setPerformedPeriod(Period value) {
this.performedPeriod = value;
}
/**
* Gets the value of the encounter property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getEncounter() {
return encounter;
}
/**
* Sets the value of the encounter property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setEncounter(Reference value) {
this.encounter = value;
}
/**
* Gets the value of the 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 outcome property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getOutcome() {
return outcome;
}
/**
* Sets the value of the outcome property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setOutcome(CodeableConcept value) {
this.outcome = value;
}
/**
* Gets the value of the report 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 report property.
*
*
* For example, to add a new item, do as follows:
*
* getReport().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getReport() {
if (report == null) {
report = new ArrayList();
}
return this.report;
}
/**
* Gets the value of the complication 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 complication property.
*
*
* For example, to add a new item, do as follows:
*
* getComplication().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeableConcept }
*
*
*/
public List getComplication() {
if (complication == null) {
complication = new ArrayList();
}
return this.complication;
}
/**
* Gets the value of the followUp 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 followUp property.
*
*
* For example, to add a new item, do as follows:
*
* getFollowUp().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeableConcept }
*
*
*/
public List getFollowUp() {
if (followUp == null) {
followUp = new ArrayList();
}
return this.followUp;
}
/**
* Gets the value of the request property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getRequest() {
return request;
}
/**
* Sets the value of the request property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setRequest(Reference value) {
this.request = value;
}
/**
* Gets the value of the notes 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 notes property.
*
*
* For example, to add a new item, do as follows:
*
* getNotes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Annotation }
*
*
*/
public List getNotes() {
if (notes == null) {
notes = new ArrayList();
}
return this.notes;
}
/**
* Gets the value of the focalDevice 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 focalDevice property.
*
*
* For example, to add a new item, do as follows:
*
* getFocalDevice().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProcedureFocalDevice }
*
*
*/
public List getFocalDevice() {
if (focalDevice == null) {
focalDevice = new ArrayList();
}
return this.focalDevice;
}
/**
* Gets the value of the used 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 used property.
*
*
* For example, to add a new item, do as follows:
*
* getUsed().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getUsed() {
if (used == null) {
used = new ArrayList();
}
return this.used;
}
public Procedure withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public Procedure withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public Procedure withSubject(Reference value) {
setSubject(value);
return this;
}
public Procedure withStatus(ProcedureStatus value) {
setStatus(value);
return this;
}
public Procedure withCategory(CodeableConcept value) {
setCategory(value);
return this;
}
public Procedure withCode(CodeableConcept value) {
setCode(value);
return this;
}
public Procedure withNotPerformed(Boolean value) {
setNotPerformed(value);
return this;
}
public Procedure withReasonNotPerformed(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getReasonNotPerformed().add(value);
}
}
return this;
}
public Procedure withReasonNotPerformed(Collection values) {
if (values!= null) {
getReasonNotPerformed().addAll(values);
}
return this;
}
public Procedure withBodySite(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getBodySite().add(value);
}
}
return this;
}
public Procedure withBodySite(Collection values) {
if (values!= null) {
getBodySite().addAll(values);
}
return this;
}
public Procedure withReasonCodeableConcept(CodeableConcept value) {
setReasonCodeableConcept(value);
return this;
}
public Procedure withReasonReference(Reference value) {
setReasonReference(value);
return this;
}
public Procedure withPerformer(ProcedurePerformer... values) {
if (values!= null) {
for (ProcedurePerformer value: values) {
getPerformer().add(value);
}
}
return this;
}
public Procedure withPerformer(Collection values) {
if (values!= null) {
getPerformer().addAll(values);
}
return this;
}
public Procedure withPerformedDateTime(DateTime value) {
setPerformedDateTime(value);
return this;
}
public Procedure withPerformedPeriod(Period value) {
setPerformedPeriod(value);
return this;
}
public Procedure withEncounter(Reference value) {
setEncounter(value);
return this;
}
public Procedure withLocation(Reference value) {
setLocation(value);
return this;
}
public Procedure withOutcome(CodeableConcept value) {
setOutcome(value);
return this;
}
public Procedure withReport(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getReport().add(value);
}
}
return this;
}
public Procedure withReport(Collection values) {
if (values!= null) {
getReport().addAll(values);
}
return this;
}
public Procedure withComplication(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getComplication().add(value);
}
}
return this;
}
public Procedure withComplication(Collection values) {
if (values!= null) {
getComplication().addAll(values);
}
return this;
}
public Procedure withFollowUp(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getFollowUp().add(value);
}
}
return this;
}
public Procedure withFollowUp(Collection values) {
if (values!= null) {
getFollowUp().addAll(values);
}
return this;
}
public Procedure withRequest(Reference value) {
setRequest(value);
return this;
}
public Procedure withNotes(Annotation... values) {
if (values!= null) {
for (Annotation value: values) {
getNotes().add(value);
}
}
return this;
}
public Procedure withNotes(Collection values) {
if (values!= null) {
getNotes().addAll(values);
}
return this;
}
public Procedure withFocalDevice(ProcedureFocalDevice... values) {
if (values!= null) {
for (ProcedureFocalDevice value: values) {
getFocalDevice().add(value);
}
}
return this;
}
public Procedure withFocalDevice(Collection values) {
if (values!= null) {
getFocalDevice().addAll(values);
}
return this;
}
public Procedure withUsed(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getUsed().add(value);
}
}
return this;
}
public Procedure withUsed(Collection values) {
if (values!= null) {
getUsed().addAll(values);
}
return this;
}
@Override
public Procedure withText(Narrative value) {
setText(value);
return this;
}
@Override
public Procedure withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public Procedure withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public Procedure withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public Procedure withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public Procedure withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public Procedure withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public Procedure withId(Id value) {
setId(value);
return this;
}
@Override
public Procedure withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public Procedure withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public Procedure 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 Procedure that = ((Procedure) 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;
}
}
{
ProcedureStatus lhsStatus;
lhsStatus = this.getStatus();
ProcedureStatus 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 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;
}
}
{
Boolean lhsNotPerformed;
lhsNotPerformed = this.getNotPerformed();
Boolean rhsNotPerformed;
rhsNotPerformed = that.getNotPerformed();
if (!strategy.equals(LocatorUtils.property(thisLocator, "notPerformed", lhsNotPerformed), LocatorUtils.property(thatLocator, "notPerformed", rhsNotPerformed), lhsNotPerformed, rhsNotPerformed, (this.notPerformed!= null), (that.notPerformed!= null))) {
return false;
}
}
{
List lhsReasonNotPerformed;
lhsReasonNotPerformed = (((this.reasonNotPerformed!= null)&&(!this.reasonNotPerformed.isEmpty()))?this.getReasonNotPerformed():null);
List rhsReasonNotPerformed;
rhsReasonNotPerformed = (((that.reasonNotPerformed!= null)&&(!that.reasonNotPerformed.isEmpty()))?that.getReasonNotPerformed():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonNotPerformed", lhsReasonNotPerformed), LocatorUtils.property(thatLocator, "reasonNotPerformed", rhsReasonNotPerformed), lhsReasonNotPerformed, rhsReasonNotPerformed, ((this.reasonNotPerformed!= null)&&(!this.reasonNotPerformed.isEmpty())), ((that.reasonNotPerformed!= null)&&(!that.reasonNotPerformed.isEmpty())))) {
return false;
}
}
{
List lhsBodySite;
lhsBodySite = (((this.bodySite!= null)&&(!this.bodySite.isEmpty()))?this.getBodySite():null);
List rhsBodySite;
rhsBodySite = (((that.bodySite!= null)&&(!that.bodySite.isEmpty()))?that.getBodySite():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "bodySite", lhsBodySite), LocatorUtils.property(thatLocator, "bodySite", rhsBodySite), lhsBodySite, rhsBodySite, ((this.bodySite!= null)&&(!this.bodySite.isEmpty())), ((that.bodySite!= null)&&(!that.bodySite.isEmpty())))) {
return false;
}
}
{
CodeableConcept lhsReasonCodeableConcept;
lhsReasonCodeableConcept = this.getReasonCodeableConcept();
CodeableConcept rhsReasonCodeableConcept;
rhsReasonCodeableConcept = that.getReasonCodeableConcept();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonCodeableConcept", lhsReasonCodeableConcept), LocatorUtils.property(thatLocator, "reasonCodeableConcept", rhsReasonCodeableConcept), lhsReasonCodeableConcept, rhsReasonCodeableConcept, (this.reasonCodeableConcept!= null), (that.reasonCodeableConcept!= null))) {
return false;
}
}
{
Reference lhsReasonReference;
lhsReasonReference = this.getReasonReference();
Reference rhsReasonReference;
rhsReasonReference = that.getReasonReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonReference", lhsReasonReference), LocatorUtils.property(thatLocator, "reasonReference", rhsReasonReference), lhsReasonReference, rhsReasonReference, (this.reasonReference!= null), (that.reasonReference!= 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;
}
}
{
DateTime lhsPerformedDateTime;
lhsPerformedDateTime = this.getPerformedDateTime();
DateTime rhsPerformedDateTime;
rhsPerformedDateTime = that.getPerformedDateTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "performedDateTime", lhsPerformedDateTime), LocatorUtils.property(thatLocator, "performedDateTime", rhsPerformedDateTime), lhsPerformedDateTime, rhsPerformedDateTime, (this.performedDateTime!= null), (that.performedDateTime!= null))) {
return false;
}
}
{
Period lhsPerformedPeriod;
lhsPerformedPeriod = this.getPerformedPeriod();
Period rhsPerformedPeriod;
rhsPerformedPeriod = that.getPerformedPeriod();
if (!strategy.equals(LocatorUtils.property(thisLocator, "performedPeriod", lhsPerformedPeriod), LocatorUtils.property(thatLocator, "performedPeriod", rhsPerformedPeriod), lhsPerformedPeriod, rhsPerformedPeriod, (this.performedPeriod!= null), (that.performedPeriod!= null))) {
return false;
}
}
{
Reference lhsEncounter;
lhsEncounter = this.getEncounter();
Reference rhsEncounter;
rhsEncounter = that.getEncounter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) {
return false;
}
}
{
Reference 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;
}
}
{
CodeableConcept lhsOutcome;
lhsOutcome = this.getOutcome();
CodeableConcept rhsOutcome;
rhsOutcome = that.getOutcome();
if (!strategy.equals(LocatorUtils.property(thisLocator, "outcome", lhsOutcome), LocatorUtils.property(thatLocator, "outcome", rhsOutcome), lhsOutcome, rhsOutcome, (this.outcome!= null), (that.outcome!= null))) {
return false;
}
}
{
List lhsReport;
lhsReport = (((this.report!= null)&&(!this.report.isEmpty()))?this.getReport():null);
List rhsReport;
rhsReport = (((that.report!= null)&&(!that.report.isEmpty()))?that.getReport():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "report", lhsReport), LocatorUtils.property(thatLocator, "report", rhsReport), lhsReport, rhsReport, ((this.report!= null)&&(!this.report.isEmpty())), ((that.report!= null)&&(!that.report.isEmpty())))) {
return false;
}
}
{
List lhsComplication;
lhsComplication = (((this.complication!= null)&&(!this.complication.isEmpty()))?this.getComplication():null);
List rhsComplication;
rhsComplication = (((that.complication!= null)&&(!that.complication.isEmpty()))?that.getComplication():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "complication", lhsComplication), LocatorUtils.property(thatLocator, "complication", rhsComplication), lhsComplication, rhsComplication, ((this.complication!= null)&&(!this.complication.isEmpty())), ((that.complication!= null)&&(!that.complication.isEmpty())))) {
return false;
}
}
{
List lhsFollowUp;
lhsFollowUp = (((this.followUp!= null)&&(!this.followUp.isEmpty()))?this.getFollowUp():null);
List rhsFollowUp;
rhsFollowUp = (((that.followUp!= null)&&(!that.followUp.isEmpty()))?that.getFollowUp():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "followUp", lhsFollowUp), LocatorUtils.property(thatLocator, "followUp", rhsFollowUp), lhsFollowUp, rhsFollowUp, ((this.followUp!= null)&&(!this.followUp.isEmpty())), ((that.followUp!= null)&&(!that.followUp.isEmpty())))) {
return false;
}
}
{
Reference lhsRequest;
lhsRequest = this.getRequest();
Reference rhsRequest;
rhsRequest = that.getRequest();
if (!strategy.equals(LocatorUtils.property(thisLocator, "request", lhsRequest), LocatorUtils.property(thatLocator, "request", rhsRequest), lhsRequest, rhsRequest, (this.request!= null), (that.request!= null))) {
return false;
}
}
{
List lhsNotes;
lhsNotes = (((this.notes!= null)&&(!this.notes.isEmpty()))?this.getNotes():null);
List rhsNotes;
rhsNotes = (((that.notes!= null)&&(!that.notes.isEmpty()))?that.getNotes():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes, ((this.notes!= null)&&(!this.notes.isEmpty())), ((that.notes!= null)&&(!that.notes.isEmpty())))) {
return false;
}
}
{
List lhsFocalDevice;
lhsFocalDevice = (((this.focalDevice!= null)&&(!this.focalDevice.isEmpty()))?this.getFocalDevice():null);
List rhsFocalDevice;
rhsFocalDevice = (((that.focalDevice!= null)&&(!that.focalDevice.isEmpty()))?that.getFocalDevice():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "focalDevice", lhsFocalDevice), LocatorUtils.property(thatLocator, "focalDevice", rhsFocalDevice), lhsFocalDevice, rhsFocalDevice, ((this.focalDevice!= null)&&(!this.focalDevice.isEmpty())), ((that.focalDevice!= null)&&(!that.focalDevice.isEmpty())))) {
return false;
}
}
{
List lhsUsed;
lhsUsed = (((this.used!= null)&&(!this.used.isEmpty()))?this.getUsed():null);
List rhsUsed;
rhsUsed = (((that.used!= null)&&(!that.used.isEmpty()))?that.getUsed():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "used", lhsUsed), LocatorUtils.property(thatLocator, "used", rhsUsed), lhsUsed, rhsUsed, ((this.used!= null)&&(!this.used.isEmpty())), ((that.used!= null)&&(!that.used.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));
}
{
ProcedureStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
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));
}
{
Boolean theNotPerformed;
theNotPerformed = this.getNotPerformed();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notPerformed", theNotPerformed), currentHashCode, theNotPerformed, (this.notPerformed!= null));
}
{
List theReasonNotPerformed;
theReasonNotPerformed = (((this.reasonNotPerformed!= null)&&(!this.reasonNotPerformed.isEmpty()))?this.getReasonNotPerformed():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonNotPerformed", theReasonNotPerformed), currentHashCode, theReasonNotPerformed, ((this.reasonNotPerformed!= null)&&(!this.reasonNotPerformed.isEmpty())));
}
{
List theBodySite;
theBodySite = (((this.bodySite!= null)&&(!this.bodySite.isEmpty()))?this.getBodySite():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bodySite", theBodySite), currentHashCode, theBodySite, ((this.bodySite!= null)&&(!this.bodySite.isEmpty())));
}
{
CodeableConcept theReasonCodeableConcept;
theReasonCodeableConcept = this.getReasonCodeableConcept();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonCodeableConcept", theReasonCodeableConcept), currentHashCode, theReasonCodeableConcept, (this.reasonCodeableConcept!= null));
}
{
Reference theReasonReference;
theReasonReference = this.getReasonReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonReference", theReasonReference), currentHashCode, theReasonReference, (this.reasonReference!= 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())));
}
{
DateTime thePerformedDateTime;
thePerformedDateTime = this.getPerformedDateTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performedDateTime", thePerformedDateTime), currentHashCode, thePerformedDateTime, (this.performedDateTime!= null));
}
{
Period thePerformedPeriod;
thePerformedPeriod = this.getPerformedPeriod();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performedPeriod", thePerformedPeriod), currentHashCode, thePerformedPeriod, (this.performedPeriod!= null));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null));
}
{
Reference theLocation;
theLocation = this.getLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null));
}
{
CodeableConcept theOutcome;
theOutcome = this.getOutcome();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outcome", theOutcome), currentHashCode, theOutcome, (this.outcome!= null));
}
{
List theReport;
theReport = (((this.report!= null)&&(!this.report.isEmpty()))?this.getReport():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "report", theReport), currentHashCode, theReport, ((this.report!= null)&&(!this.report.isEmpty())));
}
{
List theComplication;
theComplication = (((this.complication!= null)&&(!this.complication.isEmpty()))?this.getComplication():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "complication", theComplication), currentHashCode, theComplication, ((this.complication!= null)&&(!this.complication.isEmpty())));
}
{
List theFollowUp;
theFollowUp = (((this.followUp!= null)&&(!this.followUp.isEmpty()))?this.getFollowUp():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "followUp", theFollowUp), currentHashCode, theFollowUp, ((this.followUp!= null)&&(!this.followUp.isEmpty())));
}
{
Reference theRequest;
theRequest = this.getRequest();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "request", theRequest), currentHashCode, theRequest, (this.request!= null));
}
{
List theNotes;
theNotes = (((this.notes!= null)&&(!this.notes.isEmpty()))?this.getNotes():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes, ((this.notes!= null)&&(!this.notes.isEmpty())));
}
{
List theFocalDevice;
theFocalDevice = (((this.focalDevice!= null)&&(!this.focalDevice.isEmpty()))?this.getFocalDevice():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "focalDevice", theFocalDevice), currentHashCode, theFocalDevice, ((this.focalDevice!= null)&&(!this.focalDevice.isEmpty())));
}
{
List theUsed;
theUsed = (((this.used!= null)&&(!this.used.isEmpty()))?this.getUsed():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "used", theUsed), currentHashCode, theUsed, ((this.used!= null)&&(!this.used.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));
}
{
ProcedureStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
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));
}
{
Boolean theNotPerformed;
theNotPerformed = this.getNotPerformed();
strategy.appendField(locator, this, "notPerformed", buffer, theNotPerformed, (this.notPerformed!= null));
}
{
List theReasonNotPerformed;
theReasonNotPerformed = (((this.reasonNotPerformed!= null)&&(!this.reasonNotPerformed.isEmpty()))?this.getReasonNotPerformed():null);
strategy.appendField(locator, this, "reasonNotPerformed", buffer, theReasonNotPerformed, ((this.reasonNotPerformed!= null)&&(!this.reasonNotPerformed.isEmpty())));
}
{
List theBodySite;
theBodySite = (((this.bodySite!= null)&&(!this.bodySite.isEmpty()))?this.getBodySite():null);
strategy.appendField(locator, this, "bodySite", buffer, theBodySite, ((this.bodySite!= null)&&(!this.bodySite.isEmpty())));
}
{
CodeableConcept theReasonCodeableConcept;
theReasonCodeableConcept = this.getReasonCodeableConcept();
strategy.appendField(locator, this, "reasonCodeableConcept", buffer, theReasonCodeableConcept, (this.reasonCodeableConcept!= null));
}
{
Reference theReasonReference;
theReasonReference = this.getReasonReference();
strategy.appendField(locator, this, "reasonReference", buffer, theReasonReference, (this.reasonReference!= 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())));
}
{
DateTime thePerformedDateTime;
thePerformedDateTime = this.getPerformedDateTime();
strategy.appendField(locator, this, "performedDateTime", buffer, thePerformedDateTime, (this.performedDateTime!= null));
}
{
Period thePerformedPeriod;
thePerformedPeriod = this.getPerformedPeriod();
strategy.appendField(locator, this, "performedPeriod", buffer, thePerformedPeriod, (this.performedPeriod!= null));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null));
}
{
Reference theLocation;
theLocation = this.getLocation();
strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null));
}
{
CodeableConcept theOutcome;
theOutcome = this.getOutcome();
strategy.appendField(locator, this, "outcome", buffer, theOutcome, (this.outcome!= null));
}
{
List theReport;
theReport = (((this.report!= null)&&(!this.report.isEmpty()))?this.getReport():null);
strategy.appendField(locator, this, "report", buffer, theReport, ((this.report!= null)&&(!this.report.isEmpty())));
}
{
List theComplication;
theComplication = (((this.complication!= null)&&(!this.complication.isEmpty()))?this.getComplication():null);
strategy.appendField(locator, this, "complication", buffer, theComplication, ((this.complication!= null)&&(!this.complication.isEmpty())));
}
{
List theFollowUp;
theFollowUp = (((this.followUp!= null)&&(!this.followUp.isEmpty()))?this.getFollowUp():null);
strategy.appendField(locator, this, "followUp", buffer, theFollowUp, ((this.followUp!= null)&&(!this.followUp.isEmpty())));
}
{
Reference theRequest;
theRequest = this.getRequest();
strategy.appendField(locator, this, "request", buffer, theRequest, (this.request!= null));
}
{
List theNotes;
theNotes = (((this.notes!= null)&&(!this.notes.isEmpty()))?this.getNotes():null);
strategy.appendField(locator, this, "notes", buffer, theNotes, ((this.notes!= null)&&(!this.notes.isEmpty())));
}
{
List theFocalDevice;
theFocalDevice = (((this.focalDevice!= null)&&(!this.focalDevice.isEmpty()))?this.getFocalDevice():null);
strategy.appendField(locator, this, "focalDevice", buffer, theFocalDevice, ((this.focalDevice!= null)&&(!this.focalDevice.isEmpty())));
}
{
List theUsed;
theUsed = (((this.used!= null)&&(!this.used.isEmpty()))?this.getUsed():null);
strategy.appendField(locator, this, "used", buffer, theUsed, ((this.used!= null)&&(!this.used.isEmpty())));
}
return buffer;
}
public void setIdentifier(List value) {
this.identifier = value;
}
public void setReasonNotPerformed(List value) {
this.reasonNotPerformed = value;
}
public void setBodySite(List value) {
this.bodySite = value;
}
public void setPerformer(List value) {
this.performer = value;
}
public void setReport(List value) {
this.report = value;
}
public void setComplication(List value) {
this.complication = value;
}
public void setFollowUp(List value) {
this.followUp = value;
}
public void setNotes(List value) {
this.notes = value;
}
public void setFocalDevice(List value) {
this.focalDevice = value;
}
public void setUsed(List value) {
this.used = value;
}
}