Delivery journal · The context behind the implementationDiscuss a similar challenge ↗
Case study, India, proof of concept

AI lab report analysis: turning a lab report into one a patient understands

A doctor wanted to know whether AI could take a patient's lab or scan report and explain it in plain words: what is out of range, what each term means, and what to do and ask next. We built the proof of concept on WhatsApp and the web. Per the founder, the doctor has taken it to several hospitals and a pilot is running, with PDF input ready.

November 23, 2026 · 12 min read · Jitendra Choudhary, CTO & Co-Founder

AI lab report analysis on WhatsApp: values outside the normal range with ranges and high or low status

OUR ROLE

A doctor in India brought the question of whether AI could explain a lab report to a patient. We built the proof of concept on WhatsApp and the web, and per the founder, the doctor has taken it to hospitals and is running the pilot.

WHAT'S SHOWN

Visuals are recreated screens and real pilot outputs, all with sample data. The doctor and hospitals are not named.

This was a healthcare AI solution built to test an idea quickly, with the safety rules a patient-facing product needs from day one.

The question a doctor wanted answered

Patients get a lab report full of numbers, ranges and abbreviations, and then wait days to ask the doctor what it means.

What the doctor wanted to test

Could AI read the report the patient already has, find what is out of range, and explain it in words a non-medical person understands? Could it give sensible next steps and good questions for the next visit, without pretending to diagnose?

What we built

A WhatsApp assistant that asks a few questions, takes the report, and replies in short messages, then sends a PDF and a voice note. A patient web dashboard adds report history and a trend chart for each test. Per the founder, the doctor took it to several hospitals, and a pilot is now running with PDF input.

The product is a guided AI agent for healthcare: it leads the patient through a short chat, and it explains rather than decides.

What the patient sends, and what comes back

Patient sendsHow it is read
Lab PDF on WhatsAppText taken straight from the PDF. This is the most reliable input, and the one the pilot uses.
Photo of a printed reportRead with OCR (optical character recognition), then rebuilt as a table of test, result, unit and range.
Typed values, such as "HbA1c: 7.4"Checked by AI first: is this a test report at all?
Upload on the web dashboardSame steps as WhatsApp, with results saved to the patient's history.
WhatsApp intake for AI lab report analysis: age, gender and a list of conditions

The guided chat asks age, gender and conditions first, so advice fits the person.

Lab report PDF received on WhatsApp with the checking your report progress steps

The patient sees each step while the report is checked.

What comes back

Values out of range

Only the abnormal results, each with the patient's value, the normal range, and high, low or borderline.

Terms explained

Each test and term in plain words, with the part of the body it relates to.

What to do

Immediate actions, food, exercise for the patient's age, daily habits and tests to repeat.

For the next visit

Ten questions to ask the doctor, a trend chart for each test, a PDF and a short voice note.

Recreated WhatsApp screen: lab values outside the normal range, with sample data

Recreated screen with sample data: a lab report summary.

Real WhatsApp output from the pilot: a scan report summary and medical terms explained, with sample data

The pilot's real WhatsApp output, with sample data: a scan report summary and terms explained.

AI medical report summary: medical terms in a lab report explained in plain language

Terms explained in plain words, with the body part each one relates to.

Lab report recommendations on WhatsApp: actions, Indian diet advice and exercise ideas by age

Next steps, food and exercise, tailored to a 46-year-old with diabetes and blood pressure.

Questions for the doctor and follow-up tests generated from a lab report

Tests the doctor may suggest, and ten questions to take to the visit.

Smart report PDF and a voice note summary sent on WhatsApp

The full report as a PDF, plus a voice summary for patients who prefer to listen.

Want a patient-facing tool like this for your hospital or lab? We do custom healthcare software development from proof of concept to pilot.

How it works

Every step after reading the report runs on text with patient details removed, and every AI answer is checked before it is shown.

AI lab report analysis flow: WhatsApp or web input, reading, redaction, report check, abnormal values, explanations, schema check, trends, PDF and voice
A guided chat before any AI runs
The assistant asks age, gender, lab or scan, and conditions from a lettered list (diabetes, blood pressure, heart, kidney, thyroid, lung, liver, neurological, bone). The answers go into every prompt, so a 46-year-old with diabetes gets different exercise and food advice than a 22-year-old with none. Timers send a gentle reminder if the patient goes quiet.
PDF text first, OCR only for photos
A PDF from a lab carries its text, so it is read directly. A photo goes through OCR. Either way the text is rebuilt into one table of test, result, unit and reference range before anything else happens.
"Is this a report?" before the real work
Patients send prescriptions, bills and selfies too. A short AI check answers yes or no. If no, the patient is told what to send instead, and nothing is saved.
Abnormal values only, in a fixed shape
One prompt pulls only the results outside their range, as test name, result and range. Another writes the explanations and advice in eight fixed sections: term explanation, immediate actions, nutrition, exercise, lifestyle, health tips, follow-up tests and questions for the doctor.
Reference ranges and trends
The report's own ranges are shown to the patient. For the trend charts, each result is saved as one reading per test with its date, and the last three readings are drawn against a normal band for common tests such as glucose, sodium, potassium and hemoglobin.
Structured AI output validated against a schema, with retry and a safe fallback

The schema check catches missing fields, wrong types and stray text around the answer. It does not catch a number copied wrongly from the report. That needs a check against the source table or a clinician's review, which are in the roadmap below.

Real smart lab report PDF pages: summary values, terms explained, next steps, nutrition, exercise, questions for the doctor and health trends

The real PDF the pilot sends, with sample data: summary and terms, advice and questions, and health trends.

The 2026 upgrade: switchable AI and a patient dashboard

The first version ran on one AI provider and WhatsApp only. In April 2026 we added a provider layer and a web app.

AI provider switch between OpenAI, Google Gemini, Groq and Mistral with token and cost logging

One setting picks the model

OpenAI is the default, with Google Gemini, Groq and Mistral as options. Every provider gets the same prompts and the same schema. Each call logs tokens and cost, so providers can be compared on the same reports before a hospital chooses one.

A dashboard the patient keeps

Patients sign in to see every report they have checked, open the PDF again, upload a new report and follow each test over time.

Lab test trends over time with the normal range shown as a band

Trends: the last three results for each test against the normal range.

Patient dashboard with lab report history and values out of range

Report history, newest first, including a photo that could not be read.

Web upload of a lab report with checking steps and patient details

Web upload, with the same checks as WhatsApp.

Data model for lab trends: patient, lab report, test reading and trend chart

How patient details are redacted

Per the founder, identifiers were redacted before AI processing in the pilot. This is how redaction works in the pilot, set out as a reference design.

Patient data redaction before AI: read text, find identifiers, replace with tokens, leftover check, model sees the test table only
StepWhat happensDetail
1Read the textText comes out of the PDF, or out of OCR for a photo. For photos, the header region, where names, barcodes and signatures sit, is masked before the OCR text is kept.
2Find identifiersPatient name, phone, address, date of birth, hospital or lab patient ID (UHID), sample or accession number, referring doctor, lab name, and signatures or barcodes in the header block. Pattern rules find phones, dates and IDs. Name detection finds people and places.
3Replace with tokensEach identifier becomes a stable token, such as [PATIENT_1] or [ID_1]. Only the age band and gender stay, because the advice needs them.
4Check, and fail closedA second pass looks for anything left. If it finds an identifier, the report is not sent to the model, and the patient is asked for the lab PDF.
5Send the test table onlyThe model sees tokens, the age band, gender, chosen conditions, and the tests with results, units and ranges.
6Put names back locallyWhen the patient's own PDF is built, tokens are mapped back to the real details on our side. The map is stored apart from the report with short retention, and never written to logs or prompts.
Before and after redaction: raw lab report text with identifiers, and the tokenized text the AI model sees

Sample data: the report text as read, and what the AI model receives.

What this design protects against: identifiers reaching an outside AI provider in prompts. What it does not prove on its own: that every unusual layout is caught. That is why the leftover check stops the report instead of sending it.

Safety: explain, never diagnose

RuleWhere it shows
Not a diagnosisIn the first WhatsApp message, after the results, in the PDF footer and on every web page.
Check the input firstA report check runs before any explanation. A prescription or a blurred photo gets a clear reply and nothing is saved.
Keep medicines as prescribedEvery set of advice says to talk to the doctor before changing treatment.
Patient details stay out of AI callsRedaction before the model, as above, per the founder.
Unreadable lab report photo error on WhatsApp with steps to send a better photo

A blurred photo and a prescription: each gets a plain reply and a way forward.

Where it goes next: EHR and LIS integration

Planned scope, not shipped. Today the patient sends the report. Next, results would arrive from the lab or hospital system directly, through standard healthcare interoperability.

Planned EHR and LIS integration: HL7 v2 ORU, FHIR DiagnosticReport and Observation, ASTM feeds, LOINC and UCUM, consent, clinician review, FHIR DocumentReference
Planned pieceWhat it would do
Results from the lab's LISReceive HL7 v2 ORU^R01 result messages from the laboratory information system.
Results from a hospital EHRRead FHIR DiagnosticReport and Observation resources.
Labs without an LISTake ASTM feeds from the analyzers.
Coded tests and unitsA LOINC code for each test and UCUM units, so results from different labs can be compared and trends stop mixing units.
ConsentABDM-style patient consent where it applies in India.
Clinician reviewA queue where a doctor approves the explained report before release.
Report back to the chartSend the patient-friendly report into the EHR as a FHIR DocumentReference, and to patient apps.
Indian languagesTranslation is already built and switched off. It would be turned on after review of each language.

What we learned

What happenedWhat we do now
Generic advice felt useless to patients with long-term conditions.Ask age, gender and conditions before reading the report, and put them in every prompt.
Long replies buried the one thing that mattered.Lead with the values out of range, in their own message, then offer the rest.
Free-text AI answers broke the formatting on WhatsApp and in the PDF.Ask for fixed fields and check every answer against a schema, with retries.
Patients sent prescriptions, bills and blurred photos.Check "is this a report" first, and reply with what to send instead.
The report's ranges and our built-in ranges could disagree.Show the report's own range to the patient. Coding tests with LOINC is the real fix.
Patients sent the same report twice, or a second one before the first finished.Lock each patient while a report is processing.
One AI provider is a single point of cost and failure.Keep the provider swappable, and log tokens and cost per call.

Want to test an AI idea with real patients?

We build proofs of concept that are safe enough to pilot: redaction before AI, checked outputs, clear disclaimers, and a path to EHR and LIS integration.

Questions buyers ask

What is AI lab report analysis?
Software that reads a lab report, finds the results outside their normal range, and explains them in plain words with next steps. In this proof of concept it also gave food and exercise ideas, tests to repeat, questions for the doctor and trend charts.
Does an AI medical report summary replace the doctor?
No. Every channel says the summary is not a diagnosis, and the advice tells patients to keep taking their medicines and talk to their doctor before changing anything.
Which inputs can it read?
A lab PDF, a photo of a printed report, typed values such as HbA1c: 7.4, and uploads on the web dashboard. PDFs are the most reliable and are what the pilot uses.
How are patient details kept out of the AI model?
Per the founder, identifiers were redacted before AI processing in the pilot. Names, phones, dates of birth, IDs, doctors and labs are replaced with tokens, a leftover check stops the report if anything is missed, and names are put back only in the patient's own PDF.
How do you stop the AI from returning broken or rambling answers?
The model is asked for fixed fields, and every answer is checked against a schema. If it does not match, the call is retried, and if it still fails the patient is asked for a readable PDF. The schema check catches format problems, not a wrongly copied number.
Which AI models does it use?
OpenAI by default, with Google Gemini, Groq and Mistral available through one setting. Each call logs tokens and cost so providers can be compared on the same reports.
Is it integrated with hospital LIS or EHR systems?
Not yet. LIS integration over HL7 v2, EHR integration over FHIR, coded tests with LOINC, and sending the report back as a FHIR DocumentReference are planned scope.
Does it support Indian languages?
Translation is built but switched off. The pilot runs in English, and each language would be reviewed before it is turned on.
How are trends shown?
Each result is saved as one reading per test with its date. The chart shows the last three readings against a normal band, on the web dashboard and in the PDF.
Can you build something like this for our hospital or lab?
Yes. We build healthcare AI proofs of concept that are safe enough to pilot, and then connect them to your LIS or EHR. Book a 30-minute call to talk it through.