org.hl7.fhir.ImagingStudySeries 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;
/**
* Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.
*
* Java class for ImagingStudy.Series complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ImagingStudy.Series">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="uid" type="{http://hl7.org/fhir}oid"/>
* <element name="number" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/>
* <element name="modality" type="{http://hl7.org/fhir}Coding"/>
* <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="numberOfInstances" type="{http://hl7.org/fhir}unsignedInt"/>
* <element name="availability" type="{http://hl7.org/fhir}InstanceAvailability" minOccurs="0"/>
* <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
* <element name="bodySite" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* <element name="laterality" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* <element name="started" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
* <element name="instance" type="{http://hl7.org/fhir}ImagingStudy.Instance" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ImagingStudy.Series", propOrder = {
"uid",
"number",
"modality",
"description",
"numberOfInstances",
"availability",
"url",
"bodySite",
"laterality",
"started",
"instance"
})
public class ImagingStudySeries
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Oid uid;
protected UnsignedInt number;
@XmlElement(required = true)
protected Coding modality;
protected org.hl7.fhir.String description;
@XmlElement(required = true)
protected UnsignedInt numberOfInstances;
protected InstanceAvailability availability;
protected Uri url;
protected Coding bodySite;
protected Coding laterality;
protected DateTime started;
protected List instance;
/**
* 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 number property.
*
* @return
* possible object is
* {@link UnsignedInt }
*
*/
public UnsignedInt getNumber() {
return number;
}
/**
* Sets the value of the number property.
*
* @param value
* allowed object is
* {@link UnsignedInt }
*
*/
public void setNumber(UnsignedInt value) {
this.number = value;
}
/**
* Gets the value of the modality property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getModality() {
return modality;
}
/**
* Sets the value of the modality property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setModality(Coding value) {
this.modality = value;
}
/**
* 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 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 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 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 bodySite property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getBodySite() {
return bodySite;
}
/**
* Sets the value of the bodySite property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setBodySite(Coding value) {
this.bodySite = value;
}
/**
* Gets the value of the laterality property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getLaterality() {
return laterality;
}
/**
* Sets the value of the laterality property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setLaterality(Coding value) {
this.laterality = 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 instance 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 instance property.
*
*
* For example, to add a new item, do as follows:
*
* getInstance().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ImagingStudyInstance }
*
*
*/
public List getInstance() {
if (instance == null) {
instance = new ArrayList();
}
return this.instance;
}
public ImagingStudySeries withUid(Oid value) {
setUid(value);
return this;
}
public ImagingStudySeries withNumber(UnsignedInt value) {
setNumber(value);
return this;
}
public ImagingStudySeries withModality(Coding value) {
setModality(value);
return this;
}
public ImagingStudySeries withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
public ImagingStudySeries withNumberOfInstances(UnsignedInt value) {
setNumberOfInstances(value);
return this;
}
public ImagingStudySeries withAvailability(InstanceAvailability value) {
setAvailability(value);
return this;
}
public ImagingStudySeries withUrl(Uri value) {
setUrl(value);
return this;
}
public ImagingStudySeries withBodySite(Coding value) {
setBodySite(value);
return this;
}
public ImagingStudySeries withLaterality(Coding value) {
setLaterality(value);
return this;
}
public ImagingStudySeries withStarted(DateTime value) {
setStarted(value);
return this;
}
public ImagingStudySeries withInstance(ImagingStudyInstance... values) {
if (values!= null) {
for (ImagingStudyInstance value: values) {
getInstance().add(value);
}
}
return this;
}
public ImagingStudySeries withInstance(Collection values) {
if (values!= null) {
getInstance().addAll(values);
}
return this;
}
@Override
public ImagingStudySeries withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public ImagingStudySeries withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public ImagingStudySeries withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public ImagingStudySeries withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public ImagingStudySeries withId(java.lang.String value) {
setId(value);
return this;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final ImagingStudySeries that = ((ImagingStudySeries) 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;
}
}
{
UnsignedInt lhsNumber;
lhsNumber = this.getNumber();
UnsignedInt rhsNumber;
rhsNumber = that.getNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "number", lhsNumber), LocatorUtils.property(thatLocator, "number", rhsNumber), lhsNumber, rhsNumber, (this.number!= null), (that.number!= null))) {
return false;
}
}
{
Coding lhsModality;
lhsModality = this.getModality();
Coding rhsModality;
rhsModality = that.getModality();
if (!strategy.equals(LocatorUtils.property(thisLocator, "modality", lhsModality), LocatorUtils.property(thatLocator, "modality", rhsModality), lhsModality, rhsModality, (this.modality!= null), (that.modality!= null))) {
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;
}
}
{
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;
}
}
{
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;
}
}
{
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;
}
}
{
Coding lhsBodySite;
lhsBodySite = this.getBodySite();
Coding rhsBodySite;
rhsBodySite = that.getBodySite();
if (!strategy.equals(LocatorUtils.property(thisLocator, "bodySite", lhsBodySite), LocatorUtils.property(thatLocator, "bodySite", rhsBodySite), lhsBodySite, rhsBodySite, (this.bodySite!= null), (that.bodySite!= null))) {
return false;
}
}
{
Coding lhsLaterality;
lhsLaterality = this.getLaterality();
Coding rhsLaterality;
rhsLaterality = that.getLaterality();
if (!strategy.equals(LocatorUtils.property(thisLocator, "laterality", lhsLaterality), LocatorUtils.property(thatLocator, "laterality", rhsLaterality), lhsLaterality, rhsLaterality, (this.laterality!= null), (that.laterality!= 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 lhsInstance;
lhsInstance = (((this.instance!= null)&&(!this.instance.isEmpty()))?this.getInstance():null);
List rhsInstance;
rhsInstance = (((that.instance!= null)&&(!that.instance.isEmpty()))?that.getInstance():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "instance", lhsInstance), LocatorUtils.property(thatLocator, "instance", rhsInstance), lhsInstance, rhsInstance, ((this.instance!= null)&&(!this.instance.isEmpty())), ((that.instance!= null)&&(!that.instance.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));
}
{
UnsignedInt theNumber;
theNumber = this.getNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "number", theNumber), currentHashCode, theNumber, (this.number!= null));
}
{
Coding theModality;
theModality = this.getModality();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modality", theModality), currentHashCode, theModality, (this.modality!= null));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
UnsignedInt theNumberOfInstances;
theNumberOfInstances = this.getNumberOfInstances();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "numberOfInstances", theNumberOfInstances), currentHashCode, theNumberOfInstances, (this.numberOfInstances!= null));
}
{
InstanceAvailability theAvailability;
theAvailability = this.getAvailability();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "availability", theAvailability), currentHashCode, theAvailability, (this.availability!= null));
}
{
Uri theUrl;
theUrl = this.getUrl();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= null));
}
{
Coding theBodySite;
theBodySite = this.getBodySite();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bodySite", theBodySite), currentHashCode, theBodySite, (this.bodySite!= null));
}
{
Coding theLaterality;
theLaterality = this.getLaterality();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "laterality", theLaterality), currentHashCode, theLaterality, (this.laterality!= null));
}
{
DateTime theStarted;
theStarted = this.getStarted();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "started", theStarted), currentHashCode, theStarted, (this.started!= null));
}
{
List theInstance;
theInstance = (((this.instance!= null)&&(!this.instance.isEmpty()))?this.getInstance():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instance", theInstance), currentHashCode, theInstance, ((this.instance!= null)&&(!this.instance.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));
}
{
UnsignedInt theNumber;
theNumber = this.getNumber();
strategy.appendField(locator, this, "number", buffer, theNumber, (this.number!= null));
}
{
Coding theModality;
theModality = this.getModality();
strategy.appendField(locator, this, "modality", buffer, theModality, (this.modality!= null));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
UnsignedInt theNumberOfInstances;
theNumberOfInstances = this.getNumberOfInstances();
strategy.appendField(locator, this, "numberOfInstances", buffer, theNumberOfInstances, (this.numberOfInstances!= null));
}
{
InstanceAvailability theAvailability;
theAvailability = this.getAvailability();
strategy.appendField(locator, this, "availability", buffer, theAvailability, (this.availability!= null));
}
{
Uri theUrl;
theUrl = this.getUrl();
strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null));
}
{
Coding theBodySite;
theBodySite = this.getBodySite();
strategy.appendField(locator, this, "bodySite", buffer, theBodySite, (this.bodySite!= null));
}
{
Coding theLaterality;
theLaterality = this.getLaterality();
strategy.appendField(locator, this, "laterality", buffer, theLaterality, (this.laterality!= null));
}
{
DateTime theStarted;
theStarted = this.getStarted();
strategy.appendField(locator, this, "started", buffer, theStarted, (this.started!= null));
}
{
List theInstance;
theInstance = (((this.instance!= null)&&(!this.instance.isEmpty()))?this.getInstance():null);
strategy.appendField(locator, this, "instance", buffer, theInstance, ((this.instance!= null)&&(!this.instance.isEmpty())));
}
return buffer;
}
public void setInstance(List value) {
this.instance = value;
}
}