Package com.ibm.fhir.model.resource
Class RiskAssessment.Prediction
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.resource.RiskAssessment.Prediction
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- RiskAssessment
public static class RiskAssessment.Prediction extends BackboneElement
Describes the expected outcome for the subject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRiskAssessment.Prediction.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static RiskAssessment.Prediction.Builderbuilder()booleanequals(Object obj)CodeableConceptgetOutcome()One of the potential outcomes for the patient (e.g.ElementgetProbability()Indicates how likely the outcome is (in the specified timeframe).CodeableConceptgetQualitativeRisk()Indicates how likely the outcome is (in the specified timeframe), expressed as a qualitative value (e.g.StringgetRationale()Additional information explaining the basis for the prediction.DecimalgetRelativeRisk()Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general.ElementgetWhen()Indicates the period of time or age range of the subject to which the specified probability applies.booleanhasChildren()inthashCode()RiskAssessment.Prediction.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getOutcome
public CodeableConcept getOutcome()
One of the potential outcomes for the patient (e.g. remission, death, a particular condition).- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getProbability
public Element getProbability()
Indicates how likely the outcome is (in the specified timeframe).- Returns:
- An immutable object of type
Elementthat may be null.
-
getQualitativeRisk
public CodeableConcept getQualitativeRisk()
Indicates how likely the outcome is (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, or high).- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getRelativeRisk
public Decimal getRelativeRisk()
Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getWhen
public Element getWhen()
Indicates the period of time or age range of the subject to which the specified probability applies.- Returns:
- An immutable object of type
Elementthat may be null.
-
getRationale
public String getRationale()
Additional information explaining the basis for the prediction.- Returns:
- An immutable object of type
Stringthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public RiskAssessment.Prediction.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static RiskAssessment.Prediction.Builder builder()
-
-