OCRPos Coming soon · See plansPlans

Guide · Medical stores

Batch and expiry tracking for medical stores

Medicines carry more numbers than any other product on your shelf. Scanning them instead of typing them saves time and removes the transcription mistakes that matter most.

8 min read Updated By Zecrari

In a medical store, the batch number and expiry date are not optional details. Distributors ask for batch numbers on returns, recalls are announced by batch, and an expired strip at the counter is a serious mistake. Yet in many small pharmacies these numbers are still copied by hand from tiny, curved, dot-matrix print. This guide explains the codes you will find on medicine packs, how a batch and expiry scanner reads them, and a routine that keeps expired stock away from customers.

Important: OCRPos is a stock and billing tool. It helps you track batch numbers and expiry dates and blocks expired items at billing. It does not handle drug schedules, prescription records, licences or tax invoices, and it does not make a store compliant with any regulation. Those responsibilities stay with the store and its pharmacist.

The numbers printed on a medicine pack

ItemUsually printed asWhy it matters
Batch / lot number"B.No.", "Batch", "Lot", followed by letters and digitsReturns, recalls and supplier queries are handled by batch
Expiry date"EXP" with month and year, e.g. 08/2027Must never be sold past this date
Manufacturing date"MFG" with month and yearHelps judge remaining shelf life
BarcodeEAN-13 bars, or a 2D DataMatrix/QR codeIdentifies the product; 2D codes may carry batch and expiry too

The batch and expiry are often stamped after printing, in dot-matrix or inkjet text, on foil or on the carton flap. That is why they are so hard to read and so easy to copy wrongly: 0 and O, 1 and I, 8 and B all look alike at that size.

GS1 DataMatrix: the easy case

Many medicines, and a growing number of FMCG products, carry a small square GS1 DataMatrix code (sometimes a GS1 QR code). Unlike a normal barcode, it holds several pieces of data, each tagged with a short number in brackets called an Application Identifier:

  • (01) the product's GTIN, its global product number
  • (17) the expiry date, as YYMMDD
  • (10) the batch or lot number
  • (21) a serial number, on some packs

When OCRPos scans a GS1 DataMatrix or QR code, it takes the batch and expiry directly from these fields. There is no reading of printed text and no chance of confusing a 0 with an O, which makes this the most reliable way to capture batch and expiry. See batch and expiry scanning.

Printed batch and expiry: the common case

When a pack has no 2D code, OCRPos reads the printed batch and expiry text with the phone camera, including small stamps. For the best results:

  1. Flatten the area as much as you can. Hold blister strips flat against the counter.
  2. Use even light and tilt foil packs to remove glare. Foil reflects more than any other packaging.
  3. Fill the frame with the stamp rather than the whole pack.
  4. Check the result before saving, especially letters that look like digits.

Deep scan for hard dot-matrix prints

Some stamps are faint, broken or printed on textured cartons. On Gold, deep scan uses an on-device PaddleOCR model built for exactly these hard prints. It runs entirely on the phone like the regular scanner, so nothing is uploaded and it works offline. If you receive many such packs, it saves a lot of squinting and typing.

A receiving routine that works

Most expiry problems start at delivery, when stock is shelved in a hurry. A routine for each incoming invoice:

  1. Check the invoice batch numbers against the packs before signing.
  2. Scan each product: the DataMatrix if present, otherwise the printed batch and expiry.
  3. Update the stock count for that product.
  4. Shelve by FEFO (First Expired, First Out): the nearest expiry goes in front, even if it arrived last.
  5. Set aside short-dated stock that is already inside your warning window, and raise it with the distributor straight away.

OCRPos stores one batch and expiry on each product record. If you hold two batches of the same medicine with different dates, either keep the nearest date on the record or add the second batch as its own entry until the older one sells out. Our general guide to tracking expiry dates goes deeper into FEFO and shelving.

Warning windows for a pharmacy

The expiring-soon list on the home screen uses a warning window you can set, 30 days by default. Many medical stores prefer a longer window, such as 60 to 90 days, because distributor return arrangements often need advance notice. Choose a window that matches how your distributors handle near-expiry returns.

Each morning, check the three home screen lists:

  • Expired: remove from the shelf immediately and set aside for return or disposal according to your normal process.
  • Expiring soon: move forward on the shelf and arrange returns where possible.
  • Low stock: reorder, and check that the new batch's date is later than what you have.

At the counter: expired items are blocked

When a product's recorded expiry date has passed, OCRPos blocks it at billing, so a busy assistant cannot sell it by accident. This is the last safety net, and it only works if dates were captured correctly at receiving.

The rest of billing works as in any shop: scan the barcode or search by name, apply a discount if you give one, and take cash, card (recorded; processed on your bank's machine), UPI QR or pay later for regular customers. Receipts print on a 58 mm or 80 mm Bluetooth thermal printer; see our printer setup guide.

Recalls and supplier queries

When a distributor asks whether you received a particular batch, search the Stock list by batch number. The stock search covers name, barcode and batch. On Gold, Google Sheets sync adds an Expiry report tab, which gives you a full list to review or share with your accountant or distributor.

Staff and accountability

Pharmacies often have a pharmacist and one or two assistants. With team users on Gold (up to 5 users) or Team (unlimited), each person signs in with their own PIN, and every sale records who made it. Cashiers can only sell and take payments, so stock dates and settings stay in the hands of the owner and managers. Compare plans on the pricing page.

Summary

  • Scan GS1 DataMatrix codes whenever a pack has one: exact batch and expiry, no typing.
  • Use the camera on printed stamps, and deep scan for the hard ones.
  • Capture dates at delivery, shelve FEFO, and check the expiring list every morning.
  • Let the counter block expired items as a final safety net.
  • Keep regulatory duties with the pharmacist; the app is a tracking tool.

FAQ

Common questions

Can OCRPos read the DataMatrix code on medicine strips and cartons?

Yes. OCRPos reads GS1 DataMatrix and GS1 QR codes with the phone camera and takes the batch number and expiry date from them exactly. When there is no code, it reads the printed batch and expiry text instead.

Does OCRPos make my medical store compliant with drug regulations?

No. OCRPos helps you record and track batch numbers and expiry dates and blocks expired items at billing. Licences, drug schedules, prescription records, tax invoices and every other regulatory duty remain the responsibility of the store and its pharmacist.

What is deep scan?

Deep scan is a stronger on-device text reader (based on PaddleOCR) for faint or broken dot-matrix stamps that ordinary scanning struggles with. It is part of the Gold plan ($9.99 (₹400 in India) a month).

Are medicine photos uploaded anywhere?

No. Camera images are processed on the phone and never uploaded. Your stock and sales data also stay on the phone unless you choose to connect Google Sheets.

Open your counter in five minutes.

Free to start. 7-day free trial on paid plans. No account needed.

Coming soon onGoogle PlaySee pricing