Skip to main content
Download free report
Softblues
Softblues

Healthcare · AI business automation

Six legal checks stand between a prescription and the patient. Today they take 15 minutes.

AI-powered pharmacy operations assistant

Every US prescription runs through six federally mandated steps before anyone can hand it over. Done properly that takes 15 to 20 minutes, pharmacists spend nearly half their day on it, and most safety alerts get ignored because there are too many to read. The client set out to automate that workflow without dropping a check. Here is how we built it: eight specialised AI agents, validated by pharmacists, now in beta on a live QS/1 integration.

US pharmacy-tech companyHealthcareMulti-agent automationPoC validated · in beta
Book a case walkthrough
15–20 min → seconds
The six-step workflow we're compressing
A pharmacist freed from paperwork as prescriptions flow through automated safety checks

A $630bn industry under strain

US pharmacies fill 18 million prescriptions a day, and every one has to clear six legally mandated steps. The work is heavy and the systems are old. Pharmacists spend about 48% of their time on verification and 16% with patients, and most drug-interaction alerts never get read.

18M

US prescriptions filled a day

Source: JAPhA time-motion studies; CDC PDMP research

62%

Pharmacist burnout, higher than physicians

Source: 2023 pharmacy workforce burnout survey

90%

Of drug-interaction alerts get overridden

Source: AHRQ clinical decision support research

The work behind every script

Six steps, all mandated

Every prescription has to pass through the same six operations before it reaches a patient. Five of the six are required by federal or state law.

1. Prescription receipt and data entry
Time2–5 min
MandateRequired · 74% need clarification
2. Drug utilisation review (DUR)
Time8–50 sec
MandateOBRA '90
3. Insurance claim adjudication
Time1–3 min
MandateRequired · prior auth can add hours to days
4. PDMP query (controlled substances)
Time~106 sec
Mandate49 states
5. Final verification (pharmacist only)
Time8–24 sec
MandateOBRA '90
6. Patient counselling
Time1–5 min
MandateOBRA '90

Sources: Journal of American Pharmacists Association time-motion studies; CDC PDMP research.

The opportunity

Give the time back to patients

The maths is simple. A typical pharmacy fills around 1,375 prescriptions a week. Save ten seconds on each one and that is roughly 200 hours a year handed back to patient care.

The point was never to remove the pharmacist. OBRA '90 makes the pharmacist's judgement a legal requirement. The point was to take the routine reading off their plate, so their time goes where it matters.

AI can assist every step. The legal judgement stays with the pharmacist.

The hard part

Why pharmacy is hard to automate

The client had a clear idea. The difficulty was everything around it: federal law, decades-old systems, and data you are not allowed to practise on.

Four walls in the way

01

Legacy pharmacy systems

Pharmacies run on systems like QS/1, which talk HL7 v2 over MLLP, a 1990s protocol with custom per-site message formats, VPN tunnels and no REST APIs. Cloud integration needs a middleware layer.

02

Authoritative data, everywhere

The clinical truth lives in separate sources: RxNorm for drug names, FDA OpenFDA for safety and recalls, DrugBank and DailyMed for interactions, and insurance formularies that often exist only as PDFs.

03

Healthcare compliance

HIPAA means encryption, audit logs, access controls and a signed BAA. OBRA '90 means AI can assist but not replace the pharmacist. 49 states each set their own PDMP rules.

04

No real patient data

You cannot build on real patient data, so everything was developed on synthetic prescriptions and validated by practising pharmacists, not engineers.

The bet

Could eight agents do the work of the workflow?

We split the workflow into eight specialised agents, one per task, under a single Gemini 3.1 Pro orchestrator. We wired them to authoritative sources, RxNorm, FDA OpenFDA and formulary data, and generated synthetic prescriptions to test on, so no patient information was ever at risk.

Then we put it in front of a focus group of ten pharmacists, technicians and healthcare-IT specialists. They checked the OCR, the interaction analysis and the formulary checks. The verdict was positive, and we moved to beta with a live QS/1 integration over the Google Cloud Healthcare API, HIPAA-compliant from the start.

How it works

Eight agents, one orchestrator

Pharmacy automation pipeline: a prescription upload flows through a Gemini orchestrator and eight specialised agents, wired to RxNorm, FDA OpenFDA and formulary data, into the pharmacist dashboard
  1. 1

    Prescription classification

    Identifies the prescription type and routes it into the right processing path.

  2. 2

    Data extraction (OCR)

    Reads handwritten, printed and faxed prescriptions and turns them into structured digital data, removing manual entry.

  3. 3

    Drug safety verification

    Checks interactions against FDA and drug databases, producing severity-tiered alerts instead of blanket warnings.

  4. 4

    Dosage verification

    Validates the prescribed dose against protocols and patient parameters.

  5. 5

    Medical abbreviation

    Expands and standardises the shorthand on a script so nothing is misread.

  6. 6

    Insurance verification

    Checks coverage and formulary status against live insurance data, not a static table.

  7. 7

    Prior authorisation

    Flags where prior authorisation is required and prepares the request, the step that otherwise adds hours to days.

  8. 8

    Alternative medication

    Suggests covered or clinically appropriate alternatives when the first choice is blocked.

See it in action

The platform, working

01

Prescription management dashboard

Prescription management dashboard showing the real-time prescription queue with status and safety checks
The real-time prescription queue, with automated status tracking and a safety check on every script.
02

AI prescription recognition

AI prescription recognition extracting medication details from a scanned prescription
OCR pulls medication details from handwritten and printed prescriptions and fills the fields automatically.
03

Comprehensive prescription details

Comprehensive prescription details with patient history, medications, allergies and an activity log
Full patient context: history, current medications and allergies, with a live log of every automated check.
04

Drug-drug interaction analysis

Drug-drug interaction analysis with severity levels, mechanisms and recommendations
Clinical safety analysis with severity levels, mechanisms and a clear recommendation, not a blanket warning.
05

Safety and insurance verification

Safety and insurance verification with allergy screening, duplicate-therapy detection and coverage
Allergy screening, duplicate-therapy detection and real-time insurance and formulary checks in one view.

Built with

Cloud

Google Cloud PlatformCloud Healthcare APICloud SQLBigQueryPub/Sub

AI / ML

Gemini 3.1 Pro (multi-agent orchestration)

Integration

HL7 v2 / MLLP AdapterRxNormFDA OpenFDAFormulary APIs

Backend

PythonFastAPI

Security

VPC Service ControlsCMEK encryptionCloud VPN / IAMHIPAA BAA

Where this platform sits

What the existing tools do, and don't

Most pharmacy tooling solves one slice of the workflow. This platform is built to combine prescription recognition, intelligent drug-utilisation review and insurance automation in one pipeline.

EHR platforms
AI drug reviewBasic rules
Prescription OCRNo
InsuranceNo
Prior-auth tools
AI drug reviewNo
Prescription OCRNo
InsurancePrior auth only
Drug databases
AI drug reviewRules database
Prescription OCRNo
InsuranceNo
This platform
AI drug reviewLLM-based
Prescription OCRAI OCR
InsuranceFull

Competitive positioning from the market analysis. Categories, not specific vendors.

Results

What it delivers

15–20 min → secs

The six-step workflow, compressed (target)

8

Specialised agents, one per step

10

Pharmacists and experts validated it

90%

Alert fatigue targeted by severity-tiered alerts

Validated, then in beta

Ten pharmacists and healthcare professionals validated the accuracy on synthetic data. The platform is now in beta on a live QS/1 integration, built HIPAA-compliant from the start.

200 hours a year

At around 1,375 prescriptions a week, ten seconds saved per script is roughly 200 hours a year returned to patient care.

Where else this works

The work was specific to pharmacy. The method is not. Wherever complex operations meet heavy regulation and legacy systems, the same approach fits: split the workflow into specialised agents, wire them to authoritative data, and keep the human in charge of the call.

Frequently asked questions

A multi-agent automation for the pharmacy prescription workflow: eight specialised AI agents under a Gemini 3.1 Pro orchestrator that handle classification, OCR, drug safety, dosage, abbreviations, insurance, prior authorisation and alternatives, all wired to RxNorm and FDA data. It has been validated as a proof of concept and is now in beta with a live QS/1 integration.

It automates the routine reading at each of the six mandated steps and runs checks against authoritative sources, but the pharmacist keeps the final legal judgement that OBRA '90 requires. Severity-tiered alerts mean the warnings that matter get read instead of overridden.

No. Development and testing ran entirely on synthetic prescription data, so no protected health information was at risk. Practising pharmacists validated the accuracy. The beta runs on a HIPAA-compliant architecture with a signed BAA.

Through the systems pharmacies actually run. The beta integrates with QS/1 over HL7 v2 / MLLP on the Google Cloud Healthcare API, with the middleware needed to bridge a 1990s protocol to a modern cloud pipeline.

Today around 90% of drug-interaction alerts get overridden because there are too many to read. Severity tiering ranks them, so a pharmacist sees a short list of the interactions that are clinically significant rather than a wall of warnings.

No. The same method, splitting a regulated workflow into specialised agents wired to authoritative data with a human in charge, applies to compliance review, clinical documentation and other regulated operations.

Ready to automate a regulated workflow?

If your operation runs on mandated steps, legacy systems and expert judgement, that is the work we do. Book a walkthrough of this build, or a discovery call on your own process.

Anthropic Partner Network member50+ AI ProjectsGoogle Cloud PartnerTop-5 UK AI Firm
Success Stories

Explore Other Projects

Discover more AI solutions delivering measurable results across industries