Skip to main content
← All case studies

Case study · Pharmaceutical holding

A plant, 2 warehouses and 35 pharmacies — in one system, with GMP built in

A vertical pharmaceutical holding: a drug manufacturing plant, distribution warehouses and a pharmacy chain. We built the digital management system from scratch: our own modules for GMP and pharmacies, more than 100 AI agents and one dashboard for the whole holding.

4
companies in one database
35
pharmacies in one system
29
apps, from the plant to the till
100+
AI agents inside the system

01 · About the client

A pharmaceutical holding: from the plant to the pharmacy shelf

The client's name is under NDA. The details below are generalised.

Industry
Pharmaceuticals: manufacturing, distribution, retail, promotion
Scale
Annual turnover above $40M, 4 companies
Plant
5 lines, 4 dosage forms: tablets, capsules, liquids, sterile ampoules; β-lactams in a separate building
Warehouses
Central in Tashkent, regional in Fergana
Pharmacies
35, in 3 regions; Audit Apteka runs at the till
System
A digital management system: an accounting core, our own modules and AI agents

02 · The task

Why an ordinary ERP was not enough

In pharma every batch is documented and every pack is traced. If the system itself does not enforce these rules, they live on paper and in people's heads.

Before the project

  • Batch records were on paper: during an inspection it took days to find the right document.
  • Laboratory results and batch release were not linked.
  • Pharmacy stock was visible with a delay, and stock-outs were not seen in advance.
  • The pharmacy till, marking and the warehouse lived in separate programs that could not see each other.
  • The 4 companies kept separate books, and consolidation was done in Excel.

What was needed: run the plant, the warehouses and the pharmacies in one system, make GMP rules mandatory at system level and show the owner the whole holding on one screen.

03 · The solution

One system: an accounting core, our own modules and AI agents

Off-the-shelf software lacks what GMP requires: an electronic batch record, quality control, the cold chain, marking. So we wrote these ourselves, from scratch. In the pharmacies Audit Apteka runs at the till, and the system exchanges data with it online.

The path of a batch

  1. Raw materials and API
  2. Quarantine and laboratory
  3. Production and batch record
  4. Batch release
  5. Warehouses
  6. 35 pharmacies
  1. 01

    The GMP rule lives in the system

    While a deviation or OOS is open, the batch is not released

    The electronic batch record logs every stage with a signature. An out-of-limit result opens a deviation on its own and blocks the batch. Not even the CEO can bypass this rule.

    • Batch record
    • OOS
    • Batch release
  2. 02

    Every pack is traced

    The Asl Belgisi code follows one chain from the plant to the till

    The code is applied at the plant, scanned in the warehouse and retired at the Audit Apteka till on sale. The till will not sell a blocked batch. Enter a batch number and its whole path opens on one page.

    • Asl Belgisi
    • Audit Apteka
    • Batch trace
  3. 03

    One database, 4 companies

    Intercompany sales are eliminated on consolidation

    The plant, distribution, pharmacies and promotion run as separate companies, and the holding report is produced without Excel.

    • Consolidation
    • Management accounting
  4. 04

    One screen for the owner

    Holding dashboard: 10 tabs

    Finance, plant, distribution, retail, promotion, people, quality, risks and AI agents. Every number opens down to its document.

    • Holding dashboard
    • Approval queue

04 · Architecture

How the system is built

One database on the holding's server. At every layer you can see who did what.

  1. Who uses it

    • Plantbatch record, laboratory, raw-material store
    • Warehousescentral in Tashkent, regional in Fergana
    • 35 pharmaciesAudit Apteka till, stock, orders
    • Medical repsvisits from a phone
    • Managementdashboard and AI assistant
  2. Accounting core · Odoo 20 Community

    • Inventorybatches, expiry dates, routes
    • Manufacturingbills of materials, orders
    • PurchasingAPIs, packaging, imports
    • Salesdistributors, tenders
    • Accountinginvoices, payments, taxes
    • HRattendance, payroll, clearances
  3. Empire modules · written from scratch

    • Batches and batch recordelectronic signature, release
    • Quality controlsamples, OOS, deviations, CAPA
    • Clean rooms and waterparticles, pressure differential
    • Cold chain2–8 °C, 93 sensors
    • MarkingAsl Belgisi codes, batch trace
    • Medical repsdoctors, visits, plan
    • Consolidation and management accounting4 companies, eliminations, cash forecast
    • Regulatory affairsregistrations, licences, pharmacovigilance
    • Holding dashboard10 tabs, approval queue
  4. Empire AI · more than 100 agents

    • Demand forecastand stock-out risk
    • Investigation draftsOOS and deviations
    • InvoicesPDF reading and matching
    • Equipment failureearly warning
    • Transfers between pharmaciesfor short-dated stock
    • CEO assistantquestions in plain language
  5. External systems

    • Audit Aptekatills in 35 pharmacies
    • DMEDelectronic prescriptions
    • Asl Belgisimarking codes
    • Fiscal operatorreceipts
    • Didoxelectronic invoices
    • Banks, Click, Paymestatements and payments
    • Face ID and camerasattendance, clean-room access
    • Sensors and linestemperature, scales, laboratory instruments

The AI agent reads data with the user's permissions and changes it only after the “Allow” button.

05 · Screens

Inside the system

These are not pictures but a demo you can walk through. Click a screen to open it in the live demo.

  • Holding dashboard

    Holding dashboard: 4 companies on one screen — revenue, EBITDA, cash forecast and the decisions waiting today.

  • Batch record and AI

    Batch record: coating weight gain below the limit, the batch blocked itself. AI compared the 6 previous batches and found the cause.

  • Batch trace

    Batch trace: from raw material to the pharmacy receipt on one page. Every step opens its own document.

  • Pharmacies and Audit Apteka

    Pharmacies: Audit Apteka runs at the till, the ERP behind it. Receipts, stock and refusals arrive online.

  • CEO assistant

    CEO assistant: “Why did stock-outs rise in Fergana?” — an answer, its sources and a request for permission.

Open the interactive demo →

The demo is fully interactive: 29 apps and a 9-step guided tour. The interface is in Russian and Uzbek; the data on screen is sample data, changed because of the NDA.

06 · Integrations

What is connected to the system

Every connection runs as its own service: if one stops, the rest keep working. The dashboard shows the last sync time of every source.

Pharmacies and state systems

  • Audit Apteka

    Receipts, stock and refusals come from the till; prices, receipts of goods and batch blocks go to it.

  • DMED

    Electronic prescriptions arrive at the till; dispensing is visible in the system.

  • Asl Belgisi

    Ordering codes, applying them, shipping and retiring them at the till.

  • Didox and the fiscal operator

    Electronic invoices and fiscal receipts.

Money

  • Bank client

    Statements and payment orders, matched automatically.

  • Click and Payme

    Payments at the till and in the online pharmacy.

Equipment and security

  • Face ID and cameras

    The timesheet builds itself; clean-room access depends on valid training.

  • Temperature sensors

    Warehouses, vehicles and pharmacy fridges, every 5 minutes.

  • Lines, scales, laboratory

    Parameters go straight into the electronic batch record.

  • Scanners and vehicle GPS

    The warehouse, the packaging line and delivery runs.

Sales and messaging

  • Online pharmacy

    Stock and prices of 35 pharmacies, reservation and delivery.

  • Telegram

    The morning brief, alerts and approval buttons.

07 · AI

More than 100 AI agents work right inside the document

Not a separate chatbot: the agent leaves a message in the document where help is needed, and the decision stays with a person. The agents cover eight areas: plant, quality, warehouse, pharmacies, purchasing, finance, marketing, management.

  • Finds the cause of a deviation

    When a batch goes out of limits, the agent compares earlier batches and raw-material lots, names the likely cause and drafts the deviation.

  • Writes the OOS report

    Links the laboratory to the batch record and drafts the investigation report and a CAPA proposal.

  • Sees stock-outs coming

    Calculates 14-day demand from the sales of 35 pharmacies, the season and the batches at the plant.

  • Reads invoices

    Reads the supplier's PDF invoice and matches price and quantity against the purchase order.

  • Predicts equipment failure

    From vibration and running hours it says when a bearing or a nozzle should be replaced.

  • Answers the CEO's question

    “Why did stock-outs rise in Fergana?” — causes, numbers, sources and a ready action.

An agent works only within the user's permissions. Any proposal that changes data appears as a draft and waits for the “Allow” button.

08 · Results

What works today

4 → 1
one system instead of separate books
35
pharmacies: receipts and stock online
100+
AI agents across eight areas
  • The batch document is no longer on paper: an electronic record, and while a deviation is open the batch is not released.
  • Enter a batch number and its whole path, from raw material to the pharmacy receipt, opens on one page.
  • Pharmacy stock and refusals arrive from the till online: stock-outs are seen in advance.
  • The report for 4 companies is produced without Excel; intercompany sales are eliminated automatically.
  • The owner sees the whole holding on one dashboard and approves the agents' proposals right there.

09 · Timeline and stages

Launched stage by stage

Each stage ended with a result that could be checked.

  1. 01
    Analysis and specification

    The processes of the plant, the warehouses and the pharmacies were studied on site.

  2. 02
    Accounting core

    Inventory, manufacturing, purchasing, sales and accounting were set up.

  3. 03
    GMP modules

    The batch record, quality control, clean rooms and the cold chain were written.

  4. 04
    Pharmacies and marking

    Audit Apteka tills in 35 pharmacies, Asl Belgisi and DMED were connected.

  5. 05
    Dashboard and AI agents

    The holding dashboard, forecasting, investigation drafts and the CEO assistant went live.

Next step

Do your plant, warehouse and sales points live apart?

In a free 40-minute diagnostic we go through your processes: where money and time are lost and where to start.

Esc
Empire Group

Free diagnostic

In 40 minutes we find which process is losing you money. In working hours we call back within 30 minutes.

Mon–Fri, 09:00–18:00 · we call back within 30 minutes
or
Write on Telegram

Your data will not be shared with third parties.