Infrastructure
314e hosts, maintains and upgrades the interface engine, so you don't manage individual engine servers.
314e runs the engine, and a small connector at each site handles the local connection, so your team has no servers to maintain, no firewall changes to ask for, and every site in one console.
MSH|^~\&|EHR|EXH|LAB|EXH|20261113142604||ADT^A04^ADT_A01|261113142604485|P|2.5.1
EVN|A04|20261113142604
PID|1||EX971853^^^EHR^MR||WHITE^THOMAS^B||19911023|M
PV1|1|E|ED^16^B^EXH314e runs the engine. Each site gets a small connector that connects out, and your team monitors every feed from one console.
314e hosts, maintains and upgrades the interface engine, so you don't manage individual engine servers.
Site connectors connect out, so no inbound firewall changes are needed.
Alerts tell your team when an integration fails, so you can investigate, correct and resubmit the affected messages.
Monitor and manage integrations across every connected site from one console.
Put the small connector on a Windows or Linux machine the site already has. It connects out, so the site opens nothing.
Your engineer builds the route in the browser, from the sending system to the receiving one, and every change is versioned.
- route:
id: lab-results-to-ehr
group: lab_results_lis_to_ehr
description: Lab results - LIS to EHR
from:
id: from-lab-results-to-ehr
description: LIS results feed
uri: zsegment
parameters:
name: lis_oru_feed
steps:
- to:
id: validate-results
description: Validate results
uri: zsegment-transformer
parameters:
scriptName: validate_results.groovy
- to:
id: route-to-ehr
description: Address to EHR
uri: zsegment-transformer
parameters:
scriptName: route_to_ehr.groovy
- choice:
id: abnormal-results
description: Abnormal?
when:
- id: when-abnormal
description: H/L flags
simple: "${header.abnormal} == 'true'"
steps:
- to:
id: flag-abnormal
description: Flag for review
uri: zsegment-transformer
parameters:
scriptName: flag_abnormal.groovy
otherwise:
id: normal-results
description: Normal
steps:
- log:
id: log-normal
description: Routine
message: "Routine result for ${header.CamelMessageId}"
- to:
id: send-to-ehr
description: EHR results
uri: zsegment
parameters:
name: ehr_results_inbound// Hold back results the EHR would file without a value: every final OBX needs a result in OBX-5.
def segments = sourceMessage.encode().split("\r").findAll { it.startsWith("OBX|") }
if (segments.isEmpty()) {
throw new IllegalStateException("ORU^R01 has no OBX segments; nothing to file")
}
segments.each { seg ->
def f = seg.split("\\|", -1)
def status = f.size() > 11 ? f[11] : ""
def value = f.size() > 5 ? f[5].trim() : ""
if (status == "F" && value.isEmpty()) {
throw new IllegalStateException("OBX-5 result value missing on final result OBX-${f[1]} (${f[3].split('\\^')[1]}); the EHR would file an empty result")
}
}
def abnormal = segments.any { seg ->
def f = seg.split("\\|", -1)
f.size() > 8 && f[8] in ["H", "L", "HH", "LL"]
}
Helper.addHeaderToMessage("abnormal", abnormal.toString())
log.info("{} result values validated; abnormal flags present: {}", segments.size(), abnormal)
destinationMessage = sourceMessageSee each step a message took, search for any message, and fix a failed one from the same screen.
| Field | Input | Output |
|---|---|---|
| NTE-1 | empty | 1 |
| NTE-2 | empty | L |
| NTE-3 | empty | Abnormal result flagged… |
The connector saves every message at the site before it confirms receipt. If the internet drops or the hosted engine is unavailable, messages are stored at the site and delivered when the connection returns.
Each step a message takes is recorded. Search by patient ID or any field you choose, correct a failed message, and resubmit it from the step where it failed.

It shows each site's connection, traffic and errors. An alert reaches your team by email, Slack or any other channel you choose when a site, feed or destination fails.

Connector updates go out from the ZSegment console, so nobody visits a site to upgrade it.
ZSegment covers what Cloverleaf, Rhapsody and InterSystems Ensemble do, as a hosted service. It converts messages from hospitals, labs and payers into the format the receiving system expects. The sample shows a patient record arriving as HL7 v2 and leaving as FHIR.
MSH|^~\&|EHR|EXH|LAB|EXH|20261113142604||ADT^A04^ADT_A01|261113142604485|P|2.5.1
EVN|A04|20261113142604
PID|1||EX971853^^^EHR^MR||WHITE^THOMAS^B||19911023|M|||123 Example St^^Anytown^ZZ^00000^^H
PV1|1|E|ED^16^B^EXH||||P1003^Patel^Jordan^^^DO
AL1|1|DA|7980^Sulfa drugs^RXNORM|MO{
"resourceType": "Patient",
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR",
"display": "Medical record number"
}
]
},
"system": "EHR",
"value": "EX971853"
}
],
"name": [
{
"family": "WHITE",
"given": ["THOMAS", "B"]
}
],
"gender": "male",
"address": [
{
"use": "home",
"line": ["123 Example St"],
"city": "Anytown",
"state": "ZZ",
"postalCode": "00000"
}
]
}Some applications have no HL7 feed, API or database to connect to. ZSegment's desktop automation enters the data through the application's own screens on a Windows machine at the site, field by field, the way a person would.
Map fields by dragging between source and target, with your own HL7 or flat-file schemas. Functions like upper-case run on the way.
Each engineer gets VS Code in the browser, with the routes, scripts and schemas of the interface. Nothing to install.
Every change to a route is a Git commit under the person who made it. Compare any two versions side by side.
Add any Maven artifact once, choose what to exclude, and import it in any Groovy script.
Dexit, 314e's fax and document product, receives patient admissions (HL7 ADT) from hospital EHRs and sends documents back to the EHR as HL7 MDM, all through ZSegment.
Each Mirth channel is rebuilt as a ZSegment route, and sites move over one at a time. The comparison covers what changes for your team.
Read the Mirth comparisonA 30-minute walk-through with a live interface built in the browser and messages transformed on their way through.
Interfaces1 / 5
The connector at the site connects out to ZSegment over HTTPS on port 443, the same way a web browser does, so no inbound ports are opened. The site's own systems talk to the connector on the local network.
The connector keeps accepting messages, saves each one to disk before it confirms receipt to the sending system, and delivers them once ZSegment is reachable again.
A Windows or Linux machine the site already has. It runs as a background service, needs only an outbound internet connection, and is updated from the ZSegment console, so nobody visits the site to upgrade it.
Anything that sends HL7 v2, X12, C-CDA or FHIR; files over SFTP, TCP or HTTPS; databases; and APIs. For an application with no interface at all, ZSegment drives its screens from a Windows machine.
Every HL7 v2 message type, across versions 2.1 to 2.8: patient admissions and updates (ADT), orders (ORM), results (ORU), scheduling (SIU), documents (MDM) and the rest.
Your team, in the browser. Hosting, patching and upgrading the engine is 314e's job.
Yes. Engineers write Groovy for custom logic in a browser-based VS Code, add their own Java libraries, and every change is versioned in git.
Yes. Build and test an interface in your test environment, with the testing screen for sample messages, scripts, mappings and C-CDA conversions, then export the tested version into production.
Automatic import of Mirth channels is coming soon. Until then, each Mirth channel maps to a ZSegment route built from the same pieces: a source, transforms, a destination.