Metadata Version 0.5.3 Status Draft Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm Steward (Publisher) HL7 International - [Some] Work Group Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1 Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1 Dependency Description: Library SDE Resource: SupplementalDataElementsExample Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/SupplementalDataElementsExample Dependency Description: Library CQMCommon Resource: CQMCommonExample Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/CQMCommonExample Dependency Description: Library QICoreCommon Resource: QICoreCommonExample Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/QICoreCommonExample Dependency Description: Code system LOINC Resource: Logical Observation Identifiers, Names and Codes (LOINC) Canonical URL: http://loinc.org Dependency Description: Code system ActCode Resource: ActCode Canonical URL: http://terminology.hl7.org/CodeSystem/v3-ActCode Dependency Description: Code system Source of Payment Typology Resource: Source of Payment Typology Canonical URL: https://nahdo.org/sopt Dependency Description: Value set Bicarbonate lab test Resource: Bicarbonate lab test Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.139 Dependency Description: Value set birth date Resource: birth date Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.560.100.4 Dependency Description: Value set Body temperature Resource: Body temperature Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.152 Dependency Description: Value set Creatinine lab test Resource: Creatinine lab test Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.2363 Dependency Description: Value set Emergency Department Visit Resource: Emergency Department Visit Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 Dependency Description: Value set Encounter Inpatient Resource: Encounter Inpatient Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Dependency Description: Value set Ethnicity Resource: Ethnicity Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837 Dependency Description: Value set Heart Rate Resource: Heart Rate Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.149 Dependency Description: Value set Hematocrit lab test Resource: Hematocrit lab test Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114 Dependency Description: Value set Medicare payer Resource: Medicare payer Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1104.10 Dependency Description: Value set Observation Services Resource: Observation Services Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143 Dependency Description: Value set ONC Administrative Sex Resource: ONC Administrative Sex Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1 Dependency Description: Value set Oxygen Saturation by Pulse Oximetry Resource: Oxygen Saturation by Pulse Oximetry Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.151 Dependency Description: Value set Payer Resource: Payer Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Dependency Description: Value set Platelet count lab test Resource: Platelet count lab test Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.127 Dependency Description: Value set Race Resource: Race Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836 Dependency Description: Value set Sodium lab test Resource: Sodium lab test Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.119 Dependency Description: Value set Systolic Blood Pressure Resource: Systolic Blood Pressure Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.163 Dependency Description: Value set White blood cells count lab test Resource: White blood cells count lab test Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129 Data Requirement Type: Patient Profile(s): QICore Patient Data Requirement Type: Encounter Profile(s): QICore Encounter Must Support Elements: type, status, status.value, class, period, id, id.value Code Filter(s): Path: type ValueSet: Encounter Inpatient Data Requirement Type: Coverage Profile(s): QICore Coverage Must Support Elements: type Code Filter(s): Path: type ValueSet: Medicare payer Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Heart Rate Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Systolic Blood Pressure Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Body temperature Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Oxygen Saturation by Pulse Oximetry Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Hematocrit lab test Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Platelet count lab test Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: White blood cells count lab test Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Sodium lab test Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Bicarbonate lab test Data Requirement Type: Observation Profile(s): QICore Observation Must Support Elements: code, effective, status, status.value, value, issued, issued.value Code Filter(s): Path: code ValueSet: Creatinine lab test Parameters Name Use Card. Type Documentation Measurement Period In 0..1 Period Patient Out 0..1 Resource SDE Ethnicity Out 0..1 Resource SDE Payer Out 0..* Resource SDE Race Out 0..1 Resource SDE Sex Out 0..1 Coding Inpatient Encounters Out 0..* Resource Initial Population Out 0..* Resource Results Out 0..* string Library Content CQL Content library HybridHospitalWideMortalityFHIRExample version '0.5.3-cibuild'#xD; #xD; /*This FHIR-based measure has been derived from CMS844v4.0.0 - QDM 5.6 Specifications*/#xD; #xD; using QICore version '4.1.1'#xD; #xD; include FHIRHelpers version '4.0.1' called FHIRHelpers#xD; include SupplementalDataElementsExample called SDE#xD; include CQMCommonExample called CQMCommon#xD; include QICoreCommonExample called QICoreCommon#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; codesystem "Source of Payment Typology": 'https://nahdo.org/sopt'#xD; #xD; valueset "Bicarbonate lab test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.139'#xD; valueset "birth date": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.560.100.4'#xD; valueset "Body temperature": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.152'#xD; valueset "Creatinine lab test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.2363'#xD; valueset "Emergency Department Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292'#xD; valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'#xD; valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'#xD; valueset "Heart Rate": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.149'#xD; valueset "Hematocrit lab test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114'#xD; valueset "Medicare payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1104.10'#xD; valueset "Observation Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143'#xD; valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'#xD; valueset "Oxygen Saturation by Pulse Oximetry": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.151'#xD; valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'#xD; valueset "Platelet count lab test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.127'#xD; valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'#xD; valueset "Sodium lab test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.119'#xD; valueset "Systolic Blood Pressure": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.163'#xD; valueset "White blood cells count lab test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129'#xD; #xD; code "Birthdate": '21112-8' from "LOINC" display 'Birthdate'#xD; code "IMP": 'IMP' from "ActCode" display 'Inpatient'#xD; code "ACUTE": 'ACUTE' from "ActCode" display 'Acute'#xD; code "NONAC": 'NONAC' from "ActCode" display 'Nonacute'#xD; code "OBSENC": 'OBSENC' from "ActCode" display 'Observation Encounter'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; default Interval[@2024-01-01T00:00:00.0, @2025-01-01T00:00:00.0)#xD; #xD; context Patient#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex"#xD; #xD; define "Initial Population":#xD; "Inpatient Encounters"#xD; #xD; define "Inpatient Encounters":#xD; from#xD; ["Encounter": "Encounter Inpatient"] InpatientEncounter,#xD; ["Coverage": "Medicare payer"] Payer#xD; where InpatientEncounter.status = 'finished'#xD; and ( InpatientEncounter.class ~ "IMP"#xD; or InpatientEncounter.class ~ "ACUTE"#xD; or InpatientEncounter.class ~ "NONAC"#xD; or InpatientEncounter.class ~ "OBSENC"#xD; )#xD; and AgeInYearsAt(date from start of InpatientEncounter.period) in Interval[65, 94]#xD; and InpatientEncounter.hospitalizationWithObservationLengthofStay ( ) < 365#xD; and InpatientEncounter.period ends during day of "Measurement Period"#xD; return InpatientEncounter#xD; /*Inpatient encounter initially listed as AMB class; changed this to inpatient classes as discussed with CORE team- AM*/#xD; #xD; #xD; define "Results":#xD; flatten {#xD; //First physical exams (vital signs) #xD; "FirstPhysicalExamWithEncounterId"([Observation: "Heart Rate"], 'FirstHeartRate'), "FirstPhysicalExamWithEncounterId"([Observation: "Systolic Blood Pressure"], 'FirstSystolicBP'), "FirstPhysicalExamWithEncounterId"([Observation: "Body temperature"], 'FirstTemperature'), "FirstPhysicalExamWithEncounterId"([Observation: "Oxygen Saturation by Pulse Oximetry"], 'FirstO2Saturation'),#xD; //First lab tests#xD; "FirstLabTestWithEncounterId"([Observation: "Hematocrit lab test"], 'FirstHematocrit'), "FirstLabTestWithEncounterId"([Observation: "Platelet count lab test"], 'FirstPlateletCount'), "FirstLabTestWithEncounterId"([Observation: "White blood cells count lab test"], 'FirstWhiteBloodCell'), "FirstLabTestWithEncounterId"([Observation: "Sodium lab test"], 'FirstSodium'), "FirstLabTestWithEncounterId"([Observation: "Bicarbonate lab test"], 'FirstBicarbonate'), "FirstLabTestWithEncounterId"([Observation: "Creatinine lab test"], 'FirstCreatinine') }#xD; #xD; define function "FirstLabTestWithEncounterId"(LabList List<Observation>, CCDE String):#xD; "Inpatient Encounters" Encounter#xD; let firstlab: First(LabList Lab#xD; where Lab.issued is not null#xD; and Lab.issued during Interval[start of Encounter.period - 1440 minutes, start of Encounter.period + 1440 minutes]#xD; and Lab.status in { 'final', 'amended', 'preliminary' }#xD; and Lab.value is not null#xD; sort by issued#xD; )#xD; return '\r\n' & CCDE & ',' & Encounter.id & ',' & ( ToString(firstlab.value as Quantity) ) & ',' & ToString(firstlab.issued)#xD; #xD; define function "FirstPhysicalExamWithEncounterId"(ExamList List<Observation>, CCDE String):#xD; "Inpatient Encounters" Encounter#xD; let firstexam: First(ExamList Exam#xD; where start of QICoreCommon."ToInterval"(Exam.effective) is not null#xD; and start of QICoreCommon."ToInterval"(Exam.effective) during Interval[start of Encounter.period - 1440 minutes, start of Encounter.period + 120 minutes]#xD; and Exam.status in { 'final', 'amended', 'preliminary' }#xD; and Exam.value is not null#xD; sort by start of QICoreCommon."ToInterval"(effective)#xD; )#xD; return '\r\n' & CCDE & ',' & Encounter.id & ' , ' & ( ToString(firstexam.value as Quantity) ) & ',' & ToString(start of QICoreCommon."ToInterval"(firstexam.effective)) ELM XML Content Encoded data ELM JSON Content Encoded data Generated using version 0.5.3 of the sample-content-ig Liquid templates
Value set Oxygen Saturation by Pulse Oximetry
Value set White blood cells count lab test