India’s Leading Domain & Web Hosting Provider
Pharmacy chain exposes e-prescription APIs and live stock across 720 stores
Retail pharmacy chain with 720 stores, an e-pharmacy app and telemedicine partners · Northern and Eastern India · 14 weeks
As-is situation
Store POS systems uploaded sales to SAP every four hours through file drops, so the app's stock availability was hours old and 11% of online orders were cancelled because the chosen store had sold out. Telemedicine partners sent e-prescriptions by email or as PDFs uploaded to a shared portal, and pharmacists re-entered them manually, which took four to six minutes per prescription and caused transcription errors on dosage. Schedule H and H1 dispensing records were kept per store and assembled manually for inspections. Each telemedicine partner had requested a structured API, but none existed.
- 11% of online orders cancelled due to stale stock data
- Four to six minutes of manual entry per e-prescription with transcription errors
- No structured API for telemedicine and clinic partners
- Scheduled-drug dispensing records scattered across 720 stores
Selected Google Cloud services and architecture
NTSPL built an e-prescription API in Apigee X in asia-south1 that accepts structured prescriptions from registered telemedicine partners and doctors' platforms, verifies the prescriber's registration details and stores the signed prescription before routing it to the patient's chosen store. Store POS systems publish sale and stock-adjustment events to Pub/Sub, which updates a stock service on Cloud Run backed by Memorystore, giving the app availability within seconds. Application Integration with the SAP connector posts aggregated stock movements to SAP every 15 minutes and creates replenishment requests. Dispensing events for scheduled drugs flow through a BigQuery subscription into an audit dataset.
Implementation approach
Measured results
Operational improvements
- Pharmacists review structured prescriptions instead of retyping PDFs
- Store replenishment requests are generated every 15 minutes rather than after the four-hourly file upload
- Inspection reports for Schedule H and H1 drugs are queried centrally instead of collected store by store
Cost considerations
Pub/Sub throughput for 720 stores is modest at around 40 GiB a month, so messaging cost is small. Application Integration executions were reduced by aggregating SAP postings into 15-minute windows. Apigee runs on pay-as-you-go because partner call volume is still growing; a subscription will be reviewed after 12 months.
Return on investment
Reduced cancellations recover an indicative INR 3-4 crore in annual online revenue, and pharmacist time saved across 720 stores is worth roughly INR 1 crore a year. Telemedicine partners now route more prescriptions to the chain, which management expects to grow e-prescription volume by 25-35%.