Map Every System That Touches a Medicine
Before designing interfaces, trace a single pack from supplier quotation to patient administration and list every system that records a state change. In most hospitals that path crosses procurement, goods receipt, pharmacy inventory, the dispensing counter, ward automated cabinets, the patient record, billing, and the general ledger. Each handover is a place where quantity, batch, or cost can diverge.
The map should identify which system is authoritative for each attribute, not merely which systems exchange data. Pharmacy typically owns batch and expiry, finance owns valuation method, and procurement owns contract price. Ambiguous ownership is the root of most reconciliation disputes, because two systems each believe they hold the correct figure and neither is configured to defer.

Identity and Catalogue Alignment Comes First
Every downstream interface inherits the quality of the item catalogue. If pharmacy identifies a product by internal code, procurement by supplier catalogue number, and finance by ledger account grouping, then reconciliation requires a crosswalk that someone must maintain. Adopting standard identifiers such as GTIN where suppliers support them reduces the mapping surface considerably.
Batch and expiry must travel as structured fields, not free text appended to a description. This matters most during recall, where the ability to query which batches were received, transferred, dispensed, and to whom determines how quickly the pharmacy can respond. HealUDoc carries batch identity through receipt, transfer, dispensing, and return on the same record, which keeps recall tracing a query rather than an investigation.

Attributes every interface must carry intact
- Stable product identifier and pack specification
- Batch number and expiry date
- Quantity in an explicit, agreed unit
- Location and stock state
- Source transaction reference for traceability
Finance and ERP: Valuation Must Reconcile Monthly
The pharmacy stock ledger and the finance general ledger will diverge unless the interface is designed around a shared valuation method. Agree explicitly whether stock is valued at weighted average, FIFO, or standard cost, and confirm both systems apply it identically to partial receipts, returns, transfers, and write-offs. A mismatch here produces a small monthly difference that compounds until someone is asked to explain a year of drift.
Define which events post to the ledger and at what granularity. Posting every dispensing transaction individually creates volume finance cannot review; posting a single monthly summary destroys the ability to investigate a variance. A daily summary by category with drill-through to the underlying HealUDoc transaction is usually the workable compromise, giving finance a reviewable figure and pharmacy an audit path.

Supplier-Facing Integration: Orders Through to Invoices
Electronic ordering is often implemented for order transmission alone, leaving acknowledgements, advance shipping notices, and invoices on email and paper. That half-integration produces the worst of both models: buyers trust the system to have sent the order but still chase confirmation manually, and receiving staff have no advance batch data to check against on the loading dock.
Prioritize the return path. A supplier acknowledgement confirming line-level availability lets buyers act on a shortfall days earlier than a partial delivery would reveal it. When advance shipping notice data flows into HealUDoc's goods receipt, receiving staff verify against expected batch and expiry rather than keying it, and three-way matching against the invoice then runs on data nobody transcribed twice.

Supplier message types worth implementing in order
- Purchase order transmission
- Order acknowledgement with line-level confirmation
- Advance shipping notice carrying batch and expiry
- Electronic invoice for three-way matching
- Credit note and return authorization
Ward Automation and the Point of Administration
Automated dispensing cabinets, ward stock stations, and barcode administration devices each hold their own inventory picture, and they will drift from the central balance without a defined synchronization contract. Decide whether the cabinet is a separate stock location that pharmacy replenishes, or a consignment held on the pharmacy balance, because the accounting and the count procedure differ entirely between those two models.
Administration data closes the loop that dispensing alone leaves open. Knowing a medicine was issued to a ward is operationally weaker than knowing it was administered, returned, or wasted, particularly for controlled substances where the register must reconcile to the last unit. Where HealUDoc receives administration and wastage events back from the ward, the narcotics reconciliation becomes a system check instead of a nightly manual count against a paper register.

Interfaces Need Governance After They Go Live
An interface that passed acceptance testing is not permanently reliable. Catalogue updates, supplier system upgrades, and network changes all degrade integrations quietly, and the usual first symptom is a reconciliation difference nobody can source. Monitor message volume against expected baseline, rejection reasons by type, processing latency, and unmatched records in both directions.
Assign each interface a named owner with authority to stop a release, and require reconciliation reports that identify records present in one system but missing or incomplete in the other. Downtime procedures deserve the same rigour: define how manual receipts and dispenses recorded during an outage are reconciled into HealUDoc afterwards, because uncontrolled catch-up entry is how duplicate stock and phantom batches enter an otherwise clean ledger.
“Our integration only became dependable when every interface had an owner who was told about failures before finance found them at month-end.”



