Quality Measure Implementation Guide
1.0.0 - STU 1

Quality Measure Implementation Guide - Downloaded Version null See the Directory of published versions

## Library: VTE ICU Library (Experimental)

Official URL: http://hl7.org/fhir/uv/cqm/Library/VTEICU | Version: 5.0.000
Standards status: Informative | Computable Name: VTEICU
Other Identifiers: http://example.org/fhir/cqi/ecqm/Library/Identifier#VTEICU (use: official, ), OID:2.16.840.1.113883.4.642.40.61.28.36

This library is used as an example in the FHIR Quality Measure Implementation Guide

Metadata
Title | VTE ICU Library
Version | 5.0.000
Identifier | VTEICU
Identifier | urn:oid:2.16.840.1.113883.4.642.40.61.28.36
Approval Date | 2019-08-03
Last Review Date | 2019-08-03
Experimental | true
Jurisdiction | Global (Whole world)
Steward (Publisher) | HL7 International / Clinical Quality Information
Description | This library is used as an example in the FHIR Quality Measure Implementation Guide
Type | Logic Library
Parameter | Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period
Parameter | Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient
Data Requirement | Type: Patient Profile(s): Patient
Library Content
CQL Content |
    /*
    This example is a work in progress and should not be considered a final specification
    or recommendation for guidance. This example will help guide and direct the process
    of finding conventions and usage patterns that meet the needs of the various stakeholders
    in the measure development community.
    */
    library VTEICU version '5.0.000'

    using FHIR version '4.0.1'

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

    include MATGlobalCommonFunctions version '5.0.000' called Global

    valueset "Intensive Care Unit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23'

    parameter "Measurement Period" Interval<DateTime>
      default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)

    context Patient

    define function "FromDayOfStartOfHospitalizationToDayAfterAdmission"(Encounter FHIR.Encounter ):
    	Interval[Global."ToDate"(start of Global."HospitalizationWithObservation"(Encounter)), Global."ToDate"(start of Encounter.period + 2 days))

    define function "StartOfFirstICU"(Encounter FHIR.Encounter ):
    	start of "FirstICULocationPeriod"(Encounter)

    define function "FromDayOfStartOfHospitalizationToDayAfterFirstICU"(Encounter FHIR.Encounter ):
    	Interval[Global."ToDate"(start of Global."HospitalizationWithObservation"(Encounter)), Global."ToDate"(StartOfFirstICU(Encounter)+ 2 days))

    define function "FirstICULocationPeriod"(Encounter FHIR.Encounter ):
    	"FirstInpatientIntensiveCareUnit"(Encounter).period

    define function "FirstInpatientIntensiveCareUnit"(Encounter FHIR.Encounter ):
    	First((Encounter.location)HospitalLocation
    			where Global.GetLocation(HospitalLocation.location).type in "Intensive Care Unit"
    				and HospitalLocation.period during Encounter.period
    			sort by start of period
    	)
ELM XML Content |
    Encoded data (41332 characters)
ELM JSON Content |
    Encoded data (72960 characters)
Generated using version 0.4.9 of the sample-content-ig Liquid templates