Why NACK message misses to create the Fields 3,4 and 5 in Hapi

和自甴很熟 提交于 2019-12-08 10:19:22

问题


The NACK message generated by HAPI missed to add 3, 4, 5 fields

I'm generating the NACK message as follows;

Message msg= hl7Msg.generateACK(HL7Constants.HL7_MSA_ERROR_FIELD_VALUE, new HL7Exception(errorMsg));

This returns; following message;

MSH|^~\&|||||20130604165513.576+0100||ACK|108|P|2.5 
MSA|AE|HL7Gtw01361605B49500 
ERR|^^^207&ERROR&hl70357&&errmsg

If you notice the ERR segment, it doesn't have 3,4,5 fields

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..


回答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.



来源:https://stackoverflow.com/questions/16957792/why-nack-message-misses-to-create-the-fields-3-4-and-5-in-hapi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!