Closed tnamli closed 1 year ago
Thanks @tnamli. I have double checked the data files for MIMIC-IV. Just to confirm, we do list the leading zeros for ICD-9 codes, e.g.:
icd_code | icd_version | long_title |
---|---|---|
00321 | 9 | Salmonella meningitis |
My guess is that whatever tool you are using to view the data is loading the field as an number. As you see in the building scripts, the field should be treated as a string/char:
Prerequisites
Description
You don't use the leading 0s while converting actual ICD-9 codes to values in "icd_code". For some of the codes, this causes duplications with different meanings. For example, in the table there are two entries for ICD-9 code "1882" from which one of them is in fact "018.82" meaning "Other specified miliary tuberculosis, bacteriological or histological examination unknown (at present)" and other one "188.2" meaning "Malignant neoplasm of lateral wall of urinary bladder".