LIMS to EHR integration: how the project actually runs, HL7 v2 or FHIR
Choosing between HL7 v2 and FHIR takes ten minutes once you know what the EHR accepts. The rest of a LIMS to EHR integration is project work: agreeing who sends what, matching patients, mapping test codes, testing with real examples and deciding what happens when something fails. This guide walks through that project in the order it usually happens.
Written and reviewed by the Catenix team. How these guides are written and checked.
In brief
- The EHR usually decides the format. Ask what it accepts for inbound lab results before anyone writes a specification.
- Patient matching causes more go-live problems than message format. Agree the identifiers and what happens to a result that matches nobody.
- Test code mapping is the slowest step. Every analyte needs an agreed code, unit and display name on both sides.
- Test with real, de-identified examples of every result type, including corrections and cancellations.
- Catenix can be the lab system that sends to your EHR, or the middleware that feeds an existing LIMS or LIS. Either way it sends HL7 v2 or FHIR, whichever the receiving system accepts.
Take it with you: POCT connectivity buyer's guide · POCT readiness checklist (PDF, no form).
Step one: let the EHR pick the format
There is no point debating standards in the abstract. Ask the EHR team, or the EHR vendor's integration documentation, one question: how do you accept inbound laboratory results? The answers tend to fall into three groups.
- HL7 v2 ORU messages over a secure connection. Still the most common route in hospitals and many ambulatory EHRs.
- A FHIR API, usually DiagnosticReport and Observation resources, increasingly common in cloud EHRs and newer NHS routes.
- A vendor API that is neither, such as a REST endpoint that accepts a document or values in its own shape. Several practice management systems work this way.
Our separate guide on HL7 v2 vs FHIR for lab results explains the technical differences. For the project, the point is simpler: the receiving system's answer is the specification, and the sending system adapts.
Step two: agree who does what
Integration projects stall when each side assumes the other is doing a task. Write it down early.
| Task | Usually owned by |
|---|---|
| Confirming the inbound format and endpoint | EHR team or vendor |
| Network access, certificates, credentials | EHR team and your IT |
| Building the outbound message | Lab system vendor |
| Test code and unit mapping | Lab lead with both vendors |
| Patient identifier rules | Clinical lead and EHR team |
| Test scripts and sign-off | Lab lead and a clinician |
| Monitoring failed messages after go-live | Named person in the lab |
If orders also flow the other way, from the EHR to the lab system, add a row for the order message and agree which system generates the accession number. Our orders and results interface guide covers that case.
Step three: patient matching
A result that lands on the wrong patient is the worst outcome of any integration, worse than a result that never arrives. Decide:
- Which identifier is primary. In the NHS, the NHS number. In the US, usually the EHR's medical record number. Elsewhere, whatever the EHR treats as unique.
- What else must agree. Date of birth and surname as a second check is common.
- What happens on a mismatch. The safe answer is a holding queue where a person resolves it. Never "file it against the closest match".
- How corrections work. If a result was filed against the wrong patient, how is it withdrawn from one record and sent to the other, with both changes recorded?
Catenix holds any result that does not match exactly one patient for review, and records reassignments with a coded reason against both patients.
Step four: test codes and units
Every analyte needs a code the EHR recognises, a unit it expects and a display name clinicians understand. HbA1c alone can be reported in mmol/mol or as a percentage, and the EHR may want one, the other or both. Build a mapping table early, one row per test per analyser, and have the lab lead sign it. Where both sides support it, LOINC codes help; see LOINC and SNOMED coding for lab results.
Decide what travels with the result
A value and a unit are the minimum. Clinicians and inspectors often want more, and it is easier to agree at the start than to add later. Common extras:
- The analyser's own flags, carried exactly as produced.
- The reference range your clinic or lab has set, if the EHR displays one.
- The time the sample was collected and the time the result was produced.
- The device and the operator, for traceability.
- A comment field for notes the reviewer adds.
Some EHRs show all of this neatly. Others display only the value and put everything else in a note. Look at a test result in the EHR's own screen before you sign off, because what the clinician sees is what matters.
Step five: testing that finds problems
Test messages that only cover the happy path will pass and then fail on day three. Cover at least:
- One normal result for every test on every analyser.
- A result with an analyser flag, so you can see how the flag appears in the chart.
- A corrected result sent after the original.
- A cancelled or withdrawn result.
- A result for a patient the EHR does not know.
- A message sent while the EHR endpoint is down, to prove the lab system queues and retries.
Use de-identified or test patients. Check each one in the EHR as a clinician would see it, not only in the message log.
What usually breaks after go-live
- A new test is added to an analyser and nobody adds it to the mapping table.
- Certificates expire on the connection and results quietly stop flowing.
- The EHR is upgraded and the inbound interface changes behaviour.
- A patient is merged in the EHR, and results for the old identifier are rejected.
Each of these is easy to catch if someone can see failed and queued messages in one place. The LIS and EHR outbound guide covers monitoring in more detail.
Where Catenix sits in the project
Catenix plays one of two roles.
As the lab system. For clinics and small labs without a LIMS, Catenix is the system that connects the analysers, keeps QC and the audit trail, and sends finished results to the EHR. See Catenix as your LIMS.
As middleware feeding an existing LIMS or LIS. For labs that already have one, Catenix connects the analysers and point-of-care devices and sends results up to it, so the existing system keeps its role. See lab middleware.
In both roles Catenix keeps the raw analyser message, the message it sent and the acknowledgement it received for every result, which shortens most integration investigations to minutes.
Questions people ask
Should a new integration use FHIR instead of HL7 v2?
Use what the receiving system accepts. Many hospital EHRs still take HL7 v2 for lab results, while many cloud EHRs prefer FHIR or their own API. A good lab system supports both.
How long does a LIMS to EHR integration take?
It depends mostly on the EHR side: access, credentials, test environments and sign-off. Building the message is rarely the slow part. Code mapping and testing usually take longer than the build.
Who is responsible if a result does not arrive?
Agree that before go-live. The lab system should show failed and queued messages, and a named person should check them daily.
Do we need an interface engine as well?
Not always. Hospitals often route messages through one, but a clinic can usually connect the lab system to the EHR directly. See our guide to interface engines vs lab middleware.
Can results flow both ways?
Yes. Orders can come from the EHR into the lab system and results go back. Agree which system creates the accession number before you build it.
Sources and further reading
Read next
More for coordinators.
HL7 v2 vs FHIR for lab results
HL7 v2 and FHIR compared for sending lab orders and results: how each works, what EHRs support, strengths, pitfalls, and how to choose for your lab.
Read →LIS and EHR outbound guide
Learn how Catenix forwards captured point-of-care results to your LIS or EHR over HL7 or FHIR, tracks every message, and keeps quality-control runs...
Read →Catenix and your EHR
A clinic record with lab results built in: patients, visits, SOAP notes and sign-off. Or connect Catenix to Epic, athenahealth, EMIS Web or Semble.
Read →Take it with you
The buyer's guide, in your inbox.
Nine pages on what POCT connectivity is, the standards in plain English, the cost of doing it by hand and eight questions to ask any supplier.
Get the POCT connectivity buyer's guide
Nine pages, vendor-neutral: what connectivity is, the standards in plain English, the cost of doing it by hand and eight questions to ask any supplier. The PDF also opens directly from the downloads page; leave an email only if you want it in your inbox.
See it done in software.
A demo on a live tenant, with your analysers and your allowable-error limits.