MedIntel is a comprehensive medical records management system that helps healthcare providers and patients manage medical records, analyze reports, and access medical information efficiently.
-
User Authentication
- Secure signup and login system
- Password hashing for security
- Session management
-
Medical Records Management
- Upload and store medical reports (PDF, images)
- Organize records by hospital and category
- View and download medical files
- Categorize reports automatically
-
AI-Powered Analysis
- Automatic categorization of medical reports
- Extraction of key medical values
- Integration with LLM for intelligent analysis
- Support for multiple report types:
- Blood Tests
- Urine Tests
- ECG Reports
- Diabetes Reports
- Cholesterol Reports
- Cardiology Reports
-
Data Visualization
- Integration with Google Sheets for data storage
- Visual representation of medical data
- Trend analysis and historical data tracking
-
Medical Information System
- Disease information based on symptoms
- Medicine information and dosage
- Precautions for various diseases
- Research tools and resources
-
Backend
- Python 3.x
- Flask (Web Framework)
- MongoDB (Database)
- PyMongo (MongoDB Python Driver)
- LangChain (LLM Integration)
- Groq API (Language Model)
- Google Sheets API
-
Frontend
- HTML5
- CSS3
- JavaScript
- Bootstrap (UI Framework)
-
Additional Tools
- PyTesseract (OCR for report analysis)
- PyMuPDF (PDF processing)
- Pandas (Data analysis)
- NumPy (Numerical computations)
Before you begin, ensure you have the following installed:
- Python 3.x
- MongoDB
- Tesseract OCR
- Git
-
Clone the repository
git clone https://github.com/SaiPavankumar22/MedIntel.git cd MedIntel -
Create and activate virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables Create a
.envfile in the root directory with:FLASK_SECRET_KEY=your_secret_key GROQ_API_KEY=your_groq_api_key MONGO_URI=mongodb://localhost:27017/med -
Set up Google Sheets API
- Create a Google Cloud Project
- Enable Google Sheets API
- Create service account credentials
- Download the JSON key file
- Place it in the specified path in the code
-
Initialize MongoDB
- Ensure MongoDB is running
- The application will create necessary collections automatically
-
Google Sheets Setup
- Update
SHEET_IDSinapp.pywith your Google Sheet IDs - Configure sheet names and columns according to your needs
- Update
-
LLM Configuration
- Update the Groq API key in the environment variables
- Configure model parameters in
app.py
-
File Upload Configuration
- The upload folder is set to 'uploads/'
- Ensure the directory has proper write permissions
-
Start MongoDB
mongod
-
Run the Flask application
python app.py
-
Access the application
- Open your browser and go to
http://localhost:5000
- Open your browser and go to
MedIntel/
├── app.py # Main application file
├── requirements.txt # Python dependencies
├── .env # Environment variables
├── uploads/ # Directory for uploaded files
├── static/ # Static files
│ ├── css/ # CSS stylesheets
│ ├── js/ # JavaScript files
│ └── images/ # Image assets
└── templates/ # HTML templates
├── accounts.html
├── dashboard.html
├── directory.html
├── landing.html
├── login.html
├── medical_records.html
├── research.html
└── signup.html
- All passwords are hashed using PBKDF2 with SHA256
- API keys are stored in environment variables
- File uploads are validated for type and size
- Session management for user authentication
- Secure file storage and access control
-
Report Upload
- User uploads medical report
- System processes the file (OCR for PDF/images)
- LLM analyzes and categorizes the report
- Data is stored in MongoDB and Google Sheets
-
Data Analysis
- System extracts key medical values
- Data is visualized in the dashboard
- Historical trends are analyzed
- Reports are categorized automatically
- Fork the repository
- 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 project is licensed under the MIT License - see the LICENSE file for details.
- Devisetti Sai Pavan Kumar
- GitHub: @SaiPavankumar22
- Flask community for the amazing web framework
- MongoDB for the database solution
- Groq for the LLM API
- Google for the Sheets API
- All contributors and users of the project