Quality Measure Implementation Guide (STU3)
3.0.0 - ballot United States of America flag

Quality Measure Implementation Guide (STU3), published by Clinical Quality Information WG. This is not an authorized publication; it is the continuous build for version 3.0.0). This version is based on the current content of https://github.com/HL7/cqf-measures/ and changes regularly. See the Directory of published versions

Library: Terminology Library

Official URL: http://hl7.org/fhir/us/cqfmeasures/Library/Terminology Version: 1.0.0
Draft as of 2022-05-02 Computable Name: Terminology

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

Id: Terminology
Url: http://hl7.org/fhir/us/cqfmeasures/Library/Terminology
Version: 1.0.0
Name: Terminology
Title: Terminology Library
Status: draft
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2022-05-02T18:02:47+00:00
Publisher: Clinical Quality Information WG
Description: This library is the primary measure library for the terminology example measure
Jurisdiction: US
Related Artifacts:

Dependencies

  • http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
  • http://fhir.org/guides/common/Library/FHIRHelpers|4.0.1
  • http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929
Parameters:
NameTypeMinMaxIn/Out
Measurement PeriodPeriod01in
Inpatient EncounterEncounter0*out
Data Requirements:
TypeProfileMSCode Filter
Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter:
path: type
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929 code filter:
path: status

system: http://hl7.org/fhir/encounter-status

code: finished

Content: text/cql
/*
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 FHIRHelpers version '4.0.1' called FHIRHelpers

// 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

codesystem "SNOMED CT:2017-09": 'http://snomed.info/sct'
  version 'http://snomed.info/sct/731000124108/version/201709'

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

code "Venous foot pump, device (physical object)": '442023007' from "SNOMED CT:2017-09"
code "Right foot": '7769000' from "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'

// DeviceUseStatement has a known issue with the publication tooling
// so it is removed to allow this IG to publish until that is fixed
//define "Venous Foot Pumps Applied":
//  ["DeviceUseStatement": code in "Venous foot pump, device (physical object)"] D
//    where D.status = 'completed'
//      and D.bodySite ~ ToConcept("Right foot")
Content: application/elm+xml
Encoded data (10536 characters)