web stats
Complex HL7 ACK Generation - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 10-22-2019, 02:08 AM
riccardoancona riccardoancona is offline
What's HL7?
Join Date: Oct 2019
Posts: 1
riccardoancona is on a distinguished road
Exclamation Complex HL7 ACK Generation

Hi everyone,
I have a pipeline of channels that:
1) listens on a tcp port for incoming HL7 messages
2) preprocesses HL7 and create multiple copies of the same message to be sent to different destinations at step 3
3) transforms the HL7 into JSON
4) does some post-processing on the json
5) sends the JSON to an HTTP server

1 is a TCP channel / Channel Writer
5 is a Channel Reader / HTTP client
2, 3 and 4 are Channel Reader / Channel Writers

I want HL7 ACKs to be generated according to the response from HTTP server at step 5: please be aware that for each input HL7 message that enters, multiple output messages have been created.

How can I do?
Reply With Quote
Old 10-22-2019, 10:41 AM
jackwhaines jackwhaines is offline
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 255
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines

ACKs can be generated from anything you need. You can create a "response" destination and make the channel respond from that destination in the Source settings.

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
Old 10-22-2019, 12:41 PM
Mits87 Mits87 is offline
OBX.2 Kenobi
Join Date: Nov 2016
Posts: 59
Mits87 is on a distinguished road

First, you can directly process the ACK from destination 5 by setting that under source > Source setting > Response (dropdown).

After that you can set up multiple destinations and on the destination configuration section, you should select "Wait for previous destination" you can process the response received by the previous destination (JSON) before sending it to HTTP client.
Reply With Quote

channels, destinations, hl7, http, json

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 10:27 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation