Skip to content

codewithgaani/Smart-Hospital-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Smart Hospital Management System

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.

๐ŸŒ Live Demo

๐Ÿ” Demo Credentials

Admin Account

  • Username: admin
  • Password: admin123

Doctor Accounts

  • Username: dr_smith | Password: doctor123
  • Username: dr_johnson | Password: doctor123
  • Username: dr_davis | Password: doctor123

Patient Accounts

  • Username: patient1 | Password: patient123
  • Username: patient2 | Password: patient123

๐Ÿฅ Features

Core Functionality

  • 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

AI Features

  • Machine learning-based symptom analysis
  • Disease prediction with confidence scoring
  • Medical recommendations and next steps
  • Preliminary diagnosis assistance

User Roles

  • 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

๐Ÿš€ Tech Stack

Backend

  • 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

Frontend

  • 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

๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.8+
  • Node.js 16+
  • PostgreSQL
  • Git

Backend Setup

  1. Clone the repository

    git clone https://github.com/Shorya06/Smart-Hospital-Management.git
    cd Smart-Hospital-Management/smart_hms/backend
  2. Create virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Database setup

    python manage.py makemigrations
    python manage.py migrate
    python manage.py seed_data  # Load sample data
  5. Start development server

    python manage.py runserver

Frontend Setup

  1. Navigate to frontend directory

    cd ../frontend
  2. Install dependencies

    npm install
  3. Start development server

    npm run dev

๐ŸŒ Access Points

๐Ÿ“ Project Structure

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

๐Ÿ”ง API Endpoints

Authentication

  • POST /api/auth/login/ - User login
  • POST /api/auth/register/ - User registration
  • POST /api/auth/token/refresh/ - Token refresh

Core Features

  • GET /api/appointments/ - List appointments
  • POST /api/appointments/ - Create appointment
  • GET /api/patients/ - List patients
  • GET /api/doctors/ - List doctors
  • POST /api/ai/symptom-checker/ - AI symptom analysis

๐ŸŽจ UI/UX Features

  • 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

๐Ÿค– AI Features

Symptom Checker

  • Natural language symptom input
  • Machine learning-based disease prediction
  • Confidence scoring and recommendations
  • Medical disclaimer and professional advice prompts

Future AI Enhancements

  • Medical image analysis
  • Predictive analytics
  • Natural language processing
  • Integration with medical databases

๐Ÿš€ Deployment

Production Setup

  1. Configure production database
  2. Set up environment variables
  3. Configure static file serving
  4. Set up SSL certificates
  5. Configure reverse proxy (Nginx)

Docker Deployment

# Build and run with Docker Compose
docker-compose up -d

๐Ÿ“Š System Requirements

Minimum Requirements

  • RAM: 4GB
  • Storage: 10GB
  • CPU: 2 cores
  • OS: Windows 10+, macOS 10.14+, Ubuntu 18.04+

Recommended Requirements

  • RAM: 8GB
  • Storage: 20GB SSD
  • CPU: 4 cores
  • OS: Latest stable versions

๐Ÿค Contributing

  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.

๐Ÿ‘ฅ Authors

  • Krishna - Initial work - codewithgaani
  • Collaborated later with a team of 3 members.

๐Ÿ™ Acknowledgments

  • Material-UI for the component library
  • Django REST Framework for API development
  • React community for excellent documentation
  • Healthcare professionals for domain insights

๐Ÿ“ž Support

For support, email support@smarthms.com or create an issue in the repository.

๐Ÿ”ฎ Roadmap

Phase 1 (Current)

  • โœ… Basic hospital management features
  • โœ… AI symptom checker
  • โœ… Role-based access control
  • โœ… Responsive UI/UX

Phase 2 (Planned)

  • ๐Ÿ”„ Advanced AI features
  • ๐Ÿ”„ Medical image analysis
  • ๐Ÿ”„ Real-time notifications
  • ๐Ÿ”„ Mobile app development

Phase 3 (Future)

  • โณ Integration with medical devices
  • โณ Telemedicine features
  • โณ Advanced analytics
  • โณ Multi-language support

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •