Medical RAG System for Automated Billing Code Generation

NLP
GenAI
Healthcare
Author

Suraj Jaiswal

Published

August 1, 2024

Built a Retrieval-Augmented Generation (RAG) system at NeuroReef Labs to automate medical billing code generation from clinical notes and patient visit records.

Problem: Medical coders manually assign ICD-10, CPT, SNOMED, and HCC codes to every patient visit — a slow, error-prone process that delays billing and reimbursement.

Solution:

Codes Automated:

Code Type Purpose
ICD-10 Diagnosis classification
CPT Procedure billing
SNOMED Clinical terminology
HCC Risk adjustment for Medicare

Tech Stack: Python OpenAI API RAG HyDE HuggingFace Athena EHR Prompt Engineering

Impact: Reduced manual coding effort for medical billing, improving accuracy and turnaround time for reimbursement workflows.