Case study · AI for clinics
Solo build · November 2026
ClinicMind.
The patient's full story, with proof, before the doctor decides.
AI helpers turn a pile of old reports and prescriptions into a clear patient story. They flag slow changes that are easy to miss, link every fact to its original report, and ask a person when they're unsure. Patients get their own health page and reminders between visits.
Demo with made-up patients and simulated messages. Not a medical device.
38
features across records, daily work and patient care
25/25
lab values read correctly in a small test on made-up documents
25/25
highlights placed on the correct report row in the same test
0
files attached automatically to the wrong patient in the same test
Demo
From a pile of paper to a clear story
Six minutes of the running app: the patient story, a slow change with its proof, the AI helpers, Urdu questions, an allergy alert, and the patient's side on their phone.
The problem
Short visits. Years of paper.
In many private clinics, a returning patient's history is a mixed pile of old reports and prescriptions. One published study at a Karachi hospital outpatient department found about 6 minutes per patient, so there's rarely time to compare years of paper.
A value that drifts slowly is easy to miss when each report is read alone. An allergy can sit in an old hospital letter. And once patients leave, overdue tests and missed medicine can go unnoticed until the next visit.
ClinicMind does the comparing and keeps the proof one click away, while every medical decision stays with the doctor.
How it works
- 01
Read
Upload messy scans and prescriptions. AI sorts each file, reads its details and notes where each value sits on the page.
- 02
Match
A file joins a patient's record automatically only when both the name and file number match exactly.
- 03
Double-check
A second reading and code checks must agree. Anything unclear goes to a person instead of being guessed.
- 04
Find what changed
Code, not AI, compares verified values over time, finds slow changes and spots missing tests.
- 05
Show the proof
The doctor gets a short brief and a visual patient story, and each fact links to its original report.
What it does
One system for doctors, clinics and patients
For the doctor
- Patient story playback on a 3D body
- Slow changes found across several reports
- Click any value to see the original report
- Morning brief for each patient
- Questions in Urdu or English, with sources
For daily clinic work
- Voice notes and prescription drafts
- Record-based allergy and duplicate alerts
- Urdu patient instructions
- Referral letters and medical certificates
- End-of-day list and activity log
For patients
- QR code to their own health page
- Results in simple English or Urdu
- Medicine instructions read aloud in Urdu
- Medicine ticks and home readings
- See who opened their record
For the clinic
- Rule-based reminders for WhatsApp and SMS
- QR check-in with a token and estimated wait
- Live waiting room screen
- Emergency QR card
- 48-hour share links and a clinic overview
Inside the product
Real screens from ClinicMind
All patients, doctors, clinics and reports shown are made up.
Built with care
Safety rules in the design
The doctor decides
ClinicMind never diagnoses or suggests treatment. Asked whether to stop a medicine, it declines and reports only what's on record.
Every fact has a source
Facts link back to the original page, and answers without valid sources aren't shown.
Unverified values stay out
A doubtful value goes to a person and is left out of trends, briefs and alerts until it's confirmed.
Wrong-patient protection
A similar name isn't enough. Files that don't match exactly wait for a person.
Patients stay in control
No message goes out without the patient's agreement, and a family member is told only if the patient agreed.
Urgent signs don't wait
A reading over the limit or a report of chest pain shows urgent guidance and alerts the doctor at once.
Measured, not claimed
Test results
Lab values
25 / 25
Read correctly on 21 pages of made-up scans with skew, shadows and folds.
Source highlights
25 / 25
Landed on the correct report row, compared with the known position of each row.
Asked a person
2 / 2
The smudged dose and the blurred photo both went to a person instead of being guessed.
Automated tests
24
Trends, verification, Urdu script, alert channels and reading limits.
This was a small test on made-up documents that were also used during development, so it doesn't prove real-world accuracy.
How it's built
Architecture
People
Doctor's dashboard
React · TypeScript · Three.js
Patient's phone
QR page in English and Urdu
Waiting room
Live screen, first names only
FastAPI backend
AI steps run as a controlled workflow, and only the question-answering agent chooses its own tools. It can reach only the open patient's records, enforced by code.
Services
Gemini API
reads pages, hears audio, uses tools
PostgreSQL
verified facts, drafts, activity log
Message hook
ready for a WhatsApp or SMS service
How the approach differs
| Aspect | Typical clinic software | General AI chat | ClinicMind |
|---|---|---|---|
| Old paper records | Mostly stored as files | Summarised on request | Read, double-checked and turned into a timeline |
| Slow changes | Doctor compares by hand | May be missed | Found by code across every verified report |
| Trust | Records as entered | Answers can be hard to check | Each fact links to the original report line |
| When unsure | Not applicable | May guess | Asks a person, and shows the reason |
| Patients | Often booking only | Not connected | Own page, reminders, check-in and emergency card |
A general comparison of approaches, not a review of any specific product.
Engineering notes
Decisions that mattered
AI reads, code calculates
AI is good at messy pages and language, while arithmetic has to be repeatable. Lab values are saved as structured facts, and code works out trends and changes. The AI can't invent a number or add a cause to a slow-change finding, because that sentence comes from a template.
Two readings before a value is trusted
A value is verified only if a separate AI reading matches and code accepts the test, unit, range and page position. This is what caught the smudged 500 or 800 mg dose in testing, and it sent the blurred photo to a person.
Testing caught what a green check missed
One automated run passed even though an Urdu answer had come back in Hindi script. Code now rejects anything that isn't Perso-Arabic Urdu before it's shown. Reviewing real screens also found a smudged file wrongly shown as added, and wait times that disagreed.
Built to work within a free tier
Every AI result is saved against its exact input, so a reset costs no API calls and the demo runs with no key at all. Patient features use rules instead of AI, so they keep working when the daily AI limit is used up.
Current limits
What it isn't yet
- It uses made-up patients and documents. Real handwriting and scans will be harder, and the test was small.
- WhatsApp and SMS delivery is simulated. A hook is ready, but no real provider is connected.
- It isn't ready for real patients. It needs real sign-in, stronger patient access, legal review and clinical testing.
- Reading limits, urgent symptoms and medical wording still need review by a qualified doctor.
- It hasn't been tested in a clinic, so time saved and clinical benefit haven't been measured.
- Next: doctor review, testing with permitted real documents, one-time phone codes and a real WhatsApp connection.
- Independent project, not affiliated with any company of a similar name.
Stack
Have paperwork AI could take on?
I build AI automation that shows its sources, asks when it's unsure and leaves the final call with people.
Talk to meAlso built
CamMind: plain-English rules for IP cameras
Runs locally with one Docker command.
The demo starts from saved AI results, with no API key.













