An AI-powered web application that automatically predicts ICD-10 medical codes from clinical documentation using advanced natural language processing leveraging LLM fine tuning. Built as a part of major project of CMRIT, Hyderabad
Medical Coding Assistant streamlines the healthcare coding process by leveraging machine learning to analyze clinical text and predict appropriate ICD-10 codes. This tool helps medical coders, healthcare providers, and billing professionals save time while improving coding accuracy.
- 🤖 AI-Powered Predictions - Advanced LLM model trained on clinical documentation(domain specific training)
- 📝 Intelligent Code Descriptions - Automatic display of ICD-10 code descriptions
- ⚡ Real-time Processing - Instant code predictions from clinical text
- 🎨 Modern UI - Clean, intuitive interface built with React
- 🔒 HIPAA Considerations - Designed with healthcare data privacy in mind
Frontend:
- React 18.x
- Modern CSS with gradients and animations
- Responsive design for all devices
Backend:
- Python 3.8+
- FastAPI / Flask (for API endpoint)
- Machine Learning model (TensorFlow/PyTorch/Scikit-learn)
- Natural Language Processing
Production URL: https://majorproject-ui.vercel.app
- Node.js 16.x or higher
- npm or yarn
- Python 3.8 or higher
- pip (Python package manager)
-
Clone the repository
git clone https://github.com/yourusername/medical-coding-assistant.git cd medical-coding-assistant -
Navigate to backend directory
cd backend -
Create a virtual environment
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install Python dependencies
pip install -r requirements.txt
-
Start the backend server
# If using FastAPI uvicorn main:app --reload --port 8000 # If using Flask python app.py
The backend API will be available at
http://localhost:8000
-
Open a new terminal and navigate to frontend directory
cd frontend -
Install dependencies
npm install # or yarn install -
Start the development server
npm start # or yarn startThe application will open at
http://localhost:3000
Update the API URL in the frontend code if needed:
// In src/MedicalCodingAssistant.jsx (or your component file)
const API_URL = "http://localhost:8000/predict";-
Enter Clinical Text: Paste or type clinical documentation including symptoms, diagnoses, procedures, and medical history
-
Click "Predict ICD-10 Codes": The AI model will analyze the text
-
Review Results: The predicted ICD-10 codes will appear with their descriptions
-
Verify Codes: Always review AI predictions with qualified medical coding professionals
Patient presents with acute lower back pain radiating to left leg for 3 days.
History of lumbar strain. Physical examination shows limited range of motion
and tenderness in L4-L5 region. Patient reports pain worsens with sitting.
medical-coding-assistant/
├── frontend/
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ │ └── MedicalCodingAssistant.jsx
│ │ ├── App.js
│ │ └── index.js
│ ├── package.json
│ └── README.md
├── backend/
│ ├── models/
│ │ └── icd_model.pkl
│ ├── main.py (or app.py)
│ ├── requirements.txt
│ └── README.md
├── LICENSE
└── README.md
- Push your code to GitHub
- Connect your repository to Vercel or Netlify
- Set build command:
npm run build - Set publish directory:
build - Update API URL to your backend production URL
- Push your backend code to GitHub
- Connect to your hosting platform
- Set start command (e.g.,
uvicorn main:app --host 0.0.0.0 --port $PORT) - Add environment variables if needed
- Deploy and note the production URL
Predicts ICD-10 codes from clinical text.
Request Body:
{
"clinical_text": "Patient presents with acute bronchitis..."
}Response:
{
"icd_prediction": "J20.9"
}Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This tool is designed to assist medical coding professionals and should NOT be used as the sole method for medical coding. All AI predictions must be reviewed and verified by qualified healthcare professionals. This application is for educational and assistive purposes only.
Distributed under the MIT License. See LICENSE for more information.
Your Name - @yourtwitter - your.email@example.com
Project Link: https://github.com/yourusername/medical-coding-assistant
⭐ Star this repo if you find it helpful!