The problem
In healthcare software, a mistake reaches a patient. An AI assistant can invent a medicine, a price or an approval. Prescription medicine can be sold without a pharmacist's review, the last unit in stock can be sold twice, and lab results can be released before anyone checks them.
Pharmacies, hospitals, clinics and labs wanted patients to order, book and get results on WhatsApp, without giving up control of any clinical decision or storing more patient data than needed.
The approach
We learned the real workflow first and wrote it down before changing any code. The safety rules were then enforced in code, not in prompts:
- The AI agent acts only through typed tools, with capped rounds and a hand-off to staff whenever it is unsure.
- Prescriptions are read with OCR and placed in a pharmacist review queue; unapproved prescription orders are blocked.
- Stock is held earliest-expiry-first inside database transactions, so the same unit is never sold twice.
- Lab reports need a second person's verification, with critical values flagged, before release.
Automation prepares the work and clinicians decide. Changes ship in small steps, behind settings that are off by default.
The build
MediMate is one multi-tenant platform with a portal for each kind of care organisation:
- A pharmacy portal with WhatsApp AI ordering and prescription review.
- A hospital and clinic portal with OPD token queues, appointments, patient records and DICOM imaging.
- Lab tests, sample collection and report release, plus a website and patient login for each organisation.
- Less stored patient data, a release step, signed links and an audit entry on every view of a record.
The result
What was delivered, stated plainly:
- The pharmacy product passed all 8 release-readiness checkpoints and closed all 92 QA issues, with over 1,700 automated tests.
- The hospital, clinic and lab modules are built and tested but not yet launched or piloted.
- On a live US pharmacy and prior-authorization platform, our backend work on the insurer and e-prescribing gateways merged one change that removed over 1,000 lines of code.
The same rules apply to every healthcare project we take on: AI prepares, a qualified person approves, and every access to patient data is recorded.



