Skip to content

Hospital & clinic suite — queues, pharmacy POS, lab, imaging, and owner dashboards

Hospital Management System (HMS)

Enterprise hospital suite at hms.wilayats.com — Laravel 13 + Inertia + React 19 spanning appointments, consultations, pharmacy/POS, lab, X-ray, blood bank, finance, and inventory. Permission-driven sidebars per role; optional Laravel Reverb realtime queues and a patient self-service portal.

A clinic day has a queue, not a form

HMS at hms.wilayats.com is the hospital and clinic suite: appointments, consultations, pharmacy and point of sale, lab, X-ray, blood bank, finance, and inventory. The appointment states are explicit — confirmed, checked in, called, in consultation, completed — with an audit log and a printable queue. A waiting room does not run on a free-text status.

Sidebars are permission-driven per role. A pharmacist should not see the blood-bank donor list because they share a login theme with the lab. Optional Laravel Reverb pushes queue changes to the desk, and a patient portal covers the self-service side of the same appointment.

Clinical stock is batch stock

Pharmacy is goods receipt, batch and expiry, dispensing, and a shift. Lab has a worklist and results. X-ray is an imaging workflow. Blood bank runs from donor through transfusion. Those are different regulated paths, and they share finance: day-end, inventory, and a hospital-owner dashboard for revenue, pharmacy sales, and staff performance.

The application is Laravel 13, Inertia, React 19, and PostgreSQL, with Sanctum where a token client is needed. DomPDF and Escpos cover printables and receipt printers. OpenSpout is there for exports. GitHub Actions runs Pest plus ESLint and Pint, because a queue state bug is a patient waiting, not a styling nit.

What I refused to collapse

It is tempting to model “a visit” as one table with a type column and let every department write to it. That falls apart the first time pharmacy needs a batch number and imaging needs a study, and finance needs both to hit day-end. Separate workflows with a shared appointment spine keep the audit readable.

Owner dashboards read from those workflows. They are not a second database. If revenue on the owner screen cannot be traced to a dispensed batch or a paid appointment, the dashboard is decoration.

In production

Role-based sidebars gate pharmacy POS, lab worklists, X-ray imaging, and blood-bank workflows. Optional Laravel Reverb powers realtime queue updates; hospital-owner dashboards surface revenue, inventory, and staff performance.

What shipped

  • Appointment lifecycle: confirmed → checked_in → called → in_consultation → completed with audit logs and queue printing
  • Pharmacy GRN, batch tracking, dispensing, lab worklist/results, X-ray imaging, and blood-bank donor-to-transfusion workflows
  • GitHub Actions CI (Pest + ESLint/Pint); hospital-owner dashboards for revenue, pharmacy sales, inventory, and staff performance

Building something in the same lane?

ERP, SaaS, healthcare, delivery, and proptech systems are the work. Tell me what the operation actually has to do.