Skip to content

[docs] Supply and inventory for 3.1: stock requests, internal deliveries, queues, edit and print, with narrated videos - #144

Draft
billjohnc wants to merge 4 commits into
docs/supply-purchase-delivery-flows-8c26from
docs/supply-inventory-3-1-75dd
Draft

billjohnc wants to merge 4 commits into
docs/supply-purchase-delivery-flows-8c26from
docs/supply-inventory-3-1-75dd

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

Stacked on #122. Merge #122 first: this branch is cut from its head (780edd8), and the base of this PR is docs/supply-purchase-delivery-flows-8c26.

Refreshes the Care 3.1 supply and inventory docs, checked against the code and a running Care, and adds the pages that were missing. 3.1 only.

Pages

Concepts (concepts/supply/)

  • supply-chain.mdx: new Supply Chain overview: product knowledge → product → purchase order → purchase delivery → stock → stock request → internal delivery → dispense → return, with where each step happens and who can do it.
  • purchase-order.mdx, supply-request.mdx (now Stock Request), supply-delivery.mdx (now Internal Delivery), inventory-item.mdx: rewritten.

Flows (flows/supply/)

  • Purchase order: create, add items, approve or change status, edit (new), view.
  • Stock request: raise, add items, approve or change status, edit (new), view.
  • Internal delivery: create, add items, edit (new), send/receive/complete, view.
  • New internal-transfers/: Track incoming stock in To Receive, Track outgoing stock in To Dispatch.
  • New print-order-or-delivery.mdx: printing a purchase order, a stock request or an internal delivery.
  • inventory-item/view-stock-levels.mdx: rewritten.

References (references/supply/)

  • New request-order.mdx: the model behind purchase orders and stock requests.
  • supply-request.mdx, supply-delivery.mdx, inventory-item.mdx: corrected.

Sidebar: changes stay inside the Supply block.

  • "Supply Order" is now "Stock Request", and "Supply Delivery" is now "Internal Delivery". These are the names the 3.1 screens use; billjohnc approved the change. Slugs and URLs are unchanged.
  • The edit flows are added to their categories.
  • The new Internal Transfers category and the print page are appended at the end of the block.

Commits

Verified against

  • care ddfd840 (develop, 23 Nov) and care_fe abf394594 (develop, 30 Nov).
  • Every statement rests on a fact with a file and line at those commits. Media is recorded on a local stack running exactly those commits, with invented data only.
  • Facts that change what the existing pages said:
    • On screen, items can be added to an order only while it is Draft.
    • A purchase line adds stock when it is received.
    • An internal line takes stock from the sending location as soon as it is added, and adds it at the receiving location when it is received.
    • Damaged items still count as stock. Completing a delivery changes no stock.
    • Abandoned and Entered in Error orders refuse any further status change and cancel their items. Name and note can still be edited.
    • By default, Pharmacist holds no supply write permission. Only Facility Admin holds the delivery write permissions.
    • Deliver From is locked when a stock request is edited (care_fe 4d16873a3).

Differences from the house style (on purpose)

  • Language: Simplified Technical English (STE) for steps, plain English for explanations.
  • Versions: 3.1 only.
  • Permissions: the table covers the whole path to the action (location, services, pickers, tags), not only the final permission. "Admin" is left out of the facility role lists.
  • Concept sections: the concept pages keep [docs] Purchase Delivery flows for 3.1 #122's sections (Definition, Key Attributes, Relationships, Permissions, Related). The concept template has no Relationships or Permissions section.
  • Media: each of the 19 flows has a narrated video (mp4 + vtt) and step screenshots. They were recorded on a local Care stack at the pinned commits, with invented data only, signed in as a Facility Admin (never a superuser).
    • Patient names, contact details, IDs and photos are blurred in the browser while recording.
    • The print flow was recorded without blur, with billjohnc's OK. It shows only an order, its products, and the invented test facility's letterhead.
    • Nothing is uploaded to YouTube; uploads are on hold.
  • Narration: the voice reads a short script per step: the step, plus a sentence of context taken from the page. It does not say step numbers.
    • The subtitles show what the voice says. Frames are held, and subtitles timed to match, where a line is longer than its step.
    • The voices are AI-generated with ElevenLabs (eleven_v4). They are cloned voices, Gauri-eng and Bill-eng, alternating flow by flow in sidebar order (billjohnc's choice).

Left out

Open questions

  1. With no location filter, any signed-in user can list every facility's request orders. A backend test asserts this. Is it intended?
  2. On an internal delivery, should the receiving location be able to complete it? The screen shows Mark as Completed there, but the server checks the permission at the sending location.
  3. Is reopening a Completed request order intended?
  4. Nothing ever sets the Inactive and Entered in Error inventory statuses. Are they planned?

Possible product issues (recorded, not filed)

  • ⋮ menu still shown on an Abandoned order; a status change there shows only "Error updating order".
  • Edit Order on an internal delivery shows Deliver To, but the server keeps only name, note and status.
  • From a purchase delivery, View Stock Request opens the purchase order under the internal route.
  • Creating a delivery from a tagged stock request: the frontend copies the request's tags, and the backend refuses order tags on a delivery.
  • A Cancelled requested item can be set back to Draft or Active through the API.
  • Mark as Completed never shows for a Draft order.
  • Create Delivery Order shows on stock requests in any status.
  • "Dispatched Qty" also shows at the receiving location.
  • Shortcut D "Print Order" is unused.
  • The Purchase Orders "Completed" tab label is untranslated.
  • Overview quick links show inventory links at locations whose inventory usage is None.

🤖 Generated with Claude Code

billjohnc and others added 4 commits November 30, 2026 18:43
Rewrites the nine supply files that #122 also changes: the purchase order,
stock request, internal delivery and inventory item concepts, view stock
levels, the two status flows, receiving an internal delivery, and the
supply request reference. Stock request and internal delivery are the
names the 3.1 screens use. Merge #122 first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Updates the purchase order, stock request and internal delivery flows,
and the inventory item and supply delivery references. Adds a Supply
Chain overview, edit flows for purchase orders, stock requests and
internal deliveries, To Receive and To Dispatch pages, one print page,
and a Request Order reference. Sidebar: two labels renamed, new lines
in the Supply block only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 videos with subtitles, posters and 104 step screenshots, recorded on a
local Care stack at care ddfd840 and care_fe abf394594 with invented data,
as a Facility Admin. Names, contact details and IDs are blurred while
recording; the print flow is unblurred and shows only an order and the
test facility's letterhead. Narration: ElevenLabs eleven_v4, cloned
voices Gauri and Bill alternating.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…howed

Adds the video and screenshots to each flow. Corrections from the
recordings: Inventory in the location sidebar only opens the group (Items
opens the stock list); the order and delivery pages show the record's
name as heading; the priority filter reads Filter by Priority; a
changed Deliver To on an internal delivery is not saved (checked at
runtime).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: c087453
Status: ✅  Deploy successful!
Preview URL: https://0afcb0a3.coredocs.pages.dev
Branch Preview URL: https://docs-supply-inventory-3-1-75.coredocs.pages.dev

View logs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant