eCQM QICore Content Implementation Guide
2024.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2024.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2024/ and changes regularly. See the Directory of published versions

Library: VTE

Official URL: https://madie.cms.gov/Library/VTE Version: 8.9.000
Active as of 2024-12-05 Responsible: The Joint Commission Computable Name: VTE
Other Identifiers: https://madie.cms.gov/login#672b9f71950f83621ce40a82 (use: official, )

Definitions and functions used for VTE measures, including VTE Initial Population.

Title: VTE
Id: VTE
Version: 8.9.000
Url: https://madie.cms.gov/Library/VTE
official

672b9f71950f83621ce40a82

Type:

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

code: logic-library

Date: 2024-12-05T19:08:43+00:00
Publisher: The Joint Commission
Description: Definitions and functions used for VTE measures, including VTE Initial Population.
Related Artifacts:

Dependencies

  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279
  • https://madie.cms.gov/Library/CQMCommon|2.2.000
  • https://madie.cms.gov/Library/FHIRHelpers|4.4.000
Content: text/cql
library VTE version '8.9.000'


using QICore version '4.1.1'

include FHIRHelpers version '4.4.000' called FHIRHelpers
include CQMCommon version '2.2.000' called CQMCommon

valueset "Obstetrical or Pregnancy Related Conditions": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263' 
valueset "Obstetrics VTE": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264'
valueset "Venous Thromboembolism": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279' 

parameter "Measurement Period" Interval<DateTime>

context Patient

  
define "Initial Population":
"Encounter with Age Range and without VTE Diagnosis or Obstetrical Conditions"

define "Admission without VTE or Obstetrical Conditions":
  CQMCommon."Inpatient Encounter" InpatientEncounter
   where not (exists (InpatientEncounter.encounterDiagnosis()) EncDx
                 where (EncDx.code in "Obstetrical or Pregnancy Related Conditions" 
                      or EncDx.code in "Venous Thromboembolism"
          				or EncDx.code in "Obstetrics VTE"
          			         )
                     )


define "Encounter with Age Range and without VTE Diagnosis or Obstetrical Conditions":
 ( CQMCommon."Inpatient Encounter" InpatientEncounter
     where AgeInYearsAt(date from start of InpatientEncounter.period) >= 18 )
    intersect "Admission without VTE or Obstetrical Conditions"