PIX v2版本中Query 失败时, ERR段的构造

在ITI-9中描述PIX query事务的几个TestCase场景。其中有些是对于Query失败的描述。

ERR 段包含Error location, Error code, Error code text, 以及Error Alernate code和Error Alernate code text.
而Error location包含segment id, segment sequence, field position, field repetition, component number, 以及subcomponent number。
对于location中的各个组件,索引都是从“1”开始。

具体有2种,
1)发送的patient id或者assign authority id不存在。 
此时的segment id 为 QPD, segment sequence 为 1, field position为3, repetition为1, component number具体要看是id不存在还是assign authority不存在(前者为1, 后者为4)


2)请求返回domain id 不存在。
此时的segment id同样为QPD, segment sequence 为1, field position 为4, repetition具体要看WantedReturnDomains段中是第几个domain不存在 (索引从1开始), 后续component number等等为空。
posted @ 2013-08-21 10:41  muzizongheng  阅读(298)  评论(0编辑  收藏  举报
如果我们时时忙着展现自己的知识, 将何从忆起成长所需的无知?