Get alerted before stock expires
Set up an automation rule that notifies you when a batch of stock is coming up on its expiry date.
Get alerted before stock expires
If you track batches or lots for your clinic's stock (vaccines, reagents, medications — anything with an expiry date), you can set up an automation rule that alerts someone automatically as a batch approaches its expiry date, instead of relying on staff to notice it on a shelf check.
This needs both the Products & Services module (for stock tracking) and the Automations module active. Enable them under Organization → Settings → Modules if you don't see Automations in the sidebar — see Modules.
How it works
Every night, MediSync checks every batch of stock across your branches for its expiry date. Any automation rule you've built for "Material expiring" re-checks its condition against that batch and fires if it matches — so the alert always reflects the batch's up-to-date days-until-expiry, not a value that was true when you first received the stock.
Create the rule
- Go to Automations in the sidebar and click New rule.
- Under Trigger, choose Material expiring.
- Add a condition: Days until expiry — less than or equal — and the number of days'
warning you want (e.g.
30for a month's notice). This is the "how soon is soon enough to tell me" setting — without a condition here, you'd hear about every tracked batch expiring within a year, which is rarely what you want. - Add an action for what should happen when the condition matches — most clinics start with Notify the owner, which puts an alert in the owner's in-app notifications. You can also add Send email, Send SMS, or Send WhatsApp message (each needs its own module active) to reach someone faster — see WhatsApp messages from automation rules if you want WhatsApp alerts to come from your own number.
- Name the rule (e.g. "Expiring stock — 30 day warning") and save it. New rules save as enabled — toggle a rule off from the rules list any time without deleting it.
You can build more than one rule if different warning windows should go to different people — for example, a 60-day heads-up to the person who reorders stock, and a 7-day urgent alert to the clinic owner.
What you'll see
- Each alert names the specific product, lot number, and branch it's about, along with how many days remain until expiry.
- A batch that's already inside your warning window when you first create the rule is picked up on the very next nightly check — you don't need to wait for stock levels to change.
- You won't get the same alert twice in one day, even if a batch matches more than one of your rules' checks that night — but a batch that still matches the next day will alert again, so an expiring batch keeps surfacing until it's used up, discarded, or its stock record is updated.
- Check Automations → Runs to see every time a rule has fired, whether the notification went out successfully, and to re-run one that failed.
Recording batches with expiry dates
Expiry alerts only work for stock you've recorded with a lot number and expiry date when receiving it — plain stock adjustments with no expiry date won't be picked up. See your Products & Services stock-receiving workflow for how to attach lot/expiry details when stock comes in.