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 /*#xD; This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage patterns that meet the needs of the various stakeholders#xD; in the measure development community.#xD; */#xD; library VTEICU version '5.0.000'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; include MATGlobalCommonFunctions version '5.0.000' called Global#xD; #xD; valueset "Intensive Care Unit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)#xD; #xD; context Patient#xD; #xD; define function "FromDayOfStartOfHospitalizationToDayAfterAdmission"(Encounter FHIR.Encounter ):#xD; Interval[Global."ToDate"(start of Global."HospitalizationWithObservation"(Encounter)), Global."ToDate"(start of Encounter.period + 2 days))#xD; #xD; define function "StartOfFirstICU"(Encounter FHIR.Encounter ):#xD; start of "FirstICULocationPeriod"(Encounter)#xD; #xD; define function "FromDayOfStartOfHospitalizationToDayAfterFirstICU"(Encounter FHIR.Encounter ):#xD; Interval[Global."ToDate"(start of Global."HospitalizationWithObservation"(Encounter)), Global."ToDate"(StartOfFirstICU(Encounter)+ 2 days))#xD; #xD; define function "FirstICULocationPeriod"(Encounter FHIR.Encounter ):#xD; "FirstInpatientIntensiveCareUnit"(Encounter).period#xD; #xD; define function "FirstInpatientIntensiveCareUnit"(Encounter FHIR.Encounter ):#xD; First((Encounter.location)HospitalLocation#xD; where Global.GetLocation(HospitalLocation.location).type in "Intensive Care Unit"#xD; and HospitalLocation.period during Encounter.period#xD; sort by start of period#xD; )#xD; 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
HL7 International / Clinical Quality Information
This library is used as an example in the FHIR Quality Measure Implementation Guide