Skip to content

Healthcare · AI · 2025

AI document triage in Pakistani healthcare that refuses to guess

Referral letters classified in Islamabad with a human queue whenever the model is unsure — not a black box.

Client
Healthcare network, Pakistan
Industry
Healthcare
Duration
14 weeks
Team
3 engineers, 1 data scientist, 1 QA, 1 PM
AI referral triage

1 The problem

A healthcare network was receiving thousands of referral letters a week as scans, faxes and email PDFs. Three people spent their days reading each one, picking specialty and urgency, and typing it into the patient system. Five-day backlogs were normal. An urgent letter could sit unread over a weekend.

2 Our approach

The design that got it past clinical governance was not the model. It was the threshold. We classify specialty and urgency; anything the model is not confident about goes to a person. Clinicians see extracted fields next to the original page and correct in one click. Those corrections are the next week’s labelled set. Built and monitored from Islamabad, not as a demo that only works on clean English PDFs.

3 What we built

  • OCR for scans, faxes and native PDFs
  • Specialty and urgency with a calibrated confidence cut
  • Low-confidence cases to a human queue by design
  • Side-by-side review with one-click correction
  • Audit trail of model output and every override
  • Weekly evaluation on a clinician-labelled holdout set

4 Technology

Python Claude LangChain Laravel PostgreSQL AWS Textract

The results

~81%

Referrals routed without a first human read

Days → hours

Median time to triage

High

Agreement on the urgent class

Smaller queue

Staff still on triage, by design

“What convinced the governance board is that it refuses to guess. Anything borderline still reaches a person.”
Clinical director
Healthcare network, Pakistan (name withheld)

More work

Other case studies

Hospital information system ERP

Healthcare · 2024

Hospital information system

Hospital group, Punjab

One patient record across a multi-facility hospital group in Punjab, replacing seven tools that did not talk to each other.

Patient wait times down about a third, with no downtime during cutover

Laravel Vue 3 PostgreSQL AWS
Read the case study
Learning management platform SaaS

Education · 2023

Learning management platform

Education network, Pakistan

Multi-tenant LMS for a Pakistani education network that used to fall over on results day.

Results day held under tens of thousands of concurrent students

Laravel Livewire MySQL Redis
Read the case study

Have a similar problem?

Tell us what is not working. If we have solved something like it, we will walk you through how — including what we would do differently.

Or call +923019278056 · We reply to every enquiry within one working day.