Skip to content

[docs] Product concept for 3.1 - #114

Open
billjohnc wants to merge 2 commits into
mainfrom
docs/supply-product-concept-8974
Open

billjohnc wants to merge 2 commits into
mainfrom
docs/supply-product-concept-8974

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

What this changes

Replaces the Supply concept page Product (versioned_docs/version-3.1/concepts/supply/product.mdx), version 3.1 only. It is the follow-up that #112 left open: that PR changed only the two Product Knowledge link texts on this page.

  • The page now covers only the product (the stocked batch), as the product owner decided. Every Product Knowledge fact it used to repeat now lives on the Product Knowledge concept page rewritten in [docs] Definitions & Terminology for 3.1 #112, so this page keeps one short Product Knowledge section and links to it. Several of the old Product Knowledge rows were wrong for 3.1 (HSN Code, Alternative Names, the missing Product Definition, and the Delete button that retires).
  • "Catalog entry" is gone; the page uses "Product Knowledge", as the screen does.
  • New: how Care creates a product in 3.1. Settings has no Add Product button; products are created when stock is received in Purchase Deliveries (store locations, delivery order in Draft), on Save Changes, for a new Product Knowledge or a changed batch.
  • New: stock and billing (inventory item; a Billable charge item on dispense when the product has a charge item definition; a refund charge item on a completed patient return).
  • Status descriptions now say only what Care does with each status.
  • Permissions covers the whole path: viewing and editing products, the pickers, and receiving stock. Write permissions for products and charge item definitions are checked in the facility's root organization (Administration); the delivery permissions in the departments of the store location.
  • Related: the "Add a product instance" link is replaced by "Add delivered items to a purchase delivery" (that flow describes a button that is not in 3.1; see follow-ups). Links to the Product Knowledge and Charge Item Definition concepts and to the Product reference are added. The two Product Knowledge flow links use the texts from [docs] Definitions & Terminology for 3.1 #112.

Verified against

  • care develop at ddfd840dbe314b4e53d2a719d2138324d970634b (2026-11-23)
  • care_fe develop at 5e02f9aa4f690e08375da310511e14606985f788 (2026-11-26)

Every statement was checked against the code at these commits: backend specs, viewsets and authorization, frontend routes, forms, the settings sidebar and public/locale/en.json. One runtime fact is reused from the Definitions & Terminology session at the same commits: the facility role picker does not offer the default role named "Admin", so role lists omit it, as on the Product Knowledge page. No new screenshots or videos; this is a concept page.

Differences from the house style, on purpose

  • Language: Simplified Technical English rules for instructions and notes; plain, consistent English for explanation.
  • Versions: 3.1 only, because only 3.1 was verified.
  • Permissions: a ## Permissions section with the whole path to each action, not only the final permission.

Merge order

Branched from main before #112 merged. The two Product Knowledge links match #112 exactly. Whichever merges second may need a small rebase of this one file.

Left out (not verifiable, or not this page's job)

  • What Inactive or Entered in Error does to dispensing: the backend does not act on product status, and the dispense screen filters by inventory item status. The page says only what the receive form does.
  • Whether Lot Number and Expiration Date are required: the backend accepts neither; the edit form and the receive form require both. The attribute table does not mark them.
  • Product Knowledge statuses and attributes: on the Product Knowledge page.

Follow-ups

  • The flow "Add a product instance" describes Settings > Product > Add Product, removed from care_fe in 5df944909. It needs rework or removal.
  • The flow "Edit a product instance" was not checked in this PR.

Suspected product issues found on the way (not filed)

  • Clearing a product's Charge Item Definition in the edit form has no effect: the backend keeps the old link and the UI reports success.
  • After Create New in the product edit form, the new charge item definition is not shown, and Update stays disabled unless another field changes.
  • Product type "consumable" has no en.json label, so the raw value shows.
  • The empty Products list says "Try adjusting your filters or adding a new product", but the page has no way to add one.
  • The Product Knowledge Delete button and its toast describe a deletion, but the record is kept with status Retired.

🤖 Generated with Claude Code

Rewrite concepts/supply/product.mdx (3.1 only) against care ddfd840
and care_fe 5e02f9a: the page now covers only the product (the
stocked batch) and links to the Product Knowledge concept; explains
that 3.1 creates products when stock is received in Purchase
Deliveries; corrects the statuses, billing and permissions (the whole
path, with writes checked in the facility's root organization); and
replaces the outdated "Add a product instance" link. The two Product
Knowledge flow links use the texts from #112.

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

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: c7ae9be
Status: ✅  Deploy successful!
Preview URL: https://756e92ed.coredocs.pages.dev
Branch Preview URL: https://docs-supply-product-concept.coredocs.pages.dev

View logs

To receive stock in a purchase delivery you reach the store location through Services, then a service, then its location (care_fe HealthcareServiceShow.tsx:41-50). Opening the service list and the service needs Can Read Healthcare Service in any department of the facility (care healthcare_service.py:99-107; security/authorization/healthcare_service.py:9-17). Default roles from security/permissions/healthcare_service.py, without Admin, which facility screens never offer. Editing a product from Settings does not need it, so the row names only the purchase delivery path. Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@billjohnc
billjohnc marked this pull request as ready for review November 29, 2026 17:19

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