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

org.hl7.fhir.ProcedureRequest 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.01.18 at 08:26:13 AM MST 
//


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 ProcedureRequest complex type. * *

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

 * <complexType name="ProcedureRequest">
 *   <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="code" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <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>
 *         <choice minOccurs="0">
 *           <element name="scheduledDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *           <element name="scheduledPeriod" type="{http://hl7.org/fhir}Period"/>
 *           <element name="scheduledTiming" type="{http://hl7.org/fhir}Timing"/>
 *         </choice>
 *         <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="performer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}ProcedureRequestStatus" minOccurs="0"/>
 *         <element name="notes" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="asNeededBoolean" type="{http://hl7.org/fhir}boolean"/>
 *           <element name="asNeededCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         </choice>
 *         <element name="orderedOn" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="orderer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="priority" type="{http://hl7.org/fhir}ProcedureRequestPriority" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ProcedureRequest", propOrder = { "identifier", "subject", "code", "bodySite", "reasonCodeableConcept", "reasonReference", "scheduledDateTime", "scheduledPeriod", "scheduledTiming", "encounter", "performer", "status", "notes", "asNeededBoolean", "asNeededCodeableConcept", "orderedOn", "orderer", "priority" }) public class ProcedureRequest extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected Reference subject; @XmlElement(required = true) protected CodeableConcept code; protected List bodySite; protected CodeableConcept reasonCodeableConcept; protected Reference reasonReference; protected DateTime scheduledDateTime; protected Period scheduledPeriod; protected Timing scheduledTiming; protected Reference encounter; protected Reference performer; protected ProcedureRequestStatus status; protected List notes; protected Boolean asNeededBoolean; protected CodeableConcept asNeededCodeableConcept; protected DateTime orderedOn; protected Reference orderer; protected ProcedureRequestPriority priority; /** * 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 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 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 scheduledDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getScheduledDateTime() { return scheduledDateTime; } /** * Sets the value of the scheduledDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setScheduledDateTime(DateTime value) { this.scheduledDateTime = value; } /** * Gets the value of the scheduledPeriod property. * * @return * possible object is * {@link Period } * */ public Period getScheduledPeriod() { return scheduledPeriod; } /** * Sets the value of the scheduledPeriod property. * * @param value * allowed object is * {@link Period } * */ public void setScheduledPeriod(Period value) { this.scheduledPeriod = value; } /** * Gets the value of the scheduledTiming property. * * @return * possible object is * {@link Timing } * */ public Timing getScheduledTiming() { return scheduledTiming; } /** * Sets the value of the scheduledTiming property. * * @param value * allowed object is * {@link Timing } * */ public void setScheduledTiming(Timing value) { this.scheduledTiming = value; } /** * Gets the value of the 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 performer property. * * @return * possible object is * {@link Reference } * */ public Reference getPerformer() { return performer; } /** * Sets the value of the performer property. * * @param value * allowed object is * {@link Reference } * */ public void setPerformer(Reference value) { this.performer = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link ProcedureRequestStatus } * */ public ProcedureRequestStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link ProcedureRequestStatus } * */ public void setStatus(ProcedureRequestStatus value) { this.status = 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 asNeededBoolean property. * * @return * possible object is * {@link Boolean } * */ public Boolean getAsNeededBoolean() { return asNeededBoolean; } /** * Sets the value of the asNeededBoolean property. * * @param value * allowed object is * {@link Boolean } * */ public void setAsNeededBoolean(Boolean value) { this.asNeededBoolean = value; } /** * Gets the value of the asNeededCodeableConcept property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getAsNeededCodeableConcept() { return asNeededCodeableConcept; } /** * Sets the value of the asNeededCodeableConcept property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setAsNeededCodeableConcept(CodeableConcept value) { this.asNeededCodeableConcept = value; } /** * Gets the value of the orderedOn property. * * @return * possible object is * {@link DateTime } * */ public DateTime getOrderedOn() { return orderedOn; } /** * Sets the value of the orderedOn property. * * @param value * allowed object is * {@link DateTime } * */ public void setOrderedOn(DateTime value) { this.orderedOn = value; } /** * Gets the value of the orderer property. * * @return * possible object is * {@link Reference } * */ public Reference getOrderer() { return orderer; } /** * Sets the value of the orderer property. * * @param value * allowed object is * {@link Reference } * */ public void setOrderer(Reference value) { this.orderer = value; } /** * Gets the value of the priority property. * * @return * possible object is * {@link ProcedureRequestPriority } * */ public ProcedureRequestPriority getPriority() { return priority; } /** * Sets the value of the priority property. * * @param value * allowed object is * {@link ProcedureRequestPriority } * */ public void setPriority(ProcedureRequestPriority value) { this.priority = value; } public ProcedureRequest withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public ProcedureRequest withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public ProcedureRequest withSubject(Reference value) { setSubject(value); return this; } public ProcedureRequest withCode(CodeableConcept value) { setCode(value); return this; } public ProcedureRequest withBodySite(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getBodySite().add(value); } } return this; } public ProcedureRequest withBodySite(Collection values) { if (values!= null) { getBodySite().addAll(values); } return this; } public ProcedureRequest withReasonCodeableConcept(CodeableConcept value) { setReasonCodeableConcept(value); return this; } public ProcedureRequest withReasonReference(Reference value) { setReasonReference(value); return this; } public ProcedureRequest withScheduledDateTime(DateTime value) { setScheduledDateTime(value); return this; } public ProcedureRequest withScheduledPeriod(Period value) { setScheduledPeriod(value); return this; } public ProcedureRequest withScheduledTiming(Timing value) { setScheduledTiming(value); return this; } public ProcedureRequest withEncounter(Reference value) { setEncounter(value); return this; } public ProcedureRequest withPerformer(Reference value) { setPerformer(value); return this; } public ProcedureRequest withStatus(ProcedureRequestStatus value) { setStatus(value); return this; } public ProcedureRequest withNotes(Annotation... values) { if (values!= null) { for (Annotation value: values) { getNotes().add(value); } } return this; } public ProcedureRequest withNotes(Collection values) { if (values!= null) { getNotes().addAll(values); } return this; } public ProcedureRequest withAsNeededBoolean(Boolean value) { setAsNeededBoolean(value); return this; } public ProcedureRequest withAsNeededCodeableConcept(CodeableConcept value) { setAsNeededCodeableConcept(value); return this; } public ProcedureRequest withOrderedOn(DateTime value) { setOrderedOn(value); return this; } public ProcedureRequest withOrderer(Reference value) { setOrderer(value); return this; } public ProcedureRequest withPriority(ProcedureRequestPriority value) { setPriority(value); return this; } @Override public ProcedureRequest withText(Narrative value) { setText(value); return this; } @Override public ProcedureRequest withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public ProcedureRequest withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public ProcedureRequest withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ProcedureRequest withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ProcedureRequest withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ProcedureRequest withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ProcedureRequest withId(Id value) { setId(value); return this; } @Override public ProcedureRequest withMeta(Meta value) { setMeta(value); return this; } @Override public ProcedureRequest withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public ProcedureRequest 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 ProcedureRequest that = ((ProcedureRequest) 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; } } { CodeableConcept lhsCode; lhsCode = this.getCode(); CodeableConcept rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= null))) { return false; } } { List 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; } } { DateTime lhsScheduledDateTime; lhsScheduledDateTime = this.getScheduledDateTime(); DateTime rhsScheduledDateTime; rhsScheduledDateTime = that.getScheduledDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "scheduledDateTime", lhsScheduledDateTime), LocatorUtils.property(thatLocator, "scheduledDateTime", rhsScheduledDateTime), lhsScheduledDateTime, rhsScheduledDateTime, (this.scheduledDateTime!= null), (that.scheduledDateTime!= null))) { return false; } } { Period lhsScheduledPeriod; lhsScheduledPeriod = this.getScheduledPeriod(); Period rhsScheduledPeriod; rhsScheduledPeriod = that.getScheduledPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "scheduledPeriod", lhsScheduledPeriod), LocatorUtils.property(thatLocator, "scheduledPeriod", rhsScheduledPeriod), lhsScheduledPeriod, rhsScheduledPeriod, (this.scheduledPeriod!= null), (that.scheduledPeriod!= null))) { return false; } } { Timing lhsScheduledTiming; lhsScheduledTiming = this.getScheduledTiming(); Timing rhsScheduledTiming; rhsScheduledTiming = that.getScheduledTiming(); if (!strategy.equals(LocatorUtils.property(thisLocator, "scheduledTiming", lhsScheduledTiming), LocatorUtils.property(thatLocator, "scheduledTiming", rhsScheduledTiming), lhsScheduledTiming, rhsScheduledTiming, (this.scheduledTiming!= null), (that.scheduledTiming!= null))) { return false; } } { 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 lhsPerformer; lhsPerformer = this.getPerformer(); Reference rhsPerformer; rhsPerformer = that.getPerformer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "performer", lhsPerformer), LocatorUtils.property(thatLocator, "performer", rhsPerformer), lhsPerformer, rhsPerformer, (this.performer!= null), (that.performer!= null))) { return false; } } { ProcedureRequestStatus lhsStatus; lhsStatus = this.getStatus(); ProcedureRequestStatus 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; } } { 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; } } { Boolean lhsAsNeededBoolean; lhsAsNeededBoolean = this.getAsNeededBoolean(); Boolean rhsAsNeededBoolean; rhsAsNeededBoolean = that.getAsNeededBoolean(); if (!strategy.equals(LocatorUtils.property(thisLocator, "asNeededBoolean", lhsAsNeededBoolean), LocatorUtils.property(thatLocator, "asNeededBoolean", rhsAsNeededBoolean), lhsAsNeededBoolean, rhsAsNeededBoolean, (this.asNeededBoolean!= null), (that.asNeededBoolean!= null))) { return false; } } { CodeableConcept lhsAsNeededCodeableConcept; lhsAsNeededCodeableConcept = this.getAsNeededCodeableConcept(); CodeableConcept rhsAsNeededCodeableConcept; rhsAsNeededCodeableConcept = that.getAsNeededCodeableConcept(); if (!strategy.equals(LocatorUtils.property(thisLocator, "asNeededCodeableConcept", lhsAsNeededCodeableConcept), LocatorUtils.property(thatLocator, "asNeededCodeableConcept", rhsAsNeededCodeableConcept), lhsAsNeededCodeableConcept, rhsAsNeededCodeableConcept, (this.asNeededCodeableConcept!= null), (that.asNeededCodeableConcept!= null))) { return false; } } { DateTime lhsOrderedOn; lhsOrderedOn = this.getOrderedOn(); DateTime rhsOrderedOn; rhsOrderedOn = that.getOrderedOn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orderedOn", lhsOrderedOn), LocatorUtils.property(thatLocator, "orderedOn", rhsOrderedOn), lhsOrderedOn, rhsOrderedOn, (this.orderedOn!= null), (that.orderedOn!= null))) { return false; } } { Reference lhsOrderer; lhsOrderer = this.getOrderer(); Reference rhsOrderer; rhsOrderer = that.getOrderer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orderer", lhsOrderer), LocatorUtils.property(thatLocator, "orderer", rhsOrderer), lhsOrderer, rhsOrderer, (this.orderer!= null), (that.orderer!= null))) { return false; } } { ProcedureRequestPriority lhsPriority; lhsPriority = this.getPriority(); ProcedureRequestPriority 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; } } 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)); } { CodeableConcept theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null)); } { 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)); } { DateTime theScheduledDateTime; theScheduledDateTime = this.getScheduledDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scheduledDateTime", theScheduledDateTime), currentHashCode, theScheduledDateTime, (this.scheduledDateTime!= null)); } { Period theScheduledPeriod; theScheduledPeriod = this.getScheduledPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scheduledPeriod", theScheduledPeriod), currentHashCode, theScheduledPeriod, (this.scheduledPeriod!= null)); } { Timing theScheduledTiming; theScheduledTiming = this.getScheduledTiming(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scheduledTiming", theScheduledTiming), currentHashCode, theScheduledTiming, (this.scheduledTiming!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null)); } { Reference thePerformer; thePerformer = this.getPerformer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer, (this.performer!= null)); } { ProcedureRequestStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= 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()))); } { Boolean theAsNeededBoolean; theAsNeededBoolean = this.getAsNeededBoolean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "asNeededBoolean", theAsNeededBoolean), currentHashCode, theAsNeededBoolean, (this.asNeededBoolean!= null)); } { CodeableConcept theAsNeededCodeableConcept; theAsNeededCodeableConcept = this.getAsNeededCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "asNeededCodeableConcept", theAsNeededCodeableConcept), currentHashCode, theAsNeededCodeableConcept, (this.asNeededCodeableConcept!= null)); } { DateTime theOrderedOn; theOrderedOn = this.getOrderedOn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderedOn", theOrderedOn), currentHashCode, theOrderedOn, (this.orderedOn!= null)); } { Reference theOrderer; theOrderer = this.getOrderer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderer", theOrderer), currentHashCode, theOrderer, (this.orderer!= null)); } { ProcedureRequestPriority thePriority; thePriority = this.getPriority(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "priority", thePriority), currentHashCode, thePriority, (this.priority!= 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)); } { CodeableConcept theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null)); } { 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)); } { DateTime theScheduledDateTime; theScheduledDateTime = this.getScheduledDateTime(); strategy.appendField(locator, this, "scheduledDateTime", buffer, theScheduledDateTime, (this.scheduledDateTime!= null)); } { Period theScheduledPeriod; theScheduledPeriod = this.getScheduledPeriod(); strategy.appendField(locator, this, "scheduledPeriod", buffer, theScheduledPeriod, (this.scheduledPeriod!= null)); } { Timing theScheduledTiming; theScheduledTiming = this.getScheduledTiming(); strategy.appendField(locator, this, "scheduledTiming", buffer, theScheduledTiming, (this.scheduledTiming!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null)); } { Reference thePerformer; thePerformer = this.getPerformer(); strategy.appendField(locator, this, "performer", buffer, thePerformer, (this.performer!= null)); } { ProcedureRequestStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= 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()))); } { Boolean theAsNeededBoolean; theAsNeededBoolean = this.getAsNeededBoolean(); strategy.appendField(locator, this, "asNeededBoolean", buffer, theAsNeededBoolean, (this.asNeededBoolean!= null)); } { CodeableConcept theAsNeededCodeableConcept; theAsNeededCodeableConcept = this.getAsNeededCodeableConcept(); strategy.appendField(locator, this, "asNeededCodeableConcept", buffer, theAsNeededCodeableConcept, (this.asNeededCodeableConcept!= null)); } { DateTime theOrderedOn; theOrderedOn = this.getOrderedOn(); strategy.appendField(locator, this, "orderedOn", buffer, theOrderedOn, (this.orderedOn!= null)); } { Reference theOrderer; theOrderer = this.getOrderer(); strategy.appendField(locator, this, "orderer", buffer, theOrderer, (this.orderer!= null)); } { ProcedureRequestPriority thePriority; thePriority = this.getPriority(); strategy.appendField(locator, this, "priority", buffer, thePriority, (this.priority!= null)); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setBodySite(List value) { this.bodySite = value; } public void setNotes(List value) { this.notes = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy