org.hl7.fhir.ImagingStudy 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.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 ImagingStudy complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ImagingStudy">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="uid" type="{http://hl7.org/fhir}oid"/>
* <element name="accession" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
* <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
* <element name="availability" type="{http://hl7.org/fhir}InstanceAvailability" minOccurs="0"/>
* <element name="modalityList" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
* <element name="patient" type="{http://hl7.org/fhir}Reference"/>
* <element name="started" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
* <element name="order" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="referrer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="interpreter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
* <element name="numberOfSeries" type="{http://hl7.org/fhir}unsignedInt"/>
* <element name="numberOfInstances" type="{http://hl7.org/fhir}unsignedInt"/>
* <element name="procedure" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="series" type="{http://hl7.org/fhir}ImagingStudy.Series" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ImagingStudy", propOrder = {
"uid",
"accession",
"identifier",
"availability",
"modalityList",
"patient",
"started",
"order",
"referrer",
"interpreter",
"url",
"numberOfSeries",
"numberOfInstances",
"procedure",
"description",
"series"
})
public class ImagingStudy
extends DomainResource
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Oid uid;
protected Identifier accession;
protected List identifier;
protected InstanceAvailability availability;
protected List modalityList;
@XmlElement(required = true)
protected Reference patient;
protected DateTime started;
protected List order;
protected Reference referrer;
protected Reference interpreter;
protected Uri url;
@XmlElement(required = true)
protected UnsignedInt numberOfSeries;
@XmlElement(required = true)
protected UnsignedInt numberOfInstances;
protected List procedure;
protected org.hl7.fhir.String description;
protected List series;
/**
* Gets the value of the uid property.
*
* @return
* possible object is
* {@link Oid }
*
*/
public Oid getUid() {
return uid;
}
/**
* Sets the value of the uid property.
*
* @param value
* allowed object is
* {@link Oid }
*
*/
public void setUid(Oid value) {
this.uid = value;
}
/**
* Gets the value of the accession property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getAccession() {
return accession;
}
/**
* Sets the value of the accession property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setAccession(Identifier value) {
this.accession = value;
}
/**
* 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 availability property.
*
* @return
* possible object is
* {@link InstanceAvailability }
*
*/
public InstanceAvailability getAvailability() {
return availability;
}
/**
* Sets the value of the availability property.
*
* @param value
* allowed object is
* {@link InstanceAvailability }
*
*/
public void setAvailability(InstanceAvailability value) {
this.availability = value;
}
/**
* Gets the value of the modalityList 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 modalityList property.
*
*
* For example, to add a new item, do as follows:
*
* getModalityList().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Coding }
*
*
*/
public List getModalityList() {
if (modalityList == null) {
modalityList = new ArrayList();
}
return this.modalityList;
}
/**
* Gets the value of the patient property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPatient() {
return patient;
}
/**
* Sets the value of the patient property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPatient(Reference value) {
this.patient = value;
}
/**
* Gets the value of the started property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getStarted() {
return started;
}
/**
* Sets the value of the started property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setStarted(DateTime value) {
this.started = value;
}
/**
* Gets the value of the order 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 order property.
*
*
* For example, to add a new item, do as follows:
*
* getOrder().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getOrder() {
if (order == null) {
order = new ArrayList();
}
return this.order;
}
/**
* Gets the value of the referrer property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getReferrer() {
return referrer;
}
/**
* Sets the value of the referrer property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setReferrer(Reference value) {
this.referrer = value;
}
/**
* Gets the value of the interpreter property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getInterpreter() {
return interpreter;
}
/**
* Sets the value of the interpreter property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setInterpreter(Reference value) {
this.interpreter = value;
}
/**
* Gets the value of the url property.
*
* @return
* possible object is
* {@link Uri }
*
*/
public Uri getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value
* allowed object is
* {@link Uri }
*
*/
public void setUrl(Uri value) {
this.url = value;
}
/**
* Gets the value of the numberOfSeries property.
*
* @return
* possible object is
* {@link UnsignedInt }
*
*/
public UnsignedInt getNumberOfSeries() {
return numberOfSeries;
}
/**
* Sets the value of the numberOfSeries property.
*
* @param value
* allowed object is
* {@link UnsignedInt }
*
*/
public void setNumberOfSeries(UnsignedInt value) {
this.numberOfSeries = value;
}
/**
* Gets the value of the numberOfInstances property.
*
* @return
* possible object is
* {@link UnsignedInt }
*
*/
public UnsignedInt getNumberOfInstances() {
return numberOfInstances;
}
/**
* Sets the value of the numberOfInstances property.
*
* @param value
* allowed object is
* {@link UnsignedInt }
*
*/
public void setNumberOfInstances(UnsignedInt value) {
this.numberOfInstances = value;
}
/**
* Gets the value of the procedure 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 procedure property.
*
*
* For example, to add a new item, do as follows:
*
* getProcedure().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getProcedure() {
if (procedure == null) {
procedure = new ArrayList();
}
return this.procedure;
}
/**
* 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 series 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 series property.
*
*
* For example, to add a new item, do as follows:
*
* getSeries().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ImagingStudySeries }
*
*
*/
public List getSeries() {
if (series == null) {
series = new ArrayList();
}
return this.series;
}
public ImagingStudy withUid(Oid value) {
setUid(value);
return this;
}
public ImagingStudy withAccession(Identifier value) {
setAccession(value);
return this;
}
public ImagingStudy withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public ImagingStudy withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public ImagingStudy withAvailability(InstanceAvailability value) {
setAvailability(value);
return this;
}
public ImagingStudy withModalityList(Coding... values) {
if (values!= null) {
for (Coding value: values) {
getModalityList().add(value);
}
}
return this;
}
public ImagingStudy withModalityList(Collection values) {
if (values!= null) {
getModalityList().addAll(values);
}
return this;
}
public ImagingStudy withPatient(Reference value) {
setPatient(value);
return this;
}
public ImagingStudy withStarted(DateTime value) {
setStarted(value);
return this;
}
public ImagingStudy withOrder(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getOrder().add(value);
}
}
return this;
}
public ImagingStudy withOrder(Collection values) {
if (values!= null) {
getOrder().addAll(values);
}
return this;
}
public ImagingStudy withReferrer(Reference value) {
setReferrer(value);
return this;
}
public ImagingStudy withInterpreter(Reference value) {
setInterpreter(value);
return this;
}
public ImagingStudy withUrl(Uri value) {
setUrl(value);
return this;
}
public ImagingStudy withNumberOfSeries(UnsignedInt value) {
setNumberOfSeries(value);
return this;
}
public ImagingStudy withNumberOfInstances(UnsignedInt value) {
setNumberOfInstances(value);
return this;
}
public ImagingStudy withProcedure(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getProcedure().add(value);
}
}
return this;
}
public ImagingStudy withProcedure(Collection values) {
if (values!= null) {
getProcedure().addAll(values);
}
return this;
}
public ImagingStudy withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
public ImagingStudy withSeries(ImagingStudySeries... values) {
if (values!= null) {
for (ImagingStudySeries value: values) {
getSeries().add(value);
}
}
return this;
}
public ImagingStudy withSeries(Collection values) {
if (values!= null) {
getSeries().addAll(values);
}
return this;
}
@Override
public ImagingStudy withText(Narrative value) {
setText(value);
return this;
}
@Override
public ImagingStudy withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public ImagingStudy withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public ImagingStudy withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public ImagingStudy withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public ImagingStudy withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public ImagingStudy withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public ImagingStudy withId(Id value) {
setId(value);
return this;
}
@Override
public ImagingStudy withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public ImagingStudy withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public ImagingStudy 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 ImagingStudy that = ((ImagingStudy) object);
{
Oid lhsUid;
lhsUid = this.getUid();
Oid rhsUid;
rhsUid = that.getUid();
if (!strategy.equals(LocatorUtils.property(thisLocator, "uid", lhsUid), LocatorUtils.property(thatLocator, "uid", rhsUid), lhsUid, rhsUid, (this.uid!= null), (that.uid!= null))) {
return false;
}
}
{
Identifier lhsAccession;
lhsAccession = this.getAccession();
Identifier rhsAccession;
rhsAccession = that.getAccession();
if (!strategy.equals(LocatorUtils.property(thisLocator, "accession", lhsAccession), LocatorUtils.property(thatLocator, "accession", rhsAccession), lhsAccession, rhsAccession, (this.accession!= null), (that.accession!= null))) {
return false;
}
}
{
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;
}
}
{
InstanceAvailability lhsAvailability;
lhsAvailability = this.getAvailability();
InstanceAvailability rhsAvailability;
rhsAvailability = that.getAvailability();
if (!strategy.equals(LocatorUtils.property(thisLocator, "availability", lhsAvailability), LocatorUtils.property(thatLocator, "availability", rhsAvailability), lhsAvailability, rhsAvailability, (this.availability!= null), (that.availability!= null))) {
return false;
}
}
{
List lhsModalityList;
lhsModalityList = (((this.modalityList!= null)&&(!this.modalityList.isEmpty()))?this.getModalityList():null);
List rhsModalityList;
rhsModalityList = (((that.modalityList!= null)&&(!that.modalityList.isEmpty()))?that.getModalityList():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "modalityList", lhsModalityList), LocatorUtils.property(thatLocator, "modalityList", rhsModalityList), lhsModalityList, rhsModalityList, ((this.modalityList!= null)&&(!this.modalityList.isEmpty())), ((that.modalityList!= null)&&(!that.modalityList.isEmpty())))) {
return false;
}
}
{
Reference lhsPatient;
lhsPatient = this.getPatient();
Reference rhsPatient;
rhsPatient = that.getPatient();
if (!strategy.equals(LocatorUtils.property(thisLocator, "patient", lhsPatient), LocatorUtils.property(thatLocator, "patient", rhsPatient), lhsPatient, rhsPatient, (this.patient!= null), (that.patient!= null))) {
return false;
}
}
{
DateTime lhsStarted;
lhsStarted = this.getStarted();
DateTime rhsStarted;
rhsStarted = that.getStarted();
if (!strategy.equals(LocatorUtils.property(thisLocator, "started", lhsStarted), LocatorUtils.property(thatLocator, "started", rhsStarted), lhsStarted, rhsStarted, (this.started!= null), (that.started!= null))) {
return false;
}
}
{
List lhsOrder;
lhsOrder = (((this.order!= null)&&(!this.order.isEmpty()))?this.getOrder():null);
List rhsOrder;
rhsOrder = (((that.order!= null)&&(!that.order.isEmpty()))?that.getOrder():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "order", lhsOrder), LocatorUtils.property(thatLocator, "order", rhsOrder), lhsOrder, rhsOrder, ((this.order!= null)&&(!this.order.isEmpty())), ((that.order!= null)&&(!that.order.isEmpty())))) {
return false;
}
}
{
Reference lhsReferrer;
lhsReferrer = this.getReferrer();
Reference rhsReferrer;
rhsReferrer = that.getReferrer();
if (!strategy.equals(LocatorUtils.property(thisLocator, "referrer", lhsReferrer), LocatorUtils.property(thatLocator, "referrer", rhsReferrer), lhsReferrer, rhsReferrer, (this.referrer!= null), (that.referrer!= null))) {
return false;
}
}
{
Reference lhsInterpreter;
lhsInterpreter = this.getInterpreter();
Reference rhsInterpreter;
rhsInterpreter = that.getInterpreter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "interpreter", lhsInterpreter), LocatorUtils.property(thatLocator, "interpreter", rhsInterpreter), lhsInterpreter, rhsInterpreter, (this.interpreter!= null), (that.interpreter!= null))) {
return false;
}
}
{
Uri lhsUrl;
lhsUrl = this.getUrl();
Uri rhsUrl;
rhsUrl = that.getUrl();
if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsUrl), LocatorUtils.property(thatLocator, "url", rhsUrl), lhsUrl, rhsUrl, (this.url!= null), (that.url!= null))) {
return false;
}
}
{
UnsignedInt lhsNumberOfSeries;
lhsNumberOfSeries = this.getNumberOfSeries();
UnsignedInt rhsNumberOfSeries;
rhsNumberOfSeries = that.getNumberOfSeries();
if (!strategy.equals(LocatorUtils.property(thisLocator, "numberOfSeries", lhsNumberOfSeries), LocatorUtils.property(thatLocator, "numberOfSeries", rhsNumberOfSeries), lhsNumberOfSeries, rhsNumberOfSeries, (this.numberOfSeries!= null), (that.numberOfSeries!= null))) {
return false;
}
}
{
UnsignedInt lhsNumberOfInstances;
lhsNumberOfInstances = this.getNumberOfInstances();
UnsignedInt rhsNumberOfInstances;
rhsNumberOfInstances = that.getNumberOfInstances();
if (!strategy.equals(LocatorUtils.property(thisLocator, "numberOfInstances", lhsNumberOfInstances), LocatorUtils.property(thatLocator, "numberOfInstances", rhsNumberOfInstances), lhsNumberOfInstances, rhsNumberOfInstances, (this.numberOfInstances!= null), (that.numberOfInstances!= null))) {
return false;
}
}
{
List lhsProcedure;
lhsProcedure = (((this.procedure!= null)&&(!this.procedure.isEmpty()))?this.getProcedure():null);
List rhsProcedure;
rhsProcedure = (((that.procedure!= null)&&(!that.procedure.isEmpty()))?that.getProcedure():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "procedure", lhsProcedure), LocatorUtils.property(thatLocator, "procedure", rhsProcedure), lhsProcedure, rhsProcedure, ((this.procedure!= null)&&(!this.procedure.isEmpty())), ((that.procedure!= null)&&(!that.procedure.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 lhsSeries;
lhsSeries = (((this.series!= null)&&(!this.series.isEmpty()))?this.getSeries():null);
List rhsSeries;
rhsSeries = (((that.series!= null)&&(!that.series.isEmpty()))?that.getSeries():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "series", lhsSeries), LocatorUtils.property(thatLocator, "series", rhsSeries), lhsSeries, rhsSeries, ((this.series!= null)&&(!this.series.isEmpty())), ((that.series!= null)&&(!that.series.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);
{
Oid theUid;
theUid = this.getUid();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uid", theUid), currentHashCode, theUid, (this.uid!= null));
}
{
Identifier theAccession;
theAccession = this.getAccession();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accession", theAccession), currentHashCode, theAccession, (this.accession!= null));
}
{
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())));
}
{
InstanceAvailability theAvailability;
theAvailability = this.getAvailability();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "availability", theAvailability), currentHashCode, theAvailability, (this.availability!= null));
}
{
List theModalityList;
theModalityList = (((this.modalityList!= null)&&(!this.modalityList.isEmpty()))?this.getModalityList():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modalityList", theModalityList), currentHashCode, theModalityList, ((this.modalityList!= null)&&(!this.modalityList.isEmpty())));
}
{
Reference thePatient;
thePatient = this.getPatient();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null));
}
{
DateTime theStarted;
theStarted = this.getStarted();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "started", theStarted), currentHashCode, theStarted, (this.started!= null));
}
{
List theOrder;
theOrder = (((this.order!= null)&&(!this.order.isEmpty()))?this.getOrder():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "order", theOrder), currentHashCode, theOrder, ((this.order!= null)&&(!this.order.isEmpty())));
}
{
Reference theReferrer;
theReferrer = this.getReferrer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referrer", theReferrer), currentHashCode, theReferrer, (this.referrer!= null));
}
{
Reference theInterpreter;
theInterpreter = this.getInterpreter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "interpreter", theInterpreter), currentHashCode, theInterpreter, (this.interpreter!= null));
}
{
Uri theUrl;
theUrl = this.getUrl();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= null));
}
{
UnsignedInt theNumberOfSeries;
theNumberOfSeries = this.getNumberOfSeries();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "numberOfSeries", theNumberOfSeries), currentHashCode, theNumberOfSeries, (this.numberOfSeries!= null));
}
{
UnsignedInt theNumberOfInstances;
theNumberOfInstances = this.getNumberOfInstances();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "numberOfInstances", theNumberOfInstances), currentHashCode, theNumberOfInstances, (this.numberOfInstances!= null));
}
{
List theProcedure;
theProcedure = (((this.procedure!= null)&&(!this.procedure.isEmpty()))?this.getProcedure():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "procedure", theProcedure), currentHashCode, theProcedure, ((this.procedure!= null)&&(!this.procedure.isEmpty())));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
List theSeries;
theSeries = (((this.series!= null)&&(!this.series.isEmpty()))?this.getSeries():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "series", theSeries), currentHashCode, theSeries, ((this.series!= null)&&(!this.series.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);
{
Oid theUid;
theUid = this.getUid();
strategy.appendField(locator, this, "uid", buffer, theUid, (this.uid!= null));
}
{
Identifier theAccession;
theAccession = this.getAccession();
strategy.appendField(locator, this, "accession", buffer, theAccession, (this.accession!= null));
}
{
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())));
}
{
InstanceAvailability theAvailability;
theAvailability = this.getAvailability();
strategy.appendField(locator, this, "availability", buffer, theAvailability, (this.availability!= null));
}
{
List theModalityList;
theModalityList = (((this.modalityList!= null)&&(!this.modalityList.isEmpty()))?this.getModalityList():null);
strategy.appendField(locator, this, "modalityList", buffer, theModalityList, ((this.modalityList!= null)&&(!this.modalityList.isEmpty())));
}
{
Reference thePatient;
thePatient = this.getPatient();
strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null));
}
{
DateTime theStarted;
theStarted = this.getStarted();
strategy.appendField(locator, this, "started", buffer, theStarted, (this.started!= null));
}
{
List theOrder;
theOrder = (((this.order!= null)&&(!this.order.isEmpty()))?this.getOrder():null);
strategy.appendField(locator, this, "order", buffer, theOrder, ((this.order!= null)&&(!this.order.isEmpty())));
}
{
Reference theReferrer;
theReferrer = this.getReferrer();
strategy.appendField(locator, this, "referrer", buffer, theReferrer, (this.referrer!= null));
}
{
Reference theInterpreter;
theInterpreter = this.getInterpreter();
strategy.appendField(locator, this, "interpreter", buffer, theInterpreter, (this.interpreter!= null));
}
{
Uri theUrl;
theUrl = this.getUrl();
strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null));
}
{
UnsignedInt theNumberOfSeries;
theNumberOfSeries = this.getNumberOfSeries();
strategy.appendField(locator, this, "numberOfSeries", buffer, theNumberOfSeries, (this.numberOfSeries!= null));
}
{
UnsignedInt theNumberOfInstances;
theNumberOfInstances = this.getNumberOfInstances();
strategy.appendField(locator, this, "numberOfInstances", buffer, theNumberOfInstances, (this.numberOfInstances!= null));
}
{
List theProcedure;
theProcedure = (((this.procedure!= null)&&(!this.procedure.isEmpty()))?this.getProcedure():null);
strategy.appendField(locator, this, "procedure", buffer, theProcedure, ((this.procedure!= null)&&(!this.procedure.isEmpty())));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
List theSeries;
theSeries = (((this.series!= null)&&(!this.series.isEmpty()))?this.getSeries():null);
strategy.appendField(locator, this, "series", buffer, theSeries, ((this.series!= null)&&(!this.series.isEmpty())));
}
return buffer;
}
public void setIdentifier(List value) {
this.identifier = value;
}
public void setModalityList(List value) {
this.modalityList = value;
}
public void setOrder(List value) {
this.order = value;
}
public void setProcedure(List value) {
this.procedure = value;
}
public void setSeries(List value) {
this.series = value;
}
}