问题描述
我正在将Mirth与接收HL7v2消息的LLP侦听器一起使用.
I am using Mirth with a LLP listener receiving HL7v2 message.
客户希望我们收到ACK消息,因此我们选中了发送ACK"单选按钮.唯一的问题是,在默认ACK中,它将MIRTH放在MSH-3.1字段中.我需要将其更改为另一个值,以说明它的来源.
The customer expects an ACK message from us and so we checked the "Send ACK" radio button. The only problem is that in the default ACK it puts MIRTH in the MSH-3.1 field. I need to change this to another value to say where it came from.
这可能吗?
推荐答案
Mirth具有自定义码头的功能.我认为没有记录在案,但他们的支持人员将我们引导了下来.
Mirth has a feature for customizing acks. I don't think it's documented, but their support staff directed us to it.
在后处理器中:
var ackString = ""; //build a javascript string for your custom ack
var ackResponse = ResponseFactory.getSuccessReponse (ackString);
responseMap.put("Custom ACK", ackResponse);
Mirth解析后处理器代码,并发现reponseMap代码.在来源标签上,您现在可以选择回复自",自定义确认"将作为选项出现.
Mirth parses the postprocessor code, and discovers the reponseMap code. On the source tab, you can now select "Respond from" and "Custom ACK" will appear as an option there.
构建我的自定义ack的完整代码约为20行.
The full code for building my custom acks is about 20 lines.
这篇关于虚假更改默认ACK字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!