English 中文(简体)
Mirth: How to send ACK message to sender host and port
原标题:
  • 时间:2010-07-02 15:17:35
  •  标签:
  • hl7
  • mirth

I am receiving lab HL7 messages from a static host and a dynamic port. For each message received I need to send a ACK message back to this host and port.

I have a destination TCP Writer channel with the correct message in there. Though the port number has to be fixed.

How do I tell Mirth to send this message to the sending host and port?

Thanks in advance Abhi

最佳回答

You should configure your channel to use the LLP Listener instead, which has the option to reply with a custom HL7 ACK message. The message will be send back on the same connection so you don t have to keep track of the address of the sending system.

问题回答

In Mirth you send a customized ACK message.

In Scripts, select the Postprocessor (This script executes once after a message has been processed)

and write this code

var ackString = ""; //build a javascript string for your custom ack
var ackResponse = ResponseFactory.getSuccessReponse(ackString);
responseMap.put("Custom ACK", ackResponse);

Mirth will then parse the Postprocessor script, and discovers the reponseMap code. On the source tab, go to the Send ACK radio list, you can now select "Respond from" and "Custom ACK" from the options in the dropdownlist avaiable.





相关问题
Full BNF grammar for HL7 2.5

all I was wondering if anyone had a full BNF for HL7 2.5? I am looking to compile this using the gold parser engine but would be happy to convert from EBNF or vendor specific BNF.

What is the HL7 ZDS segment used for?

My very old HL7 parser has just hit a snag as it is now getting some messages with a ZDS segment present. It was easy to fix by adding a ZDS object to my parser, but I am trying to find out what it ...

Mirth: How to send ACK message to sender host and port

I am receiving lab HL7 messages from a static host and a dynamic port. For each message received I need to send a ACK message back to this host and port. I have a destination TCP Writer channel with ...

Windows scripting to parse a HL7 file

I have a HUGE file with a lot of HL7 segments. It must be split into 1000 (or so ) smaller files. Since it has HL7 data, there is a pattern (logic) to go by. Each data chunk starts with "MSH|" and ...

Overwrite msg in mirth

I have two destinations now and the first calls a SOAP webservice. I want to take the response of that destination by: msg = new XML(responseMap.get( Destination1 ).getMessage()); and convert it to ...

HAPI chokes on HL7 Z-segments

I m trying to use HAPI to parse HL7 (v2.3) messages generated by an external system. These messages include custom Z segments, including the second segment of the message (between MSH and EVN). MSH ...

热门标签