Case study · Pharmacy

A pharmacy’s prescription intake, handed to an agent.

Trained staff were keying electronic prescriptions into the pharmacy system one screen at a time, so Sumvant built an agent that works the queue the way their technicians do and leaves the final check with the pharmacist.

Anonymous by rule: no client name, no location, no screens from their system. Every number comes from the build register.

The work

What the queue asked of a person.

Strict selection rules

The right product depends on the prescription, the guideline and the stock.

Deterministic, the same way every time

Exact match drug list

Exact match or no match, and a near miss is an exception.

No fuzzy match ever commits

Prescriber instructions

A note on the prescription can change the product, the quantity or the route.

Parsed into the decision trace

Human in the loop sign off

The final check stays with a licensed pharmacist, by design.

Every prescription lands in the verification queue

What we built

Six capabilities, specified for one queue.

Queue intake

Every new prescription as a governed work order

AI vision extraction

Fields read like a technician, confidence scored

Deterministic rules engine

The rulebook as versioned rules, decision trace

System adapter

Screen state detection on a dedicated service identity

Field level read back

Every field checked against source before commit

Governed exception routing

The final call stays with the pharmacist

See it run

From eRx to the pharmacist’s queue, one field at a time.

A sample prescription with a tapering dose, worked the way the agent works a real one.

eRx queueRead · 11 fields
Patient
SAMPLE, JANE · DOB 01/01/1970 0.99
Prescriber
EXAMPLE, ALEX MD 0.98
Drug
prednisone 10 mg tablet 0.99
Sig
4 tabs po qd x3d, then 3 tabs qd x3d, then 2 tabs qd x3d, then 1 tab qd x3d, then 1/2 tab qd x4d then stop 0.97
Quantity
32 tablets 0.99
Refills
0 0.99
DAW
0, substitution permitted 0.98
Written
10/14/2026
Notes
none 0.95
Patient
SAMPLE, JOHN · DOB 02/02/1965
Prescriber
EXAMPLE, ALEX MD
Drug
metformin 500 mg tablet
Sig
Take as directed 0.98
Quantity
60 tablets
Pharmacy management system · New RxScreen: Rx entry · detected
  1. Queue
  2. Patient
  3. Drug
  4. Sig and quantity
  5. Review
  6. File
eRx queue · 1 new
SAMPLE, JANEprednisone 10 mg tableteRx
Patient searchSAMPLE, JANE
SAMPLE, JANE01/01/1970✓ DOB match · 1 of 1
Drug searchprednisone 10✓ read back
  • prednisone 5 mg tablet
  • prednisone 10 mg tablet exact strength · exact form
  • prednisone 10 mg per 5 mL solution
  • prednisone 20 mg tablet
SigTake 4 tablets by mouth once daily for 3 days, then 3 tablets once daily for 3 days, then 2 tablets once daily for 3 days, then 1 tablet once daily for 3 days, then one half tablet once daily for 4 days, then stop.✓ read back
Quantity32✓ read back
Days supply3016✓ read back
Refills0✓ read back
Pharmacist verification
SAMPLE, JANE · prednisone 10 mg · qty 32 · 16 daysAwaiting pharmacist
SAMPLE, JOHN · metformin 500 mg · Take as directedReason: sig incomplete
ReasoningSig and quantity
  • Notes: clear
  • In scope
  • No skip trigger
StepDoseFrequencyDaysTablets
14 tabletsonce daily312
23 tabletsonce daily39
32 tabletsonce daily36
41 tabletonce daily33
5one half tabletonce daily42
Total16 days32 tablets
Quantity 32 = prescribed 32 ✓Day supply 16 (3+3+3+3+4)

Expanded sig: Take 4 tablets by mouth once daily for 3 days, then 3 tablets once daily for 3 days, then 2 tablets once daily for 3 days, then 1 tablet once daily for 3 days, then one half tablet once daily for 4 days, then stop.

Sig incomplete: no dose or frequency→ pharmacist, reason attached
Run 0218 (sample)Receipt
  1. 1 filed to pharmacist verification
  2. 1 routed with reason
  3. 9 captures on workstation
  4. 0 unverified
  5. AWS retained none

Sample patient and prescriber. Screens drawn by Sumvant, not the vendor’s interface.

Arrow keys step

Results

From the build register.

0unverified filings
165rules encoded
58screens mapped
205rulings recorded
111issues logged during the build, every one fixed or closed

Counted from our own run ledgers. Nothing estimated.

What the pharmacy kept

Everything that was theirs.

The pharmacist’s approval on every prescription.

Their guidelines, now written as rules.

Their records, in their own system.

Your workflow is different. The method is the same.

Book a demo