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

org.hl7.fhir.ImagingExcerptViewable 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: 2023.12.08 at 08:47:56 AM MST 
//


package org.hl7.fhir;

import java.util.Collection;
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;


/**
 * A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances have been selected for a purpose, such as quality assurance, conference, or consult. Reflecting that range of purposes, typical ImagingExcerpt resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.
 * 
 * 

Java class for ImagingExcerpt.Viewable complex type. * *

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

 * <complexType name="ImagingExcerpt.Viewable">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="contentType" type="{http://hl7.org/fhir}code"/>
 *         <element name="height" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="width" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="frames" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="duration" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/>
 *         <element name="size" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/>
 *         <element name="title" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="url" type="{http://hl7.org/fhir}uri"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ImagingExcerpt.Viewable", propOrder = { "contentType", "height", "width", "frames", "duration", "size", "title", "url" }) public class ImagingExcerptViewable extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Code contentType; protected PositiveInt height; protected PositiveInt width; protected PositiveInt frames; protected UnsignedInt duration; protected UnsignedInt size; protected org.hl7.fhir.String title; @XmlElement(required = true) protected Uri url; /** * Gets the value of the contentType property. * * @return * possible object is * {@link Code } * */ public Code getContentType() { return contentType; } /** * Sets the value of the contentType property. * * @param value * allowed object is * {@link Code } * */ public void setContentType(Code value) { this.contentType = value; } /** * Gets the value of the height property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getHeight() { return height; } /** * Sets the value of the height property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setHeight(PositiveInt value) { this.height = value; } /** * Gets the value of the width property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getWidth() { return width; } /** * Sets the value of the width property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setWidth(PositiveInt value) { this.width = value; } /** * Gets the value of the frames property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getFrames() { return frames; } /** * Sets the value of the frames property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setFrames(PositiveInt value) { this.frames = value; } /** * Gets the value of the duration property. * * @return * possible object is * {@link UnsignedInt } * */ public UnsignedInt getDuration() { return duration; } /** * Sets the value of the duration property. * * @param value * allowed object is * {@link UnsignedInt } * */ public void setDuration(UnsignedInt value) { this.duration = value; } /** * Gets the value of the size property. * * @return * possible object is * {@link UnsignedInt } * */ public UnsignedInt getSize() { return size; } /** * Sets the value of the size property. * * @param value * allowed object is * {@link UnsignedInt } * */ public void setSize(UnsignedInt value) { this.size = 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 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; } public ImagingExcerptViewable withContentType(Code value) { setContentType(value); return this; } public ImagingExcerptViewable withHeight(PositiveInt value) { setHeight(value); return this; } public ImagingExcerptViewable withWidth(PositiveInt value) { setWidth(value); return this; } public ImagingExcerptViewable withFrames(PositiveInt value) { setFrames(value); return this; } public ImagingExcerptViewable withDuration(UnsignedInt value) { setDuration(value); return this; } public ImagingExcerptViewable withSize(UnsignedInt value) { setSize(value); return this; } public ImagingExcerptViewable withTitle(org.hl7.fhir.String value) { setTitle(value); return this; } public ImagingExcerptViewable withUrl(Uri value) { setUrl(value); return this; } @Override public ImagingExcerptViewable withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ImagingExcerptViewable withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ImagingExcerptViewable withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ImagingExcerptViewable withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ImagingExcerptViewable 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 ImagingExcerptViewable that = ((ImagingExcerptViewable) object); { Code lhsContentType; lhsContentType = this.getContentType(); Code rhsContentType; rhsContentType = that.getContentType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contentType", lhsContentType), LocatorUtils.property(thatLocator, "contentType", rhsContentType), lhsContentType, rhsContentType, (this.contentType!= null), (that.contentType!= null))) { return false; } } { PositiveInt lhsHeight; lhsHeight = this.getHeight(); PositiveInt rhsHeight; rhsHeight = that.getHeight(); if (!strategy.equals(LocatorUtils.property(thisLocator, "height", lhsHeight), LocatorUtils.property(thatLocator, "height", rhsHeight), lhsHeight, rhsHeight, (this.height!= null), (that.height!= null))) { return false; } } { PositiveInt lhsWidth; lhsWidth = this.getWidth(); PositiveInt rhsWidth; rhsWidth = that.getWidth(); if (!strategy.equals(LocatorUtils.property(thisLocator, "width", lhsWidth), LocatorUtils.property(thatLocator, "width", rhsWidth), lhsWidth, rhsWidth, (this.width!= null), (that.width!= null))) { return false; } } { PositiveInt lhsFrames; lhsFrames = this.getFrames(); PositiveInt rhsFrames; rhsFrames = that.getFrames(); if (!strategy.equals(LocatorUtils.property(thisLocator, "frames", lhsFrames), LocatorUtils.property(thatLocator, "frames", rhsFrames), lhsFrames, rhsFrames, (this.frames!= null), (that.frames!= null))) { return false; } } { UnsignedInt lhsDuration; lhsDuration = this.getDuration(); UnsignedInt rhsDuration; rhsDuration = that.getDuration(); if (!strategy.equals(LocatorUtils.property(thisLocator, "duration", lhsDuration), LocatorUtils.property(thatLocator, "duration", rhsDuration), lhsDuration, rhsDuration, (this.duration!= null), (that.duration!= null))) { return false; } } { UnsignedInt lhsSize; lhsSize = this.getSize(); UnsignedInt rhsSize; rhsSize = that.getSize(); if (!strategy.equals(LocatorUtils.property(thisLocator, "size", lhsSize), LocatorUtils.property(thatLocator, "size", rhsSize), lhsSize, rhsSize, (this.size!= null), (that.size!= 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; } } { 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; } } 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); { Code theContentType; theContentType = this.getContentType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contentType", theContentType), currentHashCode, theContentType, (this.contentType!= null)); } { PositiveInt theHeight; theHeight = this.getHeight(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "height", theHeight), currentHashCode, theHeight, (this.height!= null)); } { PositiveInt theWidth; theWidth = this.getWidth(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "width", theWidth), currentHashCode, theWidth, (this.width!= null)); } { PositiveInt theFrames; theFrames = this.getFrames(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "frames", theFrames), currentHashCode, theFrames, (this.frames!= null)); } { UnsignedInt theDuration; theDuration = this.getDuration(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "duration", theDuration), currentHashCode, theDuration, (this.duration!= null)); } { UnsignedInt theSize; theSize = this.getSize(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "size", theSize), currentHashCode, theSize, (this.size!= null)); } { org.hl7.fhir.String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, (this.title!= null)); } { Uri theUrl; theUrl = this.getUrl(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= 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); { Code theContentType; theContentType = this.getContentType(); strategy.appendField(locator, this, "contentType", buffer, theContentType, (this.contentType!= null)); } { PositiveInt theHeight; theHeight = this.getHeight(); strategy.appendField(locator, this, "height", buffer, theHeight, (this.height!= null)); } { PositiveInt theWidth; theWidth = this.getWidth(); strategy.appendField(locator, this, "width", buffer, theWidth, (this.width!= null)); } { PositiveInt theFrames; theFrames = this.getFrames(); strategy.appendField(locator, this, "frames", buffer, theFrames, (this.frames!= null)); } { UnsignedInt theDuration; theDuration = this.getDuration(); strategy.appendField(locator, this, "duration", buffer, theDuration, (this.duration!= null)); } { UnsignedInt theSize; theSize = this.getSize(); strategy.appendField(locator, this, "size", buffer, theSize, (this.size!= null)); } { org.hl7.fhir.String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null)); } { Uri theUrl; theUrl = this.getUrl(); strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy