
org.hl7.fhir.RiskAssessmentPrediction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick library for the Clinical Quality Language Java reference implementation
//
// 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.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
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;
/**
* An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.
*
* Java class for RiskAssessment.Prediction complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RiskAssessment.Prediction">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="outcome" type="{http://hl7.org/fhir}CodeableConcept"/>
* <choice minOccurs="0">
* <element name="probabilityDecimal" type="{http://hl7.org/fhir}decimal"/>
* <element name="probabilityRange" type="{http://hl7.org/fhir}Range"/>
* <element name="probabilityCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
* </choice>
* <element name="relativeRisk" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="whenPeriod" type="{http://hl7.org/fhir}Period"/>
* <element name="whenRange" type="{http://hl7.org/fhir}Range"/>
* </choice>
* <element name="rationale" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RiskAssessment.Prediction", propOrder = {
"outcome",
"probabilityDecimal",
"probabilityRange",
"probabilityCodeableConcept",
"relativeRisk",
"whenPeriod",
"whenRange",
"rationale"
})
public class RiskAssessmentPrediction
extends BackboneElement
implements Equals, HashCode, ToString
{
@XmlElement(required = true)
protected CodeableConcept outcome;
protected Decimal probabilityDecimal;
protected Range probabilityRange;
protected CodeableConcept probabilityCodeableConcept;
protected Decimal relativeRisk;
protected Period whenPeriod;
protected Range whenRange;
protected org.hl7.fhir.String rationale;
/**
* Gets the value of the outcome property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getOutcome() {
return outcome;
}
/**
* Sets the value of the outcome property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setOutcome(CodeableConcept value) {
this.outcome = value;
}
/**
* Gets the value of the probabilityDecimal property.
*
* @return
* possible object is
* {@link Decimal }
*
*/
public Decimal getProbabilityDecimal() {
return probabilityDecimal;
}
/**
* Sets the value of the probabilityDecimal property.
*
* @param value
* allowed object is
* {@link Decimal }
*
*/
public void setProbabilityDecimal(Decimal value) {
this.probabilityDecimal = value;
}
/**
* Gets the value of the probabilityRange property.
*
* @return
* possible object is
* {@link Range }
*
*/
public Range getProbabilityRange() {
return probabilityRange;
}
/**
* Sets the value of the probabilityRange property.
*
* @param value
* allowed object is
* {@link Range }
*
*/
public void setProbabilityRange(Range value) {
this.probabilityRange = value;
}
/**
* Gets the value of the probabilityCodeableConcept property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getProbabilityCodeableConcept() {
return probabilityCodeableConcept;
}
/**
* Sets the value of the probabilityCodeableConcept property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setProbabilityCodeableConcept(CodeableConcept value) {
this.probabilityCodeableConcept = value;
}
/**
* Gets the value of the relativeRisk property.
*
* @return
* possible object is
* {@link Decimal }
*
*/
public Decimal getRelativeRisk() {
return relativeRisk;
}
/**
* Sets the value of the relativeRisk property.
*
* @param value
* allowed object is
* {@link Decimal }
*
*/
public void setRelativeRisk(Decimal value) {
this.relativeRisk = value;
}
/**
* Gets the value of the whenPeriod property.
*
* @return
* possible object is
* {@link Period }
*
*/
public Period getWhenPeriod() {
return whenPeriod;
}
/**
* Sets the value of the whenPeriod property.
*
* @param value
* allowed object is
* {@link Period }
*
*/
public void setWhenPeriod(Period value) {
this.whenPeriod = value;
}
/**
* Gets the value of the whenRange property.
*
* @return
* possible object is
* {@link Range }
*
*/
public Range getWhenRange() {
return whenRange;
}
/**
* Sets the value of the whenRange property.
*
* @param value
* allowed object is
* {@link Range }
*
*/
public void setWhenRange(Range value) {
this.whenRange = value;
}
/**
* Gets the value of the rationale property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getRationale() {
return rationale;
}
/**
* Sets the value of the rationale property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setRationale(org.hl7.fhir.String value) {
this.rationale = value;
}
public RiskAssessmentPrediction withOutcome(CodeableConcept value) {
setOutcome(value);
return this;
}
public RiskAssessmentPrediction withProbabilityDecimal(Decimal value) {
setProbabilityDecimal(value);
return this;
}
public RiskAssessmentPrediction withProbabilityRange(Range value) {
setProbabilityRange(value);
return this;
}
public RiskAssessmentPrediction withProbabilityCodeableConcept(CodeableConcept value) {
setProbabilityCodeableConcept(value);
return this;
}
public RiskAssessmentPrediction withRelativeRisk(Decimal value) {
setRelativeRisk(value);
return this;
}
public RiskAssessmentPrediction withWhenPeriod(Period value) {
setWhenPeriod(value);
return this;
}
public RiskAssessmentPrediction withWhenRange(Range value) {
setWhenRange(value);
return this;
}
public RiskAssessmentPrediction withRationale(org.hl7.fhir.String value) {
setRationale(value);
return this;
}
@Override
public RiskAssessmentPrediction withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public RiskAssessmentPrediction withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public RiskAssessmentPrediction withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public RiskAssessmentPrediction withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public RiskAssessmentPrediction withId(java.lang.String value) {
setId(value);
return this;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof RiskAssessmentPrediction)) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final RiskAssessmentPrediction that = ((RiskAssessmentPrediction) object);
{
CodeableConcept lhsOutcome;
lhsOutcome = this.getOutcome();
CodeableConcept rhsOutcome;
rhsOutcome = that.getOutcome();
if (!strategy.equals(LocatorUtils.property(thisLocator, "outcome", lhsOutcome), LocatorUtils.property(thatLocator, "outcome", rhsOutcome), lhsOutcome, rhsOutcome)) {
return false;
}
}
{
Decimal lhsProbabilityDecimal;
lhsProbabilityDecimal = this.getProbabilityDecimal();
Decimal rhsProbabilityDecimal;
rhsProbabilityDecimal = that.getProbabilityDecimal();
if (!strategy.equals(LocatorUtils.property(thisLocator, "probabilityDecimal", lhsProbabilityDecimal), LocatorUtils.property(thatLocator, "probabilityDecimal", rhsProbabilityDecimal), lhsProbabilityDecimal, rhsProbabilityDecimal)) {
return false;
}
}
{
Range lhsProbabilityRange;
lhsProbabilityRange = this.getProbabilityRange();
Range rhsProbabilityRange;
rhsProbabilityRange = that.getProbabilityRange();
if (!strategy.equals(LocatorUtils.property(thisLocator, "probabilityRange", lhsProbabilityRange), LocatorUtils.property(thatLocator, "probabilityRange", rhsProbabilityRange), lhsProbabilityRange, rhsProbabilityRange)) {
return false;
}
}
{
CodeableConcept lhsProbabilityCodeableConcept;
lhsProbabilityCodeableConcept = this.getProbabilityCodeableConcept();
CodeableConcept rhsProbabilityCodeableConcept;
rhsProbabilityCodeableConcept = that.getProbabilityCodeableConcept();
if (!strategy.equals(LocatorUtils.property(thisLocator, "probabilityCodeableConcept", lhsProbabilityCodeableConcept), LocatorUtils.property(thatLocator, "probabilityCodeableConcept", rhsProbabilityCodeableConcept), lhsProbabilityCodeableConcept, rhsProbabilityCodeableConcept)) {
return false;
}
}
{
Decimal lhsRelativeRisk;
lhsRelativeRisk = this.getRelativeRisk();
Decimal rhsRelativeRisk;
rhsRelativeRisk = that.getRelativeRisk();
if (!strategy.equals(LocatorUtils.property(thisLocator, "relativeRisk", lhsRelativeRisk), LocatorUtils.property(thatLocator, "relativeRisk", rhsRelativeRisk), lhsRelativeRisk, rhsRelativeRisk)) {
return false;
}
}
{
Period lhsWhenPeriod;
lhsWhenPeriod = this.getWhenPeriod();
Period rhsWhenPeriod;
rhsWhenPeriod = that.getWhenPeriod();
if (!strategy.equals(LocatorUtils.property(thisLocator, "whenPeriod", lhsWhenPeriod), LocatorUtils.property(thatLocator, "whenPeriod", rhsWhenPeriod), lhsWhenPeriod, rhsWhenPeriod)) {
return false;
}
}
{
Range lhsWhenRange;
lhsWhenRange = this.getWhenRange();
Range rhsWhenRange;
rhsWhenRange = that.getWhenRange();
if (!strategy.equals(LocatorUtils.property(thisLocator, "whenRange", lhsWhenRange), LocatorUtils.property(thatLocator, "whenRange", rhsWhenRange), lhsWhenRange, rhsWhenRange)) {
return false;
}
}
{
org.hl7.fhir.String lhsRationale;
lhsRationale = this.getRationale();
org.hl7.fhir.String rhsRationale;
rhsRationale = that.getRationale();
if (!strategy.equals(LocatorUtils.property(thisLocator, "rationale", lhsRationale), LocatorUtils.property(thatLocator, "rationale", rhsRationale), lhsRationale, rhsRationale)) {
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);
{
CodeableConcept theOutcome;
theOutcome = this.getOutcome();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outcome", theOutcome), currentHashCode, theOutcome);
}
{
Decimal theProbabilityDecimal;
theProbabilityDecimal = this.getProbabilityDecimal();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "probabilityDecimal", theProbabilityDecimal), currentHashCode, theProbabilityDecimal);
}
{
Range theProbabilityRange;
theProbabilityRange = this.getProbabilityRange();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "probabilityRange", theProbabilityRange), currentHashCode, theProbabilityRange);
}
{
CodeableConcept theProbabilityCodeableConcept;
theProbabilityCodeableConcept = this.getProbabilityCodeableConcept();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "probabilityCodeableConcept", theProbabilityCodeableConcept), currentHashCode, theProbabilityCodeableConcept);
}
{
Decimal theRelativeRisk;
theRelativeRisk = this.getRelativeRisk();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relativeRisk", theRelativeRisk), currentHashCode, theRelativeRisk);
}
{
Period theWhenPeriod;
theWhenPeriod = this.getWhenPeriod();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "whenPeriod", theWhenPeriod), currentHashCode, theWhenPeriod);
}
{
Range theWhenRange;
theWhenRange = this.getWhenRange();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "whenRange", theWhenRange), currentHashCode, theWhenRange);
}
{
org.hl7.fhir.String theRationale;
theRationale = this.getRationale();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rationale", theRationale), currentHashCode, theRationale);
}
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);
{
CodeableConcept theOutcome;
theOutcome = this.getOutcome();
strategy.appendField(locator, this, "outcome", buffer, theOutcome);
}
{
Decimal theProbabilityDecimal;
theProbabilityDecimal = this.getProbabilityDecimal();
strategy.appendField(locator, this, "probabilityDecimal", buffer, theProbabilityDecimal);
}
{
Range theProbabilityRange;
theProbabilityRange = this.getProbabilityRange();
strategy.appendField(locator, this, "probabilityRange", buffer, theProbabilityRange);
}
{
CodeableConcept theProbabilityCodeableConcept;
theProbabilityCodeableConcept = this.getProbabilityCodeableConcept();
strategy.appendField(locator, this, "probabilityCodeableConcept", buffer, theProbabilityCodeableConcept);
}
{
Decimal theRelativeRisk;
theRelativeRisk = this.getRelativeRisk();
strategy.appendField(locator, this, "relativeRisk", buffer, theRelativeRisk);
}
{
Period theWhenPeriod;
theWhenPeriod = this.getWhenPeriod();
strategy.appendField(locator, this, "whenPeriod", buffer, theWhenPeriod);
}
{
Range theWhenRange;
theWhenRange = this.getWhenRange();
strategy.appendField(locator, this, "whenRange", buffer, theWhenRange);
}
{
org.hl7.fhir.String theRationale;
theRationale = this.getRationale();
strategy.appendField(locator, this, "rationale", buffer, theRationale);
}
return buffer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy