Mediating HL7 Messages

You can create a proxy service that uses the HL7 transport to connect to an HL7 server. This proxy service will receive HL7-client connections and send them to the HL7 server. It can also receive XML messages over HTTP/HTTPS and transform them into HL7 before sending them to the server, and it will transform the HL7 responses back into XML.

Synapse configuration

Given below is an example proxy that receives HL7 messages from a client and relays the message to an HL7 server. See the instructions on how to build and run this example.

<proxy xmlns="" name="hl7testproxy" transports="https,http,hl7" statistics="disable" trace="disable" startOnLoad="true">
       <log level="full" />
       <log level="full" />
       <send />
    <endpoint name="hl7_endpoint">
       <address uri="hl7://localhost:9988" />
 <parameter name="transport.hl7.Port">9292</parameter>

Build and run

Create the artifacts:

  1. Set up WSO2 Integration Studio.
  2. Create an integration project with an ESB Configs module and an Composite Exporter.
  3. Create the proxy service with the configurations given above.
  4. Configure the HL7 transport in your Micro Integrator.
  5. Deploy the artifacts in your Micro Integrator.

To test this scenario, you need the following:

  • An HL7 client that sends messages to the port specified by the transport.hl7.Port parameter.
  • An HL7 back-end application that receives messages from the Micro Integrator.

You can simulate the HL7 client and back-end application using a tool such as HAPI.