Common CQL Artifacts for FHIR (US-Based)
2.0.0-cibuild - Informative 2 - CI Build United States of America flag

Common CQL Artifacts for FHIR (US-Based), published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 2.0.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/us-cql-ig/ and changes regularly. See the Directory of published versions

Plain Language Summary goes here

Home

Official URL: http://hl7.org/fhir/us/cql/ImplementationGuide/hl7.fhir.us.cql Version: 2.0.0-cibuild
IG Standards status: Informative Maturity Level: 3 Computable Name: CQLUSCommon

Introduction

This implementation guide contains architectural guidance and re-usable libraries that facilitate the use of Clinical Quality Language (CQL) with FHIR in the US Realm, with an initial use case of Prior Authorization Support Questionnaires as described in the DaVinci Documentation Templates and Rules (DTR) implementation guide. Much of the guidance and content presented here is built on work done in the quality measurement domain, including patterns established by measure developers as part of testing and developing quality measures for use with FHIR. These patterns have been generalized to support US Core as well as harmonized to be usable across use cases.

The content in this implementation guide is provided for reuse and proposed to help streamline implementation and development of CQL-based knowledge artifacts in the US Realm. The guidance here is published informative and the IG imposes no conformance expectations on systems that make use of it. This does not mean that the content cannot be used in production; the content in this implementation guide is stable as of publication, and will use semantic versioning to communicate change impact across new versions, as described in the CRMI IG versioning topic. In particular, this means that production systems can expect no breaking changes without a corresponding major version increment, and that any minor version increment indicates compatible changes.

Scope of Use

This guide is a Content Implementation Guide that supports the use of CQL with FHIR in the US Realm by:

  • Providing architectural guidance for the evaluation of CQL expressions in the context of artifacts such as questionnaires, quality measures, and decision support rules.
  • Providing re-usable libraries of CQL expressions to retrieve data for common use cases in the US Realm
  • Providing guidance for managing CQL expressions that may involve retrieval of data from multiple versions of the US Core implementation guide
  • Gathering requirements for tooling to simplify the authoring of questionnaires that use CQL

The term artifact here refers to a FHIR resource that is definitional in nature or use such as a Questionnaire, or a Library (as opposed to a FHIR resource that is representing instance-specific data, such as an Observation). This implementation guide provides common artifacts that support the use of CQL with FHIR in the US Realm. The artifacts support a broad range of use cases across the healthcare domain, including prior authorization, quality measurement and reporting, clinical decision support, computable guidelines, and public health case reporting. Any use of CQL within the US Realm could benefit from the artifacts provided here, as well as provide feedback to these artifacts, both in the form of proposed changes to existing artifacts, as well as proposing new artifacts that could be re-used across use cases.

Providing standardized CQL libraries will reduce burden by establishing best practices and reusable expressions for common questions across questionnaires, both currently and into the future. As well, these shared CQL artifacts will support a user with deep clinical knowledge but limited technical knowledge to be able to build and maintain CQL-based questionnaires. Open questionnaire authoring environments (i.e., LHC forms builder) exist and will enable the growth of CQL artifacts (see the Tooling Support page for further discussion).

NOTE: Although the current guidance has been developed based on the prior authorization questionnaires as the first use case, the intent is to capture common patterns, guidance, and artifacts that are usable across use-cases.

The artifacts provided by this implementation guide fall into three general categories:

  1. Common CQL: Libraries of re-usable CQL expressions, such as US Core Common and US Core Elements, that are intended to be used in production systems as shared artifacts
  2. Example Artifacts: Example content, such as the example Questionnaires, that are intended to illustrate how the shared artifacts may be used
  3. Tests: Test content that demonstrates expected behavior of the CQL and Example artifacts

Out of Scope

This implementation guide does not:

  • Define or mandate the use of any particular subsets of CQL
  • Define functions for the retrieval of simple elements from already retrieved FHIR resources (e.g. Patient.birthDate)
  • Define expectations for certification that require the use of any of the helper libraries provided in this implementation guide

How to Read This Guide

Target Audiences

This implementation guide is targeted at two main audiences:

  • Authors: Persons involved in the development of CQL-based FHIR Knowledge Artifacts that are authoring CQL, either directly or with tooling assistance
  • Integrators: Persons involved in the development of systems that support authoring, publishing, distributing, and implementing CQL-based FHIR Knowledge Artifacts

This Guide is divided into several pages which are listed at the top of each page in the menu bar:

NOTE: This implementation guide is informative, and therefore does not include a "Specification" topic like many other implementation guides do.

Roadmap

Implementers of this content are encouraged to provide feedback through the usual mechanisms for feedback on HL7 FHIR Implementation Guides, by submitting an issue. To see the current status of the feedback for this specification, see the US CQL Specification Dashboard. For more information on how to submit feedback, refer to the Specification Feedback page in the HL7 confluence.

Feedback submitted to this implementation guide is discussed and resolved in the Clinical Decision Support weekly meeting.

This implementation guide will be published for a two-year implementation period, during which time we will seek implementer feedback, applying as needed. The next ballot of this material will take place when the community indicates sufficient feedback and/or need for an updated release.

Acknowledgements

This Implementation Guide was made possible by the thoughtful contributions of the following people and organizations:

  • The DaVinci Project Member Organizations
  • Raj Godavarthi, MCG Health
  • Mike Gould, Zeomega
  • Yan Heras, Optimum eHealth
  • Kyle Johnsen, Epic
  • Crystal Kallem, Point of Care Partners
  • Lloyd McKenzie, Dogwood Consulting
  • Viet Nguyen, HL7
  • Rob Reynolds, Smile Digital Health
  • Brenin Rhodes, Smile Digital Health
  • Bryn Rhodes, Smile Digital Health
  • Raleigh Thompson, Smile Digital Health

Dependencies

Cross Version Analysis

This is an R4 IG. None of the features it uses are changed in R4B, so it can be used as is with R4B systems. Packages for both R4 (hl7.fhir.us.cql.r4) and R4B (hl7.fhir.us.cql.r4b) are available.

Global Profiles

There are no Global profiles defined

IP Statements

This publication includes IP covered under the following statements.

Many of the examples in this implementation guide are informed by prior authorization forms freely available on the internet and used with permission.

Expansion Parameters

Parameter Value
system-version SNOMED CT[US]
system-version TimingEvent v4.0.0
system-version EventTiming v4.0.1
default-canonical-version MedicationRequest
default-canonical-version MedicationDispense
system-version identifierType v5.0.0
default-canonical-version ServiceRequest
default-canonical-version Coverage
default-canonical-version Cumulative Medication Duration
default-canonical-version Condition
default-canonical-version DiagnosticReport
default-canonical-version MedicationStatement
default-canonical-version US Core Practitioner Profile
system-version ConditionVerificationStatus v2.0.1
system-version Condition Clinical Status Codes v3.0.0
default-valueset-version ICD-10 Codes v4.0.1
default-canonical-version US Core MedicationRequest Profile
system-version ActCode v10.0.0
system-version US Core Condition Category Extension Codes v7.0.0
system-version CommunicationCategory v1.0.1
system-version ObservationInterpretation v4.0.0
default-valueset-version Common substances for allergy and intolerance documentation including refutations v20210622
default-canonical-version US Core AllergyIntolerance Profile
default-canonical-version US Core DiagnosticReport Profile for Laboratory Results Reporting
default-canonical-version US Core DiagnosticReport Profile for Report and Note Exchange
default-canonical-version US Core Encounter Profile
default-canonical-version US Core Immunization Profile
default-canonical-version US Core Implantable Device Profile
default-canonical-version US Core Laboratory Result Observation Profile
default-canonical-version US Core Medication Profile
default-canonical-version US Core Pediatric BMI for Age Observation Profile
default-canonical-version US Core Pediatric Head Occipital Frontal Circumference Percentile Profile
default-canonical-version US Core Pediatric Weight for Height Observation Profile
default-canonical-version US Core Procedure Profile
default-canonical-version US Core Pulse Oximetry Profile
default-canonical-version US Core Smoking Status Observation Profile
default-canonical-version US Core Vital Signs Profile
default-canonical-version US Core Respiratory Rate Profile
default-canonical-version US Core Heart Rate Profile
default-canonical-version US Core Body Temperature Profile
default-canonical-version US Core Body Height Profile
default-canonical-version US Core Head Circumference Profile
default-canonical-version US Core Body Weight Profile
default-canonical-version US Core BMI Profile
default-canonical-version US Core Blood Pressure Profile
default-canonical-version Observation
default-canonical-version US Core Organization Profile
default-canonical-version ResearchSubject
default-canonical-version ResearchStudy
default-canonical-version US Core PractitionerRole Profile
system-version MaritalStatus v4.0.0
default-valueset-version MaritalStatus v4.0.1
default-canonical-version US Core CarePlan Profile
default-canonical-version US Core CareTeam Profile
default-canonical-version US Core Condition Encounter Diagnosis Profile
default-canonical-version US Core Condition Problems and Health Concerns Profile
default-canonical-version US Core Coverage Profile
default-canonical-version US Core DocumentReference Profile
default-canonical-version US Core Goal Profile
default-canonical-version US Core Location Profile
default-canonical-version US Core MedicationDispense Profile
default-canonical-version US Core Observation Clinical Result Profile
default-canonical-version US Core Observation Occupation Profile
default-canonical-version US Core Observation Pregnancy Intent Profile
default-canonical-version US Core Observation Pregnancy Status Profile
default-canonical-version US Core Observation Screening Assessment Profile
default-canonical-version US Core Observation Sexual Orientation Profile
default-canonical-version US Core Patient Profile
default-canonical-version US Core Provenance Profile
default-canonical-version US Core QuestionnaireResponse Profile
default-canonical-version US Core RelatedPerson Profile
default-canonical-version US Core ServiceRequest Profile
default-canonical-version US Core Simple Observation Profile
default-canonical-version US Core Specimen Profile
default-canonical-version Expression Library for the Example Patient And Coverage Questionnaire
default-valueset-version Birth Sex v20240330
default-canonical-version Expression Library for the Genetic/Molecular testing preauthorization Example
default-valueset-version AMA CPT All Codes v1.0.0
default-canonical-version Expression Library for the Medical Benefit Outpatient Drug Authorization Example
default-canonical-version Expression Library for the Medical Necessity For Authorization Of Catheters Example
default-canonical-version Expression Library for the Uniform Pharmacy Prior Authorization Request Form Example