|
看到有人在其他地方问一个问题,不知道这里是不是有人也不明白,所以解说一下:)
一个关于MSH的问题
我看到一个hl7消息的例子,其中msh消息头段如下:
MSH|^~\\&|My RIS|||Your PACS|200305081043||ORM^O01|000561810007466|P|2.3|||||<CR>
其中Sending Facility(My RIS)是第二个字段,可是在MSH的定义中,它应该是第三个字段。哪位大哥能告诉我是怎么回事。
只需要看看MSH中第一个字段的定义,就清楚了:
Definition: This field contains the separator between the segment ID and the first real field, MSH-2-encoding characters. As such it serves as the separator and defines the character to be used as a separator for the rest of the message. Recommended value is |, (ASCII 124).
也就是说第一字段是第一个真实的消息字段即MSH-2和段ID:msh之间的分割标记。推荐值为:| 也就是HL7字段分割符。
也就是说MSH是段ID,|是第一个字段,^~\\&是第二个字段,^~\\&后的|为字段分割符,My RIS是第三个字段。 |
|