Skip to content

TCP / MLLP Destination

The TCP destination forwards processed messages over raw TCP or MLLP (Minimal Lower Layer Protocol) connections. This is the standard transport for sending HL7 v2 messages to clinical systems, laboratory information systems, and interface engines.

Add a TCP destination to a channel in intu.yaml:

destinations:
- name: lab-system
type: tcp
properties:
host: "lis.hospital.local"
port: 6661
mode: mllp
PropertyTypeDefaultDescription
hoststring(required)Hostname or IP address of the remote system.
portinteger(required)TCP port number.
modestringrawTransport mode: raw for plain TCP, mllp for MLLP-framed connections.
timeout_msinteger30000Connection and read/write timeout in milliseconds.
keep_alivebooleanfalseKeep the TCP connection open between messages instead of reconnecting each time.

Encrypt the TCP connection with TLS:

tls:
enabled: true
ca_cert: "/etc/intu/certs/ca.pem"
client_cert: "/etc/intu/certs/client.pem"
client_key: "/etc/intu/certs/client-key.pem"
insecure_skip_verify: false

An MLLP destination sending HL7 messages to a laboratory system with TLS and persistent connections:

destinations:
- name: lis-outbound
type: tcp
properties:
host: "lis.hospital.local"
port: 6661
mode: mllp
timeout_ms: 15000
keep_alive: true
tls:
enabled: true
ca_cert: "/etc/intu/certs/hospital-ca.pem"