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等等爲空。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章