eCQM QICore Content Implementation Guide
2023.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2023.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2023/ and changes regularly. See the Directory of published versions

## Library: KidneyHealthEvaluationFHIR

Official URL: http://ecqi.healthit.gov/ecqms/Library/KidneyHealthEvaluationFHIR | Version: 0.0.005
Active as of 2023-08-14 | Computable Name: KidneyHealthEvaluationFHIR
Other Identifiers: https://madie.cms.gov/login#KidneyHealthEvaluationFHIR (use: official, )

KidneyHealthEvaluationFHIR

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'

    using QICore version '4.1.1'

    /*This spec aligns with AU2023/PY2024 QDM version*/

    include FHIRHelpers version '4.3.000' called FHIRHelpers
    include SupplementalDataElements version '3.4.000' called SDE
    include CQMCommon version '1.4.000' called CQMCommon
    include Hospice version '6.7.000' called Hospice
    include PalliativeCare version '1.7.000' called PalliativeCare
    include QICoreCommon version '1.5.000' called QICoreCommon

    codesystem "SNOMEDCT": 'http://snomed.info/sct'
    codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
    codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'

    valueset "Acute Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083'
    valueset "Annual Wellness Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'
    valueset "Chronic Kidney Disease, Stage 5": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002'
    valueset "Diabetes": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001'
    valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'
    valueset "End Stage Renal Disease": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353'
    valueset "Estimated Glomerular Filtration Rate": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000'
    valueset "Home Healthcare Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'
    valueset "Hospice Care Ambulatory": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584'
    valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'
    valueset "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'
    valueset "Palliative or Hospice Care": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1579'
    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'
    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'
    valueset "Telephone Visits": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'
    valueset "Urine Albumin Creatinine Ratio": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007'

    code "Discharge to healthcare facility for hospice care (procedure)": '428371000124100' from "SNOMEDCT" display 'Discharge to healthcare facility for hospice care (procedure)'
    code "Discharge to home for hospice care (procedure)": '428361000124107' from "SNOMEDCT" display 'Discharge to home for hospice care (procedure)'
    code "AMB": 'AMB' from "ActCode" display 'Ambulatory'
    code "active": 'active' from "ConditionClinicalStatusCodes"

    parameter "Measurement Period" Interval<DateTime>

    context Patient

    define "Initial Population":
      AgeInYearsAt(date from start of "Measurement Period") in Interval[18, 75]
        and "Has Active Diabetes Overlaps Measurement Period"
        and "Has Outpatient Visit During Measurement Period"

    define "Denominator":
      "Initial Population"

    define "Denominator Exclusions":
      exists "Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period"
        or Hospice."Has Hospice Services"
        or PalliativeCare."Has Palliative Care in the Measurement Period"

    define "Numerator":
      "Has Kidney Panel Performed During Measurement Period"

    define "Has Kidney Panel Performed During Measurement Period":
      exists ( ["Observation": "Estimated Glomerular Filtration Rate"] eGFRTest
          where QICoreCommon."ToInterval" ( eGFRTest.effective ) during "Measurement Period"
            and eGFRTest.value is not null
            and eGFRTest.status in { 'final', 'amended', 'corrected' }
      )
        and exists ( ["Observation": "Urine Albumin Creatinine Ratio"] uACRTest
            where QICoreCommon."ToInterval" ( uACRTest.effective ) during "Measurement Period"
              and uACRTest.value is not null
              and uACRTest.status in { 'final', 'amended', 'corrected' }
        )

    define "Has Outpatient Visit During Measurement Period":
      exists ( ( ["Encounter": "Annual Wellness Visit"]
          union ["Encounter": "Home Healthcare Services"]
          union ["Encounter": "Office Visit"]
          union ["Encounter": "Outpatient Consultation"]
          union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"]
          union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"]
          union ["Encounter": "Telephone Visits"] ) ValidEncounter
          where ValidEncounter.period during "Measurement Period"
            and ValidEncounter.class ~ "AMB"
            and ValidEncounter.status = 'finished'
      )

    define "Has Active Diabetes Overlaps Measurement Period":
      exists ( ["Condition": "Diabetes"] Diabetes
          where QICoreCommon."ToPrevalenceInterval" ( Diabetes ) overlaps "Measurement Period"
            and Diabetes.clinicalStatus ~ "active"
      )

    define "Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period":
      ( ["Condition": "Chronic Kidney Disease, Stage 5"]
        union ["Condition": "End Stage Renal Disease"] ) CKDOrESRD
        where QICoreCommon."ToPrevalenceInterval" ( CKDOrESRD ) overlaps "Measurement Period"
          and CKDOrESRD.clinicalStatus ~ "active"

    define "SDE Ethnicity":
      SDE."SDE Ethnicity"

    define "SDE Payer":
      SDE."SDE Payer"

    define "SDE Race":
      SDE."SDE Race"

    define "SDE Sex":
      SDE."SDE Sex"
Content: application/elm+xml
    Encoded data (143484 characters)
Content: application/elm+json
    Encoded data (205916 characters)