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

CQL Module: Consider using invariant to require parameters have defaultValue or cqlType

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Not Persuasive with Modification
    • Icon: Medium Medium
    • Using CQL With FHIR (FHIR)
    • 1.0.0-ballot
    • Clinical Decision Support
    • CQL Module
    • 8.9.1
    • Hide

      It is not the intent to require one or the other, however it makes sense to provide some guidance about when they should be used:

      cqf-defaultValue is used if the parameter definition has a default to provide the expected value of the default. Note that the value is provided according to the FHIR Type Mapping

      cqf-cqlType is used to ensure that the type of the parameter can be unambiguously provided, given that the FHIR Type Mapping is potentially ambiguous (for the Period type specifically)

      Show
      It is not the intent to require one or the other, however it makes sense to provide some guidance about when they should be used: cqf-defaultValue is used if the parameter definition has a default to provide the expected value of the default. Note that the value is provided according to the FHIR Type Mapping cqf-cqlType is used to ensure that the type of the parameter can be unambiguously provided, given that the FHIR Type Mapping is potentially ambiguous (for the Period type specifically)
    • Chris Moesel / Juliet Rubini: 23-0-0
    • Clarification
    • Non-substantive

    Description

      While CQL Module's parameter element, the defaultValue and cqlType extensions are both declared as 0..1. If it is the intent that at least one of them should exist, consider adding an invariant to formally require this.

      Attachments

        Activity

          People

            jen_seeman Jennifer Seeman
            cmoesel Chris Moesel
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: