web stats
Multiple Responses in same channel - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 06-20-2019, 01:33 AM
krishnagokul krishnagokul is offline
What's HL7?
Join Date: Jun 2019
Posts: 1
krishnagokul is on a distinguished road
Default Multiple Responses in same channel

Im trying to get the following setup working usig mirth:-
Source { Destination -1, Destination -2}
Destination 1 needs to send custom ACK to source
Destination 2 needs to send domain specific data in HL7 to source
How do you send multiple responses to source, as source can only select a single response.
{DEVICE} ----------------> LIS
{DEVICE} < ---------------- LIS
{DEVICE} <---------------- LIS

How do i configure the source to receive both QCK AND DSR resonses from 2 destinations?

Thank you!
Reply With Quote
Old 07-10-2019, 06:52 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
Join Date: Sep 2014
Location: Michigan
Posts: 615
kirbykn2 is on a distinguished road

Is the DSR^Q02 just a separate messages that needs to be send. Instead of trying to send it as a response, configure the destination to send to the source system.


Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.4
Mirth Connect Version 3.8.0
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_181-b13
PostgreSQL Version 9.6.8
Reply With Quote
Old 10-24-2019, 10:22 PM
johand9 johand9 is offline
What's HL7?
Join Date: Nov 2014
Posts: 1
johand9 is on a distinguished road

Hi, have you managed to resolve this ?
I have the same requirement for use with a lab analyzer and cannot get it to work

Reply With Quote
Old 10-31-2019, 05:43 AM
schillert schillert is offline
OBX.1 Kenobi
Join Date: Jul 2012
Posts: 31
schillert is on a distinguished road


each of the destinations gets a response Transformer like this:

var rspString = SerializerFactory.getSerializer('HL7V2').fromXML(msg.toString());
if(responseMap.containsKey("MultiResponse")) {
    responseMap.get("MultiResponse").setMessage(responseMap.get("MultiResponse").getMessage() + rspString);
} else {
    var rsp = new Response();
    rsp.setStatusMessage("Message sent successfully");
    responseMap.put("MultiResponse", rsp)
Source: Set to respond from "MultiResponse"
Destinations: Use "Wait for previous destinations". No Queueing!

Hope this helps....
Reply With Quote

destinations, lab, laboratory, response, response map

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 06:02 PM.

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