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等等爲空。