QI-Core Implementation Guide
6.0.0 - STU6 United States of America flag

QI-Core Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 6.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-qi-core/ and changes regularly. See the Directory of published versions

Model Info

Clinical Quality Language (CQL) is a high-level, domain-specific language focused on clinical quality and targeted at clinical knowledge artifact authors such as quality measure and decision support artifact developers. In addition, the CQL specification provides a machine-readable canonical representation called Expression Logical Model (ELM) targeted at implementations and designed to enable automated sharing of clinical knowledge.

To use CQL with FHIR, model information must be provided to the implementation environment. The CQF Common IG provides a FHIR-ModelInfo library that provides this information for the base FHIR specification, as well as FHIRHelpers and FHIRCommon libraries that provide commonly used functions and declarations for clinical knowledge artifact development. To use FHIR directly, follow the documentation provided in that implementation guide.

However, FHIR profiles include a wealth of computable information about the intended structure of the clinical data involved in an exchange, including terminology bindings, constraints, descriptive metadata, slices and extensions. To facilitate authoring that can easily reference this information, tooling to construct ModelInfo for an implementation guide is available. This tooling was used to produce the QICore-ModelInfo included in this implementation guide, but can also be used to create model info for any implementation guide.

Complete documentation for this tooling is provided in the CQFramework github repository:


As an example, to generate the ModelInfo file for QICore version 5.0.0, the following arguments are used:

-GenerateMIs -ip=C:\Users\UserName\Documents\Src\HL7\FHIR-Spec -rp="4.0.1;US-Core/5.0.1;QI-Core/5.0.0" -mn=QICore -mv=5.0.0 -im=false -ucp=true

This tooling produces a ModelInfo xml document which can then be packaged in a Library resource for distribution as part of a FHIR ecosystem. See the CQFMModelInfoLibrary profile in the Quality Measure IG for more information.