Skip to content

Lokesh11868/MediCore-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MediCore AI - Personal Health Assistant

A comprehensive, privacy-first AI-powered medical assistant built with Next.js, React, and Google Gemini AI. This application provides professional medical guidance, symptom assessment, emergency triage, test result analysis, appointment booking, and family health management in multiple languages.

๐ŸŒŸ Core Features

๐Ÿ” Authentication System

  • User Registration - Complete signup form with validation
  • User Login - Secure authentication with demo credentials
  • Demo Accounts - Pre-configured accounts for testing
  • Route Protection - Automatic redirect for unauthenticated users
  • Session Management - Persistent login state
  • Logout Functionality - Secure session termination

๐Ÿค– AI-Powered Medical Consultation

  • Google Gemini AI Integration - Advanced medical reasoning and analysis
  • Multilingual Support - 4 languages: English, Hindi, Spanish, French
  • Multiple Consultation Modes:
    • General Medical Consultation
    • Symptom Triage Assessment
    • Emergency Medical Guidance
    • Second Opinion Consultation
  • Real-time Chat Interface - Stream-based responses for instant feedback
  • Medical Context Awareness - Tailored responses based on consultation type

๐ŸŽค Advanced Voice Management System

  • Multi-language Voice Synthesis - Native voices for each supported language
  • Speech-to-Text - Voice input with language detection
  • Text-to-Speech - AI responses spoken in selected language
  • Voice Speed Control - Optimized speech rates for each language
  • Voice Interruption - Stop speech with keyboard shortcuts (Space/Escape)
  • Automatic Voice Selection - Smart voice mapping for each language

๐Ÿ“Š Test Results Analysis

  • File Upload Support - PDF, JPG, PNG, TXT formats (up to 10MB)
  • AI-Powered Analysis - Automatic value extraction from lab reports
  • Reference Range Comparison - Normal vs. abnormal result identification
  • Risk Assessment - Overall health status and urgency evaluation
  • Personalized Recommendations - Actionable health advice
  • Manual Entry Mode - Add test results manually for analysis
  • Sample Data Analysis - Demo with realistic medical data

๐Ÿšจ Emergency Services

  • GPS Location Detection - Automatic location services
  • Nearby Hospital Finder - Real-time hospital location mapping
  • Emergency Contact Integration - Quick access to emergency numbers
  • Emergency Triage - Immediate threat assessment
  • Critical Action Guidance - Step-by-step emergency instructions
  • Location-based Services - Country-specific emergency protocols

๐Ÿ“… Appointment Booking System

  • Smart Date Validation - Prevents past date selection
  • Phone Number Validation - Format verification for different countries
  • Appointment Categories - Specialized booking for different medical needs
  • Time Slot Management - Available appointment time selection
  • Booking Confirmation - Email/SMS confirmation system
  • Calendar Integration - Sync with personal calendar

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Family Health Management

  • Family Member Profiles - Individual health records for family members
  • Age-based Recommendations - Tailored advice for different age groups
  • Family Health Dashboard - Overview of family health status
  • Shared Health Records - Family health history tracking
  • Pediatric Guidance - Specialized advice for children
  • Elderly Care Support - Senior-specific health recommendations

๐Ÿ“‹ Health Records Management

  • Secure File Upload - Medical document storage
  • Document Organization - Categorized health records
  • Search and Filter - Easy record retrieval
  • Privacy Protection - Local storage with encryption
  • Export Functionality - Download health records
  • Record Sharing - Secure sharing with healthcare providers

๐Ÿ’Š Medication Management

  • Medication Tracking - Dosage and schedule management
  • Reminder System - Medication reminder notifications
  • Drug Interaction Check - Safety verification
  • Side Effect Monitoring - Adverse reaction tracking
  • Refill Reminders - Prescription renewal alerts
  • Medication History - Complete medication timeline

๐ŸŽจ User Interface & Experience

  • Dark/Light Theme Toggle - User preference with smooth transitions
  • Responsive Design - Optimized for desktop, tablet, and mobile
  • Accessibility Features - WCAG compliant interface
  • Modern UI Components - Beautiful, intuitive design
  • Loading States - Smooth user feedback
  • Error Handling - Graceful error recovery
  • Offline Support - Basic functionality without internet

๐Ÿ”ง Technical Features

  • TypeScript - Type-safe development
  • Next.js 14 - Latest React framework with App Router
  • Tailwind CSS - Utility-first styling
  • Radix UI - Accessible component library
  • Real-time Updates - Live data synchronization
  • Progressive Web App - Installable web application
  • SEO Optimized - Search engine friendly

๐ŸŒ Supported Languages

Language Code Voice Support Medical Context
English en โœ… Native Global medical standards
Hindi hi โœ… Native Indian medical context
Spanish es โœ… Native Spanish medical terminology
French fr โœ… Native French medical standards

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or pnpm
  • Google Gemini AI API key

1. Clone & Install

git clone <repository-url>
cd ai-doctor-assistant
npm install

2. Environment Setup

Create .env.local:

GOOGLE_GENERATIVE_AI_API_KEY=your_api_key_here
DEBUG=false

3. Get API Key

  1. Visit Google AI Studio
  2. Create API key
  3. Add to .env.local

4. Run Development Server

npm run dev

Open http://localhost:3000

๐Ÿ“ฑ Usage Guide

Authentication

  1. Visit /login or /signup
  2. Use demo credentials or create new account
  3. Access protected features after authentication

AI Consultation

  1. Navigate to "AI Consultation"
  2. Select consultation mode (General/Triage/Emergency)
  3. Choose language preference
  4. Enable voice features if desired
  5. Start chatting with AI medical assistant

Test Results Analysis

  1. Go to "Test Results"
  2. Upload medical reports or enter manually
  3. AI analyzes and provides insights
  4. Review recommendations and risk assessment

Emergency Services

  1. Access "Emergency" page
  2. Allow location access for nearby hospitals
  3. Get immediate medical guidance
  4. Contact emergency services if needed

Appointment Booking

  1. Visit "Appointments"
  2. Select appointment type and date
  3. Enter contact information
  4. Confirm booking

Family Health

  1. Access "Family Health"
  2. Add family member profiles
  3. Track individual health records
  4. Get age-appropriate recommendations

๐Ÿ—๏ธ Project Structure

ai-doctor-assistant/
โ”œโ”€โ”€ app/                          # Next.js app directory
โ”‚   โ”œโ”€โ”€ api/                     # API routes
โ”‚   โ”‚   โ”œโ”€โ”€ chat/               # AI consultation API
โ”‚   โ”‚   โ”œโ”€โ”€ analyze-test-results/ # Test analysis API
โ”‚   โ”‚   โ”œโ”€โ”€ book-appointment/   # Appointment booking API
โ”‚   โ”‚   โ”œโ”€โ”€ emergency-location/ # Location services API
โ”‚   โ”‚   โ”œโ”€โ”€ triage-assessment/  # Triage API
โ”‚   โ”‚   โ”œโ”€โ”€ upload-records/     # Health records API
โ”‚   โ”‚   โ””โ”€โ”€ stream-chat/        # Streaming chat API
โ”‚   โ”œโ”€โ”€ login/                  # Authentication pages
โ”‚   โ”œโ”€โ”€ signup/                 # User registration
โ”‚   โ”œโ”€โ”€ chat/                   # AI consultation page
โ”‚   โ”œโ”€โ”€ triage/                 # Symptom triage page
โ”‚   โ”œโ”€โ”€ test-results/           # Test analysis page
โ”‚   โ”œโ”€โ”€ emergency/              # Emergency services page
โ”‚   โ”œโ”€โ”€ appointments/           # Appointment booking page
โ”‚   โ”œโ”€โ”€ family/                 # Family health page
โ”‚   โ”œโ”€โ”€ records/                # Health records page
โ”‚   โ”œโ”€โ”€ medications/            # Medication management page
โ”‚   โ””โ”€โ”€ settings/               # User settings page
โ”œโ”€โ”€ components/                  # React components
โ”‚   โ”œโ”€โ”€ ui/                     # UI component library
โ”‚   โ”œโ”€โ”€ auth-guard.tsx          # Route protection
โ”‚   โ”œโ”€โ”€ app-sidebar.tsx         # Main navigation sidebar
โ”‚   โ”œโ”€โ”€ top-navigation.tsx      # Top navigation bar
โ”‚   โ”œโ”€โ”€ theme-provider.tsx      # Dark/light theme provider
โ”‚   โ”œโ”€โ”€ medical-translator.tsx  # Language translation
โ”‚   โ”œโ”€โ”€ emergency-modal.tsx     # Emergency modal
โ”‚   โ””โ”€โ”€ medical-disclaimer.tsx  # Medical disclaimers
โ”œโ”€โ”€ lib/                        # Utility functions
โ”‚   โ”œโ”€โ”€ utils.ts               # General utilities
โ”‚   โ””โ”€โ”€ voice-manager.ts       # Voice management system
โ”œโ”€โ”€ hooks/                      # Custom React hooks
โ”œโ”€โ”€ public/                     # Static assets
โ””โ”€โ”€ styles/                     # Global styles

๐Ÿ”ง Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run type-check   # TypeScript type checking

๐Ÿ›ก๏ธ Medical Disclaimers

โš ๏ธ Important: This application is for educational and informational purposes only.

Not a Substitute for Professional Care

  • Not a replacement for professional medical advice
  • Not for diagnosis or treatment decisions
  • Always consult qualified healthcare providers

Emergency Situations

  • India: Call 108 or 102
  • United States: Call 911
  • Europe: Call 112
  • Visit nearest emergency room immediately

Professional Medical Care

  • AI provides educational guidance only
  • For diagnosis/treatment, consult licensed providers
  • Use as supplementary information source

๐Ÿ“„ License

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

๐Ÿ†˜ Support

  • Issues: GitHub Issues
  • Documentation: Check the /docs folder for detailed guides
  • Medical Questions: Consult healthcare professionals

๐Ÿ”ฎ Future Enhancements

  • Telemedicine Integration - Video consultation capabilities
  • Wearable Device Sync - Health tracker integration
  • Health Analytics - Trend analysis and insights
  • Multi-language Expansion - Additional language support
  • Two-Factor Authentication - Enhanced security
  • Social Login - Google, Facebook, Apple integration

Built with โค๏ธ for better healthcare accessibility

This application prioritizes user privacy and data security while providing valuable health information and guidance.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors