N NoBullshit.wiki 中文

Nursing home purchasing - care-supply reorder-point calculator, single file - the consumption engine is the care-level census, not historical sales; admitting one fully-dependent resident transmits to the reorder point the same day, while a historical average needs a full cycle to catch up; a census-event log records every admission, level change, and departure and re-derives daily usage on the spot; per-level per-SKU usage coefficients are calibrated by each facility against its own care protocol, never pre-filled and never borrowed from industry averages; medications and food are explicitly out of scope, each running on its own engine; order quantities round up to full packs, formulas are shown unpacked, and a sensitivity view answers which SKU hits its line first if one more heavy-care resident is admitted

Works with:Claude / GPT-4 classCategories:Nursing HomeLevel:Advanced Updated

You are a coding agent building an in-house tool for a nursing
home. Build a single-file HTML tool (HTML, CSS, JS all inline,
no external dependencies, no network requests, opens by
double-click) that tells purchasing when to place care-supply
orders and for how much.

Scope covers only care supplies (briefs, underpads, disposable
gloves, wipes - items whose usage is driven by the care-level
census). Medications (order-driven) and food (driven by headcount
and therapeutic-diet ratios) are out of scope - the three
categories run on different engines, and merging them into one
tool makes every one of them inaccurate.

Core idea: the engine is the care-level census of residents on
site, not historical sales. Expected daily usage = sum over
levels of (census count at that level x that level's usage
coefficient for the SKU). The fatal flaw of ordering off last
month's average is structural lag: last month's average orders
this month's goods, and the newly admitted heavy-care resident
has been in the building ten days before the storeroom reacts.

[Input area 1 - census (level ledger + event log)]
- Enter "level x headcount" under the facility's own level
  system; names and count of levels are user-defined
- Census-event log: every admission / departure / level
  upshift / downshift is one entry (date, resident code,
  direction). Entering it updates headcount and re-derives
  daily usage and reorder points for every affected SKU on the
  spot - this is the entire difference between this tool and
  "order what we used last month"
- The log archives by month; month-end view shows which events
  bent the usage curve

[Input area 2 - SKU records]
- Per SKU: name, pack size (units per pack), supplier lead time
  in days, safety-stock days, current stock (entered manually
  or carried over from the last count)
- [Hard gate] Usage coefficients per level are never
  pre-filled. First use enters "calibration mode": estimate
  daily usage per level from the facility's own care protocol
  (e.g., the changing-frequency policy); the user confirms and
  it is saved to the record. An uncalibrated SKU shows
  "uncalibrated - no output," never an estimate

[Calculation and output]
- Reorder point = expected daily usage x (lead time + safety
  stock days); the formula is shown unpacked in a "method"
  panel
- Main table: SKU / current stock / days of cover on hand /
  reorder point / status; any SKU below its reorder point gets
  the full row highlighted
- Suggested order = (reorder point + one replenishment-cycle
  of usage - current stock), rounded up to whole packs; show
  the number both before and after rounding
- Census sensitivity: with any level's headcount +/- 1, how
  much each SKU's daily usage moves - so the user can see
  "admit one more heavy-care resident, and which SKU crosses
  its line first"

Hard requirements:
- No external CDNs, fonts, or icons; no network requests; data
  never leaves the machine
- Census ledger, event log, and SKU records export and import
  as a whole (JSON or equivalent)
- Any input change recalculates live; no "calculate" button
- Print view: main table plus suggested-order fields, printable
  as one page to carry to the storeroom

Constraints:
- Usage coefficients are never pre-filled, and no "industry
  average usage" is cited - this facility's coefficients can
  only come from this facility's care protocol
- No "auto-ordering" or "smart forecasting" - the tool computes
  reorder points and quantities; whether to act on them is the
  buyer's judgment
- No money amounts or price comparisons - benchmarking is a
  different task and stays out of this tool
- No built-in "standard nursing-home level system" - levels are
  whatever the facility's assessment regime says they are

Why it is written this way

"Order what we used last month" is the default posture for care-supply ordering, and in a facility with a stable census it almost never misfires, so it persists - until the day the structure moves. One heavy-care admission steps brief usage up to a new plateau the same day; the historical average needs the new structure to occupy a full cycle before it catches up, and the gap in between is filled by emergency orders. The tool's engine is therefore "census x coefficients" rather than a moving average, and the census-event log is the throttle: every admission, departure, and level change updates headcount and re-derives on entry, compressing transmission time from a cycle to the same day.

Coefficients are never pre-filled and never borrowed, because that is the easiest way to ruin this class of tool. Scheduled two-hour changes versus on-demand changes can differ by a factor of two at the same care level; an "industry average" is a precisely wrong number for any specific facility. Calibration mode makes first use tedious, and buys a number that traces back to this facility's own care protocol - with a legible provenance, usage anomalies have somewhere to be checked (against the incontinence supply usage audit's criteria).

Medications and food are explicitly excluded to draw the boundary at the engine: medications are order-driven (dosage, course of treatment, and stop/change decisions can all move demand within a day - that is the pharmacy track's business), food is driven by headcount and therapeutic-diet ratios (the dietitian's meal plan decides). Stuffing three engines into one tool looks like feature richness and is actually dilution of every engine's criteria - restraint is worth more than coverage in a single-file tool.

The sensitivity view is a translator for the buyer: when the director says "next month we are focusing on heavy-care admissions," what purchasing should hear is not a business headline but "briefs +N per day, underpads +M per day, and which SKU's lead time breaks first." Translating census changes into SKU language is what lets purchasing take part in the institution's front-row decisions, instead of taking the blame after a stockout.

Variables

Variable Notes
Level x SKU coefficients Usage per resident per day per SKU per level; calibrated against the facility's care protocol, recalibrated whenever the protocol changes
Supplier lead time Days from order to receipt; set per supplier per SKU, updated on any supplier change
Safety-stock days Buffer absorbing lead-time variability and demand spikes; larger where lead times are unreliable or census turnover is frequent
Replenishment cycle Interval between routine orders; the suggested-quantity formula uses it to decide how full each order is

reorder-pointcare-suppliesinventory-tool