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

org.hl7.fhir.DetectedIssue 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.10.07 at 09:31:25 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.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 DetectedIssue complex type. * *

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

 * <complexType name="DetectedIssue">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="severity" type="{http://hl7.org/fhir}DetectedIssueSeverity" minOccurs="0"/>
 *         <element name="implicated" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="detail" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="author" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
 *         <element name="reference" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
 *         <element name="mitigation" type="{http://hl7.org/fhir}DetectedIssue.Mitigation" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DetectedIssue", propOrder = { "patient", "category", "severity", "implicated", "detail", "date", "author", "identifier", "reference", "mitigation" }) public class DetectedIssue extends DomainResource implements Equals2, HashCode2, ToString2 { protected Reference patient; protected CodeableConcept category; protected DetectedIssueSeverity severity; protected List implicated; protected org.hl7.fhir.String detail; protected DateTime date; protected Reference author; protected Identifier identifier; protected Uri reference; protected List mitigation; /** * 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 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 severity property. * * @return * possible object is * {@link DetectedIssueSeverity } * */ public DetectedIssueSeverity getSeverity() { return severity; } /** * Sets the value of the severity property. * * @param value * allowed object is * {@link DetectedIssueSeverity } * */ public void setSeverity(DetectedIssueSeverity value) { this.severity = value; } /** * Gets the value of the implicated 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 implicated property. * *

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

     *    getImplicated().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getImplicated() { if (implicated == null) { implicated = new ArrayList(); } return this.implicated; } /** * Gets the value of the detail property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDetail() { return detail; } /** * Sets the value of the detail property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDetail(org.hl7.fhir.String value) { this.detail = value; } /** * Gets the value of the date property. * * @return * possible object is * {@link DateTime } * */ public DateTime getDate() { return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link DateTime } * */ public void setDate(DateTime value) { this.date = value; } /** * Gets the value of the author property. * * @return * possible object is * {@link Reference } * */ public Reference getAuthor() { return author; } /** * Sets the value of the author property. * * @param value * allowed object is * {@link Reference } * */ public void setAuthor(Reference value) { this.author = value; } /** * Gets the value of the identifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getIdentifier() { return identifier; } /** * Sets the value of the identifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setIdentifier(Identifier value) { this.identifier = value; } /** * Gets the value of the reference property. * * @return * possible object is * {@link Uri } * */ public Uri getReference() { return reference; } /** * Sets the value of the reference property. * * @param value * allowed object is * {@link Uri } * */ public void setReference(Uri value) { this.reference = value; } /** * Gets the value of the mitigation 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 mitigation property. * *

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

     *    getMitigation().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DetectedIssueMitigation } * * */ public List getMitigation() { if (mitigation == null) { mitigation = new ArrayList(); } return this.mitigation; } public DetectedIssue withPatient(Reference value) { setPatient(value); return this; } public DetectedIssue withCategory(CodeableConcept value) { setCategory(value); return this; } public DetectedIssue withSeverity(DetectedIssueSeverity value) { setSeverity(value); return this; } public DetectedIssue withImplicated(Reference... values) { if (values!= null) { for (Reference value: values) { getImplicated().add(value); } } return this; } public DetectedIssue withImplicated(Collection values) { if (values!= null) { getImplicated().addAll(values); } return this; } public DetectedIssue withDetail(org.hl7.fhir.String value) { setDetail(value); return this; } public DetectedIssue withDate(DateTime value) { setDate(value); return this; } public DetectedIssue withAuthor(Reference value) { setAuthor(value); return this; } public DetectedIssue withIdentifier(Identifier value) { setIdentifier(value); return this; } public DetectedIssue withReference(Uri value) { setReference(value); return this; } public DetectedIssue withMitigation(DetectedIssueMitigation... values) { if (values!= null) { for (DetectedIssueMitigation value: values) { getMitigation().add(value); } } return this; } public DetectedIssue withMitigation(Collection values) { if (values!= null) { getMitigation().addAll(values); } return this; } @Override public DetectedIssue withText(Narrative value) { setText(value); return this; } @Override public DetectedIssue withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public DetectedIssue withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public DetectedIssue withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public DetectedIssue withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public DetectedIssue withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public DetectedIssue withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public DetectedIssue withId(Id value) { setId(value); return this; } @Override public DetectedIssue withMeta(Meta value) { setMeta(value); return this; } @Override public DetectedIssue withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public DetectedIssue 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 DetectedIssue that = ((DetectedIssue) object); { 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, (this.patient!= null), (that.patient!= 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; } } { DetectedIssueSeverity lhsSeverity; lhsSeverity = this.getSeverity(); DetectedIssueSeverity rhsSeverity; rhsSeverity = that.getSeverity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "severity", lhsSeverity), LocatorUtils.property(thatLocator, "severity", rhsSeverity), lhsSeverity, rhsSeverity, (this.severity!= null), (that.severity!= null))) { return false; } } { List lhsImplicated; lhsImplicated = (((this.implicated!= null)&&(!this.implicated.isEmpty()))?this.getImplicated():null); List rhsImplicated; rhsImplicated = (((that.implicated!= null)&&(!that.implicated.isEmpty()))?that.getImplicated():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "implicated", lhsImplicated), LocatorUtils.property(thatLocator, "implicated", rhsImplicated), lhsImplicated, rhsImplicated, ((this.implicated!= null)&&(!this.implicated.isEmpty())), ((that.implicated!= null)&&(!that.implicated.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsDetail; lhsDetail = this.getDetail(); org.hl7.fhir.String rhsDetail; rhsDetail = that.getDetail(); if (!strategy.equals(LocatorUtils.property(thisLocator, "detail", lhsDetail), LocatorUtils.property(thatLocator, "detail", rhsDetail), lhsDetail, rhsDetail, (this.detail!= null), (that.detail!= null))) { return false; } } { DateTime lhsDate; lhsDate = this.getDate(); DateTime rhsDate; rhsDate = that.getDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate, (this.date!= null), (that.date!= null))) { return false; } } { Reference lhsAuthor; lhsAuthor = this.getAuthor(); Reference rhsAuthor; rhsAuthor = that.getAuthor(); if (!strategy.equals(LocatorUtils.property(thisLocator, "author", lhsAuthor), LocatorUtils.property(thatLocator, "author", rhsAuthor), lhsAuthor, rhsAuthor, (this.author!= null), (that.author!= null))) { return false; } } { Identifier lhsIdentifier; lhsIdentifier = this.getIdentifier(); Identifier rhsIdentifier; rhsIdentifier = that.getIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, (this.identifier!= null), (that.identifier!= null))) { return false; } } { Uri lhsReference; lhsReference = this.getReference(); Uri rhsReference; rhsReference = that.getReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reference", lhsReference), LocatorUtils.property(thatLocator, "reference", rhsReference), lhsReference, rhsReference, (this.reference!= null), (that.reference!= null))) { return false; } } { List lhsMitigation; lhsMitigation = (((this.mitigation!= null)&&(!this.mitigation.isEmpty()))?this.getMitigation():null); List rhsMitigation; rhsMitigation = (((that.mitigation!= null)&&(!that.mitigation.isEmpty()))?that.getMitigation():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "mitigation", lhsMitigation), LocatorUtils.property(thatLocator, "mitigation", rhsMitigation), lhsMitigation, rhsMitigation, ((this.mitigation!= null)&&(!this.mitigation.isEmpty())), ((that.mitigation!= null)&&(!that.mitigation.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); { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null)); } { CodeableConcept theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null)); } { DetectedIssueSeverity theSeverity; theSeverity = this.getSeverity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "severity", theSeverity), currentHashCode, theSeverity, (this.severity!= null)); } { List theImplicated; theImplicated = (((this.implicated!= null)&&(!this.implicated.isEmpty()))?this.getImplicated():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "implicated", theImplicated), currentHashCode, theImplicated, ((this.implicated!= null)&&(!this.implicated.isEmpty()))); } { org.hl7.fhir.String theDetail; theDetail = this.getDetail(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detail", theDetail), currentHashCode, theDetail, (this.detail!= null)); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null)); } { Reference theAuthor; theAuthor = this.getAuthor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "author", theAuthor), currentHashCode, theAuthor, (this.author!= null)); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= null)); } { Uri theReference; theReference = this.getReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reference", theReference), currentHashCode, theReference, (this.reference!= null)); } { List theMitigation; theMitigation = (((this.mitigation!= null)&&(!this.mitigation.isEmpty()))?this.getMitigation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mitigation", theMitigation), currentHashCode, theMitigation, ((this.mitigation!= null)&&(!this.mitigation.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); { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null)); } { CodeableConcept theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null)); } { DetectedIssueSeverity theSeverity; theSeverity = this.getSeverity(); strategy.appendField(locator, this, "severity", buffer, theSeverity, (this.severity!= null)); } { List theImplicated; theImplicated = (((this.implicated!= null)&&(!this.implicated.isEmpty()))?this.getImplicated():null); strategy.appendField(locator, this, "implicated", buffer, theImplicated, ((this.implicated!= null)&&(!this.implicated.isEmpty()))); } { org.hl7.fhir.String theDetail; theDetail = this.getDetail(); strategy.appendField(locator, this, "detail", buffer, theDetail, (this.detail!= null)); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null)); } { Reference theAuthor; theAuthor = this.getAuthor(); strategy.appendField(locator, this, "author", buffer, theAuthor, (this.author!= null)); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= null)); } { Uri theReference; theReference = this.getReference(); strategy.appendField(locator, this, "reference", buffer, theReference, (this.reference!= null)); } { List theMitigation; theMitigation = (((this.mitigation!= null)&&(!this.mitigation.isEmpty()))?this.getMitigation():null); strategy.appendField(locator, this, "mitigation", buffer, theMitigation, ((this.mitigation!= null)&&(!this.mitigation.isEmpty()))); } return buffer; } public void setImplicated(List value) { this.implicated = value; } public void setMitigation(List value) { this.mitigation = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy