|
15 | 15 | -- (3) Quan H, Sundararajan V, Halfon P, et al. Coding algorithms for |
16 | 16 | -- defining Comorbidities in ICD-9-CM and ICD-10 administrative data. |
17 | 17 | -- 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. |
18 | 24 | -- ------------------------------------------------------------------ |
19 | 25 |
|
20 | 26 | WITH diag AS ( |
@@ -302,7 +308,12 @@ WITH diag AS ( |
302 | 308 | OR |
303 | 309 | SUBSTR(icd10_code, 1, 3) BETWEEN 'C37' AND 'C41' |
304 | 310 | 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' |
306 | 317 | OR |
307 | 318 | SUBSTR(icd10_code, 1, 3) BETWEEN 'C60' AND 'C76' |
308 | 319 | OR |
|
0 commit comments