SYS-02Pharmacy ERP, batch traceability and offline-first clinical systems

Pharma & Healthcare

Batch-level truth from factory gate to patient hand — even when the network is down.

We build pharmacy ERP, hospital and diagnostic network platforms, and offline-first clinical systems for regulated healthcare operators, where every dispense resolves to a batch, every batch resolves to a supplier and importer, and every override is attributable to a named clinician. The architecture assumes a 38°C delivery van, a link that drops for six hours, a prescription written in mixed Bangla and English, and a DGDA inspection that arrives without an appointment.

100% source and IP ownershipTurnkey 8–12 weeksDedicated squad in 2–4 weeks
SYS-02 // architecturein production
INTAKE01EXPERIENCECounter, ward and laboratory interfaces02DOMAIN SERVICESClinical and supply workflow logic03DATA AND KNOWLEDGEGoverned clinical record04AI RUNTIMEExtraction, forecasting and agent planeOUT
L1
Experience
L2
Domain services
L3
Data and knowledge
≤90 s
Batch trace-back
Batch to patient, network-wide
100%
Dispense audit coverage
Batch, cashier, override, timestamp
8 hrs
Offline tolerance
Counter trades without a link
≤90 s
Batch trace-back
Batch to patient, network-wide
100%
Dispense audit coverage
Batch, cashier, override, timestamp
0
Expired-batch dispenses
Hard stop at the barcode scan
12+
Sectors served
Regulated and public-sector delivery

Where this sector leaks margin.

The four failure modes we design against before a single feature is specified. Each one carries an operational cost the buyer can measure.
01 / friction
3 days
manual batch trace-back

Batch genealogy breaks at the counter

A recall notice names a batch. The distributor knows which outlets received it and the outlet knows what it sold, but nothing joins the two once stock is split across branches, credit sales and customer returns. Tracing a suspect batch to patient level becomes phone calls and register books, days after the product should have been pulled.

02 / friction
1–3%
of stock value lost annually

Expiry and cold-chain losses surface after the fact

FEFO is written in the SOP and ignored on the shelf, where the newer carton is easier to reach. Insulin, vaccines and biologics move through 2–8°C chains with no logger, so a loaded van parked through a summer afternoon is discovered only when the product fails or is written off.

03 / friction
0
dispenses without a batch scan

Dispensing errors survive free-text entry

Prescriptions arrive handwritten in mixed Bangla and English, with brand names one letter apart and look-alike packaging. A counter that types drug names as free text has no strength, dose, allergy or interaction check standing between the prescription and the sale.

04 / friction
6 hrs
offline window to survive

Clinical workflow stops when the link does

OPD registration, lab orders and billing run on connections that drop for hours outside the capital. A cloud-only hospital system stops the queue mid-patient, and staff revert to paper that is transcribed twice — with a fresh error introduced on each pass.

What we build for this industry.

Six delivery lines, each scoped for this vertical's data model, workflow and regulatory surface — engineered by one accountable squad.

Pharmacy ERP and dispensing POS

Counter software built around the batch rather than the SKU: scan-to-dispense with FEFO allocation, expiry hard-stops, controlled-substance limits and split tender across cash, card and MFS.

Deliverables
  • Barcode-verified dispense with batch capture
  • FEFO allocation and expiry block at scan
  • ESC/POS thermal, cash drawer and MFS tender

Hospital and diagnostic network platform

One operating layer across OPD counters, wards, lab benches and satellite collection points — registration through to signed report — with branch-level P&L and clinician workload visible to the network office.

Deliverables
  • OPD registration, queue and appointment board
  • Lab order to result to signed report
  • Branch P&L, stock position and staff rosters

Offline-first clinical core

A local store node per facility that commits writes in milliseconds, queues them in a signed outbox and reconciles deterministically when the link returns, so an outage costs latency rather than patients.

Deliverables
  • SQLite local store with append-only outbox
  • Deterministic conflict resolution rules
  • Device enrolment and signed sync tokens

Batch genealogy and recall response

Lot-level lineage from manufacturer and importer through warehouse, distributor, outlet and patient, with returns and inter-branch transfers held inside the same chain. A recall becomes a query, not an investigation.

Deliverables
  • Upstream and downstream batch lineage graph
  • Recall cascade with outlet acknowledgement tasks
  • Timed mock-recall drills and evidence pack

Cold-chain integrity monitoring

Logger and sensor ingestion for fridges, cold rooms and delivery vans, with excursion detection against each product's storage band, mean kinetic temperature and automatic quarantine of affected stock.

Deliverables
  • Sensor and data-logger ingestion pipeline
  • Excursion rules per storage band
  • Automatic quarantine and disposition trail

Clinical document and prescription AI

Extraction for prescriptions, lab reports, supplier invoices and purchase orders — printed, handwritten, Bangla or English — into coded fields with per-field confidence and a pharmacist review queue for the uncertain ones.

Deliverables
  • Layout-aware OCR for mixed-script documents
  • Drug-name matching against a coded catalogue
  • Field-level confidence with reviewer queue

The AI layer, applied to this sector.

We do not bolt a chatbot onto a legacy workflow. These four controls decide whether an AI system survives contact with real operations.
01

Prescription extraction

EXTRACTION

Handwritten and printed prescriptions are parsed into coded drug, strength, dose, frequency and duration. Low-confidence fields are held for pharmacist confirmation rather than guessed at, because a wrong dose read is not a recoverable error.

02

Dispensing safety and anomaly detection

DETECTION

Each dispense is checked against interaction, allergy and dose-range rules, then scored against the outlet's own history: early refills, controlled-substance outliers per prescriber, discounts outside policy and stock adjustments with no matching sale.

03

Demand, expiry and cold-chain forecasting

FORECAST

Per-SKU, per-outlet forecasts driven by seasonality, supplier lead time and expiry risk, so near-expiry stock moves to the branch where it will actually sell before it becomes a write-off instead of after.

04

Agentic recall and replenishment

AGENT

Agents draft the recall cascade, chase outlet and distributor acknowledgements, reconcile purchase orders against GRNs and invoices, and escalate to a named owner — every action logged, every irreversible step gated on human approval.

Reference architecture for this vertical.

A four-layer blueprint we deploy on your cloud, your on-premise hardware or the edge. Every layer is replaceable without rewriting the one above it.
L4

Experience

Counter, ward and laboratory interfaces

Dispensing POSOPD and ward consoleLab workbenchDistributor portal
L3

Domain services

Clinical and supply workflow logic

Dispensing engineBatch genealogyRecall orchestrationCold-chain quarantine
L2

Data and knowledge

Governed clinical record

PostgreSQL clinical storeLocal SQLite nodeDrug knowledge baseTime-series telemetryImmutable audit ledger
L1

AI runtime

Extraction, forecasting and agent plane

OCR pipelineForecast serviceAnomaly scorerAgent orchestratorEval and drift monitor
Hosting
Your cloud, on-premise or edge — no forced managed service.
Data plane
SQLite/D1 at the edge, relational core, object storage for files.
Handover
Repository, infrastructure-as-code, runbooks and eval sets.

From first workshop to steady state.

Five phases, each with a named artefact you receive. No phase runs on trust alone.
01

Clinical and regulatory discovery

Map licences per outlet, batch and cold-chain flows, patient-data classes and the offline windows each facility actually experiences — not the ones in the network diagram.

Output
Regulatory and data-flow map
02

Safety-critical architecture

Fix the batch lineage model, the audit schema and the conflict rules for offline writes before feature work starts, because those three decisions are the expensive ones to reverse.

Output
Architecture decision record
03

One outlet, end to end

Ship a single branch from scan to dispense to batch record to audit export, with pharmacists testing at the counter during real shifts.

Output
Live pilot branch
04

Network integration and hardening

Connect distributor ERP, lab analysers, payment rails and barcode/thermal hardware, then load-test the counter and rehearse offline failover with the link physically cut.

Output
Integration and failover report
05

Mock recall and inspection pack

Run a timed recall across the live network, measure trace-back to patient level, and close the gaps the drill exposes before an inspector finds them.

Output
Timed recall report and audit pack

Controls built for sector review.

Procurement, security and compliance questions answered with artefacts, not assurances.
Request the security pack

DGDA-aligned drug records

Licence register per outlet, schedule registers for controlled substances and inspection-ready batch records modelled on Directorate General of Drug Administration requirements.

BSTI and GS1 product identity

Barcode, strength and pack data carried in GS1-compatible structures, so label, shelf stock and supplier invoice resolve to the same product identity.

Cold-chain good distribution practice

2–8°C handling, excursion evidence and disposition records retained per consignment, modelled on WHO GDP expectations for pharmaceutical distribution.

Patient confidentiality controls

Role- and facility-scoped access, field-level encryption, break-glass reads with a stated reason — designed for HIPAA-style controls and local medical confidentiality obligations.

ISO 27001-aligned engineering

Access control, change management, key rotation and audit logging modelled on Annex A families; penetration and dependency findings closed before go-live.

Questions this sector always asks.

The four briefs that come up in every evaluation for this vertical.

Can a pharmacy keep dispensing when the internet drops?

+

Yes. Each counter runs a local node that commits the sale, the batch selection and the receipt locally, then queues a signed event for sync. FEFO, expiry blocks and batch capture all evaluate against local stock, so the safety rules never depend on the cloud. An outlet can trade through a multi-hour outage and reconcile automatically when the link returns.

How do you handle prescriptions written in Bangla, English or both?

+

Prescriptions go through a layout-aware OCR pipeline built for mixed-script clinical documents, and drug names are matched against a coded catalogue rather than trusted as free text. Fields below a confidence threshold route to a pharmacist review queue, and the confirmed values — not the OCR guess — are what the dispense record stores.

What does a recall actually look like inside the system?

+

You enter the batch or lot number and the platform returns every downstream movement: warehouse issues, inter-branch transfers, outlet dispenses and customer returns, with quantities and timestamps. Outlets receive an acknowledgement task, and the full cascade exports as a dated evidence pack. We rehearse this as a timed drill before go-live, not during the first real recall.

Is patient data kept inside our own infrastructure?

+

Deployment is your choice: your cloud tenancy, your data centre, or a hybrid where the local node holds the working set and the central store holds the network record. Identifiers are encrypted at field level, access is scoped by role and facility, and break-glass reads require a stated reason that lands in the audit ledger.

Ready when you are.

Tell us about your project. We reply with a plan, timeline and estimate within one business day.

DIRECT LINE

hello@intactic.net

Prefer email? Skip the form for the same response time.

  • Response within 24 hours

    One business day, every request.

  • Free 60-minute discovery audit

    Zero-risk assessment with a tailored roadmap.

  • 100% IP protection + NDA

    Signed before any project discussion.

Start your project

Prefer direct communication? Reach us at hello@intactic.net