-
Type:
Technical Correction
-
Resolution: Persuasive
-
Priority:
Medium
-
FHIR Core (FHIR)
-
R4
-
Clinical Decision Support
-
RiskAssessment
-
9.11.4.2
-
-
Correction
Constraint ras-2 requires RiskAssessment.prediction to meet the following FHIRPath expression:{{}}
probability is decimal implies (probability as decimal) <= 100
However, predictions are not required to have a probability (cardinality 0..1).
Take for example, [Riskassessment-example-breastcancer.json|https://www.hl7.org/fhir/riskassessment-example-breastcancer.json.html], "probability is decimal" results in the empty collection as does "(probability as decimal) <= 100". The partially evaluated FHIRPath expression of "{} implies {}" results in an empty collection which should be treated as as a unmet constraint (https://chat.fhir.org/#narrow/stream/179266-fhirpath/topic/FHIRPath.20constraints/near/185876251)
Changing the expression to the following should address the issue at hand:
probability.exist($this is Decimal) implies (probability as Decimal) <= 100