The developed medicalcoder package provides a unified, reproducible framework for ICD-based comorbidity assessment in modern clinical datasets.
Abstract
Abstract Objectives Comorbidity algorithms derived from International Classification of Diseases (ICD) codes are central to risk adjustment and cohort characterization, but existing software inconsistently handles mixed ICD-9/10 data and typically operates at the encounter level. We developed medicalcoder to address these limitations. Materials and Methods medicalcoder is an R package with an internal ICD database and unified interface for applying variants of the Charlson, Elixhauser, and Pediatric Complex Chronic Conditions (PCCC) algorithms. It supports full and compact ICD codes, mixed ICD versions, present-on-admission (POA) and primary diagnosis indicators, and encounter-level and cumulative longitudinal flagging. Results The medicalcoder package requires only R ≥ 3.5.0; no additional packages, internet access, or external data are required. Outputs are consistent with published reference implementations. Longitudinal flagging identifies additional comorbidity flags under a carry-forward assumption while accounting for POA or technology-dependent logic. Conclusions medicalcoder provides a unified, reproducible framework for ICD-based comorbidity assessment in modern clinical datasets.
An open-source R package is developed covering all eleven releases of both families of Elixhauser comorbidity measures, with a browser-based application over the same functions, and validated it against AHRQ's own SAS programs over 40,027,114 value-level comparisons with zero disagreements.
Results show that domain adaptation, task-aligned optimization, and evidence-guided verification can improve both coding accuracy and the auditability of model outputs.
Jian-Hua Qiu, Zhen Qin, Kai-Li Ma et al.· PeerJ Computer Science· 0 citations
Clinico is developed and evaluated, a coding agent that organises evidence by time and clinical relationships to adjudicate diagnoses and update their status during admission and had the highest observed estimates of principal-diagnosis agreement and complete code-set micro-F1 among evaluated methods.
Y. Li, Y. Shi, Y. Sun et al.· medRxiv· 0 citations
Large language model (LLM)-based systems that incorporated physician-defined clinical knowledge through guideline-enriched prompting, supervised fine-tuning, and a self-correction procedure enabled accurate identification of IHCA events and locations from routine clinical documentation.
D. Weissenbacher, J. Vo, A. Uy-Evanado et al.· medRxiv· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.