Details
-
Change Request
-
Resolution: Unresolved
-
Medium
-
Clinical Quality Language (FHIR)
-
1.4 [deprecated]
-
Clinical Decision Support
-
ELM
Description
Between version 1.3.1 and 1.4.0 of the CQL Specification the sentence: "If the result of the operation cannot be represented, the result is null." was added to the ELM Operators Predecessor and Successor.
But both operators also contains the sentence: "If the argument is already the minimum/maximum value for the type, a run-time error is thrown."
In my opinion both statements conflict each other. What should be done if such an operation overflows? Should null be returned or a run-time error be thrown?
From Bryn Rohdes:
"The intent is that successor and predecessor should return null if an overflow occurs, that was the intent of the additional sentence about the value not being able to be represented."