简体   繁体   English

什么标准的HL7确认消息?

[英]What a standard HL7 acknowledgement message?

We've encountered something we haven't seen before. 我们遇到过一些我们以前从未见过的东西。 Looking through the HL7 documentation/standards has left me scratching my head. 浏览HL7文档/标准让我摸不着头脑。

We are sending in a standard outbound report message (ORU^R01). 我们正在发送标准的出站报告消息(ORU ^ R01)。 It contains MSH, PID, OBR, and OBX segments. 它包含MSH,PID,OBR和OBX段。 In all other cases where we've implemented our system, we get back an acknowledgement that looks like this: 在我们实现系统的所有其他情况下,我们得到一个如下所示的确认:

MSH|^~\\&|PRODUCTNAME|DESTINATION|^P||YYYYMMDDHHMMSS||ACK|MESSAGEID|T|2.5\\ MSA|AA|MESSAGEID|ACK MSH | ^〜\\&| PRODUCTNAME | DESTINATION | ^ P || YYYYMMDDHHMMSS || ACK | MESSAGEID | T | 2.5 \\ MSA | AA | MESSAGEID | ACK

However, there is a new system that is returning this: 但是,有一个新系统正在返回:

MSH|^~\\&|PRODUCTNAME|DESTINATION|^P||YYYYMMDDHHMMSS|| MSH | ^〜\\&| PRODUCTNAME |目的地| ^ P || YYYYMMDDHHMMSS || ORU^R01 |MESSAGEID|T|2.5\\ ORU ^ R01 | MESSAGEID | T | 2.5 \\
MSA|AA|MESSAGEID|ACK MSA | AA | MESSAGEID | ACK

Notice MSH-9 in the ack. 请注意ack中的MSH-9。 It isn't ACK it is the ORU^R01. 它不是ACK它是ORU ^ R01。 Now, we use HAPI to process HL7 messages and it doesn't like this response. 现在,我们使用HAPI处理HL7消息,它不喜欢这种响应。 I can't tell if this conforms to the HL7 spec (2.5). 我不知道这是否符合HL7规范(2.5)。

Any ideas? 有任何想法吗?

To expand on my previous comment, I read the HL7 v2.5 standard a little bit. 为了扩展我之前的评论,我稍微阅读了HL7 v2.5标准。

According to my understanding the MSH-9 field contains three components defines as follows: 根据我的理解, MSH-9字段包含三个组件定义如下:

Components: <Message Code (ID)> ^ <Trigger Event (ID)> ^ <Message Structure (ID)>

Each of those has a corresponding table of legal values: HL7 Table 0076 - Message type, HL7 Table 0003 - Event type and HL7 Table 0354 - Message structure. 每个都具有相应的合法值表:HL7表0076-消息类型,HL7表0003-事件类型和HL7表0354-消息结构。

Looking at these tables, I would say that an ORU message should have an MSH-9 value of ORU^R01^ORU_R01 and an acknowledgement should be ACK^R01^ACK . 看一下这些表,我会说ORU消息应该具有ORU^R01^ORU_R01MSH-9值,并且确认应该是ACK^R01^ACK

Therefore the new system seems to be breaking the standard and HAPI is right to reject it, if it tries to validate the message against the standard. 因此,如果新系统试图根据标准验证消息,那么新系统似乎违反了标准,HAPI拒绝它是正确的。

The main point here is, that the receiving application should be able to decide, where to route and what to do with the message only looking at the MSH fields, without going in to following segments. 这里的要点是,接收应用程序应该能够决定,在哪里路由以及如何处理仅查看MSH字段的消息,而不需要进入以下段。 Therefore you cannot put into the acknowledgment message the exact same MSH that the incoming message had, because it would not identify then the header does not match the message structure. 因此,您无法在确认消息中输入与传入消息完全相同的MSH,因为它无法识别然后标头与消息结构不匹配。

I mainly referenced HL7 Standard version 2.5 Chapter 2 for this answer. 对于这个答案,我主要参考HL7标准版本2.5第2章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM