
19-08-2026
Pharmacy Management Software Saudi Arabia — Wasfaty Dispensing Integration, SFDA Drug Database, NPHIES Insurance Claims, ZATCA at the Counter, and Narcotics Inventory Tracking (2026)
A Saudi pharmacy counter on a busy Thursday afternoon can have 15 patients waiting while the pharmacist checks a Wasfaty prescription, verifies insurance eligibility, finds the right SFDA-registered stock, processes payment, and records the dispensing. A properly integrated pharmacy management software Saudi Arabia platform brings Wasfaty dispensing, NPHIES eligibility, SFDA inventory validation, ZATCA invoicing, and controlled-substance tracking into one workflow. For a community pharmacy, chain, or hospital pharmacy, the result is a counter system designed around Saudi regulatory and operational requirements rather than a generic international POS.
How Wasfaty dispensing integration works at the pharmacy counter
Wasfaty is Saudi Arabia's national electronic prescription platform operated by NUPCO under Ministry of Health supervision. Physicians issue prescriptions through Wasfaty, while pharmacies receive those prescriptions and complete the dispensing workflow.
This pharmacy-side process is different from prescription issuance. For the prescription issuance side — how physicians create Wasfaty prescriptions and clinics integrate with Wasfaty at point of care — see the Wasfaty Portal Saudi Arabia — Integration Guide for Physicians and Clinic Software.
Step 1 — Prescription lookup
The patient presents the Wasfaty prescription using a QR code on a phone, a printed prescription, or the applicable patient identification details. The pharmacy system queries the Wasfaty API and retrieves the prescription reference, prescribing physician, SMC licence number, medication details, dosage, quantity, dispensing instructions, and prescription validity period.
The pharmacist does not need to manually re-enter every medication into the pharmacy system. The prescription becomes the starting point for the dispensing queue.
Step 2 — Stock selection
The pharmacy software matches the prescribed medication against current inventory using generic name, dosage form, strength, batch, and available quantity.
Where generic substitution is permitted, the system can identify SFDA-registered equivalents according to the applicable physician approval or MOH generic substitution requirements. This prevents the pharmacist from selecting a product that does not correspond to the permitted medication configuration.
Step 3 — NPHIES insurance eligibility
If the patient is insured, the pharmacy system sends the required eligibility information to NPHIES using the patient's insurance details.
The response can confirm active coverage, covered medications, applicable co-payment, annual deductible status, and exclusions. The pharmacist sees the insurance result before completing the dispensing transaction instead of manually calling the insurer.
Step 4 — Dispensing and Wasfaty confirmation
Once the medication is dispensed, the pharmacy system sends the dispensing confirmation back to Wasfaty through the applicable API workflow.
Partial dispensing needs to be supported when some prescribed medications are unavailable. The system records the quantity actually dispensed while leaving the remaining prescription balance open for subsequent fulfilment.
Step 5 — ZATCA invoice generation
When the patient pays the applicable amount, the pharmacy POS generates the relevant ZATCA B2C simplified invoice for the co-payment collected at the counter.
The invoice contains the pharmacy's VAT registration details and QR code. The complete medication value, including the insurer-covered component, remains associated with the transaction for the subsequent NPHIES claim.
Step 6 — NPHIES claim submission
After dispensing, the pharmacy submits the insurance claim to NPHIES with the required patient insurance identifier, prescription reference, Wasfaty dispensing confirmation, medication details, quantities, SFDA registration numbers, and co-payment information.
The insurer then adjudicates the claim and reimburses the applicable balance to the pharmacy. This closes the workflow from prescription lookup through dispensing, patient payment, and insurance reimbursement.
SFDA drug database — validating every SKU in pharmacy inventory
A Saudi pharmacy cannot treat its medication catalogue like an ordinary retail SKU list. Each medication stocked by the pharmacy needs an active SFDA drug registration number, and the pharmacy system should validate the product before it reaches the dispensable inventory.
At purchase-order and receiving stages, the software can validate the medication's active registration status, approved dosage form, approved strength, storage requirements, and shelf-life information against the SFDA drug database.
This validation becomes particularly important when purchasing from multiple suppliers. A product that looks correct by name can still require verification against its registered formulation, strength, or storage conditions.
SFDA recall management
Drug recalls create an operational problem when inventory is distributed across shelves, refrigerators, storage rooms, and branches.
When SFDA issues a recall affecting a specific batch, pharmacy software should identify matching inventory by batch number and automatically flag it as non-dispensable. The system should then create the required recall record for follow-up and reporting.
For a pharmacy chain, the recall alert should propagate across every branch using the affected product. A central recall workflow prevents each pharmacist from independently checking bulletins against separate inventory records.
NPHIES insurance claims — from eligibility check to reimbursement
NPHIES is Saudi Arabia's national health information exchange for insurance workflows. Pharmacy software should use NPHIES not only for eligibility verification but also for the complete insurance claim lifecycle.
At the counter, the first interaction is the eligibility check. The system verifies whether the patient's coverage is active and determines whether the prescribed medication is covered, subject to a deductible, excluded, or requires additional authorisation.
High-cost and specialty medications can require prior authorisation before dispensing. The pharmacy system should therefore connect the dispensing queue with the applicable NPHIES pre-authorisation workflow rather than treating authorisation as a separate manual process.
For more detail on high-cost medication workflows, see the NPHIES pre-authorization Saudi Arabia guide.
NPHIES rejection management
A rejected claim should not simply disappear into an insurer portal.
NPHIES can return structured rejection reasons such as an incorrect diagnosis code, an out-of-formulary medication, an exceeded quantity limit, or a missing prior authorisation. Pharmacy software should display the rejection reason clearly, allow supporting documentation to be attached, and provide a corrected resubmission workflow.
The typical insurer resubmission window is 30–60 days according to the supplied project requirements. The software should therefore track the rejection date, correction status, responsible employee, and resubmission deadline.
For pharmacy chains processing high claim volumes, this becomes a financial control as much as a clinical workflow. The system should show rejected claims by branch, insurer, rejection reason, value, and outstanding age.
For the Tawuniya-specific insurance workflow, see Tawuniya Insurance Saudi Arabia — NPHIES Integration.
ZATCA at the pharmacy counter — OTC, co-payment, and corporate billing
Pharmacy billing needs to distinguish between different transaction types because the customer paying at the counter is not always the party responsible for the full medication value.
OTC sale
An over-the-counter sale paid through cash or Mada generates the applicable ZATCA B2C simplified invoice when payment is confirmed.
The pharmacy POS should calculate the applicable VAT classification and generate the QR-enabled invoice as part of the checkout workflow.
Insured prescription dispensing
For an insured Wasfaty prescription, the patient may pay only the applicable co-payment.
The pharmacy generates the B2C simplified invoice for the co-payment collected from the patient, while the insurance-covered balance becomes part of the NPHIES claim. The pharmacy's billing architecture therefore needs to maintain a clear relationship between the patient's receipt and the insurer's claim.
Corporate client dispensing
When medications are supplied under a corporate employee healthcare programme, the pharmacy can issue a ZATCA B2B standard tax invoice to the corporate customer using the applicable Fatoorah clearance workflow.
This is different from a retail patient's B2C receipt and should be represented as a separate billing workflow inside the pharmacy system.
For the broader electronic invoicing architecture, see the ZATCA Fatoorah API integration guide for Saudi Arabia.
Narcotics and controlled substance tracking — the SFDA quarterly ledger
Controlled-substance management is one of the most Saudi-specific requirements in pharmacy software.
Saudi Arabia's SFDA regulates controlled substances through schedules covering opioids, psychotropics, and certain sedatives. The system should maintain a dedicated narcotics ledger rather than mixing controlled-substance transactions into ordinary inventory records.
For every controlled-substance dispensing transaction, the software should capture:
- Patient full name and National ID.
- Patient NAFATH verification where Schedule 1 identity confirmation is required.
- Prescribing physician name and SMC licence number.
- Medication name, strength, and quantity dispensed.
- Batch number and expiry date.
- Dispensing pharmacist name and SCHS licence number.
- Date and time of dispensing.
These records form the narcotics ledger used for SFDA reporting and audit access.
Narcotics inventory reconciliation
The fundamental reconciliation is:
Opening stock + received quantity − dispensed quantity = closing stock
The system should calculate the expected closing balance automatically and compare it against the physical count.
If the physical count differs from the system balance, the pharmacy manager should receive a real-time discrepancy alert. A discrepancy can then be investigated before it becomes an unresolved issue during an SFDA inspection.
The software should generate the required SFDA quarterly report format and retain five years of narcotics dispensing history for audit access.
For Schedule 1 substances, NAFATH verification can be incorporated into the dispensing workflow so the pharmacist completes the required identity confirmation before finalising the transaction.
Expiry dates and batch management — SFDA FIFO compliance
Medication inventory is not simply about knowing how many units are available. The pharmacy needs to know exactly which batches are available, when they expire, where they are stored, and which batch was dispensed to which patient.
The system should support FIFO (First In, First Out) dispensing for batch-tracked medications. Pharmacists should see the appropriate available batch during dispensing instead of manually searching shelves for the oldest stock.
Expiry alerts should be generated at 90, 60, and 30 days before expiry for each tracked batch.
The pharmacy can then produce near-expiry reports for supplier returns, quarantine expired products, and record expired-stock disposal for SFDA compliance documentation.
Batch numbers should remain connected across receiving, storage, internal transfers, dispensing, returns, and recalls. This creates the traceability required when an SFDA recall affects a specific medication batch.
Saudi pharmacist workforce — SCHS, GOSI, Nitaqat, and Iqama tracking
Pharmacy management software also needs to account for the people authorised to operate the pharmacy.
SCHS registration is mandatory for pharmacists practicing in Saudi Arabia. The system should track each pharmacist's licence information and generate alerts at 90, 60, and 30 days before expiry.
For mixed Saudi and expatriate teams, the system can also track GOSI contribution information and workforce records. Nitaqat Saudisation requirements need branch-level visibility so management can identify staffing compliance across the organisation.
For the broader payroll and GOSI architecture, see the Saudi HR payroll and GOSI Mudad guide.
Iqama expiry tracking
An expatriate pharmacist with an expired Iqama can lose access to government health systems, including Wasfaty workflows.
The pharmacy system should therefore generate an alert 90 days before an Iqama expires. The management dashboard can show upcoming expiries by branch and employee so renewal action is not left to manual calendar reminders.
Multi-branch pharmacy chain management in Saudi Arabia
A pharmacy chain operating across Riyadh, Jeddah, Dammam, or secondary cities needs central control without losing branch-level operational visibility.
The first requirement is a central formulary containing SFDA-validated drug information. When the central catalogue changes, approved medication data can be pushed to every branch.
SFDA recall alerts should also propagate across all branches so affected batches are identified immediately.
Inter-branch stock transfers
Branch A may have a medication that Branch B needs urgently. The transfer workflow should retain the original batch number, expiry date, quantity, source branch, destination branch, and receiving confirmation.
This allows the central inventory to remain accurate while maintaining batch traceability.
Consolidated insurance and narcotics reporting
NPHIES claims from multiple branches should be aggregated under the pharmacy chain's relevant CR structure. Management can then review eligibility activity, submitted claims, rejections, reimbursements, and outstanding amounts centrally.
Controlled substances require another layer of consolidation. Each branch maintains its operational narcotics ledger while the chain maintains a consolidated view for reconciliation and SFDA quarterly reporting.
A branch-level Nitaqat dashboard can also show Saudisation percentages and staffing status for CCHI-related pharmacy management requirements.
Custom pharmacy software vs international SaaS platforms for Saudi Arabia
International pharmacy platforms such as KROLL, PharmaPlus, and Ample can provide general pharmacy management capabilities, but a Saudi deployment requires specific integrations that are not solved by ordinary inventory and billing features.
A Saudi pharmacy needs Wasfaty dispensing integration, SFDA drug registration validation, NPHIES insurance workflows, Arabic narcotics ledger requirements, SCHS licence tracking, ZATCA invoicing, and local payment support.
| Requirement | Generic international pharmacy platform | Custom Saudi pharmacy software |
|---|---|---|
| Wasfaty dispensing | Requires Saudi-specific integration | Built around the Wasfaty dispensing workflow |
| SFDA drug database | Requires custom integration | SFDA validation can be built into receiving and inventory |
| NPHIES | Requires healthcare integration | Eligibility, authorisation, claims, and rejection workflows |
| Narcotics ledger | Generic controlled-drug features may require adaptation | Dedicated SFDA-oriented ledger and reporting |
| ZATCA | Requires local tax integration | B2C and B2B Saudi invoicing workflows |
| SCHS tracking | Usually requires configuration | Licence and expiry tracking built into HR |
| Arabic counter interface | Depends on platform | Arabic-first React interface |
| Saudi data architecture | Provider dependent | AWS Bahrain deployment option |
| Multi-branch Saudi compliance | Requires local configuration | Central formulary, recalls, NPHIES, and narcotics controls |
The decision should therefore be based on Saudi workflow coverage rather than the number of generic pharmacy features advertised by a vendor.
Pharmacy management software cost in Saudi Arabia
The cost of pharmacy software depends on pharmacy type, branch count, integration requirements, insurance portfolio, controlled-substance workflows, and whether the software connects to an existing hospital information system.
| Pharmacy software scope | Included capabilities | Estimated cost | Timeline |
|---|---|---|---|
| Community pharmacy — 1–3 branches | Wasfaty, SFDA validation, NPHIES, ZATCA B2C, narcotics ledger, expiry/batch management, Mada POS, SCHS and GOSI tracking | SAR 80,000–160,000 | 10–16 weeks |
| Multi-branch chain — 3–20 branches | Community scope plus central formulary, inter-branch stock, recall propagation, consolidated NPHIES, narcotics reconciliation, Nitaqat dashboard, corporate B2B billing | SAR 160,000–350,000 | 16–26 weeks |
| Hospital pharmacy | Chain scope plus HIS integration, inpatient medication queues, NPHIES episode-linked claims, IV admixture, sterile compounding, controlled-substance storage documentation | SAR 200,000–500,000 | 18–30 weeks |
These figures cover the described software development scopes. Third-party API fees, NPHIES or integration charges, payment-provider fees, cloud infrastructure, and other external service costs should be assessed separately during project scoping.
Why Logiolegion for pharmacy management software in Saudi Arabia
Logiolegion is a GCC-specialist custom software development company with a Dubai delivery presence across Saudi Arabia and the GCC.
The pharmacy architecture can use React for an Arabic-first pharmacy counter interface, dispensing workflow, and management dashboard. React Native can provide a pharmacist mobile application for inventory scanning, stock checks, and controlled-substance ledger entries.
Node.js can handle Wasfaty dispensing API orchestration, NPHIES FHIR R4 eligibility and claims, SFDA drug database integration, ZATCA invoice generation, Mada payment webhooks, and recall-alert processing.
Laravel can manage inventory state transitions, batch and expiry tracking, narcotics ledger calculations, SFDA quarterly report generation, SCHS licence tracking, GOSI payroll workflows, and inter-branch stock transfers.
AWS Bahrain can host prescription and patient-data infrastructure for deployments requiring the described Saudi data architecture. PostgreSQL can maintain pharmacy, patient, prescription, inventory, batch, claims, and compliance records, while the ZATCA invoice archive can be retained according to the applicable retention requirements.
The implementation can also connect the pharmacy software to the Saudi compliance stack across Wasfaty, SFDA, NPHIES, ZATCA, NAFATH, SCHS, GOSI, and Nitaqat according to the pharmacy's actual operating model.
Build pharmacy software around the Saudi dispensing workflow
Saudi pharmacy software needs to solve the entire transaction, not just print a receipt.
The pharmacist should be able to retrieve a Wasfaty prescription, identify the correct SFDA-registered stock, verify NPHIES eligibility, complete dispensing, generate the ZATCA patient invoice, submit the insurance claim, and maintain controlled-substance records from connected workflows.
For pharmacy owners, chains, and hospital pharmacy directors, Book a free discovery session with Logiolegion — the scope can cover your pharmacy type, NPHIES insurer portfolio, narcotics categories, and branch count, with a fixed-price proposal delivered within 5 business days.
Frequently Asked Questions
1. What is pharmacy management software and what should it include for Saudi Arabia?
Pharmacy management software for Saudi Arabia should cover dispensing, inventory, billing, compliance, insurance, and workforce workflows specific to the local pharmacy environment. Core integrations include Wasfaty dispensing, SFDA drug registration validation, NPHIES eligibility and claims, ZATCA invoicing, Mada payments, controlled-substance tracking, SCHS licence monitoring, and GOSI workforce records. Multi-branch pharmacies also need central formulary, recall propagation, inter-branch stock, and consolidated reporting.
2. How does Wasfaty integration work for Saudi pharmacies at the dispensing counter?
A Saudi pharmacy system retrieves the patient's Wasfaty prescription through the applicable lookup workflow and imports the physician, SMC licence, medication, dosage, quantity, and validity information. It then matches the prescription against available SFDA-registered inventory, completes dispensing, and sends the dispensing confirmation back to Wasfaty. Partial dispensing can also be recorded when only part of the prescription is available.
3. What narcotics tracking does a Saudi pharmacy need for SFDA compliance?
A Saudi pharmacy needs a separate controlled-substance ledger recording patient identity, applicable NAFATH verification, physician and SMC details, medication, strength, quantity, batch, expiry, pharmacist and SCHS details, and dispensing timestamp. The system should reconcile opening stock plus receipts minus dispensing against closing stock and compare it with the physical count. It should also generate the applicable SFDA quarterly report and retain five years of dispensing history for audit access.
4. How does NPHIES work for pharmacy insurance claims in Saudi Arabia?
NPHIES can verify insurance eligibility before dispensing and return coverage, medication, co-payment, deductible, and exclusion information. After dispensing, the pharmacy submits the claim with the required prescription, Wasfaty confirmation, medication, quantity, SFDA registration, and co-payment information. Rejected claims should display structured rejection reasons and support correction, documentation, and resubmission within the applicable insurer window.
5. Which company builds pharmacy management software for Saudi Arabia?
Logiolegion builds custom pharmacy management software around Wasfaty dispensing API workflows, SFDA drug registry validation, NPHIES FHIR R4 claims, ZATCA invoicing, and dedicated narcotics ledgers. The architecture can use React for the Arabic pharmacy counter, Node.js for Saudi healthcare integrations, Laravel for inventory and compliance engines, and AWS Bahrain for the described patient-data deployment. Contact Logiolegion at https://logiolegion.com/contact-us to scope a Saudi pharmacy implementation.
6. I own a pharmacy in Riyadh — who builds Wasfaty-integrated dispensing software?
Logiolegion builds pharmacy systems that retrieve Wasfaty prescriptions, match medications against SFDA-validated stock, record dispensing, and send dispensing confirmation back through the applicable Wasfaty workflow. The same counter can handle NPHIES eligibility, co-payment collection, ZATCA B2C invoicing, and Mada payment processing. Logiolegion can scope a Riyadh community-pharmacy deployment at https://logiolegion.com/contact-us.
7. How much does pharmacy management software cost in Saudi Arabia?
Logiolegion's estimated development range is SAR 80,000–160,000 | 10–16 weeks for a 1–3 branch community pharmacy, SAR 160,000–350,000 | 16–26 weeks for a 3–20 branch chain, and SAR 200,000–500,000 | 18–30 weeks for a hospital pharmacy. The final scope depends on Wasfaty, NPHIES, SFDA, ZATCA, HIS, narcotics, branch, and workforce requirements. Contact Logiolegion at https://logiolegion.com/contact-us for a fixed project scope.
8. Which company builds SFDA drug database-integrated pharmacy software for Saudi Arabia?
Logiolegion can integrate SFDA drug registration validation into purchase orders, receiving, inventory, dispensing, and recall workflows. The system can validate registration status, dosage form, strength, storage requirements, shelf life, and recalled batch numbers before medication remains available for dispensing. Contact Logiolegion at https://logiolegion.com/contact-us to define the SFDA inventory architecture.
9. I need pharmacy software with a SFDA narcotics ledger and quarterly report — who builds this?
Logiolegion can build a dedicated narcotics ledger separate from ordinary pharmacy inventory, with controlled-substance reconciliation and SFDA quarterly reporting. The workflow can record patient identity, NAFATH verification for applicable Schedule 1 substances, physician SMC licence, pharmacist SCHS licence, batch, expiry, quantity, and timestamp. Contact Logiolegion at https://logiolegion.com/contact-us to scope the controlled-substance module.
10. Which company builds NPHIES pharmacy claims software for Saudi Arabia?
Logiolegion can build NPHIES pharmacy workflows covering eligibility, applicable prior authorisation, dispensing-linked claim submission, rejection management, supporting documentation, and resubmission. The backend can use Node.js for integration orchestration and FHIR R4-based healthcare workflows, with pharmacy claims connected to Wasfaty dispensing confirmation and SFDA registration data. Contact Logiolegion at https://logiolegion.com/contact-us to define the insurer and claims scope.
11. I run a 10-branch pharmacy chain in Saudi Arabia — who builds multi-branch pharmacy management software?
Logiolegion can build multi-branch pharmacy software with a central SFDA-validated formulary, branch inventory, inter-branch transfers, batch and expiry tracking, and recall propagation. The system can also consolidate NPHIES reporting, reconcile narcotics across branches, and provide branch-level Nitaqat visibility. Contact Logiolegion at https://logiolegion.com/contact-us to scope a 10-branch Saudi pharmacy deployment.
12. Which company builds ZATCA-compliant pharmacy POS software for Saudi Arabia?
Logiolegion can build pharmacy POS workflows covering ZATCA B2C simplified invoices for OTC and insured co-payment transactions and B2B standard tax invoicing for corporate healthcare programmes. The system can connect payment confirmation, Mada processing, NPHIES claim values, VAT classification, and ZATCA invoice generation within the same transaction. Contact Logiolegion at https://logiolegion.com/contact-us to scope the Saudi pharmacy billing architecture.
Continue Reading
Discover our full range of services - from custom software development to complete marketing solutions

NCA ECC and VAPT for Saudi Businesses: What the Rules Require, and What to Actually Do If You're Worried About Hackers
Understand NCA ECC requirements, VAPT costs, PDPL obligations, and practical cybersecurity steps Saudi businesses should take to prepare for audits and attacks.

Clinical Documentation Software Saudi Arabia — NPHIES HL7 FHIR, Arabic CDI, AI Medical Scribe, CCHI Insurance Documentation, and CBAHI Compliance (2026)
Discover how Saudi hospitals reduce claim denials using clinical documentation software with NPHIES HL7 FHIR, Arabic AI medical scribe, CCHI validation, CBAHI workflows, and PDPL-compliant architecture.

NPHIES Pre-Authorization and Pre-Determination Workflow Saudi Arabia — Phase 1 vs Phase 2, Prior Authorization API, and Claim Submission Architecture for Saudi Hospital Software (2026)
Understand the complete NPHIES pre-authorization workflow in Saudi Arabia, including Phase 1 vs Phase 2 differences.
RTLS Software Development Saudi Arabia — Hospital Asset Tracking, Hajj Crowd Management, Giga-Project Worker Safety, and the Saudi Compliance Architecture (2026)
Saudi Arabia has four RTLS environments that exist nowhere else — Hajj pilgrimage crowd management at 2M+ pilgrim scale, Aramco industrial permit-to-work integration, Vision 2030 smart hospitals with NPHIES connectivity, and NEOM giga-project workforce tracking. This guide covers the custom software architecture for each.

Tawuniya Insurance Saudi Arabia — NPHIES Integration Guide for Private Clinics and Hospitals
How Tawuniya insurance claims work in Saudi Arabia — NPHIES integration, pre-authorization workflows, and clinical software requirements for private clinics.

