Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-41489

ELM Operators Predecessor and Successor contain inconsistent Statements

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium

    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."

      Attachments

        Activity

          People

            Unassigned Unassigned
            akiel Alexander Kiel
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: