
Short answer: A pharmacy management system is the software that records what came in, what was dispensed, and which pack is still on the shelf, by batch and expiry, across branches. A ready-made or free counter tool can be enough for one till; a custom system is worth scoping when you have several sites, split packs, insurance claims, or official drug-trace and receipt duties that a second spreadsheet cannot keep.
By Mohamed Samy, senior backend developer specializing in Laravel/PHP, with seven years of experience. Published: 14 November 2026. Updated: 14 November 2026.
This is not legal, medical or regulatory advice, and it is not a substitute for counsel, the pharmacist in charge, or official guidance from the competent authority.
Most pharmacy owners who contact me already have a barcode scanner and a program that works on a quiet morning. The problems start later: a strip sold from a pack, two branches sharing a warehouse, a claim that does not match the shelf, or a 2D code the till cannot verify. Appointment books and clinic files belong in our clinic management system guide for Egypt and the Gulf. This article stays on the pharmacy product: units, batches, expiry, dispensing, and the official files a pharmacy has to keep. Golden Code builds that layer from scratch; we do not resell a ready-made pharmacy product or publish a fixed package price. The guide starts with an Egyptian pharmacy, then a Gulf branch, with country rules kept separate.
What a pharmacy management system actually has to do
A pharmacy management system is not a prettier cash drawer. It has to know how a pack breaks into strips or units, which batch went out, and which count is official when a return or a claim arrives later.
| Area | What usually breaks today | What the software should do |
|---|---|---|
| Receiving | The delivery note and the shelf live in two sheets | Record the receipt, supplier, batch and expiry once |
| Units | A pack, a strip and a unit share the same number | Convert with a defined factor, and show what remains |
| Expiry | The nearest date is found at the till | Dispense by agreed rules, and warn before a batch is unsellable |
| Branches | Each site keeps its own stock file | One catalogue, site stock that can differ, and a recorded transfer |
| Insurance | The claim is rebuilt from paper after the sale | Split the patient payment from the claim, and keep the file |
| Official duties | Trace or e-receipt is retried in a second program | Keep those uploads as listed handoffs, not a second unofficial book |
A single-counter program can be enough when one pharmacist works from one stock room and packs are sold whole. Custom work starts to make sense when exceptions already eat a morning every week, or when a second branch, a split pack or an official upload cannot be expressed by the tool you already bought.
Egypt first: stock, the till, and official handoffs
Egyptian pharmacies still search for a pharmacy management system when the counter program can sell, but cannot be trusted for batches, branches or official files. Start with the operation you already have: how you receive, how packs are split, who may reverse a sale, and where the official stock figure lives at the end of the day.
Two official duties often sit next to that till, and they are not the same job. Sales to a final consumer may fall under Egypt's e-receipt rules, depending on registration and the current phase. That layer is covered in our Egypt e-receipt POS and ERP integration guide. Confirm your position with your accountant and the Egyptian Tax Authority; this article will not invent a phase or a fine.
Drug traceability is a separate duty. Egyptian Drug Authority Chairman Decision 475 of 2025, published in the Official Gazette on 11 August 2025, set up the national unified electronic drug traceability system for human and biological medical products. Pharmacies registered with the Authority, along with factories, importers, distributors and warehouses, must provide the technical infrastructure and connect it to that system, as the regulatory guide sets out. It applies to imported finished human medical products from 1 February 2026, and to those packed, filled or produced locally from 1 August 2026, applied gradually by form and therapeutic group. Later products may not be circulated unless they are listed; earlier batches stay in circulation until consumed. Confirm the current phase on the official Egyptian Drug Authority site, and with counsel. I will not invent an API or a later deadline here.
The executive requirements (EDREX.NP.CIP/PPMA.001, issued 2 March 2026) tell public and private pharmacies, in the first phase, to run a digital inventory system compatible with national traceability, record receipts against the aggregation and source location codes, check the outer pack serial, record dispensing in real time with the pharmacy location code, upload daily, scan the 2D code when a pack is only partly dispensed, and hold a location code. A pack with an unverifiable code should not be dispensed, and the Authority should be notified. Confirm the current document.
If stock later needs to land in a custom ERP as well as the till, treat that as a listed, verified handoff, not as a second unofficial spreadsheet.
Ready-made and free tools versus a custom layer
A ready-made Arabic pharmacy package, or a free Excel or open-source tool, can cover one till, whole packs, and an export someone retypes into accounts. That is a reasonable first look when your workflow already matches what the vendor ships. Many searches for pharmacy software are for a free file or a named chain's program; those results are real, and sometimes the right first step.
The fit becomes poor when two branches write stock in two formats, when a strip sale leaves the pack count wrong, or when an official upload has to be retried after the customer has left. Custom work is not automatically better. You will own the mapping, the hosting and the monitoring. That is worth it when you can describe the gap from a real week of receiving and dispensing. Clinic booking and the patient file belong in the clinic article, not in this one.
A custom WhatsApp AI chatbot for business can carry a refill reminder. It is a messaging layer, not the official dispensing record. If you are only automating a narrow, already-stable handoff from a reliable export, our guide to n8n self-hosted versus cloud versus custom code is about that choice. A visual workflow is not a substitute for idempotent stock movements and a reconciliation report when the exception list grows. After a short inventory we can send you a custom technical quote for a pharmacy management system. We do not publish a fixed package.
Batches, split packs, and the cases that break a demo
A batch and an expiry date have to travel with the item from receipt to the shelf and out again. If the till only knows a product name, you cannot tell which pack should be sold first, or answer a later question about a specific serial. Agree the expiry rule in writing. A warning is not the same as a block; decide who may dispense a short-dated pack, and log that decision.

The cases that break a happy-path demo are ordinary: a partial pack, a late return, a transfer that arrives twice, a price override, a controlled item that needs a second check, and a 2D code the scanner cannot read. Agree them in writing before anyone writes the first mapper. Store a stable movement identity so a retry cannot create two stock rows. If a supervisor may correct a count, keep the original movement, the correction, and who approved it.
Prescription and customer records that identify a person are personal data. Read that framework in our Egypt Personal Data Protection Law guide, and confirm duties with counsel. The system should not store a full patient file the till does not need, or copy prescriptions into an unencrypted sheet. See the official Personal Data Protection Center for current guidance; this article will not invent a retention period. For hosting and access, our website security checklist is basic hygiene, not a substitute for limiting who can read dispensing data.
Gulf branches, and rules you should not copy twice
A Saudi or other Gulf branch can share the same technical architecture: one catalogue, unit conversions, batch and expiry, a correction log and an official stock figure. It should not inherit Egyptian traceability, e-receipt or insurance rules by accident. Confirm local duties with counsel in each country.
In Saudi Arabia, the official Rased drug track and trace system is run by the Saudi Food and Drug Authority to track human medicines manufactured in or imported into the Kingdom, from manufacture through to the consumer. On 7 January 2026 the Authority met the national pharmacies committee to discuss challenges in applying Rased in pharmacies. Obtain current connection requirements from the Authority; I will not invent a service list or a fine here. E-invoicing is a separate duty from Rased. If you issue tax invoices, start with our ZATCA Phase 2 integration guide, and confirm your wave with counsel.
For a UAE branch, confirm local licensing, dispensing and invoicing rules with counsel and the competent authority. Do not copy the Egyptian or Saudi workflow into a UAE till. Our UAE e-invoicing 2027 integration guide covers that timeline; it is not a pharmacy licence.
If the same item moves between two legal entities, decide which entity owns the official count for each pack. Map where customer or prescription data is hosted, including backups and vendor access, and collect only what dispensing needs. The architecture can be shared. The policy for each entity should stay separate.
What we build, and what we will not promise
We scope a custom pharmacy management system around a real week of receiving and dispensing. A third-system integration is listed only where access is verified, not as an imagined portal. We will not promise a connector that covers every scanner and official portal forever without upkeep. The proposal should include monitoring, a reconciliation report, and an owner for access.
Golden Code does not sell a ready-made pharmacy product. The development services overview is the starting point for how we work. A custom technical quote comes after we have seen your branches, unit rules and a real week of exceptions.
Six steps to scope a custom pharmacy management system
Step 1: Map how stock arrives, and what the till actually sells
Walk a real week of receipts and sales. Note pack, strip and unit conversions, transfers between rooms or branches, and who signs for a delivery.
Step 2: List the exceptions that already appear in a real week
Include a split pack, a return, a short-dated item, a price override, an insurance claim, and a code the scanner could not read.
Step 3: Separate the sales screen from official e-receipt and drug-trace duties
Agree which events must reach the tax receipt system and which must reach the national traceability system, in Egypt, and who retries a failed upload. Do not treat those official files as a second unofficial spreadsheet.
Step 4: Keep Gulf branches on their own regulator rules
If you have a Saudi or other Gulf site, list the local trace and invoicing duties separately. Do not copy Egyptian settings into that branch. Confirm the current requirements with counsel and the competent authority in each country.
Step 5: Decide who may correct stock, expiry and price, and how personal data is stored
A correction needs a reason, an approver and a log. Confirm with counsel how prescription or customer data will be hosted, who can read it, and how long it is kept. Do not leave that decision to the first dispute.
Step 6: Test a full week, then agree monitoring and handover
Use a non-production till or a staging scanner flow before a live branch. Reconcile a full week's receipts and sales against the shelf and the official uploads, and investigate every mismatch. Agree who watches failed handoffs and how access is revoked. After that review we can send you a custom technical quote based on your sites, unit rules and official duties.
Soft next step
If you run a pharmacy from Egypt, have a Gulf branch, or already have a till that no longer matches the shelf, send a short inventory: the sites, how packs are sold, and one recent week of exceptions. We will say what belongs in a custom pharmacy management system and what should stay with your pharmacist in charge or counsel. You can also send Golden Code that inventory for a custom technical quote. No fixed package.
FAQ
Is a free or ready-made pharmacy program enough?
It can be, when you have one till, packs sold mostly whole, and accounts will use or retype a simple export. It is usually a poor fit once several sites, split packs, claims or official uploads leave you with two unofficial stock files.
Is a clinic system the same as a pharmacy management system?
No. A clinic system is built around appointments, the patient file and clinic billing. A pharmacy management system is built around units, batches, expiry, dispensing and official stock and trace files. You can link the two later, but one product should not pretend to be the other.
Will one pharmacy system automatically cover an Egyptian pharmacy and a Gulf branch?
No. You can share the technical architecture, but drug-trace, receipt, licensing and insurance rules stay entity-specific. Confirm local requirements with counsel before you copy Egyptian settings into a new country.
Do we have to connect Egypt's drug traceability system and e-receipt at the same time?
Not necessarily. They are separate official duties, and your position on each depends on registration, product type and the current phase. Confirm both with counsel and the competent authorities, and list each handoff only where it actually applies.
Are prescription and customer records personal data?
Yes, a record that identifies a person is personal data. Read our Egypt Personal Data Protection Law guide, confirm duties with counsel, and collect only what dispensing needs.
Do you sell a fixed pharmacy management package?
No. Golden Code does not publish a fixed pharmacy package or a ready-made product price. We quote custom technical work after an inventory of your sites, unit rules and exception cases.
Sources
- Egyptian Drug Authority
- Decision 475 of 2025 (PDF)
- Executive requirements for drug traceability (PDF)
- Egyptian Tax Authority
- Personal Data Protection Center
- Rased, Saudi Food and Drug Authority
- SFDA news, 7 January 2026, on Rased in pharmacies
- Our Egypt Personal Data Protection Law guide
- Our clinic management system guide for Egypt and the Gulf
- Our Egypt e-receipt POS and ERP integration guide




