Hospital Pharmacy Software: What It Must Track, and What to Ask Before You Buy

What hospital pharmacy software must handle: e-prescriptions from the doctor, batch and expiry, one patient bill, a controlled-drug register and cashier shifts.

EHMS hospital management software dashboard showing collections, cash and bank, receivables and charity fund balances

A hospital pharmacy looks like a shop with a counter, but it doesn't work like one. Its customers arrive with a doctor's prescription, not a shopping list. What it sells has to land on the same bill as the consultation and the lab. Some of its stock is controlled by law. And when it runs out of something, it's a patient on a ward who waits, not a customer who walks to the next shop.

That's why ordinary pharmacy POS software struggles inside a hospital. I saw this up close building EHMS, the hospital ERP a trust eye hospital in Chishtian runs on, where the pharmacy is one step in every patient's visit.

Good hospital pharmacy software does six things: it receives the doctor's prescription electronically, dispenses by batch and expiry, puts medicines on the patient's one bill, keeps controlled drugs in their own register, runs a fast counter with cashier shifts, and keeps the stores supplied through proper purchasing. Here's what each of those means in practice, and the questions to ask any vendor.

Hospital pharmacy or retail pharmacy: which software do you need?

The difference decides what you should buy.

  • A pharmacy inside a hospital serves the hospital's own patients. Prescriptions come from its doctors, sales go on the patient's bill, and stock is shared with wards and the operating theatre. It needs to be part of the hospital management system.
  • A standalone pharmacy or medical store sells to anyone who walks in. It needs a fast POS, stock by batch and expiry, supplier ledgers and FBR invoicing. That's retail software. Our X3 Retail ERP has a pharmacy profile for exactly this: batch and expiry on every strip, first-expiry-first-out picking, and near-expiry and quarantine stock.

Many hospitals in Pakistan run both: an indoor pharmacy for patients and a counter that also sells to walk-in customers. If that's you, ask whether one system can do both without two sets of stock.

1. The prescription arrives from the doctor, not on paper

In a paper system, the doctor writes, the patient carries the slip, and the pharmacist reads handwriting. Every step is a chance for a wrong medicine or a lost sale.

In EHMS, the doctor's e-prescription reaches the pharmacy on screen. The pharmacist sees what was prescribed, for which patient, by which doctor. Because the pharmacy is a step in the patient's journey, the visit moves forward by itself when the medicine is dispensed, and the next person in the chain sees it.

Two things follow from this. The pharmacist never retypes a prescription. And once every prescription is on screen, it becomes possible to see which ones were never filled at the hospital pharmacy, often the first sign that patients are buying elsewhere. Ask any vendor whether their reports show that.

2. Batch and expiry on every strip

Medicines are bought in batches, and each batch has its own expiry date. If the software only knows "Panadol: 400 strips", nobody can tell which strips expire next month.

In EHMS, dispensing deducts stock by batch, and medicines close to expiry are flagged before they become a loss. The point is simple: sell or return the oldest stock first, and see expiring stock while there's still time to act on it.

Ask any vendor to show you this on screen: receive a new batch with an expiry date, dispense from it, and pull up the near-expiry list.

3. One bill, not two

Patients hate paying at three counters. Accountants hate reconciling three systems.

In EHMS, one bill collects the consultation, lab and pharmacy charges for a visit. Panel patients are charged at the panel's rate, and their bills go into the monthly statement for that panel company. For trust hospitals, a funded discount is charged to the fund the desk chooses, such as zakat or sadqa, and only that fund goes down. We explained how that works in zakat and charity fund software for trust hospitals.

If the pharmacy runs on separate software, every one of these has to be matched by hand at the end of the day. That's where money goes missing without anyone stealing it.

4. Controlled drugs need their own register

Some medicines can't just be sold and forgotten. Hospitals keep a register of controlled drugs: what came in, what went out, to which patient and on whose prescription.

EHMS keeps a controlled-drug register in the pharmacy, so these entries are made in the system instead of a separate notebook. Rules on which drugs are controlled, and what has to be recorded, come from the regulator and your own hospital policy. Check them with your pharmacist in charge, then ask the vendor to show you how the register records a dispense and how it's printed for an inspection.

5. The counter: speed, held carts, returns and shifts

On a busy OPD day, the pharmacy counter is where the queue builds. The software has to keep up.

The EHMS pharmacy counter is built for that:

  • A fast counter for dispensing against prescriptions.
  • Held carts, so a pharmacist can park one patient's sale while a family member fetches money, and serve the next person.
  • Returns, recorded properly, so unused medicine goes back into stock instead of disappearing.
  • Cashier shifts, so each cashier's takings stay with their own shift, and nobody argues next morning about who was short.

It also runs in Urdu, English and Arabic, so counter staff can work in the language they read fastest.

6. Stores and purchasing behind the counter

A pharmacy is only as good as its stores. In EHMS, purchase requests, approvals, purchase orders and goods receipt keep the wards and the pharmacy supplied, and each supplier bill is checked against what was actually delivered.

That last check matters more than it sounds. Paying for 100 boxes when 90 arrived is a common, quiet loss. For eye hospitals there's a further step: the operating theatre stock forecast, so lenses and consumables don't run out on a camp day. We wrote about that in eye hospital software in Pakistan.

Questions to ask before you buy

Ask the vendor to do these live, in a demo, with your own medicines:

  1. Send a prescription from the doctor's screen and show it arriving at the pharmacy.
  2. Receive two batches of the same medicine with different expiry dates, then dispense and show which batch went out.
  3. Show the near-expiry list for next month.
  4. Make one bill with a consultation, a lab test and medicines on it, for a panel patient.
  5. Record a controlled drug and print the register.
  6. Return a medicine and show it back in stock against its batch.
  7. Close a cashier shift and show the cash report.
  8. Show what happens when the internet goes down. Can the pharmacy keep working on a local server?

If a vendor can't do these on the spot, they're selling a retail POS with a hospital label.

What does hospital pharmacy software cost?

In a hospital, the pharmacy is usually bought as part of the hospital management system, not on its own. Our ready-built EHMS starts from PKR 150,000 for a basic setup. A hospital system built from scratch, with registration, OPD, billing, lab and pharmacy, typically starts around $19,000 to $31,000 for a first version. The full breakdown is in hospital management system prices in Pakistan, and the cost calculator gives a range for your scope in a minute.

For a standalone pharmacy or medical store, retail software like X3 is the better fit and costs less.

Common questions

What is hospital pharmacy software? It's the pharmacy part of a hospital management system. It receives prescriptions from the hospital's doctors, dispenses by batch and expiry, puts medicines on the patient's bill and keeps the pharmacy's stock, purchases and controlled-drug register in the same system as the rest of the hospital.

Can I use normal pharmacy POS software in a hospital? For a small counter, perhaps. But a retail POS doesn't receive prescriptions from your doctors, can't put medicines on the patient's single bill or panel statement, and keeps its own stock separate from the wards. Most hospitals outgrow it quickly.

Does EHMS track batch and expiry? Yes. Dispensing deducts stock by batch, and medicines close to expiry are flagged before they become a loss.

Does EHMS have a controlled-drug register? Yes. The pharmacy includes a controlled-drug register, alongside a fast counter, held carts, returns and cashier shifts.

Can the hospital pharmacy work in Urdu? Yes. EHMS runs in Urdu, English and Arabic, and each user can switch language.

What about a pharmacy that isn't part of a hospital? Use retail software built for pharmacies. X3's pharmacy profile tracks batch and expiry on every strip, picks first-expiry-first-out, flags near-expiry and quarantine stock and handles FBR invoicing.

See it running

The best test of hospital pharmacy software is to watch a prescription go from the doctor to the counter to the bill. Read the EHMS case study, see our hospital management software, or book a free 30-minute call and we'll walk you through the pharmacy with your own medicines and workflow in mind.

Want to build your project this way?

Answer three quick questions and we'll send you a written plan with scope, team, timeline and estimate.

Get a free project plan

Monthly note

Get one practical note a month on building software with AI agents

What worked on real client projects, what didn't, and the numbers behind it. Short enough to read over coffee.

No spam. One email a month. Unsubscribe anytime.

Eye hospital software in Pakistan: what an ophthalmology system must get right

Eye Hospital Software in Pakistan: What an Ophthalmology System Must Get Right

What eye hospital software in Pakistan must handle: the eye OPD journey, cataract surgery packages, package leakage, charity patients and free camps, from building EHMS.

Read article
Clinic management software in Pakistan: what it should do and what it costs

Clinic Management Software in Pakistan: What It Should Do and What It Costs

What clinic management software in Pakistan should do, free vs paid vs custom, what a basic system costs, and the questions to ask before you choose one.

Read article
Hospital management system price in Pakistan: what you actually pay for

Hospital Management System Price in Pakistan: What You Actually Pay For

Hospital management system price in Pakistan: EHMS from PKR 150,000 for a basic setup, what a custom build costs, why a full hospital ERP costs far more.

Read article