Clinical Quality Language (CQL) is a clinically-focused query language that can be used to express logic in a broad range of healthcare use cases, including clinical decision and cognitive support, public health and quality reporting, computable clinical guidelines, research trial eligibility, and many others. Several implementation guides have been published that include conformance criteria related to the use of CQL in these contexts. This implementation guide is the result of extracting common aspects of that support to a universal realm, broadly applicable implementation guide that supports the use of CQL with Fast Healthcare Interoperability Resources (FHIR). Future versions of those implementation guides should consider referencing the conformance and guidance established here.
Some of the conformance language and requirements described in this implementation guide, particularly around the use of terminology, may be applicable more broadly. We propose the inclusion of appropriate conformance requirements and guidance in a future version of the CQL specification.
Scope of Use
The intent of this implementation guide is to support the use of CQL with FHIR in general. It is a universal realm specification and is intended to be broadly applicable to any use case that involves libraries or expressions of CQL evaluating against FHIR resources, including:
Library profiles to support packaging of CQL (and compiled CQL, or Expression Logical Model (ELM)) as FHIR Library resources
Evaluation support profiles to facilitate the representation of structured information about a logic library, as well as the result of evaluating a logic library
CQL Evaluation Service capability statement
Model Information (ModelInfo)-related profiles to facilitate configuration of ModelInfo for FHIR implementation guides
Universally applicable CQL Artifacts for use with FHIR, including FHIR-ModelInfo, FHIRHelpers, and FHIRCommon
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:
Home: Summary and background information on Using CQL with FHIR.
Authoring:
Using CQL: Conformance requirements for using Clinical Quality Language as part of authoring FHIR Knowledge Artifacts.
Patterns: Patterns and guidance for using Clinical Quality Language as part of authoring FHIR Knowledge Artifacts.
Integrating:
Conformance: Conformance requirements for integrating Clinical Quality Language as part of systems that support authoring, publishing, distribution, and implementing FHIR Knowledge Artifacts.
Using ELM: Conformance requirements for the use of Expression Logical Model (ELM) artifacts.
Using ModelInfo: Conformance requirements for the use of Model Info.
CQL Artifacts:
FHIR ModelInfo: Description of the contents of the base FHIR ModelInfo
FHIRHelpers: Conversion functions used to simplify access to FHIR data types
FHIRCommon: Library of common functions and declarations for use in FHIR artifacts
FHIR Artifacts:
Profiles: List of profiles defined for use by knowledge artifacts.
Extensions: List of extensions defined and used by knowledge artifacts.
Operations: List of operations and operation pattern profiles.
Capabilities: Definitions of services and operations in support of authoring, publishing, and distributing canonical resources and knowledge artifacts.
Artifacts Summary: List of the FHIR artifacts defined as part of this implementation guide.
Downloads: Links to downloadable artifacts for implementations.
Changes: Changes made in each version of the Using CQL with FHIR Implementation Guide.
Acknowledgements
This Implementation Guide was made possible by the thoughtful contributions of the following people and organizations:
Brian Kaney, Vermonster - Editor
Bryant Austin, Smile Digital Health - Contributor
Clinical Quality Information (CQI) Work Group
Michael Holck, ICF - Contributor
Ewout Kramer, Firely - Contributor
Carl Leitner - Contributor
Rob McClure, Md Partners - Contributor
Evan Muchasak, NCQA - Contributor
Rob Reynolds, Smile Digital Health - Contributor
Brenin Rhodes, Smile Digital Health - Contributor
Bryn Rhodes, Smile Digital Health - Editor
Derek Ritz - Contributor
Chris Schuler, Smile Digital Health - Contributor
Jennifer Seeman, ICF - Contributor
Adam Stevenson, Smile Digital Health - Contributor
In addition, the editors would like to thank the many reviewers that provided detailed and insightful comments as part of balloting and preparation of this content, including Chris Moesel, Lloyd McKenzie, Jonathan Percival, Yan Heras, Paul Denning, Juliet Rubini, Angela Flanagan, Isaac Vetter, and many others.
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.uv.cql.r4) and R4B (hl7.fhir.uv.cql.r4b) are available.
Global Profiles
There are no Global profiles defined
Intellectual Property Statements
This publication includes IP covered under the following statements.
Most of the information on the CDC and ATSDR websites is not subject to copyright, is in the public domain, and may be freely used or reproduced without obtaining copyright permission.For information and exceptions regarding use of CDC material please see https://www.cdc.gov/other/agencymaterials.html.
The UCUM codes, UCUM table (regardless of format), and UCUM Specification are copyright 1999-2009, Regenstrief Institute, Inc. and the Unified Codes for Units of Measures (UCUM) Organization. All rights reserved. https://ucum.org/trac/wiki/TermsOfUse