Expired stock is the clinic's worst inventory problem. Money wasted, clinical risk if used by mistake, regulator complaint if discovered at audit. The system tracks expiry per batch, picks the earliest-expiring batch first (FEFO), alerts before expiry, blocks dispense of expired stock, supports lot recall when a vendor flags a batch, and posts the write-off cleanly. This article walks the full expiry discipline.
Where it lives#
- Inventory → Expiry alerts: the dashboard for items approaching expiry.
- Inventory → Stock records: per-batch expiry visible alongside quantity.
- Inventory settings: the warning and critical expiry windows.
- Disposal: the write-off for expired stock, created through the returns "Scrap" flow (there is no standalone Disposals screen).
Expiry capture#
- Captured at GRN per batch.
- Captured at quick-receive when batch is recorded.
- Updated only via batch correction with reason and audit (rare, e.g. vendor sent revised expiry label).
- Never blank, never null. System rejects GRN lines for expiry-tracked items without an expiry date.
How stock is selected#
FEFO (first expiry, first out) is the default. The picker orders stock by earliest lot expiry, then prefers the main warehouse when expiry dates tie, then the oldest receipt. Product inventory categories can force FIFO, LIFO, or FEFO; an explicit strategy supplied by the workflow takes priority.
FIFO selects older receipts first and LIFO selects newer receipts first, with the main warehouse preferred. Closest-location and least-packages strategies do not define a branch-wide order and fall back to FEFO in this picker. A specific lot or location chosen by a workflow restricts the candidates.
Automatic lot selection excludes lots under an active recall. Do not assume this replaces physical quarantine or checks when an operator explicitly selects a lot.
Expiry alerts#
Alert thresholds (two tiers)#
- Warning: default 30 days before expiry. Surfaces in Inventory → Expiry alerts as a warning. The default comes from the product settings.
- Critical: default 7 days. Surfaces as critical. (Severity is computed when the alert is raised, not stored as a field on the alert.)
A warehouse-level expiry_alert_days overrides the warning window when set; the product critical window still applies. T-90 / T-60 escalation tiers and a T-7 dispense block are not implemented today.
The alert check is scheduled daily at 06:00 in the scheduler's configured timezone. It is not a real-time check; new risks can wait until the next successful scheduled run.
Alert routing today#
Expiry alerts are created in-app and shown on the Expiry alerts dashboard. There is no outbound expiry notification today: the expiry listener updates the in-app notification status but does not send WhatsApp or email. (The separate low-stock signal does send a WhatsApp.) Digests and a value-at-risk summary are on the roadmap.
What you do with the alerts#
- Use the batch first (FEFO already does this, but providers should prioritise).
- Transfer to a higher-velocity location (move from low-traffic to busy room).
- Return to vendor if return-by-expiry contract exists.
- Donate to a charity or training program if regulator-allowed.
- Plan disposal if none of the above.
Block dispense of expired stock#
- At service-report material consumption, the system blocks an expired batch when the warehouse has
block_expired_dispenseon (the default). - The expired-block is enforced on the service-consumption path. It is not yet enforced on the pharmacy dispense path or the invoice / POS deduction path.
- There is no owner-override flag for the expired-block today; the check refuses unconditionally where it applies.
Lot recall, manual fallback today#
The full recall workflow (one-click select affected batches, auto-quarantine, patient list, RTV pipeline) is in the data model but the user surface is not built yet. There is no dedicated recall API or staff recall workflow. An administrator must review the affected lots and available controls. Until the screen ships, here is the manual recipe most clinics run today:
- Open Inventory → Stock records and filter to the affected product plus batch numbers. Note every location holding stock.
- Physically quarantine and label the affected stock. Ask the inventory administrator to prevent further use. Do not use a stock count to pretend physically present stock is missing.
- Agree the outcome with the vendor and inventory manager: return or dispose. Record the actual movement once through the approved workflow. Do not both write stock down through a count and scrap the same quantity.
- Pull a consumption-history report filtered by the batch numbers to identify affected patients. There is no single button. The report is queryable but the patient list is not auto-generated.
- Hand the patient list to the operations team for outreach via the messaging module.
- For vendor return, open Inventory → Returns → Return to vendor referencing the original GRN.
Why recall is hard without batch tracking#
- Without per-batch consumption records, you cannot identify which patients received from the affected batch.
- The clinic must contact every patient of the product as a precaution.
- Reputation damage and trust erosion.
- Batch tracking pays for itself the first time a recall happens.
Removing expired stock (manual today)#
There is no auto write-off job. When stock reaches its expiry date, the system stops you from dispensing it (per warehouse.block_expired_dispense) but does not remove the qty from the books. To clear it, open the expiry alert and choose Dispose expired stock, then confirm. The action uses the current remaining quantity capped at the alert's quantity at risk and resolves the alert. A return line with disposition Scrap is another disposal entry point; do not use both for the same units. The journal posts to the inventory write-off expense account configured on the warehouse.
If your tenant needs a daily auto-disposal of expired stock, raise it with your account manager. No automatic daily disposal task is supplied.
Write-off posting (when disposal is run)#
| Account | Debit | Credit | Why |
|---|---|---|---|
| Inventory Write-off Expense (expired) | X | Cost of expired stock | |
| Inventory Asset | X | Stock removed |
Why a separate write-off account#
- Expired-write-off is a different signal from variance-write-off (count loss).
- Reports per account drive different actions.
- Expired-write-off high: over-ordering, slow rotation, poor FEFO discipline.
- Variance-write-off high: shrinkage, leakage, counting discipline.
- Owner needs to see them separately.
Disposal of expired stock#
- Expired stock is hazardous waste (regulated drugs especially).
- Cannot be thrown in regular trash.
- Disposal vendor collects per regulator policy.
- Disposal certificate captured and attached to the disposal record.
- Controlled substances: regulator witness required at disposal in some jurisdictions.
- For full disposal workflow, see returns and disposal workflow.
Cold chain temperature log (Coming soon)#
- Vaccines, certain injectables require cold chain (2-8°C typically).
- Temperature excursions can effectively expire the stock even before the printed expiry date.
- Coming soon: connected temperature loggers per fridge.
- Excursion alerts to stock manager and provider.
- Compliance report for regulator inspection.
Reports tied to expiry#
- Value at risk: stock value within each expiry window.
- Write-off trend: monthly expired-write-off value.
- Per-product expiry pattern: chronic over-ordering signals.
- FEFO compliance rate: % of dispenses that picked the FEFO suggestion.
- Override frequency: per provider, per category.
- Recall summary: per recall event, affected stock value and patient count.
KPIs to watch#
- Expired-write-off < 2% of consumption: healthy.
- 2-5%: signals over-ordering, slow rotation.
- > 5%: structural problem, review reorder points and category-level demand.
- FEFO compliance > 95%: discipline holding.
- Recall response time < 24 hours: regulator-compliant.
Coming soon#
- Cold chain temperature logging: connected loggers, excursion alerts, compliance report.
- Vendor-coordinated swap before expiry: contract-based swap of near-expiry stock for fresh.
- Donation workflow: regulator-approved donation of near-expiry stock to clinics or NGOs.
- Multi-batch FEFO optimisation: ML suggests best batch to consume considering shelf utilisation.
- Patient recall communication template library: pre-approved messages per recall type.
Common mistakes#
- Capturing batches without expiry: FEFO breaks, write-off invisible.
- Ignoring T-30 alerts: stock expires, costly write-off.
- Relying on the expired-block at the POS or pharmacy counter: it's only enforced on the service-consumption path today, so check expiry manually there.
- Recall delayed: regulator reporting window missed, fines.
- Trash disposal instead of regulated disposal: regulator violation.
- Tracking by aggregate, not batch: recall is impossible to scope.
- Same FEFO rule for vaccines as for gloves: cold chain risk on the vaccine side.
How expiry and recall connect#
- GRN: expiry captured at receipt per batch.
- Stock records: per-batch expiry visible.
- Service report consumption: FEFO picks earliest-expiring batch.
- Pharmacy dispense: the expired-block is not yet enforced on this path.
- Recall: identifies stock and patients via batch tracking.
- Returns and disposal: write-off and regulated disposal.
- Accounting: dedicated write-off account.
- Patient communications: recall notifications via messaging.
- Tatmeen (UAE): regulator-grade serial traceability.
- Reports: value at risk, FEFO compliance, recall log.
