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

Discover how Microservices are a type of software architecture where large applications are made up of small, self-contained units working together through APIs that are not dependent on a specific language. Brought to you in partnership with AppDynamics.

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

Discover the six challenges and best practices in managing microservice performance, brought to you in partnership with AppDynamics.

Topics:

Published at DZone with permission of Madhuka Udantha, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}