Clinical Operations Analytics Path · Mission 2 of 25Easy

Pull the chronic disease list

Filter dim_icd on a boolean flag column. Chronic-condition codes drive every long-term care management roster — knowing what's in the bucket is the first step before counting it.

The Brief

Lin ParkPopulation Health Analystslack-dm

Care management is staffing up the chronic-disease registry next quarter and they need the list of codes that qualify. Give me every ICD-10 code in dim_icd flagged as chronic — code, description, CCSR category, and body system. Sort by CCSR description so similar conditions cluster. Anything where is_chronic = 1 belongs in the registry; non-chronic acute codes (pneumonia, appendicitis, MI) are out.

You'll practice

WHERE flag = 1ORDER BYBoolean filters

Tables & columns available

dim_icddim7 columns
ColumnTypeKey
icd_codeTEXTPK
icd_descriptionTEXT
ccsr_categoryTEXT
ccsr_descriptionTEXT
body_systemTEXT
is_chronicINT
hcc_flagINT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Single table — dim_icd. WHERE is_chronic = 1.

Hint 2

is_chronic is stored as INTEGER — 1 = chronic, 0 = acute. Don't compare to the string 'true' or to 1.0; integer equality is what works.

Hint 3

ORDER BY ccsr_description so the rollup categories cluster. Within each CCSR you'll often see multiple ICD subcodes.