An Intelligent Healthcare System for reporting, analyzing and predicting Adverse Drug Reactions
CliniQAI is a comprehensive healthcare platform that integrates patient reporting, physician analysis, and AI-powered predictions of adverse drug reactions (ADRs). The system features:
- π₯ Doctor Portal: Advanced interface for healthcare professionals to analyze ADR reports
- π€ Patient Portal: User-friendly interface for patients to report adverse reactions
- π€ AI Module: Intelligent prediction system for drug interactions and adverse effects
- π Centralized Data Management: Synchronized information across all system components
- Features
- System Architecture
- Installation
- Usage Guide
- Project Structure
- API Documentation
- Development
- Contributing
- License
- Comprehensive search of patient-reported ADRs
- Analysis of drug-condition relationships
- Statistics and visualizations of ADR patterns
- Direct integration with AI predictions for novel drug combinations
- Simple reporting interface for adverse reactions
- Tracking of submitted reports
- Unique patient ID system
- Privacy-focused design
- Machine learning model for predicting drug interactions
- Analysis of patient-specific risk factors
- Comprehensive medication and condition database
- Real-time prediction of potential adverse effects
CliniQAI uses a modular architecture with three main components connected through a central launcher:
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Doctor Portal β β Patient Portal β β AI Model β
β (Port 8082) β β (Port 8083) β β (Port 8084) β
ββββββββββ¬βββββββββ ββββββββββ¬ββββββββββ ββββββββββ¬βββββββββ
β β β
β β β
ββββββββββββββββββ¬ββββββββ΄βββββββββββββββββββ¬βββββββ
β β
βΌ βΌ
ββββββββββββββββββββββ ββββββββββββββββββββββ
β App Starter β β Shared Data File β
β (Port 8080) β β (adr_reports.csv) β
ββββββββββββββββββββββ ββββββββββββββββββββββ
The system uses Flask for all web interfaces and RESTful APIs, with data shared through a common CSV file.
- Python 3.8 or higher
- Git (for cloning the repository)
- Modern web browser
-
Clone the repository
git clone https://github.com/yourusername/CliniQAI.git cd CliniQAI
-
Easy Setup (Recommended)
Simply run the included startup script:
run.bat
This script will automatically:
- Create a virtual environment
- Install all required dependencies
- Start the application components
-
Access the application
- Main Dashboard: http://localhost:8080
- Doctor Portal: http://localhost:8082
- Patient Portal: http://localhost:8083
- AI Model: http://localhost:8084
-
Manual Setup (Alternative)
If you prefer to set up manually:
# Create and activate a virtual environment python -m venv venv venv\Scripts\activate # Install dependencies pip install -r requirements.txt # Start the application cd app-starter python main.py
- Navigate to http://localhost:8082
- Use the search interface to find drug-condition combinations
- View detailed analysis of matching records
- For novel combinations, follow the AI model link for predictions
- Add new drug reports with the submission form
- Navigate to http://localhost:8083
- Fill out the form with information about your adverse reaction
- Submit the form to receive a unique patient ID
- View your submitted reports at the bottom of the page
- Navigate to http://localhost:8084
- Enter patient information (age, weight)
- Select current medications and pre-existing conditions
- Enter the drug to analyze
- Submit to receive AI-powered prediction of potential adverse reactions
CliniQAI/
βββ app-starter/ # Main application launcher
β βββ main.py # Orchestrates startup of components
β βββ templates/ # Main dashboard interface
β
βββ patient-portal/ # Patient-facing application
β βββ app.py # Flask server for patient portal
β βββ server.py # Data handling
β βββ templates/ # HTML templates
β βββ data/ # Patient ID tracking
β
βββ doctor-portal/ # Healthcare professional interface
β βββ app.py # Flask server for doctor portal
β βββ data_server.py # Data analysis functions
β βββ templates/ # HTML templates
β
βββ AI_MODEL/ # Machine learning component
β βββ biomedical_chatbot/ # Drug interaction prediction
β βββ app.py # Flask server for AI model
β βββ ml_model.py # ML model implementation
β βββ synthetic_data.py # Data generation for model
β βββ requirements.txt # ML-specific dependencies
β βββ templates/ # HTML templates
β βββ static/ # CSS, JS and static files
β
βββ requirements.txt # Project dependencies
βββ .gitignore # Git ignore file
βββ adr_reports.csv # Shared data file
βββ README.md # This documentation
GET /api/reports
- Retrieve all submitted reportsPOST /api/reports
- Submit a new adverse reaction report
GET /api/search
- Search for drug-condition combinationsGET /api/drugs
- Get list of all drugs in the databasePOST /api/drugs/add
- Add a new drug reportGET /api/conditions
- Get list of all medical conditions
POST /api/analyze
- Analyze drug interactions and predict adverse reactionsGET /api/medications
- Get list of all medicationsGET /api/conditions
- Get list of all medical conditions
- Fork the repository
- Clone your fork
- Create a new branch for your feature
- Make your changes
- Run tests
- Submit a pull request
- Follow PEP 8 style guide for Python code
- Use descriptive variable and function names
- Comment complex logic
- Write tests for new features
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 project is licensed under the MIT License - see the LICENSE file for details.
Cursor AI: This project was developed with the assistance of Cursor AI, which provided code suggestions, refactoring help, documentation guidance and sometimes the entire code itself!!. We acknowledge and appreciate this AI assistance in our development process.
Made with β€οΈ by the Cryptic Hunters:
@yuv294 β’
@sathwikhbhat β’
@Bhatia06 β’
@AdiGoCrazy
Β© 2025 CliniQAI. All rights reserved.