Id: KidneyHealthEvaluationFHIR Url: http://ecqi.healthit.gov/ecqms/Library/KidneyHealthEvaluationFHIR Version: 0.0.005 Identifier: value: KidneyHealthEvaluationFHIR Name: KidneyHealthEvaluationFHIR Title: KidneyHealthEvaluationFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-14T15:19:24+00:00 Description: KidneyHealthEvaluationFHIR Related Artifacts: Dependencies Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Patient http://hl7.org/fhir/Patient ;; Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;;;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;;;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 45755-6 display: Hospice care [Minimum Data Set] Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;; code filter: path: code system: http://loinc.org code: 45755-6 display: Hospice care [Minimum Data Set] ServiceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 ServiceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest ;;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 71007-9 display: Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal) Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;; code filter: path: code system: http://loinc.org code: 71007-9 display: Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal) Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135 Content: text/cql library KidneyHealthEvaluationFHIR version '0.0.005'#xD; #xD; using QICore version '4.1.1' /*This spec aligns with AU2023/PY2024 QDM version*/#xD; #xD; #xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; include Hospice version '6.7.000' called Hospice#xD; include PalliativeCare version '1.7.000' called PalliativeCare#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; #xD; codesystem "SNOMEDCT": 'http://snomed.info/sct'#xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'#xD; #xD; valueset "Acute Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083'#xD; valueset "Annual Wellness Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'#xD; valueset "Chronic Kidney Disease, Stage 5": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002'#xD; valueset "Diabetes": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001'#xD; valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'#xD; valueset "End Stage Renal Disease": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353'#xD; valueset "Estimated Glomerular Filtration Rate": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000'#xD; valueset "Home Healthcare Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'#xD; valueset "Hospice Care Ambulatory": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584'#xD; valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'#xD; valueset "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'#xD; valueset "Palliative or Hospice Care": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1579'#xD; valueset "Preventive Care Services Established Office Visit, 18 and Up": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025'#xD; valueset "Preventive Care Services Initial Office Visit, 18 and Up": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023'#xD; valueset "Telephone Visits": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'#xD; valueset "Urine Albumin Creatinine Ratio": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007'#xD; #xD; code "Discharge to healthcare facility for hospice care (procedure)": '428371000124100' from "SNOMEDCT" display 'Discharge to healthcare facility for hospice care (procedure)'#xD; code "Discharge to home for hospice care (procedure)": '428361000124107' from "SNOMEDCT" display 'Discharge to home for hospice care (procedure)'#xD; code "AMB": 'AMB' from "ActCode" display 'Ambulatory'#xD; code "active": 'active' from "ConditionClinicalStatusCodes"#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Initial Population":#xD; AgeInYearsAt(date from start of "Measurement Period") in Interval[18, 75]#xD; and "Has Active Diabetes Overlaps Measurement Period"#xD; and "Has Outpatient Visit During Measurement Period"#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Denominator Exclusions":#xD; exists "Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period"#xD; or Hospice."Has Hospice Services"#xD; or PalliativeCare."Has Palliative Care in the Measurement Period"#xD; #xD; define "Numerator":#xD; "Has Kidney Panel Performed During Measurement Period"#xD; #xD; define "Has Kidney Panel Performed During Measurement Period":#xD; exists ( ["Observation": "Estimated Glomerular Filtration Rate"] eGFRTest#xD; where QICoreCommon."ToInterval" ( eGFRTest.effective ) during "Measurement Period"#xD; and eGFRTest.value is not null#xD; and eGFRTest.status in { 'final', 'amended', 'corrected' }#xD; )#xD; and exists ( ["Observation": "Urine Albumin Creatinine Ratio"] uACRTest#xD; where QICoreCommon."ToInterval" ( uACRTest.effective ) during "Measurement Period"#xD; and uACRTest.value is not null#xD; and uACRTest.status in { 'final', 'amended', 'corrected' }#xD; )#xD; #xD; define "Has Outpatient Visit During Measurement Period":#xD; exists ( ( ["Encounter": "Annual Wellness Visit"]#xD; union ["Encounter": "Home Healthcare Services"]#xD; union ["Encounter": "Office Visit"]#xD; union ["Encounter": "Outpatient Consultation"]#xD; union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"]#xD; union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"]#xD; union ["Encounter": "Telephone Visits"] ) ValidEncounter#xD; where ValidEncounter.period during "Measurement Period"#xD; and ValidEncounter.class ~ "AMB"#xD; and ValidEncounter.status = 'finished'#xD; )#xD; #xD; define "Has Active Diabetes Overlaps Measurement Period":#xD; exists ( ["Condition": "Diabetes"] Diabetes#xD; where QICoreCommon."ToPrevalenceInterval" ( Diabetes ) overlaps "Measurement Period"#xD; and Diabetes.clinicalStatus ~ "active"#xD; )#xD; #xD; define "Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period":#xD; ( ["Condition": "Chronic Kidney Disease, Stage 5"]#xD; union ["Condition": "End Stage Renal Disease"] ) CKDOrESRD#xD; where QICoreCommon."ToPrevalenceInterval" ( CKDOrESRD ) overlaps "Measurement Period"#xD; and CKDOrESRD.clinicalStatus ~ "active"#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" Content: application/elm+xml Encoded data (143484 characters) Content: application/elm+json Encoded data (205916 characters)
Discharge to healthcare facility for hospice care (procedure)
Discharge to home for hospice care (procedure)
Code system ConditionClinicalStatusCodes
Value set Chronic Kidney Disease, Stage 5
Value set Estimated Glomerular Filtration Rate
Value set Preventive Care Services Established Office Visit, 18 and Up
Value set Preventive Care Services Initial Office Visit, 18 and Up
Value set Urine Albumin Creatinine Ratio
Has Active Diabetes Overlaps Measurement Period
Has Outpatient Visit During Measurement Period
Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period
Has Kidney Panel Performed During Measurement Period
Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)