Clinical Practice Guidelines, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-recommendations/ and changes regularly. See the Directory of published versions
| Page standards status: Informative |
Use FHIR Library resources to package clinical logic and describe what is needed to evaluate it. A useful library has a stable identity and version, source and executable content as appropriate, and enough dependency and data-requirement information for an implementor to resolve its inputs.
| Component | Role | What an implementor checks |
|---|---|---|
| CQL | Human-readable clinical expressions | Intended meaning, model/version, terminology, and clinical test cases |
| Expression Logical Model (ELM) | Machine-readable representation of the expressions | Translator/runtime compatibility and agreement with the source |
| FHIR Library | Resource carrying content, metadata, and dependencies | Canonical identity, version, content types, related libraries, and data requirements |
| Model information | Description of the data model used by the expressions | Compatibility with the FHIR version and profiles supplied to evaluation |
The CQL specification defines language behavior. Using CQL With FHIR describes its use with FHIR and the relevant profiles. A FHIR server that stores Library resources does not thereby implement CQL evaluation.
Content that uses CQL must conform to the Using CQL With FHIR implementation guide. See Use of CQL for when this applies.
To execute the activity and CHF examples, make the published FHIRHelpers Library version 4.0.1 available from the Using CQL With FHIR package hl7.fhir.uv.cql#2.0.0. The CPG package declares it for Publisher validation. An example runtime must provision the dependency separately or resolve the versioned Library canonical recorded in the example.
Resolve the library and its included libraries, model information, terminology dependencies, and parameters. Review dataRequirement against the local data available for the patient and evaluation time. Preserve distinctions among missing data, an explicit negative, and a failed retrieval. CQL's null and temporal semantics are part of the logic being implemented, not presentation choices.
Test the source and executable representation together with positive, negative, boundary, temporal, and missing-data cases. If translating logic to another language, compare results for the supported constructs. Keep the test inputs and expected results with the content's version history so that dependency changes can be assessed.
Continue to methodology for authoring, execution methods for runtime choices, and the example libraries for resources already supplied by this guide.