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

org.hl7.fhir.RiskAssessment 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.05.02 at 09:57:28 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 RiskAssessment complex type. * *

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

 * <complexType name="RiskAssessment">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="condition" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="performer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
 *         <element name="method" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="basis" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="prediction" type="{http://hl7.org/fhir}RiskAssessment.Prediction" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="mitigation" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RiskAssessment", propOrder = { "subject", "date", "condition", "encounter", "performer", "identifier", "method", "basis", "prediction", "mitigation" }) public class RiskAssessment extends DomainResource implements Equals2, HashCode2, ToString2 { protected Reference subject; protected DateTime date; protected Reference condition; protected Reference encounter; protected Reference performer; protected Identifier identifier; protected CodeableConcept method; protected List basis; protected List prediction; protected org.hl7.fhir.String mitigation; /** * 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 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 condition property. * * @return * possible object is * {@link Reference } * */ public Reference getCondition() { return condition; } /** * Sets the value of the condition property. * * @param value * allowed object is * {@link Reference } * */ public void setCondition(Reference value) { this.condition = 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 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 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 method property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getMethod() { return method; } /** * Sets the value of the method property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setMethod(CodeableConcept value) { this.method = value; } /** * Gets the value of the basis 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 basis property. * *

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

     *    getBasis().add(newItem);
     * 
* * *

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

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

     *    getPrediction().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link RiskAssessmentPrediction } * * */ public List getPrediction() { if (prediction == null) { prediction = new ArrayList(); } return this.prediction; } /** * Gets the value of the mitigation property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getMitigation() { return mitigation; } /** * Sets the value of the mitigation property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setMitigation(org.hl7.fhir.String value) { this.mitigation = value; } public RiskAssessment withSubject(Reference value) { setSubject(value); return this; } public RiskAssessment withDate(DateTime value) { setDate(value); return this; } public RiskAssessment withCondition(Reference value) { setCondition(value); return this; } public RiskAssessment withEncounter(Reference value) { setEncounter(value); return this; } public RiskAssessment withPerformer(Reference value) { setPerformer(value); return this; } public RiskAssessment withIdentifier(Identifier value) { setIdentifier(value); return this; } public RiskAssessment withMethod(CodeableConcept value) { setMethod(value); return this; } public RiskAssessment withBasis(Reference... values) { if (values!= null) { for (Reference value: values) { getBasis().add(value); } } return this; } public RiskAssessment withBasis(Collection values) { if (values!= null) { getBasis().addAll(values); } return this; } public RiskAssessment withPrediction(RiskAssessmentPrediction... values) { if (values!= null) { for (RiskAssessmentPrediction value: values) { getPrediction().add(value); } } return this; } public RiskAssessment withPrediction(Collection values) { if (values!= null) { getPrediction().addAll(values); } return this; } public RiskAssessment withMitigation(org.hl7.fhir.String value) { setMitigation(value); return this; } @Override public RiskAssessment withText(Narrative value) { setText(value); return this; } @Override public RiskAssessment withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public RiskAssessment withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public RiskAssessment withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public RiskAssessment withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public RiskAssessment withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public RiskAssessment withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public RiskAssessment withId(Id value) { setId(value); return this; } @Override public RiskAssessment withMeta(Meta value) { setMeta(value); return this; } @Override public RiskAssessment withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public RiskAssessment 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 RiskAssessment that = ((RiskAssessment) object); { 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; } } { 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 lhsCondition; lhsCondition = this.getCondition(); Reference rhsCondition; rhsCondition = that.getCondition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "condition", lhsCondition), LocatorUtils.property(thatLocator, "condition", rhsCondition), lhsCondition, rhsCondition, (this.condition!= null), (that.condition!= 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; } } { 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; } } { 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; } } { CodeableConcept lhsMethod; lhsMethod = this.getMethod(); CodeableConcept rhsMethod; rhsMethod = that.getMethod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "method", lhsMethod), LocatorUtils.property(thatLocator, "method", rhsMethod), lhsMethod, rhsMethod, (this.method!= null), (that.method!= null))) { return false; } } { List lhsBasis; lhsBasis = (((this.basis!= null)&&(!this.basis.isEmpty()))?this.getBasis():null); List rhsBasis; rhsBasis = (((that.basis!= null)&&(!that.basis.isEmpty()))?that.getBasis():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "basis", lhsBasis), LocatorUtils.property(thatLocator, "basis", rhsBasis), lhsBasis, rhsBasis, ((this.basis!= null)&&(!this.basis.isEmpty())), ((that.basis!= null)&&(!that.basis.isEmpty())))) { return false; } } { List lhsPrediction; lhsPrediction = (((this.prediction!= null)&&(!this.prediction.isEmpty()))?this.getPrediction():null); List rhsPrediction; rhsPrediction = (((that.prediction!= null)&&(!that.prediction.isEmpty()))?that.getPrediction():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "prediction", lhsPrediction), LocatorUtils.property(thatLocator, "prediction", rhsPrediction), lhsPrediction, rhsPrediction, ((this.prediction!= null)&&(!this.prediction.isEmpty())), ((that.prediction!= null)&&(!that.prediction.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsMitigation; lhsMitigation = this.getMitigation(); org.hl7.fhir.String rhsMitigation; rhsMitigation = that.getMitigation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mitigation", lhsMitigation), LocatorUtils.property(thatLocator, "mitigation", rhsMitigation), lhsMitigation, rhsMitigation, (this.mitigation!= null), (that.mitigation!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { Reference theSubject; theSubject = this.getSubject(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null)); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null)); } { Reference theCondition; theCondition = this.getCondition(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "condition", theCondition), currentHashCode, theCondition, (this.condition!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null)); } { Reference thePerformer; thePerformer = this.getPerformer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer, (this.performer!= null)); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= null)); } { CodeableConcept theMethod; theMethod = this.getMethod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "method", theMethod), currentHashCode, theMethod, (this.method!= null)); } { List theBasis; theBasis = (((this.basis!= null)&&(!this.basis.isEmpty()))?this.getBasis():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "basis", theBasis), currentHashCode, theBasis, ((this.basis!= null)&&(!this.basis.isEmpty()))); } { List thePrediction; thePrediction = (((this.prediction!= null)&&(!this.prediction.isEmpty()))?this.getPrediction():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prediction", thePrediction), currentHashCode, thePrediction, ((this.prediction!= null)&&(!this.prediction.isEmpty()))); } { org.hl7.fhir.String theMitigation; theMitigation = this.getMitigation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mitigation", theMitigation), currentHashCode, theMitigation, (this.mitigation!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { Reference theSubject; theSubject = this.getSubject(); strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null)); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null)); } { Reference theCondition; theCondition = this.getCondition(); strategy.appendField(locator, this, "condition", buffer, theCondition, (this.condition!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null)); } { Reference thePerformer; thePerformer = this.getPerformer(); strategy.appendField(locator, this, "performer", buffer, thePerformer, (this.performer!= null)); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= null)); } { CodeableConcept theMethod; theMethod = this.getMethod(); strategy.appendField(locator, this, "method", buffer, theMethod, (this.method!= null)); } { List theBasis; theBasis = (((this.basis!= null)&&(!this.basis.isEmpty()))?this.getBasis():null); strategy.appendField(locator, this, "basis", buffer, theBasis, ((this.basis!= null)&&(!this.basis.isEmpty()))); } { List thePrediction; thePrediction = (((this.prediction!= null)&&(!this.prediction.isEmpty()))?this.getPrediction():null); strategy.appendField(locator, this, "prediction", buffer, thePrediction, ((this.prediction!= null)&&(!this.prediction.isEmpty()))); } { org.hl7.fhir.String theMitigation; theMitigation = this.getMitigation(); strategy.appendField(locator, this, "mitigation", buffer, theMitigation, (this.mitigation!= null)); } return buffer; } public void setBasis(List value) { this.basis = value; } public void setPrediction(List value) { this.prediction = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy