A comprehensive AI-powered hospital management system built with Django REST API backend and React frontend, featuring role-based access control, appointment management, and AI symptom checker.
- Frontend: https://smart-hms-frontend.vercel.app
- Backend API: https://smart-hms-backend.onrender.com/api/
- Admin Panel: https://smart-hms-backend.onrender.com/admin/
- Username:
admin - Password:
admin123
- Username:
dr_smith| Password:doctor123 - Username:
dr_johnson| Password:doctor123 - Username:
dr_davis| Password:doctor123
- Username:
patient1| Password:patient123 - Username:
patient2| Password:patient123
- Role-based Authentication (Patient, Doctor, Admin)
- Appointment Management with booking and scheduling
- Patient Records management
- Doctor Profiles with specializations
- AI Symptom Checker for preliminary diagnosis
- Analytics Dashboard with key performance indicators
- Responsive Design for mobile and desktop
- Machine learning-based symptom analysis
- Disease prediction with confidence scoring
- Medical recommendations and next steps
- Preliminary diagnosis assistance
- Patients: Book appointments, view medical records, use symptom checker
- Doctors: Manage appointments, view patient records, access symptom checker
- Admins: Full system access, analytics, user management
- Django 4.2.7 - Web framework
- Django REST Framework - API development
- PostgreSQL - Database
- JWT Authentication - Secure token-based auth
- scikit-learn - Machine learning for AI features
- pandas - Data processing
- React 18 - UI framework
- Vite - Build tool and dev server
- Material-UI - Component library
- React Router - Client-side routing
- Axios - HTTP client
- Framer Motion - Animations
- Python 3.8+
- Node.js 16+
- PostgreSQL
- Git
-
Clone the repository
git clone https://github.com/Shorya06/Smart-Hospital-Management.git cd Smart-Hospital-Management/smart_hms/backend -
Create virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Database setup
python manage.py makemigrations python manage.py migrate python manage.py seed_data # Load sample data -
Start development server
python manage.py runserver
-
Navigate to frontend directory
cd ../frontend -
Install dependencies
npm install
-
Start development server
npm run dev
- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- Admin Panel: http://localhost:8000/admin
smart_hms/
โโโ backend/
โ โโโ hospital/ # Django project settings
โ โโโ hospital_app/ # Main application
โ โ โโโ models.py # Database models
โ โ โโโ views.py # API views
โ โ โโโ serializers.py # Data serialization
โ โ โโโ ai_model/ # AI/ML components
โ โโโ requirements.txt # Python dependencies
โโโ frontend/
โ โโโ src/
โ โ โโโ components/ # React components
โ โ โโโ pages/ # Page components
โ โ โโโ contexts/ # React contexts
โ โ โโโ services/ # API services
โ โ โโโ theme.js # Material-UI theme
โ โโโ package.json # Node.js dependencies
โโโ README.md
POST /api/auth/login/- User loginPOST /api/auth/register/- User registrationPOST /api/auth/token/refresh/- Token refresh
GET /api/appointments/- List appointmentsPOST /api/appointments/- Create appointmentGET /api/patients/- List patientsGET /api/doctors/- List doctorsPOST /api/ai/symptom-checker/- AI symptom analysis
- Healthcare-inspired Design with professional color scheme
- Responsive Layout with Material-UI components
- Role-based Navigation with dynamic menu items
- Interactive Dashboards with KPI cards and charts
- Smooth Animations using Framer Motion
- Mobile-first Design with touch-friendly interfaces
- Natural language symptom input
- Machine learning-based disease prediction
- Confidence scoring and recommendations
- Medical disclaimer and professional advice prompts
- Medical image analysis
- Predictive analytics
- Natural language processing
- Integration with medical databases
- Configure production database
- Set up environment variables
- Configure static file serving
- Set up SSL certificates
- Configure reverse proxy (Nginx)
# Build and run with Docker Compose
docker-compose up -d- RAM: 4GB
- Storage: 10GB
- CPU: 2 cores
- OS: Windows 10+, macOS 10.14+, Ubuntu 18.04+
- RAM: 8GB
- Storage: 20GB SSD
- CPU: 4 cores
- OS: Latest stable versions
- Fork the repository
- Create a 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.
- Krishna - Initial work - codewithgaani
- Collaborated later with a team of 3 members.
- Material-UI for the component library
- Django REST Framework for API development
- React community for excellent documentation
- Healthcare professionals for domain insights
For support, email support@smarthms.com or create an issue in the repository.
- โ Basic hospital management features
- โ AI symptom checker
- โ Role-based access control
- โ Responsive UI/UX
- ๐ Advanced AI features
- ๐ Medical image analysis
- ๐ Real-time notifications
- ๐ Mobile app development
- โณ Integration with medical devices
- โณ Telemedicine features
- โณ Advanced analytics
- โณ Multi-language support
Built with โค๏ธ for better healthcare management