Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

HL7 MLLP Connector 2.2 - Examples - Mule 4

Use these examples to read and write HL7 messages over the Minimum Lower-Layer Protocol (MLLP).

Set Global Properties

Set these global properties before using the examples:

  • Delimiter

The standard HL7 delimiter value that separates MLLP messages. It is a hexadecimal 0x1C character also known as FS. Applications in some clinics use a different delimiter value in this field. The standard value in the HL7 MLLP connector is shown as 001C.

  • Host

Sets the socket host address

  • Port

Sets the socket port

For an advanced connection, complete these fields:

  • Reuse address

Whether to reuse the configured socket or fail when trying to bind to the socket

  • Send TCP With No Delay

Whether or not to transmit data immediately, or collect data for greater efficiency before sending

  • Linger

How long (in milliseconds) the socket takes to correctly close so any remaining data transmits.

  • Keep alive

Whether to close open socket connections that are unused for a long period with an unavailable connection.

  • Fail on unresolved host

Whether the socket fails during its creation if the host (set on the endpoint) cannot be resolved.

  • TLS tab

Configure a new TLS configuration. Its presence implies the use of SSLServerSocket instead of plain TCP.

  • Set the send or receive buffer size.

Example - Read and Write Message

This example workflow sequentially invokes read and write HL7 messages over MLLP:

  • writer-flow

Sends the given message through the socket to be received by the reader-flow

  • reader-flow

Receive a MLLP message, and log the message

  • The app, index, styles, app-config, rest-service, order-controller, and write-order are used to load static resources related to the user interface.

Read and Write HL7 Messages Over MLLP

View on GitHub