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.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 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 Equals, HashCode, ToString { 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 JAXB 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 JAXB 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof RiskAssessment)) { 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)) { 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 lhsCondition; lhsCondition = this.getCondition(); Reference rhsCondition; rhsCondition = that.getCondition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "condition", lhsCondition), LocatorUtils.property(thatLocator, "condition", rhsCondition), lhsCondition, rhsCondition)) { 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)) { 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)) { 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; } } { 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)) { 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)) { 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)) { 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)) { 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 theSubject; theSubject = this.getSubject(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate); } { Reference theCondition; theCondition = this.getCondition(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "condition", theCondition), currentHashCode, theCondition); } { Reference theEncounter; theEncounter = this.getEncounter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter); } { Reference thePerformer; thePerformer = this.getPerformer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier); } { CodeableConcept theMethod; theMethod = this.getMethod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "method", theMethod), currentHashCode, theMethod); } { List theBasis; theBasis = (((this.basis!= null)&&(!this.basis.isEmpty()))?this.getBasis():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "basis", theBasis), currentHashCode, theBasis); } { List thePrediction; thePrediction = (((this.prediction!= null)&&(!this.prediction.isEmpty()))?this.getPrediction():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prediction", thePrediction), currentHashCode, thePrediction); } { org.hl7.fhir.String theMitigation; theMitigation = this.getMitigation(); 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 theSubject; theSubject = this.getSubject(); strategy.appendField(locator, this, "subject", buffer, theSubject); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate); } { Reference theCondition; theCondition = this.getCondition(); strategy.appendField(locator, this, "condition", buffer, theCondition); } { Reference theEncounter; theEncounter = this.getEncounter(); strategy.appendField(locator, this, "encounter", buffer, theEncounter); } { Reference thePerformer; thePerformer = this.getPerformer(); strategy.appendField(locator, this, "performer", buffer, thePerformer); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier); } { CodeableConcept theMethod; theMethod = this.getMethod(); strategy.appendField(locator, this, "method", buffer, theMethod); } { List theBasis; theBasis = (((this.basis!= null)&&(!this.basis.isEmpty()))?this.getBasis():null); strategy.appendField(locator, this, "basis", buffer, theBasis); } { List thePrediction; thePrediction = (((this.prediction!= null)&&(!this.prediction.isEmpty()))?this.getPrediction():null); strategy.appendField(locator, this, "prediction", buffer, thePrediction); } { org.hl7.fhir.String theMitigation; theMitigation = this.getMitigation(); strategy.appendField(locator, this, "mitigation", buffer, theMitigation); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy