Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

WSO2 ESB with HL7 (sample)

DZone's Guide to

WSO2 ESB with HL7 (sample)

· Integration Zone ·
Free Resource

The State of API Integration 2018: Get Cloud Elements’ report for the most comprehensive breakdown of the API integration industry’s past, present, and future.

I had missed one of the posts that I was planning to write some weeks ago. It is about a simple HL7 use case with WSO2 ESB.

This post will explain a simple HL7 message passing method through a WSO2 ESB proxy.

  • In  Here I am using
    - WSO2 ESB 4.6.0
    - hl7browser[1] to send HL7 messages.

1. Firstly you have to enable the HL7 Transport for WSO2 ESB (Here is steps)

2. Then Start HL7 client where to accept our message that is sending from ESB. Give below command in <wso2esb-4.6.0>\samples\axis2Client "ant hl7acceptor"

image

3. Start HL7 enabled ESB and login in to it.

4. Create HL7ServerProxy and below is the proxy code



5. Start the “hl7browser” and open HL7 message to send (Here is sample message (message header segment) that I am going to send) [2]MSH|^~\&|MYLAB|NEGOMBOFAC|MAINHOS|WSO2|20130503114341.7631+
0100||ADT^A01|HL7WERT34545ERE6EC67|P|2.5|||AL|AL|SL|5590/1

image

6. Click validate message to validate and then click on “run the network utility” 

7. Give host <wso2 esb host/ip> and and port <ESB hl7 porxy port>, Then Click on connect

image

8. Send the HL7 Message to wso2  ESB

image

Go to ESB console you can see message

image

[1] http://freecode.com/projects/hl7browser

[2]http://www.hl7.org/documentcenter/public_temp_39E7BD9F-1C23-BA17-0CC4EA822C5EF39A/wg/conf/HL7MSH.htm

Your API is not enough. Learn why (and how) leading SaaS providers are turning their products into platforms with API integration in the ebook, Build Platforms, Not Products from Cloud Elements.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}