HL7 2.X标准Ackknowledgement

5 hl7-v2

我正在尝试编写一个HL7消息解析器,它将指定的确认发送回消息传递引擎,以便我的应用程序可以接收下一条消息.

发送消息的接口引擎是调用VISTA(有没有人曾经使用它?)我被告知如果MSH字段15中有值,它希望收到'Ackknowledgement ACK'.在所有消息中我目前正在接收,我得到'AL'的值.

我基本上设置了我的应用程序,以发送TCP消息到hostname/ip:portnumber,可以在应用程序启动之前设置.

如果可能,有人可以提供样本ACK消息(当然没有敏感数据)和包装消息的非whitspace字符吗?

我想确保我知道我需要发送回发送应用程序.

小智 7

经过我自己的一些进一步研究,以及对这篇文章的回复的帮助,我发现需要包括以下项目,以便发送应用程序接受我的ACK并转到下一条消息.

ACK必须包含以下内容:

MSH|^~\&|Receiving App|Receiving App ID|Sending App|Sending App ID|DateTime of Message||"ACK"|Message Control ID|Processing ID|Version ID
MSA|AE <or> AR <or> AA|Message Control ID (MSH 9 from the sent message)
ERR| This particular segment is not required by the sending application
Run Code Online (Sandbox Code Playgroud)

我遇到的问题与我的发送和接收应用程序ID和名称有关.

谢谢您的帮助!