What it does
Hospital outpatient departments see long queues. Patients often wait in the order they arrive, even when someone in the queue needs care sooner. OPD Triage Lens sorts the queue by urgency instead.
A person types their symptoms in English or Hinglish. The tool gives one of four colours. Red means emergency care now. Amber means a same-day slot. Green means a routine slot. Blue means self-care is enough for now. Each result also says which slot to take and gives a short handoff note for the doctor.
There is a second part called Prevent. It asks a few questions about age, family history and daily habits. It then gives a simple risk picture and a list of screening checks with dates.
Honest disclosure
OPD Triage Lens is a rule-based triage engine, NOT a trained machine-learning model. It works from 34 written rules that anyone can read in the rule book on the site. There is no trained model, no API call and no data sent anywhere. Everything runs in the browser. The tool never diagnoses, never prescribes and never replaces a clinician. If the symptoms do not match any rule, it says so plainly instead of guessing.
How it was built
The rules were written by hand from common outpatient symptoms, in English and Hinglish. Four combination rules cover cases where two symptoms together change the answer, such as chest pain with breathlessness. Age group, how long symptoms have lasted and patient-entered vitals can shift the result. The full rule book is shown on the site, so every answer can be checked. The engine was tested against 45 labelled test cases written by the builder. It agreed with the labels in all 45 cases. That is a check of the rule book, not a claim about real patients.
What was hard
The hard part was deciding where each line should sit. A rule that is too eager sends too many people to emergency care. A rule that is too slow misses urgent cases. The answer was to keep the rules visible, test them one by one and let unknown symptoms end in an honest "cannot triage" instead of a guess.
Built With
- css
- html
- javascript
- vercel