Skip to content

Cryptic-Hunters/CliniQAI

Repository files navigation

CliniQAI: Adverse Drug Reaction (ADR) Management System

An Intelligent Healthcare System for reporting, analyzing and predicting Adverse Drug Reactions

🌟 Overview

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

πŸ“‹ Table of Contents

✨ Features

Doctor Portal

  • 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

Patient Portal

  • Simple reporting interface for adverse reactions
  • Tracking of submitted reports
  • Unique patient ID system
  • Privacy-focused design

AI Module

  • 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

πŸ—οΈ System Architecture

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.

πŸš€ Installation

Prerequisites

  • Python 3.8 or higher
  • Git (for cloning the repository)
  • Modern web browser

Setup Instructions

  1. Clone the repository

    git clone https://github.com/yourusername/CliniQAI.git
    cd CliniQAI
  2. 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
  3. Access the application

  4. 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

πŸ“˜ Usage Guide

Doctor Portal

  1. Navigate to http://localhost:8082
  2. Use the search interface to find drug-condition combinations
  3. View detailed analysis of matching records
  4. For novel combinations, follow the AI model link for predictions
  5. Add new drug reports with the submission form

Patient Portal

  1. Navigate to http://localhost:8083
  2. Fill out the form with information about your adverse reaction
  3. Submit the form to receive a unique patient ID
  4. View your submitted reports at the bottom of the page

AI Model

  1. Navigate to http://localhost:8084
  2. Enter patient information (age, weight)
  3. Select current medications and pre-existing conditions
  4. Enter the drug to analyze
  5. Submit to receive AI-powered prediction of potential adverse reactions

πŸ“ Project Structure

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

πŸ”Œ API Documentation

Patient Portal API

  • GET /api/reports - Retrieve all submitted reports
  • POST /api/reports - Submit a new adverse reaction report

Doctor Portal API

  • GET /api/search - Search for drug-condition combinations
  • GET /api/drugs - Get list of all drugs in the database
  • POST /api/drugs/add - Add a new drug report
  • GET /api/conditions - Get list of all medical conditions

AI Model API

  • POST /api/analyze - Analyze drug interactions and predict adverse reactions
  • GET /api/medications - Get list of all medications
  • GET /api/conditions - Get list of all medical conditions

πŸ‘¨β€πŸ’» Development

Setting Up Development Environment

  1. Fork the repository
  2. Clone your fork
  3. Create a new branch for your feature
  4. Make your changes
  5. Run tests
  6. Submit a pull request

Coding Standards

  • Follow PEP 8 style guide for Python code
  • Use descriptive variable and function names
  • Comment complex logic
  • Write tests for new features

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘ Acknowledgments

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.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •