Uploaded image for project: 'CQL Issue Tracker'
  1. CQL Issue Tracker
  2. CQLIT-411

Authoring FHIR elements with different choice types in QICore 4.1.1

XMLWordPrintable

    • Icon: Question/Guidance Question/Guidance
    • Resolution: Done
    • Icon: Moderate Moderate
    • None
    • Yes
    • QI Core/CQL
    • Not measure related
    • MADiE

      Hello,

      Would you please provide guidance on how to author FHIR elements with different choice types in QICore/CQL (e.g., Patient.deceased, Observation.value)? For example, sometimes you would need to specify a choice type, and sometimes you don’t. It’s unclear why that is and what the general rule is for authoring FHIR elements with different choice types in QICore/CQL; it seems less straightforward than FHIR/CQL. Neither the QICore 4.1.1 IG Patterns page ( http://hl7.org/fhir/us/qicore/STU4.1.1/patterns.html ) nor the GitHub page ( https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns---QICore-v4.1.1#accessing-encounters-with-a-direct-reference-code ) seems to get at this level of information.

      Please kindly advise. Thank you!

       

      Example 1:

      FHIR/CQL: …where date from Patient.deceased as dateTime during day of Interval…

      QICore 4.1.1/CQL (CQLIT-409): …where date from Patient.deceased during day of Interval…

      http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-patient-definitions.html#Patient.deceased[x]

       

      Example 2:

      FHIR/CQL: …where Observation.value as CodeableConcept in “Frailty Device”

      QICore 4.1.1/CQL (InValueSet Error · Issue #16 · cqframework/vscode-cql · GitHub): ….where Observation.value as Concept in “Frailty Device”

      http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation-definitions.html#Observation.value[x]

            pjmuirESAC Peter Muir
            dlee38 Dorothy Lee
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: