From 10d5c89ecfb6a18a84785e1c7aaf21340feb6e8a Mon Sep 17 00:00:00 2001 From: tuvaforrest Date: Mon, 23 Oct 2023 17:05:43 -0400 Subject: [PATCH] removed comments, reran docs, pulled in latest changes --- ...asures__int_nqf0034_exclude_advanced_illness.sql | 1 - ...ality_measures__int_nqf0034_exclude_dementia.sql | 1 - ...ures__int_nqf0034_exclude_hospice_palliative.sql | 2 +- .../quality_measures__int_nqf0034_numerator.sql | 13 +++++++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_advanced_illness.sql b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_advanced_illness.sql index 26dbff460..614f28d52 100644 --- a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_advanced_illness.sql +++ b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_advanced_illness.sql @@ -320,4 +320,3 @@ select , exclusion_reason , '{{ var('tuva_last_run')}}' as tuva_last_run from qualifying_encounters --- qualify row_number() over (partition by patient_id order by exclusion_date) = 1 \ No newline at end of file diff --git a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_dementia.sql b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_dementia.sql index 6cd599e1d..28088c714 100644 --- a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_dementia.sql +++ b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_dementia.sql @@ -155,4 +155,3 @@ select , exclusion_reason , '{{ var('tuva_last_run')}}' as tuva_last_run from frailty_with_dementia d -qualify row_number() over (partition by patient_id order by exclusion_date ) = 1 \ No newline at end of file diff --git a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_hospice_palliative.sql b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_hospice_palliative.sql index f8618d44c..5fddaa72f 100644 --- a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_hospice_palliative.sql +++ b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_exclude_hospice_palliative.sql @@ -5,7 +5,7 @@ /* DENOMINATOR EXCLUSIONS: -Patients with a diagnosis or past history of total colectomy or colorectal cancer: G9711 +Patient was provided hospice services any time during the measurement period: G9710 */ diff --git a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_numerator.sql b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_numerator.sql index df9d15769..18d75160c 100644 --- a/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_numerator.sql +++ b/models/quality_measures/intermediate/nqf0034_colorectal_cancer_screening/quality_measures__int_nqf0034_numerator.sql @@ -3,6 +3,19 @@ ) }} +/* +Patients with one or more screenings for colorectal cancer. Appropriate screenings are defined by any one of the +following criteria: +- Fecal occult blood test (FOBT) during the measurement period +- Flexible sigmoidoscopy during the measurement period or the four years prior to the measurement period +- Colonoscopy during the measurement period or the nine years prior to the measurement period +- Computed tomography (CT) colonography during the measurement period or the four years prior to the +measurement period. +- Fecal immunochemical DNA test (FIT-DNA) during the measurement period or the two years prior to the +measurement period. + +*/ + with denominator as ( select