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.
- 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 Registration & Login
- View Doctor Information
- View Surgical Details
- Access OT schedules (past and upcoming)
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
- Real-time OT activity board
- Emergency updates and instant rescheduling
- OT activity log dashboard
- Daily, weekly, and monthly schedule views
To get started with Firebase:
-
Go to Firebase Console
-
Create a project
-
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
-
Create your Firestore structure:
- Collection:
users- Document ID:
UID(auto created on register) - Fields:
email: stringrole:'admin'or'user'
- Document ID:
- Collection:
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"
};π¦ 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
npm install -g firebase-tools
firebase login
firebase init
firebase serveThen visit: http://localhost:5000
firebase deploy(You can include screenshots here to show UI, if desired)
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.
Pull requests and contributions are welcome! Please open an issue or PR for improvements or suggestions.
This project is open-sourced under the MIT License.
Create a GitHub issue