Abstract
ClinCode is an AI-assisted medical coding platform designed to support the conversion of unstructured clinical documentation into evidence-backed ICD-10-CM code suggestions. The project addresses limitations in manual and keyword-driven computer-assisted coding, particularly errors caused by negation, family history, historical conditions, uncertainty, conflicting documentation, and unsupported free-form code generation. The proposed workflow combines clinical named entity recognition, assertion detection, hybrid retrieval, cross-encoder reranking, confidence calibration, retrieval-augmented generation (RAG), and a multi-agent investigation workflow coordinated with LangGraph. Candidate codes are retrieved from an ICD-10-CM knowledge base rather than freely invented by a language model, and suggested codes are linked to supporting evidence from the clinical note. Low-confidence or conflicting cases can be routed to an investigation team comprising an Evidence Analyst, Guideline Analyst, Specificity Agent, Query Drafter, Adversarial Verifier, and Supervisor. The platform is explicitly human-in-the-loop: the medical coder remains responsible for the final decision. The project specification also includes FastAPI APIs, a React review console, PostgreSQL storage, Redis background processing, and MLflow/DVC for model and dataset versioning. This manuscript presents the proposed system, workflow, technical components, and design-level improvements described in the project specification.
Views & downloads
- Article views
- Full-text downloads
References
5 references- Alsentzer, E., Murphy, J. R., Boag, W., Weng, W. H., Jin, D., Naumann, T., & McDermott, M. (2019). Publicly available clinical BERT embeddings. In Proceedings of the 2nd Clinical Natural Language Processing Workshop, 72–78. https://doi.org/10.18653/v1/W19-1909
- Chapman, W. W., Bridewell, W., Hanbury, P., Cooper, G. F., & Buchanan, B. G. (2001). A simple algorithm for identifying negated findings and diseases in discharge summaries. Journal of Biomedical Informatics, 34(5), 301–310. https://doi.org/10.1006/jbin.2001.1029
- Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.-t., Rocktäschel, T., Riedel, S., & Kiela, D. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
- Mousavi Baigi, S. F., et al. (2025). AI-based automated ICD coding: A systematic review. Journal of Medical Signals & Sensors, 15, 22. https://doi.org/10.4103/jmss.jmss_76_24
- Recent advances in AI for automated ICD coding: A systematic literature review. (2026). Journal of Medical Systems. https://doi.org/10.1007/s10916-026-02429-7
