feat(pipeline): complete multi-diagnosis classification, UHDDS role assignment, and robust ICD code retrieval

This commit is contained in:
Abhinav Gupta
2026-10-07 11:02:19 +05:30
parent f5ec8a66de
commit a75ec4700a
9 changed files with 314 additions and 85 deletions
@@ -51,6 +51,26 @@ FAMILY_TO_CODE_PREFIXES: dict[str, list[str]] = {
"asthma": ["J45"],
"liver_sarcoma": ["C22.4", "C22"],
"liver_metastasis": ["C78.7", "C78", "C7B.02"],
"myocardial_infarction": ["I21", "I22"],
"cholecystitis": ["K81", "K80"],
"cholelithiasis": ["K80"],
"hyperlipidemia": ["E78"],
"hypokalemia": ["E87.6", "E87"],
"hyperkalemia": ["E87.5", "E87"],
"hyponatremia": ["E87.1", "E87"],
"anemia": ["D50", "D64"],
"appendicitis": ["K35", "K36", "K37"],
"pancreatitis": ["K85"],
"atrial_fibrillation": ["I48"],
"coronary_artery_disease": ["I25"],
"cerebrovascular_accident": ["I63", "I67"],
"deep_vein_thrombosis": ["I82"],
"pulmonary_embolism": ["I26"],
"gerd": ["K21"],
"cellulitis": ["L03"],
"osteoarthritis": ["M15", "M16", "M17", "M19"],
"hypothyroidism": ["E03"],
"acute_kidney_injury": ["N17"],
}