web stats
Multiple Responses in same channel - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2019, 02: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.
QRY^Q02
{DEVICE} ----------------> LIS
QCK^Q02
{DEVICE} < ---------------- LIS
DSR^Q02
{DEVICE} <---------------- LIS

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

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

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.
__________________
Best,

Kirby

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
  #3  
Old 10-24-2019, 11:22 PM
johand9 johand9 is offline
What's HL7?
 
Join Date: Nov 2014
Posts: 1
johand9 is on a distinguished road
Default

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

Thanks!
Reply With Quote
  #4  
Old 10-31-2019, 06:43 AM
schillert schillert is offline
OBX.1 Kenobi
 
Join Date: Jul 2012
Posts: 30
schillert is on a distinguished road
Default

Hi,

each of the destinations gets a response Transformer like this:

Code:
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.setMessage(rspString);
    rsp.setStatus(SENT);
    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
Reply

Tags
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 02:21 AM.


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