Hospital Management System

A comprehensive hospital management system built with TypeScript, SQLite, and Bootstrap.

Features

  • Patient Management: Register, view, edit, and manage patient records
  • Doctor Management: Manage doctor profiles and specializations
  • Appointment Scheduling: Book and manage appointments between patients and doctors
  • Medical Records: Maintain patient medical history and treatment records
  • Department Management: Organize hospital departments and staff
  • User Authentication: Secure login system for different user roles

Technology Stack

  • Backend: TypeScript with Hono framework
  • Database: SQLite
  • Frontend: HTML, CSS, JavaScript with Bootstrap 5
  • Authentication: Session-based authentication

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ├── routes/
│   │   ├── auth.ts         # Authentication routes
│   │   ├── patients.ts     # Patient management routes
│   │   ├── doctors.ts      # Doctor management routes
│   │   ├── appointments.ts # Appointment routes
│   │   └── static.ts       # Static file serving
│   └── index.ts            # Main server entry point
├── frontend/
│   ├── components/         # Reusable UI components
│   ├── pages/             # Individual page templates
│   ├── assets/            # CSS and JS files
│   └── index.html         # Main dashboard
└── shared/
    └── types.ts           # Shared TypeScript interfaces

Getting Started

  1. The system will automatically set up the database on first run
  2. Default admin credentials: admin@hospital.com / admin123
  3. Access the system through the main HTTP endpoint

User Roles

  • Admin: Full system access
  • Doctor: Patient records, appointments, medical records
  • Nurse: Patient care, basic record updates
  • Receptionist: Appointment scheduling, patient registration