Schedule a demo
◂ Back to examples
HL7

Integrate healthcare systems with HL7 v2 and MLLP

Receive HL7v2 clinical messages over MLLP, route by message type, parse segments, send acknowledgments, and build production-ready healthcare integrations in Python.

Tutorials

How to use the healthcare integration

More examples

About healthcare integrations

HL7 v2 is the most widely deployed healthcare messaging standard, used by hospitals, labs, pharmacies, and clinical systems worldwide to exchange patient, order, and result data. Messages are transmitted over MLLP (Minimal Lower Layer Protocol), a TCP-based framing protocol designed for reliable clinical data exchange. With Zato, you can receive HL7v2 messages over MLLP, route them by message type (ADT, ORM, ORU and others), parse segments and fields with typed Python objects, send acknowledgments, and integrate clinical systems with the rest of your enterprise.

Frequently asked questions

How do I receive HL7v2 messages with Zato?

Create an MLLP channel that listens for incoming connections. Zato handles the MLLP framing, parses the HL7v2 message, and delivers it to your Python service.

How does message routing work?

Zato routes incoming HL7v2 messages to services based on message type. You can configure separate services for ADT, ORM, ORU, and other message types.

How do I access fields in an HL7v2 message?

Use typed Python objects to access segment fields by name, or use path expressions for nested components.

Does Zato send acknowledgments automatically?

Yes - Zato can send ACK and NAK responses automatically based on your MLLP channel configuration, or you can build custom acknowledgment logic in your service.

Can I convert HL7v2 messages to JSON?

Yes - see HL7v2 JSON serialization for converting messages between ER7 and JSON formats.

How do I validate incoming messages?

Use HL7v2 message validation to check messages against schema definitions before processing.

Can I deploy MLLP channels with enmasse?

Yes - define your MLLP channels in YAML and deploy them using enmasse for repeatable, version-controlled configuration.

Ready to build healthcare integrations?

Get started with Zato and connect your healthcare systems using HL7 v2 and MLLP.