Title: |
VTE ICU Library |
Id: |
VTEICU |
Version: |
5.0.000 |
Url: |
VTE ICU Library |
Official
|
VTEICU
|
Experimental: |
true |
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2019-09-03 |
Publisher: |
HL7 International / Clinical Quality Information |
Description: |
This library is used as an example in the FHIR Quality Measure Implementation Guide
|
Jurisdiction: |
001 |
Approval Date: |
2019-08-03 |
Related Artifacts: |
Dependencies
http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
- MAT Global Common Functions FHIR Libraryversion: null5.0.000)
http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23
http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
|
Parameters: |
Name | Type | Min | Max | In/Out |
Measurement Period | Period | 0 | 1 | In |
Patient | Patient | 0 | 1 | Out |
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Patient |
http://hl7.org/fhir/StructureDefinition/Patient |
|
|
Encounter |
http://hl7.org/fhir/StructureDefinition/Encounter |
|
code filter:
path: type
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
|
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.117.1.7.1.292
|
Location |
http://hl7.org/fhir/StructureDefinition/Location |
|
|
|
Content: text/cql |
library VTEICU version '5.0.000'
using FHIR version '4.0.1'
include 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
)
|
|
Content: application/elm+xml |
Encoded data (35852 characters)
|
|
Content: application/elm+json |
Encoded data (64356 characters)
|
|