Hospital Admin
For operational administrators who set up hospital users, structures, assignments, maps, and zones.
- People and ward assignments
- Beds, markers, and QR codes
- Floors, geofences, and map editor
- Setup and daily workflows
One hospital operations and clinical-care platform with role-based dashboards, ward-scoped access, floor maps, geofences, AR bed markers, medication administration, handoffs, reports, and printable summaries.
A single same-origin web application for hospital setup, daily clinical work, and bedside AR lookup.
The Hospital AR System connects operational structures such as hospitals, floors, wards, beds, and zones with patient records and clinical workflows. Each account belongs to one hospital, and staff and doctors see only the wards assigned to them.
Hospital admins maintain staff and doctor accounts, ward assignments, beds, marker and QR identifiers, floor plans, geofences, and map geometry.
Staff and doctors manage admissions, vitals, alerts, medicines, MAR doses, handoffs, reports, and patient summaries within their assigned wards.
Leaflet maps show wards and beds, zone tracking supports QR check-in, and the AR page identifies patients from bed markers.
Hospital scoping, ward memberships, JWT authentication, audit records, printable sheets, and staff/doctor idle protection support controlled access.
Choose the guide that matches your role or task.
For operational administrators who set up hospital users, structures, assignments, maps, and zones.
For nursing and operational staff performing ward-scoped clinical and patient-care tasks.
For doctors reviewing assigned patients and documenting diagnoses, medicines, comments, MAR, and handoffs.
The three role guides embed their screenshots directly in the HTML. The developer guide is also self-contained.
Access is enforced by the backend, not only hidden in the user interface.
| Role | Primary responsibility | Data scope |
|---|---|---|
super_admin | Manage hospitals and privileged accounts; oversee the full system. | Cross-hospital administrative access. |
hospital_admin | Create staff/doctors and maintain wards, beds, floors, zones, maps, and assignments. | Own hospital; operational data only, not clinical records. |
staff | Admissions, vitals, alerts, MAR, handoffs, and reports. | Assigned wards and their patients. |
doctor | Review patients; update diagnosis, medicines, comments, MAR, and handoffs. | Assigned wards and their patients. |
A no-build JavaScript frontend talks to a Slim API backed by MySQL and private file storage.
Vanilla ES modules, hash routing, Leaflet maps, Chart.js vitals, A-Frame/AR.js markers, and a PWA shell. There is no bundler or frontend build step.
PHP 8.2+, Slim 4, PHP-DI, Firebase PHP-JWT, and PDO MySQL. Controllers apply hospital scope, ward membership checks, validation, and audit logging.
Seventeen InnoDB tables cover hospitals, users, structures, patients, vitals, reports, notes, medicines, MAR, handoffs, memberships, tracking, and audit.
Uploaded reports and floor images are private files. The service worker never caches /api responses and requires a cache-version bump when shell assets change.
For exact routes, middleware order, table relationships, migration rules, and safe change procedures, use the Developer Guide.
Most work follows one of these paths.
Create staff and doctors, add floors and wards, place beds, assign ward access, upload floor plans, position map geometry, and publish zone QR codes.
Confirm the correct ward, register the patient with an MRN, select an available bed, verify the location, then begin clinical documentation.
Review alerts and assigned patients, record measured vitals, administer scheduled medicines, upload reports, and complete or acknowledge handoff notes.
Search the patient list, open the ward map, or scan the bed QR/marker with the AR page. Confirm patient identity before viewing or changing clinical data.
Read online or from a local folder, and print only when necessary.
docs/index.html in any modern browser.These documents describe the current four-role release. When behavior changes, update the relevant guide and the developer reference together.