问题描述
HAPI生成的NACK消息未添加3、4、5个字段
The NACK message generated by HAPI missed to add 3, 4, 5 fields
我正在生成NACK消息,如下所示:
I'm generating the NACK message as follows;
消息msg = hl7Msg.generateACK(HL7Constants.HL7_MSA_ERROR_FIELD_VALUE, 新的HL7Exception(errorMsg));
Message msg= hl7Msg.generateACK(HL7Constants.HL7_MSA_ERROR_FIELD_VALUE, new HL7Exception(errorMsg));
这返回;以下消息;
MSH|^~\&|||||20130604165513.576+0100||ACK|108|P|2.5
MSA|AE|HL7Gtw01361605B49500
ERR|^^^207&ERROR&hl70357&&errmsg
如果您注意到ERR段,则其中没有3、4、5字段
If you notice the ERR segment, it doesn't have 3,4,5 fields
有人知道为什么hapi缺少添加字段3,4和5吗?我用Hapi testpanel进行了检查,以上两条消息都是有效的,但在第一条NACK消息中,我没有得到字段3、4、5.我想了解字段..
Any idea why hapi missed to add field 3,4 and 5?I checked with Hapi testpanel, above two messages are valid but in very first NACK message, i dont get field 3,4,5..I would like to get with fields..
推荐答案
这是因为hapi 1,2版本在提交的错误中没有任何区别.升级到2.1版本后,我得到了错误信息.
It is because hapi 1,2 version doesn't make any distinction in the error filed. After upgrading to 2.1 version im getting the error segments.
这篇关于为什么NACK消息会错过在Hapi中创建字段3、4和5的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!