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.22.0
Show newest version
//
// 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.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 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 Equals, HashCode, ToString { 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 JAXB 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 JAXB 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof DetectedIssue)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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); { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient); } { CodeableConcept theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory); } { DetectedIssueSeverity theSeverity; theSeverity = this.getSeverity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "severity", theSeverity), currentHashCode, theSeverity); } { List theImplicated; theImplicated = (((this.implicated!= null)&&(!this.implicated.isEmpty()))?this.getImplicated():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "implicated", theImplicated), currentHashCode, theImplicated); } { org.hl7.fhir.String theDetail; theDetail = this.getDetail(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detail", theDetail), currentHashCode, theDetail); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate); } { Reference theAuthor; theAuthor = this.getAuthor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "author", theAuthor), currentHashCode, theAuthor); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier); } { Uri theReference; theReference = this.getReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reference", theReference), currentHashCode, theReference); } { List theMitigation; theMitigation = (((this.mitigation!= null)&&(!this.mitigation.isEmpty()))?this.getMitigation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mitigation", theMitigation), currentHashCode, theMitigation); } 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); { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient); } { CodeableConcept theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory); } { DetectedIssueSeverity theSeverity; theSeverity = this.getSeverity(); strategy.appendField(locator, this, "severity", buffer, theSeverity); } { List theImplicated; theImplicated = (((this.implicated!= null)&&(!this.implicated.isEmpty()))?this.getImplicated():null); strategy.appendField(locator, this, "implicated", buffer, theImplicated); } { org.hl7.fhir.String theDetail; theDetail = this.getDetail(); strategy.appendField(locator, this, "detail", buffer, theDetail); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate); } { Reference theAuthor; theAuthor = this.getAuthor(); strategy.appendField(locator, this, "author", buffer, theAuthor); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier); } { Uri theReference; theReference = this.getReference(); strategy.appendField(locator, this, "reference", buffer, theReference); } { List theMitigation; theMitigation = (((this.mitigation!= null)&&(!this.mitigation.isEmpty()))?this.getMitigation():null); strategy.appendField(locator, this, "mitigation", buffer, theMitigation); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy