# Openfront Pharmacy

> Pharmacy storefront, prescription review, dispensing, inventory lots, recalls, orders and payments with recorded human approval.

The counter, the queue and the record, together..

## At a glance

- 45 models for prescriptions, lots, recalls, orders and approvals
- 9 MCP tools for the dashboard assistant
- 3 payment methods: Stripe, PayPal and pay at pickup

## Links

- [Product overview](https://spec.openship.org/pharmacy): every area and feature on one page
- [Live demo](https://pharmacy.openship.org)
- [Documentation](https://docs.openship.org/docs/openfront/pharmacy)
- [Source code](https://github.com/openshiporg/openfront-pharmacy)
- [Feature film](https://spec.openship.org/pharmacy/video): a 27-second walk through every area

## Areas

### Storefront

- **Over-the-counter, online**: Customers choose a pharmacy location, browse eligible OTC products, check order status, request refills and submit registration, transfer or new-prescription requests. Prescription medicines are not sold through the public cart. (https://docs.openship.org/docs/openfront/pharmacy/storefront)
- Location-aware catalog and checkout.
- Order status lookup for customers.
- Refill requests from the patient account.
- Registration and transfer requests enter the pharmacy workflow.

### Prescriptions

- **From intake to a pharmacist decision**: Staff manage patients, prescribers and prescription intake, then move work through clinical safety review, pharmacist review, fill and dispensing. The software records the decision; the pharmacist remains responsible for it. (https://docs.openship.org/docs/openfront/pharmacy/prescriptions)
- Keep patient and prescriber records with the prescription.
- Separate safety review from pharmacist review.
- Print dispensing labels as part of the fill workflow.
- Handle refill and transfer requests in dedicated queues.

### Human approval

- **Consequential changes carry a name and a reason**: Clinical, inventory and money records change through named commands rather than direct edits. Most commands need permission, location scope, a written reason and an attestation, then write approval, audit and outbox records together. (https://docs.openship.org/docs/openfront/pharmacy/audit)
- Permissions are scoped to organization or location.
- Each approval retains the person, reason and evidence.
- Audit and outbox events are written in the same transaction.
- Nineteen role permission flags separate pharmacy duties.

### Inventory lots

- **Know which lot is on which shelf**: Products, suppliers and inventory lots belong to a pharmacy location. Receiving, adjustments, quarantine and movements keep stock evidence instead of a single mutable quantity. (https://docs.openship.org/docs/openfront/pharmacy/inventory)
- Receive stock against suppliers and lots.
- Quarantine lots that should not be used.
- Track temperature excursions and movements.
- Keep drug references with products.

### Recalls

- **Find affected lots, then record what you decided**: Recall records connect affected lots with location inventory and patient outreach. Pharmacists record the disposition; the app does not decide that a lot is safe or unsafe on their behalf. (https://docs.openship.org/docs/openfront/pharmacy/recalls)
- Quarantine affected lots.
- Track patient outreach work.
- Retain disposition records and audit history.
- Scope recalls to the pharmacy location.

### Orders & POS

- **One order trail for online and counter sales**: Orders, line items, fulfillment transitions and point-of-sale activity share a pharmacy-specific operations trail. Payments are recorded in a ledger with sessions that need reconciliation called out. (https://docs.openship.org/docs/openfront/pharmacy/orders)
- Review online and counter orders.
- Fulfill pickup and delivery work.
- Use cash and sales-tax policy settings.
- Stripe and PayPal webhooks need deployment credentials; pay at pickup moves no money online.

### Staff & locations

- **Roles that match how a pharmacy works**: Organizations contain locations and memberships. Owner, administrator, pharmacist, technician, cashier, delivery and read-only roles control access, and staff credential evidence is stored with the membership. (https://docs.openship.org/docs/openfront/pharmacy/roles-permissions)
- Operate one organization with several locations.
- Scope staff to the organization or one location.
- Store credential evidence on membership records.
- Restrict access to private patient data by permission.

### Integrations

- **Payments, eRx and insurance, per location**: The source registers Stripe, PayPal and manual payment adapters, plus manual eRx and insurance adapters. Manual adapters document a workflow; they do not connect to an external prescription or insurance network. (https://docs.openship.org/docs/openfront/pharmacy/integrations)
- Prescriptions are received through the manual eRx workflow.
- Insurance is recorded through the manual insurance workflow.
- Configure payment providers before accepting online payments.
- Licensing and legal review stay with the pharmacy.

### Developer

- **A pharmacy you can run yourself**: Openfront Pharmacy runs the public counter and the pharmacist's queue in a single Next.js, Keystone, Prisma and Postgres application, with a recorded human decision at every step that matters. (https://docs.openship.org/docs/openfront/pharmacy/api-reference)
- 45 models cover patients, prescriptions, lots, recalls, orders and approval records.
- Nine MCP tools run with the pharmacist's own permissions.
- Staff roles are owner, administrator, pharmacist, technician, cashier, delivery and read-only.
- Stripe, PayPal and manual payments are in the source; eRx and insurance follow manual workflows.
