Clinical Quality Language Specification
2.0.0-ballot - R2 STU 1 (Ballot)

Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 2.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/cql/ and changes regularly. See the Directory of published versions

## Examples

Page standards status: Informative | Maturity Level: N/A

The examples provided here illustrate the use of Clinical Quality Language to express the logic involved in decision support and quality measurement artifacts. The examples are intended for educational and demonstration purposes only and should not be considered endorsed or production ready.

### Chlamydia Screening Examples

These examples illustrate the logic for coordinated decision support and quality measurement artifacts expressed in CQL, as developed in the Author's Guide. The first set illustrates independent logic, and the second set illustrates the same artifacts using a common library to share logic.

#### Independent Artifacts

##### Chlamydia Screening Quality Measure

- CQL
- ELM (XML)
- ELM (JSON)

##### Chlamydia Screening Decision Support

- CQL
- ELM (XML)
- ELM (JSON)

ELM Artifacts with Annotations Included:

- ELM (XML)
- ELM (JSON)

ELM Artifacts with Debug Information Included:

- ELM (XML)
- ELM (JSON)

#### Shared Logic

##### Common Library

- CQL
- ELM (XML)
- ELM (JSON)

##### Chlamydia Screening Quality Measure Using Common Library

- CQL
- ELM (XML)
- ELM (JSON)

##### Chlamydia Screening Decision Support Using Common Library

- CQL
- ELM (XML)
- ELM (JSON)

### Example Quality Measures

These examples illustrate various quality measures expressed in CQL.

#### CMS26v2

- CQL
- ELM (XML)
- ELM (JSON)

#### CMS55v1

Using QUICK:

- CQL
- ELM (XML)
- ELM (JSON)

Using QDM:

- CQL
- ELM (XML)

#### CMS135

- CQL
- ELM (XML)
- ELM (JSON)

#### CMS146v2

Using QUICK:

- CQL
- ELM (XML)
- ELM (JSON)

Using QDM:

- CQL
- ELM (XML)
- ELM (JSON)

#### CMS154v1

- CQL
- ELM (XML)
- ELM (JSON)

#### CMS179v2

Using QUICK:

- CQL
- ELM (XML)
- ELM (JSON)

Using QDM:

- CQL
- ELM (XML)
- ELM (JSON)

#### Mother Infant Measure

This example illustrates the use of related-context retrieves to access the mother's record from a measure focused on an infant.

- CQL
- ELM (XML)
- ELM (JSON)