StealThis .dev
Pagina's Medium

Clinic — In-clinic Dispense Counter

A single-patient pharmacy dispensing screen that pairs a selected Rx detail card — patient, drug, dose, sig and prescriber — with a dispense form for quantity, lot and expiry plus a barcode-scan field that simulates a scanner and auto-fills a verified lot. A live pharmacy label preview updates as you type, a counseling checklist gates release, and Dispense and print label validates everything before showing a calm dispensed done-state with toast feedback.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

In-clinic Dispense Counter

A focused counter screen for filling a single prescription at the clinic pharmacy. The selected Rx leads the page — patient, prescriber, the drug strength and form, dose, days supply, refills and the full sig — so the dispenser can confirm the right fill before touching stock. Below it, the dispense form collects the quantity with a stepper, the lot number, an expiry date and a barcode-scan field. Typing a code and pressing Enter simulates a hardware scan: a recognised stock barcode auto-fills the lot and expiry and marks the lot verified, while an unknown code is flagged in red.

A live pharmacy label preview sits alongside the form and updates as you work, mirroring the patient, drug, sig, quantity, lot, fill date and expiry exactly as they would print. Editing the lot by hand clears its verified state, and short-dated or expired lots raise an inline warning so they can be caught early.

Before anything is released, a three-point counseling checklist — take with food, side effects reviewed, questions answered — must be confirmed. Dispense and print label validates the quantity, a verified lot, the expiry and the full checklist, then locks the form and reveals a calm Dispensed done-state with a toast. Next prescription clears the counter for the following patient. Everything runs on vanilla JS with no dependencies.

Illustrative UI only — not intended for real medical use.