Skip to content

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ₯ Operation Scheduler For Hospital Management

License GitHub Repo stars GitHub forks Open Issues Last Commit Maintained Made With Firebase Tailwind CSS Responsive Status Website Deployed JavaScript HTML CSS Open Source Contribution Security GitHub Repo Size


πŸ“– About the Project

The Operation Scheduler for Hospital Management is a web-based system built using Firebase, HTML, CSS (Tailwind), and JavaScript. It allows hospitals to efficiently manage:

  • πŸ” Secure authentication for Admin and Users
  • πŸ‘¨β€βš•οΈ Doctor and Patient records
  • πŸ•’ Scheduling of surgeries and OT activities
  • πŸ“ƒ Uploading surgical reports (if needed)
  • πŸ“Š Viewing schedules dynamically

Built with minimal UI and maximum functionality in mind β€” no frameworks required.

πŸš€ Features

πŸ‘¨β€βš•οΈ Admin Module

  • Admin Login
  • Manage Doctor Details
  • Manage Patient Details
  • Post Operation Schedule Details
  • Analyze OT activity and efficiency
  • Monitor material/resource use for planned procedures

πŸ§‘β€πŸ’» User Module

  • User Registration & Login
  • View Doctor Information
  • View Surgical Details
  • Access OT schedules (past and upcoming)

πŸ—‚οΈ Surgery Scheduling Includes

Each surgery entry includes:

  • Date and Time of Surgery
  • Operation Theater (OT) ID
  • Anesthesia Type & Anesthesiologist Name
  • Primary Surgeon and Assistant (if any)
  • Operating Room Nurses
  • Pre- and Post-operative Event Logs
  • Surgical Reports (Charts, Transcriptions)
  • Surgeon Remarks
  • Required Materials, Drugs, and Instruments

πŸ“† Dynamic OT Activity Interface

  • Real-time OT activity board
  • Emergency updates and instant rescheduling
  • OT activity log dashboard
  • Daily, weekly, and monthly schedule views

πŸ”§ Firebase Setup

To get started with Firebase:

  1. Go to Firebase Console

  2. Create a project

  3. Enable the following:

    • πŸ”‘ Authentication β†’ Sign-in method β†’ Enable Email/Password
    • πŸ—ƒοΈ Cloud Firestore β†’ Start in Production Mode
    • ☁️ (Optional) Storage β†’ Enable if you want to upload reports/files
  4. Create your Firestore structure:

    • Collection: users
      • Document ID: UID (auto created on register)
      • Fields:
        • email: string
        • role: 'admin' or 'user'

πŸ” Firebase Config Setup

Create a file called public/env.js with your Firebase app credentials:

window.firebaseConfig = {
  apiKey: "YOUR_API_KEY",
  authDomain: "YOUR_AUTH_DOMAIN",
  projectId: "YOUR_PROJECT_ID",
  storageBucket: "YOUR_STORAGE_BUCKET",
  messagingSenderId: "YOUR_SENDER_ID",
  appId: "YOUR_APP_ID"
};

πŸ“ File Structure

πŸ“¦ hospital-ot-scheduler/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ dashboard_admin.html
β”‚   β”œβ”€β”€ dashboard_user.html
β”‚   β”œβ”€β”€ doctor.html
β”‚   β”œβ”€β”€ patient.html
β”‚   β”œβ”€β”€ schedule.html
β”‚   β”œβ”€β”€ view.html
β”‚   β”œβ”€β”€ register.html
β”‚   β”œβ”€β”€ 404.html
β”‚   β”œβ”€β”€ js/
β”‚   β”‚   β”œβ”€β”€ auth.js
β”‚   β”‚   β”œβ”€β”€ register.js
β”‚   β”‚   β”œβ”€β”€ doctor.js
β”‚   β”‚   β”œβ”€β”€ patient.js
β”‚   β”‚   β”œβ”€β”€ schedule.js
β”‚   β”‚   β”œβ”€β”€ view.js
β”‚   β”‚   └── firebase.js
β”‚   └── env.js πŸ”’ (DO NOT COMMIT)
β”œβ”€β”€ .firebaserc
β”œβ”€β”€ firebase.json
β”œβ”€β”€ firestore.rules
β”œβ”€β”€ storage.rules (if you're using storage)
β”œβ”€β”€ README.md
└── .gitignore

πŸš€ Run Locally

npm install -g firebase-tools

firebase login
firebase init
firebase serve

Then visit: http://localhost:5000


πŸ“€ Deploy to Firebase Hosting

firebase deploy

πŸ“Έ Screenshots

(You can include screenshots here to show UI, if desired)


πŸ›‘οΈ Code Quality

This project follows best practices to ensure:

  • βœ… Modular Code
  • βœ… Safe Execution
  • βœ… Testable Functions
  • βœ… Maintainability
  • βœ… Portability Across OS

All actions are logged using JavaScript logging mechanisms.

πŸ™Œ Contributing

Pull requests and contributions are welcome! Please open an issue or PR for improvements or suggestions.


πŸ“œ License

This project is open-sourced under the MIT License.


πŸ’¬ Need Help?

Create a GitHub issue


About

πŸš‘ Operation Scheduler for Hospital Management – A dynamic web-based OT scheduling system for hospitals using HTML, CSS, JavaScript, and Firebase. This system streamlines surgical operation scheduling, handles emergency updates, tracks OT activities, and enables efficient management through admin and user interfaces..

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages