How cyber-prince-k/queue-management-system works
QECH Queue Management System is a PHP/MySQL hospital queue application with browser-based portals. Patients register or book appointments and receive queue tokens; staff call and update patients, while administrators oversee queues and reporting. The graph includes the documented patient, staff, admin, multilingual, notification, and appointment capabilities. Several UI and backend connections are based on README documentation; unsampled modules are represented by their supported paths without inferred call relationships.
Main entry points: queue.php Queue API · queue.js Queue interactions · schema.sql Queue database · admin.php Administration and reports
Components 20
Web portals
- Patient portal
html/patient.html - Staff portal
html/staff.html - Admin portal
html/admin.html - Queue displays
html/display.html - Login and registration
js/auth.js - Navigation and language
js/style.js - Queue interactions
js/queue.js
Application APIs
- Authentication API
php/api/auth.php - Queue API
php/api/queue.php - Appointments API
php/api/appointments.php - Administration and reports
php/api/admin.php
Queue data
- Queue database
database/schema.sql
Shared services
- Database and session config
php/config.php - Notifications
php/api/notify_util.php - PDF generation library
php/lib/fpdf.php
Other components
- Patient
- Staff member
- Administrator
- SMS provider
- Email service
Connections 25
- Patient → Patient portal: registers
README.md - Patient portal → Queue interactions: joins queue
README.md - Queue interactions → Queue API: creates token
js/queue.js - Queue API → Queue database: writes token
php/api/queue.php - Staff member → Staff portal: manages queue
README.md - Staff portal → Queue interactions: uses queue controls
README.md - Queue interactions → Queue API: calls next
js/queue.js - Queue API → Queue database: updates queue
php/api/queue.php - Administrator → Admin portal: administers
README.md - Admin portal → Administration and reports: requests reports
- Administration and reports → Queue database: queries statistics
php/api/admin.php - Administration and reports → PDF generation library: generates PDF
php/api/admin.php - Login and registration → Authentication API: authenticates
js/auth.js - Authentication API → Queue database: reads users
php/api/auth.php - Authentication API → Database and session config: loads session config
php/api/auth.php - Queue API → Database and session config: loads API config
php/api/queue.php - Appointments API → Database and session config: loads API config
php/api/appointments.php - Administration and reports → Database and session config: loads API config
php/api/admin.php - Appointments API → Queue database: manages appointments
php/api/appointments.php - Queue API → Notifications: sends notifications
php/api/queue.php - Appointments API → Notifications: emails token details
php/api/appointments.php - Notifications → SMS provider: sends SMS
- Notifications → Email service: sends email
- Queue displays → Queue interactions: shows queue status
- Navigation and language → Patient portal: translates interface