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

org.hl7.fhir.RiskAssessmentPrediction 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: 2023.12.08 at 08:47:56 AM MST 
//


package org.hl7.fhir;

import java.util.Collection;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
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;


/**
 * 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 Equals2, HashCode2, ToString2 { @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; } @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 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, (this.outcome!= null), (that.outcome!= null))) { 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, (this.probabilityDecimal!= null), (that.probabilityDecimal!= null))) { 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, (this.probabilityRange!= null), (that.probabilityRange!= null))) { 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, (this.probabilityCodeableConcept!= null), (that.probabilityCodeableConcept!= null))) { 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, (this.relativeRisk!= null), (that.relativeRisk!= null))) { 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, (this.whenPeriod!= null), (that.whenPeriod!= null))) { 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, (this.whenRange!= null), (that.whenRange!= null))) { 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, (this.rationale!= null), (that.rationale!= 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); { CodeableConcept theOutcome; theOutcome = this.getOutcome(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outcome", theOutcome), currentHashCode, theOutcome, (this.outcome!= null)); } { Decimal theProbabilityDecimal; theProbabilityDecimal = this.getProbabilityDecimal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "probabilityDecimal", theProbabilityDecimal), currentHashCode, theProbabilityDecimal, (this.probabilityDecimal!= null)); } { Range theProbabilityRange; theProbabilityRange = this.getProbabilityRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "probabilityRange", theProbabilityRange), currentHashCode, theProbabilityRange, (this.probabilityRange!= null)); } { CodeableConcept theProbabilityCodeableConcept; theProbabilityCodeableConcept = this.getProbabilityCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "probabilityCodeableConcept", theProbabilityCodeableConcept), currentHashCode, theProbabilityCodeableConcept, (this.probabilityCodeableConcept!= null)); } { Decimal theRelativeRisk; theRelativeRisk = this.getRelativeRisk(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relativeRisk", theRelativeRisk), currentHashCode, theRelativeRisk, (this.relativeRisk!= null)); } { Period theWhenPeriod; theWhenPeriod = this.getWhenPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "whenPeriod", theWhenPeriod), currentHashCode, theWhenPeriod, (this.whenPeriod!= null)); } { Range theWhenRange; theWhenRange = this.getWhenRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "whenRange", theWhenRange), currentHashCode, theWhenRange, (this.whenRange!= null)); } { org.hl7.fhir.String theRationale; theRationale = this.getRationale(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rationale", theRationale), currentHashCode, theRationale, (this.rationale!= 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); { CodeableConcept theOutcome; theOutcome = this.getOutcome(); strategy.appendField(locator, this, "outcome", buffer, theOutcome, (this.outcome!= null)); } { Decimal theProbabilityDecimal; theProbabilityDecimal = this.getProbabilityDecimal(); strategy.appendField(locator, this, "probabilityDecimal", buffer, theProbabilityDecimal, (this.probabilityDecimal!= null)); } { Range theProbabilityRange; theProbabilityRange = this.getProbabilityRange(); strategy.appendField(locator, this, "probabilityRange", buffer, theProbabilityRange, (this.probabilityRange!= null)); } { CodeableConcept theProbabilityCodeableConcept; theProbabilityCodeableConcept = this.getProbabilityCodeableConcept(); strategy.appendField(locator, this, "probabilityCodeableConcept", buffer, theProbabilityCodeableConcept, (this.probabilityCodeableConcept!= null)); } { Decimal theRelativeRisk; theRelativeRisk = this.getRelativeRisk(); strategy.appendField(locator, this, "relativeRisk", buffer, theRelativeRisk, (this.relativeRisk!= null)); } { Period theWhenPeriod; theWhenPeriod = this.getWhenPeriod(); strategy.appendField(locator, this, "whenPeriod", buffer, theWhenPeriod, (this.whenPeriod!= null)); } { Range theWhenRange; theWhenRange = this.getWhenRange(); strategy.appendField(locator, this, "whenRange", buffer, theWhenRange, (this.whenRange!= null)); } { org.hl7.fhir.String theRationale; theRationale = this.getRationale(); strategy.appendField(locator, this, "rationale", buffer, theRationale, (this.rationale!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy