CertPrep
Case study · fictional company

Larkspur Pharmacy

A regional pharmacy chain building a refill assistant for its app and a policy Q&A assistant for pharmacists, both grounded in the chain's own documents and handling health information.

The business

Larkspur Pharmacy, headquartered in Phoenix, Arizona, runs 210 stores across four states and fills about 1.1 million prescriptions a month. Its digital team of 12 engineers works in Python and TypeScript and calls Claude through the first-party API under a business associate agreement.

What the team is building

SystemWhat it doesVolume
Refill assistantIn the mobile app, answers refill and pickup questions, reads prescription status through a tool, and can request a refill180,000 conversations a month
Pharmacist policy assistantAnswers pharmacists' questions from 320 policy and procedure documents (about 900,000 tokens in total)6,000 questions a month
Label-photo readerReads a photo of a prescription label to pre-fill a transfer request9,000 photos a month

The policy documents change about twice a week. Refill requests above a 90-day supply must be approved by a pharmacist. The refill assistant must never give dosing advice; it hands those questions to a pharmacist.

Measured baseline

  • Refill assistant: 68% of conversations resolved without staff. Median first-token time 1.4 seconds.
  • Policy assistant: in a sample of 200 answers, pharmacists marked 9% as citing a policy that does not say what the answer claims, and 4% as answering a question the policies do not cover.
  • The label-photo reader fails on 11% of photos; the team has not checked why.

Constraints

  • Patient information is protected health information. Only data the task needs may be sent to Claude, and nothing is logged in plain text beyond 30 days.
  • The mobile app must never hold an API key.
  • Every refill request made by the assistant needs an audit record: patient, prescription, supply length, approver.

People

StakeholderCares most about
Director of Pharmacy OperationsNo dosing advice, correct refills
Privacy OfficerMinimum necessary data, retention
Digital Product LeadResolution rate and app ratings
Staff PharmacistsAnswers they can trust and check quickly

Exercises set here