SFDA RSD Barcode Scanners: A Practical Guide for Saudi Pharmacies
Every medicine pack in the Kingdom carries a GS1 DataMatrix. Here is what your pharmacy or warehouse needs to read it first time, every time.

If you run a pharmacy, a hospital store or a medical warehouse in Saudi Arabia, the SFDA Drug Track & Trace System, known as RSD (رصد), is part of your daily routine. Every unit of medicine that moves through the supply chain is identified by a GS1 DataMatrix code, and your team has to scan that code when products are received, dispensed or moved.
The scanner is the smallest part of that system, but it is the part that decides whether reporting takes two seconds or two minutes. In this guide I explain what the code contains, which barcode scanners can read it reliably, how they should be configured, and the mistakes I see most often when I visit pharmacies in Riyadh.
Key takeaways
- RSD codes are 2D GS1 DataMatrix symbols. A 1D laser scanner cannot read them, you need a 2D area imager.
- The code carries four data elements: GTIN, serial number, expiry date and batch/lot number.
- Enable GS1 parsing (or FNC1/GS character handling) so your pharmacy software receives clean, separated fields.
- Small, glossy and curved packs are the hard cases: test scanners on your real stock before buying in bulk.
- Always confirm current reporting rules with the SFDA directly; this guide covers the hardware side.
What is the SFDA RSD system?
RSD is the Saudi Food and Drug Authority's national drug track-and-trace system. Its aim is simple: know where every registered medicine pack is at any moment, from the manufacturer or importer through wholesalers and distributors to the pharmacy or hospital that dispenses it. That protects patients from counterfeit, expired and diverted medicines.
To make that possible, SFDA requires medicines to be serialised using GS1 standards. Each pack carries a unique code, and each organisation in the chain reports what happens to that pack, received, shipped, dispensed, returned or destroyed. For the official requirements, integration guides and deadlines, always refer to the SFDA website, because the details are updated over time.
What is inside an RSD GS1 DataMatrix code?
The square 2D code printed on a medicine box is a GS1 DataMatrix. It encodes several pieces of data, each introduced by a GS1 Application Identifier (AI):
| AI | Data | Why it matters |
|---|---|---|
| (01) | GTIN, the product number | Identifies the product and pack size |
| (21) | Serial number | Makes this individual pack unique |
| (17) | Expiry date (YYMMDD) | Lets software block expired stock automatically |
| (10) | Batch / lot number | Enables targeted recalls |
Because the serial number and batch can vary in length, the code uses a special separator character (the GS1 'group separator', or FNC1) between fields. This is the detail that trips up most installations: if your scanner does not transmit that separator correctly, your software may merge the serial number and the expiry date into one string, and the scan fails.
Which barcode scanner can read RSD codes?
You need a 2D area-imager barcode scanner. Older 1D laser scanners physically cannot read DataMatrix codes. Within 2D imagers, these are the categories that work well in Saudi pharmacies:
Presentation (hands-free) scanners
Sit on the dispensing counter; the pharmacist simply passes the pack in front of the window. Ideal for busy retail pharmacies where speed matters more than reach.
Cordless handheld 2D scanners
Best for receiving deliveries and checking shelves. Cordless models let staff scan cartons on a trolley without dragging a cable.
Healthcare-grade scanners
Disinfectant-ready housings, quiet or vibration-only beep modes for wards at night, and strong DataMatrix performance on small, curved vials and blister packs. These are the right choice for hospital pharmacies.
Mobile computers (handheld terminals)
For distributors and medical warehouses, an Android mobile computer with a built-in 2D scan engine lets staff scan, see the result and confirm the RSD transaction on the spot, without walking back to a PC.
You can see the range of models I recommend on the barcode scanners in Riyadh page.
How to configure a scanner for RSD (the part most people skip)
Buying a capable 2D scanner is only half the job. Before it goes on the counter, check these settings:
- Enable DataMatrix and GS1 DataMatrix symbologies. Some scanners ship with DataMatrix enabled but GS1 handling switched off.
- Transmit the group separator (FNC1) correctly. Depending on your software, it should arrive as ASCII 29 or be replaced by a character the software expects. Ask your pharmacy-system vendor which format they need.
- Use GS1 parsing if your software needs separate fields. Many modern scanners can output the data with AIs in brackets, (01)…(21)…(17)…(10), which is much easier to read and debug.
- Match the keyboard layout. If the PC switches between Arabic and English keyboards, scanned characters can come through wrong. Set the scanner to a layout-independent mode where available.
- Disable symbologies you don't need. This speeds up decoding and avoids accidental reads of nearby codes.
When I deliver scanners for pharmacy projects, these settings are programmed and tested before installation, so the team can start scanning on day one.
Hard-to-scan packs and how to deal with them
- Very small codes on ampoules and vials need a high-density (HD) imager.
- Glossy foil and shrink-wrap create glare. Scanners with diffused illumination or the ability to read at an angle cope much better.
- Curved surfaces (bottles, tubes) distort the code. Good imagers handle this; cheap ones do not.
- Poorly printed codes from a supplier are a supplier problem, but a better scanner reduces how often your team has to type data manually.
My advice: before buying ten or a hundred units, test two or three models on your worst-case packs. It takes thirty minutes and avoids expensive mistakes.
A simple RSD scanning workflow for a pharmacy
- Receiving: scan each pack (or the aggregated carton code, where your supplier provides it) as the delivery arrives, and confirm the receipt in your system.
- Storage: the software uses the expiry date from the scan to support first-expiry-first-out picking.
- Dispensing: scan at the point of sale; the system reports the dispense and blocks expired or recalled batches.
- Returns and destruction: scan again so the pack's status is updated correctly.
A well-chosen scanner makes each of these steps a single, fast action. Combined with a properly set-up inventory tracking system, it also gives you live stock levels by batch and expiry, which helps with far more than compliance.
RSD scanner buying checklist
- 2D area imager with proven DataMatrix performance
- GS1 parsing / FNC1 handling supported
- High-density option if you handle small vials or ampoules
- Healthcare housing if used in clinical areas
- Compatibility confirmed with your pharmacy or ERP software
- Local configuration, spares and warranty support in Saudi Arabia
Frequently asked questions
Can a normal barcode scanner read SFDA RSD codes?
Only if it is a 2D imager. RSD uses GS1 DataMatrix, a 2D code. Older 1D laser scanners, which are still common at pharmacy counters, cannot read it at all.
What data is in the RSD DataMatrix?
The GTIN (product), a unique serial number, the expiry date and the batch or lot number, each identified by a GS1 Application Identifier: (01), (21), (17) and (10).
Why does my scanner read the code but the software rejects it?
Most often the group separator (FNC1) between variable-length fields is missing or transmitted in the wrong format, or the keyboard layout is mixing Arabic and English characters. Both are fixed in the scanner configuration.
Do I need a mobile computer or is a USB scanner enough?
For a retail pharmacy counter, a USB or cordless 2D scanner is usually enough. Distributors and medical warehouses benefit from Android mobile computers that let staff scan and confirm transactions away from a PC.
Where can I find the official RSD requirements?
The Saudi Food and Drug Authority (SFDA) publishes the official requirements and integration guidance. Always check the SFDA website for the current version.


