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

org.hl7.fhir.ImagingStudyInstance 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.09.27 at 11:16:19 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;


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

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

 * <complexType name="ImagingStudy.Instance">
 *   <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="sopClass" type="{http://hl7.org/fhir}oid"/>
 *         <element name="type" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="title" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="content" type="{http://hl7.org/fhir}Attachment" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ImagingStudy.Instance", propOrder = { "uid", "number", "sopClass", "type", "title", "content" }) public class ImagingStudyInstance extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Oid uid; protected UnsignedInt number; @XmlElement(required = true) protected Oid sopClass; protected org.hl7.fhir.String type; protected org.hl7.fhir.String title; protected List content; /** * 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 sopClass property. * * @return * possible object is * {@link Oid } * */ public Oid getSopClass() { return sopClass; } /** * Sets the value of the sopClass property. * * @param value * allowed object is * {@link Oid } * */ public void setSopClass(Oid value) { this.sopClass = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setType(org.hl7.fhir.String value) { this.type = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setTitle(org.hl7.fhir.String value) { this.title = value; } /** * Gets the value of the content 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 content property. * *

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

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Attachment } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } public ImagingStudyInstance withUid(Oid value) { setUid(value); return this; } public ImagingStudyInstance withNumber(UnsignedInt value) { setNumber(value); return this; } public ImagingStudyInstance withSopClass(Oid value) { setSopClass(value); return this; } public ImagingStudyInstance withType(org.hl7.fhir.String value) { setType(value); return this; } public ImagingStudyInstance withTitle(org.hl7.fhir.String value) { setTitle(value); return this; } public ImagingStudyInstance withContent(Attachment... values) { if (values!= null) { for (Attachment value: values) { getContent().add(value); } } return this; } public ImagingStudyInstance withContent(Collection values) { if (values!= null) { getContent().addAll(values); } return this; } @Override public ImagingStudyInstance withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ImagingStudyInstance withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ImagingStudyInstance withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ImagingStudyInstance withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ImagingStudyInstance 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 ImagingStudyInstance that = ((ImagingStudyInstance) 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; } } { Oid lhsSopClass; lhsSopClass = this.getSopClass(); Oid rhsSopClass; rhsSopClass = that.getSopClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sopClass", lhsSopClass), LocatorUtils.property(thatLocator, "sopClass", rhsSopClass), lhsSopClass, rhsSopClass, (this.sopClass!= null), (that.sopClass!= null))) { return false; } } { org.hl7.fhir.String lhsType; lhsType = this.getType(); org.hl7.fhir.String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { org.hl7.fhir.String lhsTitle; lhsTitle = this.getTitle(); org.hl7.fhir.String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, (this.title!= null), (that.title!= null))) { return false; } } { List lhsContent; lhsContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); List rhsContent; rhsContent = (((that.content!= null)&&(!that.content.isEmpty()))?that.getContent():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent, ((this.content!= null)&&(!this.content.isEmpty())), ((that.content!= null)&&(!that.content.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)); } { Oid theSopClass; theSopClass = this.getSopClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sopClass", theSopClass), currentHashCode, theSopClass, (this.sopClass!= null)); } { org.hl7.fhir.String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { org.hl7.fhir.String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, (this.title!= null)); } { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent, ((this.content!= null)&&(!this.content.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)); } { Oid theSopClass; theSopClass = this.getSopClass(); strategy.appendField(locator, this, "sopClass", buffer, theSopClass, (this.sopClass!= null)); } { org.hl7.fhir.String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { org.hl7.fhir.String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null)); } { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); strategy.appendField(locator, this, "content", buffer, theContent, ((this.content!= null)&&(!this.content.isEmpty()))); } return buffer; } public void setContent(List value) { this.content = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy