Agentic AI & Automation

The AI that runs inside 1QRx — not a chatbot bolted on, but agents wired into the compounding workflow

Ask Copilot:
Agentic, not assistive
Most pharmacy software has a search box. 1QRx has agents that act: they block a non-compliant dispense, refuse an out-of-spec compound, adjudicate coverage before you make the preparation, and draft the prior auth before you ask.
Live agentic features
18
across the workflow
Safety gates
8
block bad outcomes
Copilots
5
assist + auto-fill
Automations
5
remove manual steps

Safety gates

Agents that stop a bad outcome before it happens

Controlled-substance dispense gate

A Schedule II–V fill cannot be released until a PMP/PDMP check is recorded. Pharmacist override is logged.

Fill Pipeline → cardOpen
controlledDispenseGate() · scheduleOf()
Real-time insurance adjudication

Coverage is adjudicated up front. A rejected/PA-required claim blocks compounding so you don't make what won't be paid.

Fill Pipeline → cardOpen
adjudicate() (NCPDP 70/75/79)
Compound assay / QC enforcer

Verifying a compound is blocked when the lab assay is >±10% off label — the lot must be rejected, not signed.

Verify (RPh check)Open
assayInSpec()
Weight tolerance autopilot

Captured weights are validated live against ±0.5% (liquids) / ±2% (solids); an out-of-tolerance reading won't check the step off.

Lab batch worksheetOpen
weightWithinTolerance()
Station-compliance gate

A sterile or hazardous lot can't advance into compounding at a station whose environment doesn't match — it's blocked until moved to a compliant one, with the valid stations listed.

Lot Board → drawerOpen
stationEnvOk() · USP <797>/<800>
Refill-eligibility gate

A too-soon refill (last-fill + days-supply) or an out-of-refills Rx is flagged and held before it enters the fill pipeline — heading off a payer '79 — Refill Too Soon' reject.

Rx Entry QueueOpen
refillEligible()
Out-of-spec auto-hold

When a compound's assay is outside ±10% of label, the lot is auto-quarantined and routed to a disposition (Destroy / Rework / documented RPh waiver) — never silently signed.

Verify (RPh check)Open
assayInSpec() → disposition
Ingredient-availability gate

Before a lot is compounded, every non-QS active is checked against perpetual inventory; a short ingredient blocks the advance and low-stock (below reorder) warns.

Lot Board → drawerOpen
ingredientsSufficient()

Copilots

Agents that compute, pre-fill and diagnose for you

Workflow automations

Agents that remove the manual steps between stages

Persona-aware Copilot

The conversational AI Copilot is reachable from every screen (top bar). It answers in context for the active persona — pharmacist, prescriber, patient or HQ — on formulas, BUD/stability, SOPs, claims and order status.

On the roadmap
  • Real-time NCPDP D0 claim routing to live payers
  • State PDMP submission orchestrator (ASAP 4.2)
  • Carrier APIs for shipping + recall automation
  • CoverMyMeds prior-auth status sync

Every agent is grounded in the business-rules engine (lib/rules.ts) — testable, auditable, and reused by both the UI and the server actions.