
org.hl7.fhir.Sequence Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.01.12 at 11:04:27 AM MST
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Sequence complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Sequence">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="type" type="{http://hl7.org/fhir}sequenceType"/>
* <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="specimen" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="device" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="quantity" type="{http://hl7.org/fhir}Quantity" minOccurs="0"/>
* <element name="species" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="referenceSeq" type="{http://hl7.org/fhir}Sequence.ReferenceSeq" maxOccurs="unbounded" minOccurs="0"/>
* <element name="variation" type="{http://hl7.org/fhir}Sequence.Variation" minOccurs="0"/>
* <element name="quality" type="{http://hl7.org/fhir}Sequence.Quality" maxOccurs="unbounded" minOccurs="0"/>
* <element name="allelicState" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="allelicFrequency" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
* <element name="copyNumberEvent" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="readCoverage" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
* <element name="repository" type="{http://hl7.org/fhir}Sequence.Repository" maxOccurs="unbounded" minOccurs="0"/>
* <element name="pointer" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="observedSeq" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="observation" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="structureVariation" type="{http://hl7.org/fhir}Sequence.StructureVariation" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Sequence", propOrder = {
"type",
"patient",
"specimen",
"device",
"quantity",
"species",
"referenceSeq",
"variation",
"quality",
"allelicState",
"allelicFrequency",
"copyNumberEvent",
"readCoverage",
"repository",
"pointer",
"observedSeq",
"observation",
"structureVariation"
})
public class Sequence
extends DomainResource
implements Equals, HashCode, ToString
{
@XmlElement(required = true)
protected SequenceType type;
protected Reference patient;
protected Reference specimen;
protected Reference device;
protected Quantity quantity;
protected CodeableConcept species;
protected List referenceSeq;
protected SequenceVariation variation;
protected List quality;
protected CodeableConcept allelicState;
protected Decimal allelicFrequency;
protected CodeableConcept copyNumberEvent;
protected Integer readCoverage;
protected List repository;
protected List pointer;
protected org.hl7.fhir.String observedSeq;
protected Reference observation;
protected SequenceStructureVariation structureVariation;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link SequenceType }
*
*/
public SequenceType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link SequenceType }
*
*/
public void setType(SequenceType value) {
this.type = value;
}
/**
* 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 specimen property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getSpecimen() {
return specimen;
}
/**
* Sets the value of the specimen property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setSpecimen(Reference value) {
this.specimen = value;
}
/**
* Gets the value of the device property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getDevice() {
return device;
}
/**
* Sets the value of the device property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setDevice(Reference value) {
this.device = value;
}
/**
* Gets the value of the quantity property.
*
* @return
* possible object is
* {@link Quantity }
*
*/
public Quantity getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
* @param value
* allowed object is
* {@link Quantity }
*
*/
public void setQuantity(Quantity value) {
this.quantity = value;
}
/**
* Gets the value of the species property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getSpecies() {
return species;
}
/**
* Sets the value of the species property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setSpecies(CodeableConcept value) {
this.species = value;
}
/**
* Gets the value of the referenceSeq 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 JAXB object.
* This is why there is not a set
method for the referenceSeq property.
*
*
* For example, to add a new item, do as follows:
*
* getReferenceSeq().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SequenceReferenceSeq }
*
*
*/
public List getReferenceSeq() {
if (referenceSeq == null) {
referenceSeq = new ArrayList();
}
return this.referenceSeq;
}
/**
* Gets the value of the variation property.
*
* @return
* possible object is
* {@link SequenceVariation }
*
*/
public SequenceVariation getVariation() {
return variation;
}
/**
* Sets the value of the variation property.
*
* @param value
* allowed object is
* {@link SequenceVariation }
*
*/
public void setVariation(SequenceVariation value) {
this.variation = value;
}
/**
* Gets the value of the quality 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 JAXB object.
* This is why there is not a set
method for the quality property.
*
*
* For example, to add a new item, do as follows:
*
* getQuality().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SequenceQuality }
*
*
*/
public List getQuality() {
if (quality == null) {
quality = new ArrayList();
}
return this.quality;
}
/**
* Gets the value of the allelicState property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getAllelicState() {
return allelicState;
}
/**
* Sets the value of the allelicState property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setAllelicState(CodeableConcept value) {
this.allelicState = value;
}
/**
* Gets the value of the allelicFrequency property.
*
* @return
* possible object is
* {@link Decimal }
*
*/
public Decimal getAllelicFrequency() {
return allelicFrequency;
}
/**
* Sets the value of the allelicFrequency property.
*
* @param value
* allowed object is
* {@link Decimal }
*
*/
public void setAllelicFrequency(Decimal value) {
this.allelicFrequency = value;
}
/**
* Gets the value of the copyNumberEvent property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getCopyNumberEvent() {
return copyNumberEvent;
}
/**
* Sets the value of the copyNumberEvent property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setCopyNumberEvent(CodeableConcept value) {
this.copyNumberEvent = value;
}
/**
* Gets the value of the readCoverage property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getReadCoverage() {
return readCoverage;
}
/**
* Sets the value of the readCoverage property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setReadCoverage(Integer value) {
this.readCoverage = value;
}
/**
* Gets the value of the repository 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 JAXB object.
* This is why there is not a set
method for the repository property.
*
*
* For example, to add a new item, do as follows:
*
* getRepository().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SequenceRepository }
*
*
*/
public List getRepository() {
if (repository == null) {
repository = new ArrayList();
}
return this.repository;
}
/**
* Gets the value of the pointer 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 JAXB object.
* This is why there is not a set
method for the pointer property.
*
*
* For example, to add a new item, do as follows:
*
* getPointer().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Reference }
*
*
*/
public List getPointer() {
if (pointer == null) {
pointer = new ArrayList();
}
return this.pointer;
}
/**
* Gets the value of the observedSeq property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getObservedSeq() {
return observedSeq;
}
/**
* Sets the value of the observedSeq property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setObservedSeq(org.hl7.fhir.String value) {
this.observedSeq = value;
}
/**
* Gets the value of the observation property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getObservation() {
return observation;
}
/**
* Sets the value of the observation property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setObservation(Reference value) {
this.observation = value;
}
/**
* Gets the value of the structureVariation property.
*
* @return
* possible object is
* {@link SequenceStructureVariation }
*
*/
public SequenceStructureVariation getStructureVariation() {
return structureVariation;
}
/**
* Sets the value of the structureVariation property.
*
* @param value
* allowed object is
* {@link SequenceStructureVariation }
*
*/
public void setStructureVariation(SequenceStructureVariation value) {
this.structureVariation = value;
}
public Sequence withType(SequenceType value) {
setType(value);
return this;
}
public Sequence withPatient(Reference value) {
setPatient(value);
return this;
}
public Sequence withSpecimen(Reference value) {
setSpecimen(value);
return this;
}
public Sequence withDevice(Reference value) {
setDevice(value);
return this;
}
public Sequence withQuantity(Quantity value) {
setQuantity(value);
return this;
}
public Sequence withSpecies(CodeableConcept value) {
setSpecies(value);
return this;
}
public Sequence withReferenceSeq(SequenceReferenceSeq... values) {
if (values!= null) {
for (SequenceReferenceSeq value: values) {
getReferenceSeq().add(value);
}
}
return this;
}
public Sequence withReferenceSeq(Collection values) {
if (values!= null) {
getReferenceSeq().addAll(values);
}
return this;
}
public Sequence withVariation(SequenceVariation value) {
setVariation(value);
return this;
}
public Sequence withQuality(SequenceQuality... values) {
if (values!= null) {
for (SequenceQuality value: values) {
getQuality().add(value);
}
}
return this;
}
public Sequence withQuality(Collection values) {
if (values!= null) {
getQuality().addAll(values);
}
return this;
}
public Sequence withAllelicState(CodeableConcept value) {
setAllelicState(value);
return this;
}
public Sequence withAllelicFrequency(Decimal value) {
setAllelicFrequency(value);
return this;
}
public Sequence withCopyNumberEvent(CodeableConcept value) {
setCopyNumberEvent(value);
return this;
}
public Sequence withReadCoverage(Integer value) {
setReadCoverage(value);
return this;
}
public Sequence withRepository(SequenceRepository... values) {
if (values!= null) {
for (SequenceRepository value: values) {
getRepository().add(value);
}
}
return this;
}
public Sequence withRepository(Collection values) {
if (values!= null) {
getRepository().addAll(values);
}
return this;
}
public Sequence withPointer(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getPointer().add(value);
}
}
return this;
}
public Sequence withPointer(Collection values) {
if (values!= null) {
getPointer().addAll(values);
}
return this;
}
public Sequence withObservedSeq(org.hl7.fhir.String value) {
setObservedSeq(value);
return this;
}
public Sequence withObservation(Reference value) {
setObservation(value);
return this;
}
public Sequence withStructureVariation(SequenceStructureVariation value) {
setStructureVariation(value);
return this;
}
@Override
public Sequence withText(Narrative value) {
setText(value);
return this;
}
@Override
public Sequence withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public Sequence withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public Sequence withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public Sequence withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public Sequence withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public Sequence withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public Sequence withId(Id value) {
setId(value);
return this;
}
@Override
public Sequence withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public Sequence withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public Sequence withLanguage(Code value) {
setLanguage(value);
return this;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof Sequence)) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final Sequence that = ((Sequence) object);
{
SequenceType lhsType;
lhsType = this.getType();
SequenceType rhsType;
rhsType = that.getType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) {
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)) {
return false;
}
}
{
Reference lhsSpecimen;
lhsSpecimen = this.getSpecimen();
Reference rhsSpecimen;
rhsSpecimen = that.getSpecimen();
if (!strategy.equals(LocatorUtils.property(thisLocator, "specimen", lhsSpecimen), LocatorUtils.property(thatLocator, "specimen", rhsSpecimen), lhsSpecimen, rhsSpecimen)) {
return false;
}
}
{
Reference lhsDevice;
lhsDevice = this.getDevice();
Reference rhsDevice;
rhsDevice = that.getDevice();
if (!strategy.equals(LocatorUtils.property(thisLocator, "device", lhsDevice), LocatorUtils.property(thatLocator, "device", rhsDevice), lhsDevice, rhsDevice)) {
return false;
}
}
{
Quantity lhsQuantity;
lhsQuantity = this.getQuantity();
Quantity rhsQuantity;
rhsQuantity = that.getQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "quantity", lhsQuantity), LocatorUtils.property(thatLocator, "quantity", rhsQuantity), lhsQuantity, rhsQuantity)) {
return false;
}
}
{
CodeableConcept lhsSpecies;
lhsSpecies = this.getSpecies();
CodeableConcept rhsSpecies;
rhsSpecies = that.getSpecies();
if (!strategy.equals(LocatorUtils.property(thisLocator, "species", lhsSpecies), LocatorUtils.property(thatLocator, "species", rhsSpecies), lhsSpecies, rhsSpecies)) {
return false;
}
}
{
List lhsReferenceSeq;
lhsReferenceSeq = (((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))?this.getReferenceSeq():null);
List rhsReferenceSeq;
rhsReferenceSeq = (((that.referenceSeq!= null)&&(!that.referenceSeq.isEmpty()))?that.getReferenceSeq():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceSeq", lhsReferenceSeq), LocatorUtils.property(thatLocator, "referenceSeq", rhsReferenceSeq), lhsReferenceSeq, rhsReferenceSeq)) {
return false;
}
}
{
SequenceVariation lhsVariation;
lhsVariation = this.getVariation();
SequenceVariation rhsVariation;
rhsVariation = that.getVariation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "variation", lhsVariation), LocatorUtils.property(thatLocator, "variation", rhsVariation), lhsVariation, rhsVariation)) {
return false;
}
}
{
List lhsQuality;
lhsQuality = (((this.quality!= null)&&(!this.quality.isEmpty()))?this.getQuality():null);
List rhsQuality;
rhsQuality = (((that.quality!= null)&&(!that.quality.isEmpty()))?that.getQuality():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "quality", lhsQuality), LocatorUtils.property(thatLocator, "quality", rhsQuality), lhsQuality, rhsQuality)) {
return false;
}
}
{
CodeableConcept lhsAllelicState;
lhsAllelicState = this.getAllelicState();
CodeableConcept rhsAllelicState;
rhsAllelicState = that.getAllelicState();
if (!strategy.equals(LocatorUtils.property(thisLocator, "allelicState", lhsAllelicState), LocatorUtils.property(thatLocator, "allelicState", rhsAllelicState), lhsAllelicState, rhsAllelicState)) {
return false;
}
}
{
Decimal lhsAllelicFrequency;
lhsAllelicFrequency = this.getAllelicFrequency();
Decimal rhsAllelicFrequency;
rhsAllelicFrequency = that.getAllelicFrequency();
if (!strategy.equals(LocatorUtils.property(thisLocator, "allelicFrequency", lhsAllelicFrequency), LocatorUtils.property(thatLocator, "allelicFrequency", rhsAllelicFrequency), lhsAllelicFrequency, rhsAllelicFrequency)) {
return false;
}
}
{
CodeableConcept lhsCopyNumberEvent;
lhsCopyNumberEvent = this.getCopyNumberEvent();
CodeableConcept rhsCopyNumberEvent;
rhsCopyNumberEvent = that.getCopyNumberEvent();
if (!strategy.equals(LocatorUtils.property(thisLocator, "copyNumberEvent", lhsCopyNumberEvent), LocatorUtils.property(thatLocator, "copyNumberEvent", rhsCopyNumberEvent), lhsCopyNumberEvent, rhsCopyNumberEvent)) {
return false;
}
}
{
Integer lhsReadCoverage;
lhsReadCoverage = this.getReadCoverage();
Integer rhsReadCoverage;
rhsReadCoverage = that.getReadCoverage();
if (!strategy.equals(LocatorUtils.property(thisLocator, "readCoverage", lhsReadCoverage), LocatorUtils.property(thatLocator, "readCoverage", rhsReadCoverage), lhsReadCoverage, rhsReadCoverage)) {
return false;
}
}
{
List lhsRepository;
lhsRepository = (((this.repository!= null)&&(!this.repository.isEmpty()))?this.getRepository():null);
List rhsRepository;
rhsRepository = (((that.repository!= null)&&(!that.repository.isEmpty()))?that.getRepository():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "repository", lhsRepository), LocatorUtils.property(thatLocator, "repository", rhsRepository), lhsRepository, rhsRepository)) {
return false;
}
}
{
List lhsPointer;
lhsPointer = (((this.pointer!= null)&&(!this.pointer.isEmpty()))?this.getPointer():null);
List rhsPointer;
rhsPointer = (((that.pointer!= null)&&(!that.pointer.isEmpty()))?that.getPointer():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "pointer", lhsPointer), LocatorUtils.property(thatLocator, "pointer", rhsPointer), lhsPointer, rhsPointer)) {
return false;
}
}
{
org.hl7.fhir.String lhsObservedSeq;
lhsObservedSeq = this.getObservedSeq();
org.hl7.fhir.String rhsObservedSeq;
rhsObservedSeq = that.getObservedSeq();
if (!strategy.equals(LocatorUtils.property(thisLocator, "observedSeq", lhsObservedSeq), LocatorUtils.property(thatLocator, "observedSeq", rhsObservedSeq), lhsObservedSeq, rhsObservedSeq)) {
return false;
}
}
{
Reference lhsObservation;
lhsObservation = this.getObservation();
Reference rhsObservation;
rhsObservation = that.getObservation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "observation", lhsObservation), LocatorUtils.property(thatLocator, "observation", rhsObservation), lhsObservation, rhsObservation)) {
return false;
}
}
{
SequenceStructureVariation lhsStructureVariation;
lhsStructureVariation = this.getStructureVariation();
SequenceStructureVariation rhsStructureVariation;
rhsStructureVariation = that.getStructureVariation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "structureVariation", lhsStructureVariation), LocatorUtils.property(thatLocator, "structureVariation", rhsStructureVariation), lhsStructureVariation, rhsStructureVariation)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
SequenceType theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
}
{
Reference thePatient;
thePatient = this.getPatient();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient);
}
{
Reference theSpecimen;
theSpecimen = this.getSpecimen();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specimen", theSpecimen), currentHashCode, theSpecimen);
}
{
Reference theDevice;
theDevice = this.getDevice();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "device", theDevice), currentHashCode, theDevice);
}
{
Quantity theQuantity;
theQuantity = this.getQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity);
}
{
CodeableConcept theSpecies;
theSpecies = this.getSpecies();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "species", theSpecies), currentHashCode, theSpecies);
}
{
List theReferenceSeq;
theReferenceSeq = (((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))?this.getReferenceSeq():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeq", theReferenceSeq), currentHashCode, theReferenceSeq);
}
{
SequenceVariation theVariation;
theVariation = this.getVariation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "variation", theVariation), currentHashCode, theVariation);
}
{
List theQuality;
theQuality = (((this.quality!= null)&&(!this.quality.isEmpty()))?this.getQuality():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quality", theQuality), currentHashCode, theQuality);
}
{
CodeableConcept theAllelicState;
theAllelicState = this.getAllelicState();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allelicState", theAllelicState), currentHashCode, theAllelicState);
}
{
Decimal theAllelicFrequency;
theAllelicFrequency = this.getAllelicFrequency();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allelicFrequency", theAllelicFrequency), currentHashCode, theAllelicFrequency);
}
{
CodeableConcept theCopyNumberEvent;
theCopyNumberEvent = this.getCopyNumberEvent();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "copyNumberEvent", theCopyNumberEvent), currentHashCode, theCopyNumberEvent);
}
{
Integer theReadCoverage;
theReadCoverage = this.getReadCoverage();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readCoverage", theReadCoverage), currentHashCode, theReadCoverage);
}
{
List theRepository;
theRepository = (((this.repository!= null)&&(!this.repository.isEmpty()))?this.getRepository():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "repository", theRepository), currentHashCode, theRepository);
}
{
List thePointer;
thePointer = (((this.pointer!= null)&&(!this.pointer.isEmpty()))?this.getPointer():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pointer", thePointer), currentHashCode, thePointer);
}
{
org.hl7.fhir.String theObservedSeq;
theObservedSeq = this.getObservedSeq();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "observedSeq", theObservedSeq), currentHashCode, theObservedSeq);
}
{
Reference theObservation;
theObservation = this.getObservation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "observation", theObservation), currentHashCode, theObservation);
}
{
SequenceStructureVariation theStructureVariation;
theStructureVariation = this.getStructureVariation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "structureVariation", theStructureVariation), currentHashCode, theStructureVariation);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public java.lang.String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
super.appendFields(locator, buffer, strategy);
{
SequenceType theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType);
}
{
Reference thePatient;
thePatient = this.getPatient();
strategy.appendField(locator, this, "patient", buffer, thePatient);
}
{
Reference theSpecimen;
theSpecimen = this.getSpecimen();
strategy.appendField(locator, this, "specimen", buffer, theSpecimen);
}
{
Reference theDevice;
theDevice = this.getDevice();
strategy.appendField(locator, this, "device", buffer, theDevice);
}
{
Quantity theQuantity;
theQuantity = this.getQuantity();
strategy.appendField(locator, this, "quantity", buffer, theQuantity);
}
{
CodeableConcept theSpecies;
theSpecies = this.getSpecies();
strategy.appendField(locator, this, "species", buffer, theSpecies);
}
{
List theReferenceSeq;
theReferenceSeq = (((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))?this.getReferenceSeq():null);
strategy.appendField(locator, this, "referenceSeq", buffer, theReferenceSeq);
}
{
SequenceVariation theVariation;
theVariation = this.getVariation();
strategy.appendField(locator, this, "variation", buffer, theVariation);
}
{
List theQuality;
theQuality = (((this.quality!= null)&&(!this.quality.isEmpty()))?this.getQuality():null);
strategy.appendField(locator, this, "quality", buffer, theQuality);
}
{
CodeableConcept theAllelicState;
theAllelicState = this.getAllelicState();
strategy.appendField(locator, this, "allelicState", buffer, theAllelicState);
}
{
Decimal theAllelicFrequency;
theAllelicFrequency = this.getAllelicFrequency();
strategy.appendField(locator, this, "allelicFrequency", buffer, theAllelicFrequency);
}
{
CodeableConcept theCopyNumberEvent;
theCopyNumberEvent = this.getCopyNumberEvent();
strategy.appendField(locator, this, "copyNumberEvent", buffer, theCopyNumberEvent);
}
{
Integer theReadCoverage;
theReadCoverage = this.getReadCoverage();
strategy.appendField(locator, this, "readCoverage", buffer, theReadCoverage);
}
{
List theRepository;
theRepository = (((this.repository!= null)&&(!this.repository.isEmpty()))?this.getRepository():null);
strategy.appendField(locator, this, "repository", buffer, theRepository);
}
{
List thePointer;
thePointer = (((this.pointer!= null)&&(!this.pointer.isEmpty()))?this.getPointer():null);
strategy.appendField(locator, this, "pointer", buffer, thePointer);
}
{
org.hl7.fhir.String theObservedSeq;
theObservedSeq = this.getObservedSeq();
strategy.appendField(locator, this, "observedSeq", buffer, theObservedSeq);
}
{
Reference theObservation;
theObservation = this.getObservation();
strategy.appendField(locator, this, "observation", buffer, theObservation);
}
{
SequenceStructureVariation theStructureVariation;
theStructureVariation = this.getStructureVariation();
strategy.appendField(locator, this, "structureVariation", buffer, theStructureVariation);
}
return buffer;
}
}