Quality Measure Implementation Guide
2.0.0-ballot - STU 2 Ballot International flag

Quality Measure Implementation Guide, published by HL7 International / Clinical Quality Information. 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/fhir-cqm/ and changes regularly. See the Directory of published versions

Library: Terminology Library

Official URL: http://hl7.org/fhir/uv/cqm/Library/Terminology Version: 1.0.0
Standards status: Trial-use Draft as of 2026-04-03 Maturity Level: 4 Computable Name: Terminology
Other Identifiers: OID:2.16.840.1.113883.4.642.40.61.28.35

This library is the primary measure library for the terminology example measure

Metadata
Title Terminology Library
Version 1.0.0
Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.35
Status Draft
Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm
Topic FHIR
Topic CQL
Steward (Publisher) HL7 International / Clinical Quality Information
Description

This library is the primary measure library for the terminology example measure

Type logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency Description: Library FHIRHelpers
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Dependency Description: Library FHIRCommon
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
Dependency Description: Library Common
Resource: Common Terminology Libraryversion: null1.0.0)
Canonical URL: http://hl7.org/fhir/uv/cqm/Library/CommonTerminologies|1.0.0
Dependency Description: Value Set Encounter Inpatient SNOMEDCT Value Set
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307|20260210
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307|20260210
Data Requirement Type: Encounter
Profile(s): Encounter
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307|20260210
Data Requirement Type: Procedure
Profile(s): Procedure
Code Filter(s):
Path: code
Code(s): SNOMED CT: 442023007 (442023007) (version = http://snomed.info/sct/731000124108/version/201709 )
Parameters
Name Use Card. Type Documentation
Measurement Period In 0..1 Period
Inpatient Encounter Out 0..* Encounter
Venous Foot Pumps Applied Out 0..* Procedure
Initial Population Out 0..* Encounter
Library Content
CQL Content
/*
This example is purely for illustration purposes to show how all the elements of a
FHIR-based quality measure are represented. It is intentionally simplified to show
specific aspects of a measure, and is not intended as an example of a clinically
meaningful measure.
*/
library Terminology version '1.0.0'

using FHIR version '4.0.1'

include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers
include hl7.fhir.uv.cql.FHIRCommon version '2.0.0' called FHIRCommon

include CommonTerminologies version '1.0.0' called Common

// NOTE: Versioning is used in this example to illustrate completely how versioning is applied
// References to specific versions of code systems and value sets should be used only when necessary

valueset "Encounter Inpatient SNOMEDCT Value Set":
   'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307|20260210'

code "Venous foot pump, device (physical object)": '442023007' from Common."SNOMED CT:2017-09"
code "Right foot": '7769000' from Common."SNOMED CT:2017-09"

parameter "Measurement Period" Interval<DateTime>

define "Inpatient Encounter":
  ["Encounter": type in "Encounter Inpatient SNOMEDCT Value Set"] E
    where E.status = 'finished'

define "Venous Foot Pumps Applied":
  ["Procedure": code ~ "Venous foot pump, device (physical object)"] D
    where D.status = 'completed'
      and D.bodySite.includesCode("Right foot")

define "Initial Population":
  "Inpatient Encounter"
ELM XML Content
Encoded data 
ELM JSON Content
Encoded data 
Generated using version 0.5.4 of the sample-content-ig Liquid templates