AI Doctor – Complete AI Powered Healthcare / Hospital Management System (HMS)
AI Doctor is a comprehensive, modern Hospital / Clinic Management System powered by AI. Built with Next.js 15, React 19, and TypeScript, it combines core HMS modules (patients, appointments, reports, inpatient, pharmacy, inventory, billing) with AI-assisted tools to streamline operations and support clinical workflows.
Live Demo
Demo URL: https://aidoc-roan.vercel.app/
Demo Credentials:
Key Features
Authentication & Security
- Secure login system with email/password authentication
- Protected routes – all sensitive pages require authentication
- Session management with persistent login state
- Password hashing with bcrypt (no plaintext passwords)
- Role-based access control (Admin, Doctor, Staff, Patient)
- Secure cookie handling and JWT tokens
Patient Management
- Complete patient records with comprehensive medical history
- Contact information and insurance details management
- Search and filter patients by name, ID, or contact information
- Patient status tracking and management
- Quick access to patient details and case notes
- Edit and update patient information with audit trail
- Delete patient records (with confirmation)
Appointment Management
- Advanced appointment scheduling system
- Time slot management and availability tracking
- Daily, weekly, and monthly calendar views
- Appointment status tracking (scheduled, completed, cancelled)
- Quick rescheduling options with conflict detection
- Patient assignment and doctor scheduling
- Appointment notes and reminders
- Role-based visibility (doctors see their assigned appointments; patients see their own)
Medical Reports
- Comprehensive reporting system for test results
- Medical documentation and findings
- Report status tracking (draft, completed, reviewed)
- Priority-based organization
- Search and filter reports by patient, date, or type
- Download reports as PDF
- Print and share capabilities
Doctors & Staff
- Dedicated Doctors module (doctor-only list; staff are managed separately)
- Extended doctor profile fields (phone, specialization, department, license, qualifications, experience, bio, address, DOB, gender)
- Dedicated edit page for doctors (stable full-form workflow)
- Staff management module with create/delete workflows
Inpatient Management
- Ward management (list/create/edit)
- Bed management (list/edit with status/type and ward assignment)
- Admissions management with patient assignment
Pharmacy
- Medicine management with full view/edit pages
- Track stock and expiry-related details
Inventory
- Supplier management (view/edit)
- Items management (medical supplies/equipment)
- Purchase orders (dedicated view page with items, totals, status)
Billing & Invoices
- Invoices and payments management
- Dedicated invoice edit page for a stable editing experience
AI-Powered Features
All AI features are powered by GPT-4.1 and GPT-4.1 Vision:
- AI Medical Assistant: Intelligent chatbot for medical queries, symptom analysis, treatment suggestions, and clinical decision support
- AI Treatment Plans: Generate comprehensive, evidence-based treatment plans tailored to patient conditions
- AI Drug Interaction Checker: Safely check for potential drug interactions before prescribing medications with severity ratings
- AI Medical Image Analysis: Analyze medical images (X-rays, CT scans, MRIs, ultrasounds) using GPT-4.1 Vision
- AI Voice Input: Voice-to-text transcription for hands-free medical notes and patient data entry
- AI Appointment Optimizer: Optimize appointment schedules using AI to maximize efficiency and patient satisfaction
- AI Risk Assessment: Assess patient risk factors and potential complications using AI-powered analysis
- AI Health Trends: Track and analyze health trends across patient population
- AI Health Analytics: Advanced analytics and insights powered by AI to improve practice outcomes
- AI Symptom Analyzer: Analyze patient symptoms to assist in diagnosis and treatment planning
- AI Report Generator: Automatically generate comprehensive medical reports using AI assistance
Dashboard & Analytics
- Real-time practice statistics and key metrics
- Total patients, appointments, and reports tracking
- Recent activity feed
- Upcoming appointments overview
- Quick actions for common tasks
- Analytical Reports dashboards with interactive charts (Recharts) and CSV export
Settings & Configuration
- User profile management
- Password change functionality
- GPT-4.1 API key configuration
- AI model testing and activation
- Notification settings
- Language preferences
- Display preferences
Technology Stack
Core Framework
- Next.js 15.5.9 – App Router
- React 19.2.1 – Latest stable version
- TypeScript – Full type safety
- Turbopack – Fast build tool
Authentication & Database
- NextAuth.js 4.24.13 – Secure authentication (latest security patch)
- Mongoose 9.0.0 – MongoDB ODM
- MongoDB 6.18.0 – NoSQL database
UI & Styling
- Tailwind CSS 4 – Modern utility-first CSS framework
- Lucide React 0.555.0 – Beautiful icon library
- Responsive Design – Mobile-first approach
Charts & i18n
- Recharts 3.7.0 – Interactive charts for analytical dashboards
- next-intl 4.3.6 – Multi-language support (EN/ES/FR)
Security Status
0 Security Vulnerabilities – All packages updated to latest secure versions
- All critical security patches applied
- Latest stable versions installed
- Regular security updates
Responsive Design
- Fully responsive – works on desktop, tablet, and mobile devices
- Mobile-optimized sidebar with collapsible menu
- Touch-friendly interface
- Adaptive layouts for all screen sizes
Security Features
- Secure authentication with NextAuth.js
- Protected routes and API endpoints
- Input sanitization and XSS protection
- Secure session management
- Data encryption in transit
- bcrypt password hashing
What’s Included
- Complete source code
- Comprehensive documentation (HTML format)
- Database models and schemas
- API routes and endpoints
- Reusable components
- Environment configuration examples
- Installation guide
Quick Start
- Install Node.js 18+ and MongoDB
- Extract the files and run
npm install - Configure environment variables in
.env.local - Run
npm run dev to start development server - Configure GPT-4.1 API key in Settings → AI Settings
Documentation
Comprehensive documentation is included with detailed guides on:
- Installation and setup
- Configuration and environment variables
- Feature usage and best practices
- Troubleshooting common issues
- API integration guide
Use Cases
- Private medical practices
- Clinics and healthcare facilities
- Doctor offices
- Medical consultation services
- Healthcare management systems
Perfect For
- Healthcare professionals looking to digitize their practice
- Medical clinics needing an all-in-one management solution
- Developers building healthcare applications
- Organizations needing a secure, role-based HMS foundation
Regular Updates
This product is actively maintained with:
- Regular security updates
- Feature enhancements
- Bug fixes
- Performance optimizations
Changelog
January 26, 2026
- Multi doctor system
- Staff login
- Patient login
- Laboratory management
- Inpatient
- Radiology
- Pharmacy
- Inventory
- Analytical reports
- Billing
Support
For technical support, questions, or customization requests, please contact through the CodeCanyon support system.
Important Notes
- GPT-4.1 API key is required for AI features (not included)
- MongoDB database required (local or cloud)
- Node.js 18+ required
- Internet connection required for AI API calls
- Run
npm run seed to generate demo accounts and sample data
Transform your hospital/clinic workflows with AI-powered efficiency. Get AI Doctor today!