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

org.hl7.fhir.DiagnosticReport 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.03.21 at 12:42:34 PM 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;


/**
 * If the element is present, it must have either a @value, an @id, or extensions
 * 
 * 

Java class for DiagnosticReport complex type. * *

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

 * <complexType name="DiagnosticReport">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}DiagnosticReportStatus"/>
 *         <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="code" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="subject" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <choice>
 *           <element name="effectiveDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *           <element name="effectivePeriod" type="{http://hl7.org/fhir}Period"/>
 *         </choice>
 *         <element name="issued" type="{http://hl7.org/fhir}instant"/>
 *         <element name="performer" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="request" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="specimen" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="result" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="imagingStudy" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="image" type="{http://hl7.org/fhir}DiagnosticReport.Image" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="conclusion" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="codedDiagnosis" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="presentedForm" type="{http://hl7.org/fhir}Attachment" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DiagnosticReport", propOrder = { "identifier", "status", "category", "code", "subject", "encounter", "effectiveDateTime", "effectivePeriod", "issued", "performer", "request", "specimen", "result", "imagingStudy", "image", "conclusion", "codedDiagnosis", "presentedForm" }) public class DiagnosticReport extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected DiagnosticReportStatus status; protected CodeableConcept category; @XmlElement(required = true) protected CodeableConcept code; @XmlElement(required = true) protected Reference subject; protected Reference encounter; protected DateTime effectiveDateTime; protected Period effectivePeriod; @XmlElement(required = true) protected Instant issued; @XmlElement(required = true) protected Reference performer; protected List request; protected List specimen; protected List result; protected List imagingStudy; protected List image; protected org.hl7.fhir.String conclusion; protected List codedDiagnosis; protected List presentedForm; /** * 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 status property. * * @return * possible object is * {@link DiagnosticReportStatus } * */ public DiagnosticReportStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link DiagnosticReportStatus } * */ public void setStatus(DiagnosticReportStatus value) { this.status = value; } /** * Gets the value of the category property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCategory(CodeableConcept value) { this.category = value; } /** * Gets the value of the code property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCode(CodeableConcept value) { this.code = value; } /** * Gets the value of the subject property. * * @return * possible object is * {@link Reference } * */ public Reference getSubject() { return subject; } /** * Sets the value of the subject property. * * @param value * allowed object is * {@link Reference } * */ public void setSubject(Reference value) { this.subject = value; } /** * Gets the value of the encounter property. * * @return * possible object is * {@link Reference } * */ public Reference getEncounter() { return encounter; } /** * Sets the value of the encounter property. * * @param value * allowed object is * {@link Reference } * */ public void setEncounter(Reference value) { this.encounter = value; } /** * Gets the value of the effectiveDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getEffectiveDateTime() { return effectiveDateTime; } /** * Sets the value of the effectiveDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setEffectiveDateTime(DateTime value) { this.effectiveDateTime = value; } /** * Gets the value of the effectivePeriod property. * * @return * possible object is * {@link Period } * */ public Period getEffectivePeriod() { return effectivePeriod; } /** * Sets the value of the effectivePeriod property. * * @param value * allowed object is * {@link Period } * */ public void setEffectivePeriod(Period value) { this.effectivePeriod = value; } /** * Gets the value of the issued property. * * @return * possible object is * {@link Instant } * */ public Instant getIssued() { return issued; } /** * Sets the value of the issued property. * * @param value * allowed object is * {@link Instant } * */ public void setIssued(Instant value) { this.issued = value; } /** * Gets the value of the performer property. * * @return * possible object is * {@link Reference } * */ public Reference getPerformer() { return performer; } /** * Sets the value of the performer property. * * @param value * allowed object is * {@link Reference } * */ public void setPerformer(Reference value) { this.performer = value; } /** * Gets the value of the request 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 request property. * *

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

     *    getRequest().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getRequest() { if (request == null) { request = new ArrayList(); } return this.request; } /** * Gets the value of the specimen 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 specimen property. * *

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

     *    getSpecimen().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getSpecimen() { if (specimen == null) { specimen = new ArrayList(); } return this.specimen; } /** * Gets the value of the result 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 result property. * *

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

     *    getResult().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getResult() { if (result == null) { result = new ArrayList(); } return this.result; } /** * Gets the value of the imagingStudy 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 imagingStudy property. * *

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

     *    getImagingStudy().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getImagingStudy() { if (imagingStudy == null) { imagingStudy = new ArrayList(); } return this.imagingStudy; } /** * Gets the value of the image 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 image property. * *

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

     *    getImage().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DiagnosticReportImage } * * */ public List getImage() { if (image == null) { image = new ArrayList(); } return this.image; } /** * Gets the value of the conclusion property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getConclusion() { return conclusion; } /** * Sets the value of the conclusion property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setConclusion(org.hl7.fhir.String value) { this.conclusion = value; } /** * Gets the value of the codedDiagnosis 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 codedDiagnosis property. * *

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

     *    getCodedDiagnosis().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getCodedDiagnosis() { if (codedDiagnosis == null) { codedDiagnosis = new ArrayList(); } return this.codedDiagnosis; } /** * Gets the value of the presentedForm 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 presentedForm property. * *

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

     *    getPresentedForm().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Attachment } * * */ public List getPresentedForm() { if (presentedForm == null) { presentedForm = new ArrayList(); } return this.presentedForm; } public DiagnosticReport withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public DiagnosticReport withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public DiagnosticReport withStatus(DiagnosticReportStatus value) { setStatus(value); return this; } public DiagnosticReport withCategory(CodeableConcept value) { setCategory(value); return this; } public DiagnosticReport withCode(CodeableConcept value) { setCode(value); return this; } public DiagnosticReport withSubject(Reference value) { setSubject(value); return this; } public DiagnosticReport withEncounter(Reference value) { setEncounter(value); return this; } public DiagnosticReport withEffectiveDateTime(DateTime value) { setEffectiveDateTime(value); return this; } public DiagnosticReport withEffectivePeriod(Period value) { setEffectivePeriod(value); return this; } public DiagnosticReport withIssued(Instant value) { setIssued(value); return this; } public DiagnosticReport withPerformer(Reference value) { setPerformer(value); return this; } public DiagnosticReport withRequest(Reference... values) { if (values!= null) { for (Reference value: values) { getRequest().add(value); } } return this; } public DiagnosticReport withRequest(Collection values) { if (values!= null) { getRequest().addAll(values); } return this; } public DiagnosticReport withSpecimen(Reference... values) { if (values!= null) { for (Reference value: values) { getSpecimen().add(value); } } return this; } public DiagnosticReport withSpecimen(Collection values) { if (values!= null) { getSpecimen().addAll(values); } return this; } public DiagnosticReport withResult(Reference... values) { if (values!= null) { for (Reference value: values) { getResult().add(value); } } return this; } public DiagnosticReport withResult(Collection values) { if (values!= null) { getResult().addAll(values); } return this; } public DiagnosticReport withImagingStudy(Reference... values) { if (values!= null) { for (Reference value: values) { getImagingStudy().add(value); } } return this; } public DiagnosticReport withImagingStudy(Collection values) { if (values!= null) { getImagingStudy().addAll(values); } return this; } public DiagnosticReport withImage(DiagnosticReportImage... values) { if (values!= null) { for (DiagnosticReportImage value: values) { getImage().add(value); } } return this; } public DiagnosticReport withImage(Collection values) { if (values!= null) { getImage().addAll(values); } return this; } public DiagnosticReport withConclusion(org.hl7.fhir.String value) { setConclusion(value); return this; } public DiagnosticReport withCodedDiagnosis(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getCodedDiagnosis().add(value); } } return this; } public DiagnosticReport withCodedDiagnosis(Collection values) { if (values!= null) { getCodedDiagnosis().addAll(values); } return this; } public DiagnosticReport withPresentedForm(Attachment... values) { if (values!= null) { for (Attachment value: values) { getPresentedForm().add(value); } } return this; } public DiagnosticReport withPresentedForm(Collection values) { if (values!= null) { getPresentedForm().addAll(values); } return this; } @Override public DiagnosticReport withText(Narrative value) { setText(value); return this; } @Override public DiagnosticReport withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public DiagnosticReport withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public DiagnosticReport withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public DiagnosticReport withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public DiagnosticReport withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public DiagnosticReport withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public DiagnosticReport withId(Id value) { setId(value); return this; } @Override public DiagnosticReport withMeta(Meta value) { setMeta(value); return this; } @Override public DiagnosticReport withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public DiagnosticReport 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 DiagnosticReport that = ((DiagnosticReport) object); { 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; } } { DiagnosticReportStatus lhsStatus; lhsStatus = this.getStatus(); DiagnosticReportStatus rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false; } } { CodeableConcept lhsCategory; lhsCategory = this.getCategory(); CodeableConcept rhsCategory; rhsCategory = that.getCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory, (this.category!= null), (that.category!= null))) { return false; } } { CodeableConcept lhsCode; lhsCode = this.getCode(); CodeableConcept rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= null))) { return false; } } { Reference lhsSubject; lhsSubject = this.getSubject(); Reference rhsSubject; rhsSubject = that.getSubject(); if (!strategy.equals(LocatorUtils.property(thisLocator, "subject", lhsSubject), LocatorUtils.property(thatLocator, "subject", rhsSubject), lhsSubject, rhsSubject, (this.subject!= null), (that.subject!= null))) { return false; } } { Reference lhsEncounter; lhsEncounter = this.getEncounter(); Reference rhsEncounter; rhsEncounter = that.getEncounter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) { return false; } } { DateTime lhsEffectiveDateTime; lhsEffectiveDateTime = this.getEffectiveDateTime(); DateTime rhsEffectiveDateTime; rhsEffectiveDateTime = that.getEffectiveDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "effectiveDateTime", lhsEffectiveDateTime), LocatorUtils.property(thatLocator, "effectiveDateTime", rhsEffectiveDateTime), lhsEffectiveDateTime, rhsEffectiveDateTime, (this.effectiveDateTime!= null), (that.effectiveDateTime!= null))) { return false; } } { Period lhsEffectivePeriod; lhsEffectivePeriod = this.getEffectivePeriod(); Period rhsEffectivePeriod; rhsEffectivePeriod = that.getEffectivePeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "effectivePeriod", lhsEffectivePeriod), LocatorUtils.property(thatLocator, "effectivePeriod", rhsEffectivePeriod), lhsEffectivePeriod, rhsEffectivePeriod, (this.effectivePeriod!= null), (that.effectivePeriod!= null))) { return false; } } { Instant lhsIssued; lhsIssued = this.getIssued(); Instant rhsIssued; rhsIssued = that.getIssued(); if (!strategy.equals(LocatorUtils.property(thisLocator, "issued", lhsIssued), LocatorUtils.property(thatLocator, "issued", rhsIssued), lhsIssued, rhsIssued, (this.issued!= null), (that.issued!= null))) { return false; } } { Reference lhsPerformer; lhsPerformer = this.getPerformer(); Reference rhsPerformer; rhsPerformer = that.getPerformer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "performer", lhsPerformer), LocatorUtils.property(thatLocator, "performer", rhsPerformer), lhsPerformer, rhsPerformer, (this.performer!= null), (that.performer!= null))) { return false; } } { List lhsRequest; lhsRequest = (((this.request!= null)&&(!this.request.isEmpty()))?this.getRequest():null); List rhsRequest; rhsRequest = (((that.request!= null)&&(!that.request.isEmpty()))?that.getRequest():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "request", lhsRequest), LocatorUtils.property(thatLocator, "request", rhsRequest), lhsRequest, rhsRequest, ((this.request!= null)&&(!this.request.isEmpty())), ((that.request!= null)&&(!that.request.isEmpty())))) { return false; } } { List lhsSpecimen; lhsSpecimen = (((this.specimen!= null)&&(!this.specimen.isEmpty()))?this.getSpecimen():null); List rhsSpecimen; rhsSpecimen = (((that.specimen!= null)&&(!that.specimen.isEmpty()))?that.getSpecimen():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "specimen", lhsSpecimen), LocatorUtils.property(thatLocator, "specimen", rhsSpecimen), lhsSpecimen, rhsSpecimen, ((this.specimen!= null)&&(!this.specimen.isEmpty())), ((that.specimen!= null)&&(!that.specimen.isEmpty())))) { return false; } } { List lhsResult; lhsResult = (((this.result!= null)&&(!this.result.isEmpty()))?this.getResult():null); List rhsResult; rhsResult = (((that.result!= null)&&(!that.result.isEmpty()))?that.getResult():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "result", lhsResult), LocatorUtils.property(thatLocator, "result", rhsResult), lhsResult, rhsResult, ((this.result!= null)&&(!this.result.isEmpty())), ((that.result!= null)&&(!that.result.isEmpty())))) { return false; } } { List lhsImagingStudy; lhsImagingStudy = (((this.imagingStudy!= null)&&(!this.imagingStudy.isEmpty()))?this.getImagingStudy():null); List rhsImagingStudy; rhsImagingStudy = (((that.imagingStudy!= null)&&(!that.imagingStudy.isEmpty()))?that.getImagingStudy():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "imagingStudy", lhsImagingStudy), LocatorUtils.property(thatLocator, "imagingStudy", rhsImagingStudy), lhsImagingStudy, rhsImagingStudy, ((this.imagingStudy!= null)&&(!this.imagingStudy.isEmpty())), ((that.imagingStudy!= null)&&(!that.imagingStudy.isEmpty())))) { return false; } } { List lhsImage; lhsImage = (((this.image!= null)&&(!this.image.isEmpty()))?this.getImage():null); List rhsImage; rhsImage = (((that.image!= null)&&(!that.image.isEmpty()))?that.getImage():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "image", lhsImage), LocatorUtils.property(thatLocator, "image", rhsImage), lhsImage, rhsImage, ((this.image!= null)&&(!this.image.isEmpty())), ((that.image!= null)&&(!that.image.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsConclusion; lhsConclusion = this.getConclusion(); org.hl7.fhir.String rhsConclusion; rhsConclusion = that.getConclusion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "conclusion", lhsConclusion), LocatorUtils.property(thatLocator, "conclusion", rhsConclusion), lhsConclusion, rhsConclusion, (this.conclusion!= null), (that.conclusion!= null))) { return false; } } { List lhsCodedDiagnosis; lhsCodedDiagnosis = (((this.codedDiagnosis!= null)&&(!this.codedDiagnosis.isEmpty()))?this.getCodedDiagnosis():null); List rhsCodedDiagnosis; rhsCodedDiagnosis = (((that.codedDiagnosis!= null)&&(!that.codedDiagnosis.isEmpty()))?that.getCodedDiagnosis():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "codedDiagnosis", lhsCodedDiagnosis), LocatorUtils.property(thatLocator, "codedDiagnosis", rhsCodedDiagnosis), lhsCodedDiagnosis, rhsCodedDiagnosis, ((this.codedDiagnosis!= null)&&(!this.codedDiagnosis.isEmpty())), ((that.codedDiagnosis!= null)&&(!that.codedDiagnosis.isEmpty())))) { return false; } } { List lhsPresentedForm; lhsPresentedForm = (((this.presentedForm!= null)&&(!this.presentedForm.isEmpty()))?this.getPresentedForm():null); List rhsPresentedForm; rhsPresentedForm = (((that.presentedForm!= null)&&(!that.presentedForm.isEmpty()))?that.getPresentedForm():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "presentedForm", lhsPresentedForm), LocatorUtils.property(thatLocator, "presentedForm", rhsPresentedForm), lhsPresentedForm, rhsPresentedForm, ((this.presentedForm!= null)&&(!this.presentedForm.isEmpty())), ((that.presentedForm!= null)&&(!that.presentedForm.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); { 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()))); } { DiagnosticReportStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { CodeableConcept theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null)); } { CodeableConcept theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null)); } { Reference theSubject; theSubject = this.getSubject(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null)); } { DateTime theEffectiveDateTime; theEffectiveDateTime = this.getEffectiveDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectiveDateTime", theEffectiveDateTime), currentHashCode, theEffectiveDateTime, (this.effectiveDateTime!= null)); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectivePeriod", theEffectivePeriod), currentHashCode, theEffectivePeriod, (this.effectivePeriod!= null)); } { Instant theIssued; theIssued = this.getIssued(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issued", theIssued), currentHashCode, theIssued, (this.issued!= null)); } { Reference thePerformer; thePerformer = this.getPerformer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer, (this.performer!= null)); } { List theRequest; theRequest = (((this.request!= null)&&(!this.request.isEmpty()))?this.getRequest():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "request", theRequest), currentHashCode, theRequest, ((this.request!= null)&&(!this.request.isEmpty()))); } { List theSpecimen; theSpecimen = (((this.specimen!= null)&&(!this.specimen.isEmpty()))?this.getSpecimen():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specimen", theSpecimen), currentHashCode, theSpecimen, ((this.specimen!= null)&&(!this.specimen.isEmpty()))); } { List theResult; theResult = (((this.result!= null)&&(!this.result.isEmpty()))?this.getResult():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "result", theResult), currentHashCode, theResult, ((this.result!= null)&&(!this.result.isEmpty()))); } { List theImagingStudy; theImagingStudy = (((this.imagingStudy!= null)&&(!this.imagingStudy.isEmpty()))?this.getImagingStudy():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "imagingStudy", theImagingStudy), currentHashCode, theImagingStudy, ((this.imagingStudy!= null)&&(!this.imagingStudy.isEmpty()))); } { List theImage; theImage = (((this.image!= null)&&(!this.image.isEmpty()))?this.getImage():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "image", theImage), currentHashCode, theImage, ((this.image!= null)&&(!this.image.isEmpty()))); } { org.hl7.fhir.String theConclusion; theConclusion = this.getConclusion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conclusion", theConclusion), currentHashCode, theConclusion, (this.conclusion!= null)); } { List theCodedDiagnosis; theCodedDiagnosis = (((this.codedDiagnosis!= null)&&(!this.codedDiagnosis.isEmpty()))?this.getCodedDiagnosis():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "codedDiagnosis", theCodedDiagnosis), currentHashCode, theCodedDiagnosis, ((this.codedDiagnosis!= null)&&(!this.codedDiagnosis.isEmpty()))); } { List thePresentedForm; thePresentedForm = (((this.presentedForm!= null)&&(!this.presentedForm.isEmpty()))?this.getPresentedForm():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "presentedForm", thePresentedForm), currentHashCode, thePresentedForm, ((this.presentedForm!= null)&&(!this.presentedForm.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); { 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()))); } { DiagnosticReportStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { CodeableConcept theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null)); } { CodeableConcept theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null)); } { Reference theSubject; theSubject = this.getSubject(); strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null)); } { DateTime theEffectiveDateTime; theEffectiveDateTime = this.getEffectiveDateTime(); strategy.appendField(locator, this, "effectiveDateTime", buffer, theEffectiveDateTime, (this.effectiveDateTime!= null)); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); strategy.appendField(locator, this, "effectivePeriod", buffer, theEffectivePeriod, (this.effectivePeriod!= null)); } { Instant theIssued; theIssued = this.getIssued(); strategy.appendField(locator, this, "issued", buffer, theIssued, (this.issued!= null)); } { Reference thePerformer; thePerformer = this.getPerformer(); strategy.appendField(locator, this, "performer", buffer, thePerformer, (this.performer!= null)); } { List theRequest; theRequest = (((this.request!= null)&&(!this.request.isEmpty()))?this.getRequest():null); strategy.appendField(locator, this, "request", buffer, theRequest, ((this.request!= null)&&(!this.request.isEmpty()))); } { List theSpecimen; theSpecimen = (((this.specimen!= null)&&(!this.specimen.isEmpty()))?this.getSpecimen():null); strategy.appendField(locator, this, "specimen", buffer, theSpecimen, ((this.specimen!= null)&&(!this.specimen.isEmpty()))); } { List theResult; theResult = (((this.result!= null)&&(!this.result.isEmpty()))?this.getResult():null); strategy.appendField(locator, this, "result", buffer, theResult, ((this.result!= null)&&(!this.result.isEmpty()))); } { List theImagingStudy; theImagingStudy = (((this.imagingStudy!= null)&&(!this.imagingStudy.isEmpty()))?this.getImagingStudy():null); strategy.appendField(locator, this, "imagingStudy", buffer, theImagingStudy, ((this.imagingStudy!= null)&&(!this.imagingStudy.isEmpty()))); } { List theImage; theImage = (((this.image!= null)&&(!this.image.isEmpty()))?this.getImage():null); strategy.appendField(locator, this, "image", buffer, theImage, ((this.image!= null)&&(!this.image.isEmpty()))); } { org.hl7.fhir.String theConclusion; theConclusion = this.getConclusion(); strategy.appendField(locator, this, "conclusion", buffer, theConclusion, (this.conclusion!= null)); } { List theCodedDiagnosis; theCodedDiagnosis = (((this.codedDiagnosis!= null)&&(!this.codedDiagnosis.isEmpty()))?this.getCodedDiagnosis():null); strategy.appendField(locator, this, "codedDiagnosis", buffer, theCodedDiagnosis, ((this.codedDiagnosis!= null)&&(!this.codedDiagnosis.isEmpty()))); } { List thePresentedForm; thePresentedForm = (((this.presentedForm!= null)&&(!this.presentedForm.isEmpty()))?this.getPresentedForm():null); strategy.appendField(locator, this, "presentedForm", buffer, thePresentedForm, ((this.presentedForm!= null)&&(!this.presentedForm.isEmpty()))); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setRequest(List value) { this.request = value; } public void setSpecimen(List value) { this.specimen = value; } public void setResult(List value) { this.result = value; } public void setImagingStudy(List value) { this.imagingStudy = value; } public void setImage(List value) { this.image = value; } public void setCodedDiagnosis(List value) { this.codedDiagnosis = value; } public void setPresentedForm(List value) { this.presentedForm = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy