Rankingsian/MedAI

🩺 MedAI β€” Your Virtual AI Doctor

0

stars

19

commits

JavaScript

primary language

Nov 20, 2025

updated

med-ai-plum.vercel.app

README

🩺 MedAI β€” Your Virtual AI Doctor

Live Demo Backend API License

An intelligent AI-powered healthcare assistant that provides preliminary medical advice, symptom analysis, and doctor consultations β€” making quality healthcare accessible to everyone.


🌐 Live Application

πŸš€ Access MedAI: https://med-ai-omega.vercel.app/

Start your AI consultation now β€” no credit card required, completely free!


πŸ“– What is MedAI?

MedAI is a next-generation virtual healthcare platform that leverages cutting-edge AI technology to bridge the gap between patients and healthcare services. Our platform provides:

For Patients:

  • πŸ€– 24/7 AI Doctor Consultations β€” Get instant medical guidance anytime, anywhere
  • πŸ” Intelligent Symptom Analysis β€” Understand what your symptoms might mean
  • 🎯 Smart Triage System β€” Know when to seek immediate care vs. self-manage
  • πŸ“± Easy-to-Use Interface β€” Designed for all ages, including seniors
  • πŸ—‚οΈ Personal Health History β€” Track your consultations and medical advice

For Healthcare Providers:

  • πŸ‘¨β€βš•οΈ Clinician Dashboard β€” Review AI-generated patient assessments
  • πŸ“‹ Patient Management β€” Access patient triage data and history
  • πŸ’¬ Consultation Requests β€” Respond to patients seeking professional care
  • πŸ“Š AI-Assisted Summaries β€” Quick insights powered by advanced AI
  • πŸŽ₯ Video Consultations β€” Connect with patients remotely

✨ Key Features

🧠 AI-Powered Intelligence

  • Groq Llama 3.3-70b β€” State-of-the-art medical AI with 90%+ confidence
  • Natural conversation flow for comfortable patient interaction
  • Context-aware responses based on symptoms, age, and medical history
  • Automatic emergency detection and immediate care recommendations

🩹 Comprehensive Triage System

  • Age, gender, and symptom analysis
  • Optional vitals input (blood pressure, temperature, heart rate)
  • Pre-existing conditions and allergies tracking
  • Medication history integration

πŸ’Š Medical Features

  • Symptom checker with evidence-based guidance
  • Drug interaction warnings
  • Health recommendations and preventive care tips
  • Lab result interpretation (OCR-enabled)
  • Medical document upload and analysis

πŸ” Security & Privacy

  • Firebase Authentication (Email/Password & Google Sign-In)
  • HIPAA-compliant data handling practices
  • Encrypted data transmission (HTTPS)
  • Secure storage with Firestore
  • Role-based access control (Patient/Clinician)

🌍 Accessibility

  • Responsive design β€” works on desktop, tablet, and mobile
  • Large, clear UI elements for elderly users
  • Simple navigation with minimal complexity
  • Fast loading times optimized for all network speeds

πŸ—οΈ Technology Stack

Frontend

  • Framework: React 18 with Vite
  • Styling: Modern CSS with responsive design
  • State Management: React Context API
  • Authentication: Firebase Auth
  • Hosting: Vercel (Production)

Backend

  • Framework: FastAPI (Python 3.11+)
  • AI Engine: Groq API (Llama 3.3-70b-versatile)
  • OCR: Tesseract for medical document scanning
  • Database: Firebase Firestore
  • Storage: Firebase Cloud Storage
  • Hosting: Render (Production)

AI & Machine Learning

  • Primary Model: Groq Llama 3.3-70b β€” Ultra-fast inference, medical-grade responses
  • Fallback: Template-based responses for high availability
  • Embeddings: Sentence transformers for semantic search
  • Document Analysis: OCR + NLP for medical records

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ and npm
  • Python 3.11+
  • Firebase account
  • Groq API key (free tier available)

Quick Start

1. Clone the Repository

git clone https://github.com/yourusername/MedAI.git
cd MedAI

2. Backend Setup

cd backend
pip install -r requirements.txt

# Copy and configure environment variables
cp env.example .env
# Edit .env with your Firebase and Groq credentials

# Run the backend
uvicorn app.main:app --reload

3. Frontend Setup

cd frontend
npm install

# Copy and configure environment variables
cp env.example .env.local
# Edit .env.local with your Firebase config

# Run the frontend
npm run dev

4. Access the Application

  • Frontend: http://localhost:5173
  • Backend API: http://localhost:8000
  • API Docs: http://localhost:8000/docs

For detailed setup instructions, see DEPLOYMENT.md


πŸ“Έ Screenshots

Patient Interface

AI Chat Consultation

Clinician Dashboard

Doctor Dashboard


πŸ—‚οΈ Project Structure

MedAI/
β”œβ”€β”€ backend/                 # FastAPI backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/v1/         # API endpoints
β”‚   β”‚   β”œβ”€β”€ services/       # AI & business logic
β”‚   β”‚   β”œβ”€β”€ db/             # Firebase integration
β”‚   β”‚   └── main.py         # FastAPI app
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── .env.example
β”œβ”€β”€ frontend/               # React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    # React components
β”‚   β”‚   β”œβ”€β”€ pages/         # Page components
β”‚   β”‚   β”œβ”€β”€ api/           # API client
β”‚   β”‚   └── firebase/      # Firebase config
β”‚   β”œβ”€β”€ package.json
β”‚   └── .env.example
└── README.md

🎯 How It Works

  1. User Signs Up/Login β€” Secure authentication via Firebase
  2. Complete Triage β€” Provide age, gender, symptoms, and optional vitals
  3. Start AI Consultation β€” Chat naturally with the AI doctor
  4. Get Recommendations β€” Receive medical guidance and care suggestions
  5. Request Doctor (Optional) β€” Connect with real clinicians if needed
  6. Track History β€” All consultations saved securely

πŸ”‘ Environment Variables

Backend (.env)

GROQ_API_KEY=your_groq_api_key
FIREBASE_PROJECT_ID=your_firebase_project_id
FIREBASE_SERVICE_ACCOUNT_JSON={"type":"service_account",...}
CORS_ORIGINS=https://med-ai-omega.vercel.app

Frontend (.env.local)

VITE_API_BASE_URL=https://medai-1-backend-final.onrender.com
VITE_FIREBASE_API_KEY=your_firebase_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
VITE_FIREBASE_PROJECT_ID=your_firebase_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
VITE_FIREBASE_APP_ID=your_firebase_app_id

πŸ“š API Documentation

Once the backend is running, visit:

  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc

Main Endpoints

  • POST /api/chat β€” AI consultation
  • POST /api/upload β€” Upload medical documents
  • GET /api/history β€” Get consultation history
  • POST /api/clinician/login β€” Clinician authentication
  • GET /api/consultation-requests β€” Pending consultations

πŸ‘₯ Team

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

Ian Mwangi
Ian Mwangi
AI Engineer
GitHub
Margret Mwangi
Margret Mwangi
Full Stack Developer
GitHub

🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a 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.


⚠️ Disclaimer

MedAI is NOT a substitute for professional medical advice, diagnosis, or treatment.

This application provides general health information and preliminary guidance only. Always consult a qualified healthcare professional for:

  • Medical diagnosis
  • Treatment plans
  • Emergency medical situations
  • Prescription medications

In case of emergency, call your local emergency services immediately.


🌟 Acknowledgments

  • Groq β€” For providing lightning-fast AI inference
  • Firebase β€” For secure authentication and database services
  • Vercel & Render β€” For reliable hosting infrastructure
  • Open Source Community β€” For amazing tools and libraries

πŸ“ž Contact & Support


Made with ❀️ by the MedAI Team
Empowering healthcare through AI


πŸŽ–οΈ Project Status

Status Uptime Build AI Confidence

Last Updated: November 2025

Contributors

Rankingsian

17 commits

Rankingsian/MedAI

🩺 MedAI β€” Your Virtual AI Doctor

0

stars

19

commits

JavaScript

primary language

Nov 20, 2025

updated

med-ai-plum.vercel.app

README

🩺 MedAI β€” Your Virtual AI Doctor

Live Demo Backend API License

An intelligent AI-powered healthcare assistant that provides preliminary medical advice, symptom analysis, and doctor consultations β€” making quality healthcare accessible to everyone.


🌐 Live Application

πŸš€ Access MedAI: https://med-ai-omega.vercel.app/

Start your AI consultation now β€” no credit card required, completely free!


πŸ“– What is MedAI?

MedAI is a next-generation virtual healthcare platform that leverages cutting-edge AI technology to bridge the gap between patients and healthcare services. Our platform provides:

For Patients:

  • πŸ€– 24/7 AI Doctor Consultations β€” Get instant medical guidance anytime, anywhere
  • πŸ” Intelligent Symptom Analysis β€” Understand what your symptoms might mean
  • 🎯 Smart Triage System β€” Know when to seek immediate care vs. self-manage
  • πŸ“± Easy-to-Use Interface β€” Designed for all ages, including seniors
  • πŸ—‚οΈ Personal Health History β€” Track your consultations and medical advice

For Healthcare Providers:

  • πŸ‘¨β€βš•οΈ Clinician Dashboard β€” Review AI-generated patient assessments
  • πŸ“‹ Patient Management β€” Access patient triage data and history
  • πŸ’¬ Consultation Requests β€” Respond to patients seeking professional care
  • πŸ“Š AI-Assisted Summaries β€” Quick insights powered by advanced AI
  • πŸŽ₯ Video Consultations β€” Connect with patients remotely

✨ Key Features

🧠 AI-Powered Intelligence

  • Groq Llama 3.3-70b β€” State-of-the-art medical AI with 90%+ confidence
  • Natural conversation flow for comfortable patient interaction
  • Context-aware responses based on symptoms, age, and medical history
  • Automatic emergency detection and immediate care recommendations

🩹 Comprehensive Triage System

  • Age, gender, and symptom analysis
  • Optional vitals input (blood pressure, temperature, heart rate)
  • Pre-existing conditions and allergies tracking
  • Medication history integration

πŸ’Š Medical Features

  • Symptom checker with evidence-based guidance
  • Drug interaction warnings
  • Health recommendations and preventive care tips
  • Lab result interpretation (OCR-enabled)
  • Medical document upload and analysis

πŸ” Security & Privacy

  • Firebase Authentication (Email/Password & Google Sign-In)
  • HIPAA-compliant data handling practices
  • Encrypted data transmission (HTTPS)
  • Secure storage with Firestore
  • Role-based access control (Patient/Clinician)

🌍 Accessibility

  • Responsive design β€” works on desktop, tablet, and mobile
  • Large, clear UI elements for elderly users
  • Simple navigation with minimal complexity
  • Fast loading times optimized for all network speeds

πŸ—οΈ Technology Stack

Frontend

  • Framework: React 18 with Vite
  • Styling: Modern CSS with responsive design
  • State Management: React Context API
  • Authentication: Firebase Auth
  • Hosting: Vercel (Production)

Backend

  • Framework: FastAPI (Python 3.11+)
  • AI Engine: Groq API (Llama 3.3-70b-versatile)
  • OCR: Tesseract for medical document scanning
  • Database: Firebase Firestore
  • Storage: Firebase Cloud Storage
  • Hosting: Render (Production)

AI & Machine Learning

  • Primary Model: Groq Llama 3.3-70b β€” Ultra-fast inference, medical-grade responses
  • Fallback: Template-based responses for high availability
  • Embeddings: Sentence transformers for semantic search
  • Document Analysis: OCR + NLP for medical records

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ and npm
  • Python 3.11+
  • Firebase account
  • Groq API key (free tier available)

Quick Start

1. Clone the Repository

git clone https://github.com/yourusername/MedAI.git
cd MedAI

2. Backend Setup

cd backend
pip install -r requirements.txt

# Copy and configure environment variables
cp env.example .env
# Edit .env with your Firebase and Groq credentials

# Run the backend
uvicorn app.main:app --reload

3. Frontend Setup

cd frontend
npm install

# Copy and configure environment variables
cp env.example .env.local
# Edit .env.local with your Firebase config

# Run the frontend
npm run dev

4. Access the Application

  • Frontend: http://localhost:5173
  • Backend API: http://localhost:8000
  • API Docs: http://localhost:8000/docs

For detailed setup instructions, see DEPLOYMENT.md


πŸ“Έ Screenshots

Patient Interface

AI Chat Consultation

Clinician Dashboard

Doctor Dashboard


πŸ—‚οΈ Project Structure

MedAI/
β”œβ”€β”€ backend/                 # FastAPI backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/v1/         # API endpoints
β”‚   β”‚   β”œβ”€β”€ services/       # AI & business logic
β”‚   β”‚   β”œβ”€β”€ db/             # Firebase integration
β”‚   β”‚   └── main.py         # FastAPI app
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── .env.example
β”œβ”€β”€ frontend/               # React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    # React components
β”‚   β”‚   β”œβ”€β”€ pages/         # Page components
β”‚   β”‚   β”œβ”€β”€ api/           # API client
β”‚   β”‚   └── firebase/      # Firebase config
β”‚   β”œβ”€β”€ package.json
β”‚   └── .env.example
└── README.md

🎯 How It Works

  1. User Signs Up/Login β€” Secure authentication via Firebase
  2. Complete Triage β€” Provide age, gender, symptoms, and optional vitals
  3. Start AI Consultation β€” Chat naturally with the AI doctor
  4. Get Recommendations β€” Receive medical guidance and care suggestions
  5. Request Doctor (Optional) β€” Connect with real clinicians if needed
  6. Track History β€” All consultations saved securely

πŸ”‘ Environment Variables

Backend (.env)

GROQ_API_KEY=your_groq_api_key
FIREBASE_PROJECT_ID=your_firebase_project_id
FIREBASE_SERVICE_ACCOUNT_JSON={"type":"service_account",...}
CORS_ORIGINS=https://med-ai-omega.vercel.app

Frontend (.env.local)

VITE_API_BASE_URL=https://medai-1-backend-final.onrender.com
VITE_FIREBASE_API_KEY=your_firebase_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
VITE_FIREBASE_PROJECT_ID=your_firebase_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
VITE_FIREBASE_APP_ID=your_firebase_app_id

πŸ“š API Documentation

Once the backend is running, visit:

  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc

Main Endpoints

  • POST /api/chat β€” AI consultation
  • POST /api/upload β€” Upload medical documents
  • GET /api/history β€” Get consultation history
  • POST /api/clinician/login β€” Clinician authentication
  • GET /api/consultation-requests β€” Pending consultations

πŸ‘₯ Team

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

Ian Mwangi
Ian Mwangi
AI Engineer
GitHub
Margret Mwangi
Margret Mwangi
Full Stack Developer
GitHub

🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a 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.


⚠️ Disclaimer

MedAI is NOT a substitute for professional medical advice, diagnosis, or treatment.

This application provides general health information and preliminary guidance only. Always consult a qualified healthcare professional for:

  • Medical diagnosis
  • Treatment plans
  • Emergency medical situations
  • Prescription medications

In case of emergency, call your local emergency services immediately.


🌟 Acknowledgments

  • Groq β€” For providing lightning-fast AI inference
  • Firebase β€” For secure authentication and database services
  • Vercel & Render β€” For reliable hosting infrastructure
  • Open Source Community β€” For amazing tools and libraries

πŸ“ž Contact & Support


Made with ❀️ by the MedAI Team
Empowering healthcare through AI


πŸŽ–οΈ Project Status

Status Uptime Build AI Confidence

Last Updated: November 2025

Contributors

Rankingsian

17 commits

Languages

JavaScript

66.3%

Python

33.3%