Helping Hospitals Automate Prescription Processing
We helped a healthcare provider reduce manual prescription processing using AI, enabling pharmacists to spend less time on paperwork and more time on patient care.
Prototype built on synthetic/demo data. Results are from demo testing.
Project facts
- Client
- Batra Hospital
- Industry
- Healthcare
- Year
- 2024
- Duration
- 10 weeks
- Team
- 6 people
- Status
- Prototype

The challenge
Pharmacists relied on manually reading handwritten prescriptions, creating delays in dispensing medication, increasing administrative workload, and introducing avoidable transcription errors.
The hospital's pharmacy team was spending valuable time manually interpreting handwritten prescriptions before medicines could be dispensed. As patient volumes increased, this process became a significant operational bottleneck. Our objective was to automate repetitive work, improve prescription accuracy, and allow pharmacists to focus on patient care instead of administrative tasks.
Decision log
What we weighed, what we chose, and why.
- Decision 01
How should we read handwritten prescriptions?
- Problem
- [VERIFY] Prescriptions are handwritten and often hard to read, and a misread medicine or dose leads to medication errors.
- Options
- One OCR engine for everything (rejected)
- Fixed templates per prescription layout (rejected)
- Google, Azure and AWS OCR in parallel, best result per section (chosen)
- Decision
- [VERIFY] Run Google Document AI, Azure Form Recognizer and AWS Textract in parallel on every section, and keep the result with the highest confidence.
- Why
- [VERIFY] Different OCR engines are better at different kinds of content. Running all three in parallel keeps the OCR step to about 3 seconds while picking the strongest reading for each section.
- Decision 02
Whole page or section by section?
- Problem
- [VERIFY] A prescription mixes patient details, a medication list, instructions and a signature. One pass over the whole page treats them all the same.
- Options
- OCR the whole page in one pass (rejected)
- Content-aware segmentation into sections (chosen)
- Decision
- [VERIFY] Split each image into header, medications, instructions and signature sections (about 90 ms) before OCR.
- Why
- [VERIFY] Sections can be processed and scored separately, which improves accuracy for each type of content.
- Decision 03
How do we turn raw OCR text into medication records?
- Problem
- [VERIFY] OCR output contains misspellings ("Prctmol") and abbreviations ("BD", "TDS") that a pharmacy system can't use directly.
- Options
- Hand-written parsing rules (rejected)
- AWS Comprehend Medical + Gemini correction (chosen)
- Pharmacists re-type everything (rejected)
- Decision
- [VERIFY] Extract medication, dosage, frequency, duration and route with AWS Comprehend Medical, then correct errors and expand abbreviations with Gemini using medical context.
- Why
- [VERIFY] Medical NLP understands drug entities, and the correction step turns "Prctmol" into "Paracetamol" and "BD" into "Twice daily" before anyone reviews it.
- Decision 04
How do we know a medicine name is real?
- Problem
- [VERIFY] Even corrected text can name a medicine that doesn't exist or match the wrong brand.
- Options
- Trust the model output (rejected)
- Validate against RxNorm and a 253K+ Indian medicine database (chosen)
- Decision
- [VERIFY] Fuzzy-match every extracted medicine against 253,973+ Indian medicine records and RxNorm codes.
- Why
- [VERIFY] Every medication is checked against a known record, with brand, generic, manufacturer and price attached for the pharmacist.
- Decision 05
When does a human check the result?
- Problem
- [VERIFY] Some prescriptions will always be too unclear to process automatically, and failing silently is not acceptable in a pharmacy.
- Options
- Auto-approve everything (rejected)
- Review every prescription by hand (rejected)
- Route by confidence score (chosen)
- Decision
- [VERIFY] Auto-approve at 0.95 confidence or above; below that, send to pharmacist review with low (0.85+), high (0.70+) or urgent priority.
- Why
- [VERIFY] Pharmacists spend their time only on the prescriptions that need them, and nothing uncertain goes straight through.
What we built
Rather than replacing pharmacists, we built an AI-assisted workflow that digitizes handwritten prescriptions, validates medication information, and automatically routes uncertain cases for human review. This approach increased productivity while maintaining clinical oversight.
We automated the prescription processing workflow using AI-powered handwriting recognition, medical language processing, and intelligent validation, allowing prescriptions to be converted into structured digital records within seconds.
Faster Prescription Processing
Digitizes handwritten prescriptions within seconds, dramatically reducing manual interpretation time.
Improved Staff Productivity
Allows pharmacists to focus on patient care instead of repetitive administrative work.
Reduced Medication Errors
AI validation and confidence scoring help minimize transcription mistakes before dispensing.
Structured Medical Records
Creates searchable, standardized prescription data for downstream healthcare systems.
Smarter Review Process
Only low-confidence prescriptions require manual verification, reducing unnecessary workload.
Scalable Operations
Supports increasing prescription volumes without requiring proportional staffing growth.






What changed
The full story
The Business Challenge
Handwritten prescriptions are a daily reality for many hospitals, but manually interpreting them slows pharmacy operations, increases administrative workload, and introduces unnecessary risk. As prescription volumes grow, pharmacists spend more time reading handwriting than supporting patients.
Our Approach
We developed an AI-powered workflow that automatically converts handwritten prescriptions into structured digital records. Multiple AI models work together to extract medication names, dosages, frequencies, and durations while validating results against a comprehensive medicine database.
Business Impact
- Reduced manual prescription processing
- Improved pharmacist productivity
- Accelerated patient service
- Reduced transcription errors
- Standardized digital prescription records
- Built a scalable pharmacy workflow
Technology
The solution combines OCR, Medical NLP, AI validation, and cloud infrastructure to deliver reliable prescription automation while maintaining clinical oversight.
What we built
- Automated handwritten prescription digitization
- AI-assisted medication extraction
- Medical terminology validation
- Confidence-based review workflow
- Structured digital prescription records
- Searchable medicine database
- Real-time processing
- Hospital-ready API integration
Results
Faster prescription processing, improved pharmacist productivity, reduced manual data entry, and a more reliable medication workflow.
More work

Helping Restaurants Streamline Daily Operations from a Single Platform
We helped a growing restaurant business replace fragmented tools with a unified operations platform, improving staff productivity, reducing manual work, and giving managers real-time visibility…

Helping a Senior Travel Business Scale with Confidence
We helped a senior travel company streamline trip planning, improve customer trust, and reduce manual coordination by digitizing their entire service workflow.
Let’s write the first page of your log.
A 30-minute scoping call with an engineer, not a salesperson. You’ll leave with a clear next step, even if it isn’t us.
- Reply
- Within one business day
- Call
- 30 minutes, video
- You get
- Written summary + rough estimate
- hello@qbitlog.com