现在的位置: 首页 > 综合 > 正文

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

2013年08月09日 ⁄ 综合 ⁄ 共 588字 ⁄ 字号 评论关闭

在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等等为空。

抱歉!评论已关闭.