ICD Decoder
Demystifying diagnostics
The problem ICD Decoder solves
Manual ICD-10 Coding Burden 🏥
Medical coders manually read clinical documents (discharge summaries, operation notes, triage logs) and assign ICD-10 diagnosis/procedure codes
Time-consuming, error-prone, and expensive for healthcare organizations
Insurance Claims Delays 💰
Incorrect or delayed ICD-10 coding directly impacts claim processing and reimbursement
Wrong codes = denied claims, revenue loss, or overpayments
Current manual process creates bottlenecks in claims submission
Healthcare Research Data Quality 📊
Researchers need accurately coded medical data for epidemiology, quality studies, and outcome analysis
Manual coding inconsistencies introduce errors in research datasets
Real-World Value:
For Insurance Companies: Faster claims processing, reduced denials, better fraud detection
For Healthcare Providers: Reduced coding staff burden, faster billing cycles, improved cash flow
For Researchers: Consistent, audit-able coded datasets for quality studies and outcome analysis
For Compliance: Full traceability for medical coding audits and regulatory requirements
Technical Implementation:
Uses TF-IDF + machine learning (not just rule-based) trained on mtsamples.csv medical records
Maps medical specialties → ICD-10 code ranges + keyword matching
Live deployment at https://icd-decoder.vercel.app
This is a productivity multiplier for healthcare's most tedious administrative task while maintaining human oversight for quality assurance.
Challenges we ran into
- Multi-Service Architecture
Complexity
Challenge: The system spans 3 layers (Next.js frontend, Node.js API, Python Flask ML service)
Issue: Services must communicate reliably, especially with cold start delays on Render
Evidence: Code shows 60-second timeout handling for ML API:
TypeScript
export const maxDuration = 60; // Allow for Render's cold start
- ML-Backend Communication & Deployment
Challenge: Python Flask backend (ML service) deployed separately on Render, which has cold starts
Impact:
Predictions fail if ML service is unresponsive or starting up
Graceful error handling needed throughout (see error responses with fallbacks)
Environment variable ML_API_URL must be correctly configured
- Missing ICD-10 Ground Truth Data
Challenge: mtsamples.csv contains clinical text but NO actual ICD-10 codes
Workaround: Had to create manual specialty → ICD-10 mapping (essentially rule-based)
Limitation: This reduces model accuracy vs. supervised learning with real labels
Code note: Implementation uses TF-IDF + keyword matching as proxy for true medical coding
Technologies used