Skip to main content
Laboratory & Diagnostics12 min read

Connecting the Laboratory: An Interoperability Guide for Hospital Teams

Analyzers, the EHR, reference laboratories, billing, and the patient portal all consume laboratory data differently. This guide covers ownership decisions, message design, send-out testing, and what interfaces need after go-live.

PN

Priya Nandakumar

Clinical Systems Interface Architect

#interoperability#analyzer interface#lab integration#HL7 messaging
Connecting the Laboratory: An Interoperability Guide for Hospital Teams

Decide What Each System Is Authoritative For

Interoperability projects stall on ownership rather than protocols. Before any message format is discussed, agree which system holds the authoritative patient identity, which holds the order, which holds the result, and which holds the charge. When two systems both believe they own the test catalogue, every mapping decision reopens the argument and the interface accumulates exceptions nobody can later explain.

Write the answer down as a source-of-truth table covering patients, encounters, orders, specimens, results, catalogue entries, and prices. Note for each whether other systems receive a copy, subscribe to updates, or hold nothing. HealUDoc's role definitions make that table enforceable rather than aspirational, since edit rights follow the system that owns each record. The table also exposes awkward cases early, such as merged patients and post-billing amendments.

Source-of-truth table assigning ownership of laboratory data across systems
Source-of-truth table assigning ownership of laboratory data across systems

Analyzer Interfaces: Unidirectional, Bidirectional, and Middleware

A unidirectional interface sends results from the analyzer and requires the worklist to be loaded manually or by barcode read at the instrument. A bidirectional interface also receives the order, so the analyzer knows which tests to run on a given tube. The second removes a transcription step and a common source of wrong-test-on-right-patient errors, but it demands accurate accessioning before the tube reaches the bench.

Middleware sits between instruments and the laboratory system, handling rules, quality-control logic, and repeat management for a bank of analyzers. It earns its cost in high-volume chemistry and haematology and rarely does so for a laboratory running three instruments. Whichever route is chosen, agree where autoverification rules live, because rules split across middleware and the laboratory system are difficult to validate and harder to change.

Analyzer connectivity options including bidirectional interfaces and middleware
Analyzer connectivity options including bidirectional interfaces and middleware

Questions to settle per analyzer

  • Unidirectional or bidirectional query
  • Barcode symbology and label layout
  • Units, decimals, and reference intervals
  • Flag and error code mapping
  • Repeat and dilution handling

Order and Result Messaging With the EHR

The order message carries patient, encounter, ordering clinician, test, priority, specimen requirements, and clinical details; the result message returns values, units, reference intervals, abnormal flags, status, and performing location. Status is where most implementations go wrong. Preliminary, final, corrected, and cancelled must each map to a state the receiving system displays distinctly, or a corrected result quietly overwrites the original in the chart.

Test with realistic content rather than clean samples. Include textual results, results with comments, panels where one component failed, specimens rejected after the order was sent, and corrections issued after a report was printed. HealUDoc represents result status and version explicitly, so a downstream view can show that a value was amended and when, instead of presenting the latest number as though it had always been there.

Laboratory order and result message flow with explicit report status states
Laboratory order and result message flow with explicit report status states

Reference Laboratories and Send-Out Testing

Referred tests are the least-governed part of most laboratory interfaces. Orders leave by courier manifest or a partner portal, results return as document attachments, and a technologist retypes the values or files the file against the patient. Neither route produces structured data, so send-out results never appear in trend graphs and the associated charges are reconciled by hand at month end.

Push for structured return where the reference laboratory supports it, and map their test codes into your governed catalogue with the performing laboratory recorded on the result. Where only a document is available, ensure it attaches to the correct order and that the pending state stays visible until it arrives. HealUDoc keeps referred work in the lab queue with an expected return date, so a specimen sent out does not disappear from view.

Send-out testing workflow tracking referred specimens and returned results
Send-out testing workflow tracking referred specimens and returned results

Send-out interface requirements

  • Test code mapping to the local catalogue
  • Performing laboratory on every result
  • Expected turnaround and pending visibility
  • Contractual price and charge routing
  • Correction and amendment handling

Downstream Consumers: Billing, Portal, and Analytics

The same result feeds several destinations under different rules. Billing should react to performance events rather than order entry, so a cancelled or rejected specimen does not generate a charge. The patient portal should publish only verified results and respect release policy for sensitive tests and criticals still awaiting acknowledgement. Analytics needs the full history including superseded versions, which the other two deliberately hide.

Build these as separate consumers of a single authoritative result rather than three parallel interfaces from the analyzer. HealUDoc links laboratory events to billing and portal publication from the same verified record, which prevents the familiar failure where a patient sees a value in the portal that the ward has not yet been told about, or receives an invoice for a test that was never performed.

Single verified laboratory result feeding billing portal and analytics consumers
Single verified laboratory result feeding billing portal and analytics consumers

Interfaces Need an Owner After Go-Live

Interfaces degrade quietly. A vendor updates analyzer firmware and adds a flag code nobody has mapped; a payer changes a file format; a branch renames a location and messages start rejecting. Without monitoring, the first sign is a clinician asking why a result never arrived, several days after the queue began filling. Silent failure is the normal failure mode, not the exception.

Assign a named owner, alert on queue depth and rejected messages, and review the error log weekly rather than when someone complains. Keep a test environment that mirrors production so changes can be validated before release, and version every mapping change with a reason. HealUDoc's activity logs record what each interface wrote and when, which shortens the investigation whenever a value in the chart does not match the one on the bench.

Every interface we lost, we lost silently. Monitoring the queues turned our failures from clinical incidents into Tuesday morning maintenance.

Daniyal Rehman, Integration Manager, Westmoor Health Network
Share this article
Back to all articles

Keep reading

Related articles

See HealUDoc in action

From EHR to analytics, watch how one platform runs your entire hospital. Book a personalized walkthrough with our team.

Book a demo