gpt4 book ai didi

hl7 - HL7 V2 中的段顺序是否重要?

转载 作者:行者123 更新时间:2023-12-01 10:28:08 29 4
gpt4 key购买 nike

我知道字段和组件的顺序很重要,但是 HL7 消息中段的顺序又如何呢?他们显然都必须在开头有 MSH,但是 HL7 指南中是否有任何内容明确指出 hl7 段必须按特定顺序排列。当然,文档在描述消息类型时按特定顺序列出段,但这不就是它被写下来的顺序吗?您是否需要按相同顺序发送消息(分组项目除外)?我本以为如果顺序是由消息中的顺序设置的,那么 PID-1 将是无关紧要的。

我很想听听任何意见,但我特别想听听可以引用一些说明这一点的文档的人的意见。

最佳答案

是的,这很重要-

有一个特定的要求,即所需的段位于两个相同的段之间。

来自版本 2.5.1 第 2 章:

A named segment X may occur more than once in an abstract messagesyntax. This differs from repetition described earlier in thissection.

When this occurs, the following rules must be adhered to:If, within an abstract message syntax, a named segment X appears in twoindividual or group locations, and a) Either appearance is optional orrepeating in an individual location; b) or, either appearance isoptional or repeating, in a group location then, the occurrences ofsegment X must be separated by at least one required segment of adifferent name so that no ambiguity can exist as to the individual orgroup location of any occurrence of segment X in a message instance.

一个真实世界的例子是 ADT^A02 中的 ROL 段,一个在 PD1 之后,一个在 PV2 之后,但两者之间需要 PV1。

不过,如果您正在编写某种解析器,我会对任何真正遵守此规则的人保持警惕。

关于hl7 - HL7 V2 中的段顺序是否重要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45580766/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com