The distributor calls at 10 in the morning: lot 24A117 of a children's syrup is being recalled. Remove it from the shelf and report how many units you have. The pharmacist finds 7 bottles on the shelf, but how many did the pharmacy receive? Did any go to the branch? Who bought the rest? With paper invoices and a box-count system, the honest answer is "I don't know", and the afternoon is gone.
Pharmacy inventory management rests on one discipline: record the lot and expiry of every box when it arrives, and keep that lot attached to the box when it is sold, returned or counted. With that in place, a recall trace can take minutes, expiry warnings arrive while the distributor will still take stock back, and the stock count tells you which lot is missing, not only how many boxes.
This guide covers the receiving routine, the expiry calendar, a worked recall, the true cost of bonus deals, and the mistakes that make pharmacy stock unreliable.
What a medicine box tells you, and what your system must keep
Every box carries at least a product identity, a lot (batch) number and an expiry date. Many now also carry a GS1 DataMatrix code, the small square barcode that packs several fields into one scan. The Jordan Food and Drug Administration has been working with GS1 Jordan on a national traceability programme based on these codes, aimed at tracking medicines from manufacture to the patient and improving recalls (GS1 Healthcare Reference Book 2022 to 2023, Jordan case).
| Field | GS1 application identifier | Why the pharmacy needs it |
|---|---|---|
| Product code (GTIN) | (01) | Identifies the exact product and pack |
| Expiry date | (17) | Expiry warnings and first expiry, first out |
| Lot / batch | (10) | Recalls, returns, quality complaints |
| Serial number | (21) | Identifies the single pack, for traceability |
GS1 UK sets out the format of each field, for example expiry as six digits in year, month, day order (GS1 UK guide to GTIN and production information). You do not need to memorise them, but it helps to know that one scan can fill the product, lot and expiry at receiving, with no typing.
Receiving: the five minutes that decide everything
Many lot and expiry errors start at the receiving desk, when a delivery is checked in a hurry.
- 1Match the delivery to the order
Check items and quantities against your purchase order and the distributor's invoice.
- 2Capture lot and expiry per line
Scan the DataMatrix or type the lot and expiry for every line. Two lots of the same item are two lines.
- 3Check the remaining shelf life
Refuse or note short-dated stock according to your agreement with that distributor.
- 4Record bonus units separately
Free units are stock too. Enter them with zero or shared cost so the real unit cost is right.
- 5Put away by date
Nearest expiry to the front. Medicines needing refrigeration go into the fridge first.
Cold storage needs its own routine. WHO storage guidance asks for appropriate rotation and for FEFO, first expiry first out (WHO TRS 908, Annex 9); for refrigerated items, add a temperature log that someone signs every day.
The expiry calendar: working with return windows
Distributors often take back or exchange medicines approaching expiry, but only within a window that depends on the supplier and your agreement. Expiry management in a pharmacy is therefore a race against that window, not against the date on the box.
| Stage | Typical trigger | Action |
|---|---|---|
| Watch | 6 months before expiry | Appears on the monthly list; stop reordering this lot's item if stock is high |
| Act | 3 months before expiry | Move to the front, offer to regular patients where clinically appropriate, transfer to a branch that sells more |
| Return | Before the distributor's window closes | Pack, list by lot and send back with a written return |
| Remove | At expiry | Quarantine, record as expired with the reason, dispose of according to JFDA and other official rules |
The months in this table are examples. Replace them with the windows in your own agreements. For the general method, including when a discount beats a write-off in retail, see expiry date management.
Worked example (fictional): at the monthly review a pharmacy finds 20 lines inside the return window, worth JOD 450 at cost. Returning them in time turns JOD 450 of future loss into a credit with the distributor. Missing the window by two weeks turns it into a write-off. Over a year, that single routine can be worth more than the margin on many busy days.
A recall, worked through
Back to lot 24A117. With lots recorded on every movement, the trace looks like this:
| Movement | Date | Quantity | Detail |
|---|---|---|---|
| Received from distributor | 2 September | 24 | Invoice and lot captured by scan |
| Sold to named customers | September to October | 11 | 11 sales linked to customer accounts |
| Sold as cash sales | September to October | 6 | Dates and times known, buyers not named |
| Returned by a customer | 14 October | 0 | none |
| On the shelf now | today | 7 | Quarantined at once |
| Check | 24 = 11 + 6 + 7 | Every unit accounted for |
In five minutes the pharmacist can report 24 received, 17 sold, 7 quarantined. For the 11 named customers, the pharmacy can follow the distributor's or the authority's instructions on contacting patients. For the 6 anonymous cash sales, it knows the count and the dates but not the people, which is a good reason to record the customer on sales of medicines where that is practical and the customer agrees, keeping that data secure.
Bonus deals: the real cost per unit
Distributor offers such as "buy 10, get 2 free" are common. They help only if you sell the extra units before they expire.
Worked example (fictional): a cream costs JOD 3.000 a unit. The offer gives 12 units for the price of 10, so JOD 30.000 for 12, or JOD 2.500 a unit. If you sell all 12, you saved JOD 0.500 a unit. If you usually sell 2 a month and the lot expires in 4 months, you sell 8 and 4 expire. The real cost of each unit you sold is 30.000 / 8 = JOD 3.750, which is 25% more than buying 10 at the normal price and never seeing the bonus.
| Scenario | Units sold | Cost paid | Real cost per unit sold |
|---|---|---|---|
| No bonus, buy what you sell (8) | 8 | JOD 24.000 | JOD 3.000 |
| Bonus, all 12 sold | 12 | JOD 30.000 | JOD 2.500 |
| Bonus, 4 expire | 8 | JOD 30.000 | JOD 3.750 |
Rule of thumb: accept a bonus only when your monthly sales x months to expiry is greater than the total units you receive. For that you need your real monthly sales per item, which the sales history gives you.
Counting a pharmacy by lot
A pharmacy stock take is not complete when the boxes match. It is complete when the lots match, because a missing box of one lot and an extra box of another means something went wrong at receiving or on sale.
- Count by lot on high-value and fast-moving items; for the long tail, count by item.
- Count opened boxes in strips or tablets, not as "a box".
- Record a reason for every difference: expired, damaged, received wrongly, typing slip, unknown.
- Recount large differences with a second person before adjusting.
The full method for counting while open is in our stock take guide, and the reorder logic for slow and fast items is in inventory management for small shops.
Mistakes that break pharmacy stock
- Typing lots by hand from tiny print. One wrong character and the recall search finds nothing. Scan where the box allows it.
- Bonus units entered at full cost or not entered at all. Either the unit cost is wrong or the stock is.
- Returns to the shelf without the lot. A customer return goes back into stock, but the system does not know which lot it is.
- No customer on medicine sales. Every recall turns into a partial trace.
- One warning period for everything. Warnings that arrive after the return window are only bad news.
A monthly pharmacy stock routine
- Print the list of lots inside the watch and act periods, by value at cost
- Prepare returns for every lot inside a distributor's window
- Review bonus deals received this month against real sales
- Count high-value items by lot and record a reason for every difference
- Check the fridge temperature log is complete
- Quarantine and record expired stock with the reason expired
- Total expiry losses at cost and compare with last month
Where to begin
Start with receiving: from next week, no delivery is put away until every line has its lot and expiry recorded. Within a month your expiry list becomes much more dependable; within three, your losses to expiry should be visible, so you can work on reducing them. If your current system cannot hold several lots of one item or trace a lot to its sales, that is the gap to close first; our guide to pharmacy software in Jordan lists what to test. This is general information, not legal or tax advice; check with your accountant or the relevant authority before deciding.
Frequently asked questions
What is a lot or batch number on a medicine?
It is the manufacturer's code for one production run. Every box from that run shares the lot number and the expiry date. Recalls, quality complaints and expiry all work at the level of the lot, which is why a pharmacy needs to record lots, not only quantities.
How do I trace a drug recall in my pharmacy?
Find every delivery of the recalled lot, every sale and return of that lot, and what remains on the shelf. Sales made to a named customer can be traced to that person; anonymous cash sales give you the count and dates only. Then quarantine the remaining stock and follow the distributor's instructions.
How early should a pharmacy act on near-expiry medicines?
Early enough to use the distributor's return or exchange window, which varies by supplier and contract. Many pharmacies start watching at six months and act at three, but the right numbers are the ones in your agreements with each distributor.
What does a GS1 DataMatrix code on a medicine box contain?
It can carry the product code (GTIN), the expiry date, the lot number and a serial number, each marked by a GS1 application identifier. Scanning it fills these fields at once instead of typing them, which reduces typing errors at receiving.
Are distributor bonus offers always good for a pharmacy?
Only if you sell the extra units before they expire. Free units that expire on the shelf raise the real cost of the units you did sell. Compare the bonus with your actual monthly sales of that item before you accept it.
This article is general information, not legal, tax or financial advice. Laws and instructions change, so always check with the official authority or your accountant before deciding.



