Skip to content

Commit 6aa3306

Browse files
docs(mimic-iv): document ICD-10-CM extensions in charlson.sql
Explain why C4A/C7A/C7B are handled separately from Quan et al. (2005). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3a914fc commit 6aa3306

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

mimic-iv/concepts/comorbidity/charlson.sql

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
-- (3) Quan H, Sundararajan V, Halfon P, et al. Coding algorithms for
1616
-- defining Comorbidities in ICD-9-CM and ICD-10 administrative data.
1717
-- Med Care. 2005 Nov; 43(11): 1130-9.
18+
--
19+
-- ICD-10-CM extensions (C4A, C7A, C7B) are not part of WHO ICD-10 and
20+
-- were not defined in Quan et al. (2005). The malignant_cancer mapping
21+
-- below follows Quan by excluding skin malignancy (C4A Merkel cell) and
22+
-- by not mapping C7A/C7B neuroendocrine categories, which fall outside
23+
-- the WHO ICD-10 code ranges used in the publication.
1824
-- ------------------------------------------------------------------
1925

2026
WITH diag AS (
@@ -302,7 +308,12 @@ WITH diag AS (
302308
OR
303309
SUBSTR(icd10_code, 1, 3) BETWEEN 'C37' AND 'C41'
304310
OR
305-
SUBSTR(icd10_code, 1, 3) BETWEEN 'C45' AND 'C58'
311+
-- Split C45-C58 to exclude C4A (Merkel cell carcinoma), which
312+
-- lexically falls inside BETWEEN 'C45' AND 'C58' but is skin
313+
-- malignancy excluded by Quan et al. (2005).
314+
SUBSTR(icd10_code, 1, 3) BETWEEN 'C45' AND 'C49'
315+
OR
316+
SUBSTR(icd10_code, 1, 3) BETWEEN 'C50' AND 'C58'
306317
OR
307318
SUBSTR(icd10_code, 1, 3) BETWEEN 'C60' AND 'C76'
308319
OR

0 commit comments

Comments
 (0)