Announcement

Collapse
No announcement yet.

Multiple Responses in same channel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #2
    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

    Comment


    • #3
      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!

      Comment


      • #4
        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....

        Comment

        Working...
        X