hl7 v2.X 版本中RSP_K23消息的构造

RSP_K23消息有MSH, MSA, ERR, QAK, QPD, PID几个segment,其中ERR,PID为可选。

1. 当MSA有err时,ERR段填充出错的详细信息。
2. 当MSA为AA,QAK为Ok时,PID不为空; 否则,PID应为空
3. 当MSA有err时, QAK的response status应为AE / AR
4. 当Q23请求的消息中Wanted return domain为空时, k23返回的Patient Id List不应包含Q23中请求时的PID
5. K23返回的消息中PID-6, PID-9即Mother‘s Maiden Name和Patient Alias 应为空;PID-5即Patient Name的第2个实例的Name Type Code应为S, 代表Coded Pseudo-Name to ensure anonymity;


正确消息:
MSH|^~\&|IHE PIX Manager|UIH|NIST_Hydra_PIX_Consumer|NIST|20130810082517||RSP^K23^RSP_K23|IHE PIX Manager-20130810082517-1|P|2.5||||||UNICODE UTF-8
MSA|AE|NIST-20130810082516
ERR|||204^UnknownKeyIdentifier^^^Patient Id is not exist|E
QAK|QRY12434188486468|AE
QPD|Q23^IHE PIX Query|QRY12434188486468|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO


错误消息1 :
MSH|^~\&|IHE PIX Manager|UIH|NIST_Hydra_PIX_Consumer|NIST|20130810082517||RSP^K23^RSP_K23|IHE PIX Manager-20130810082517-1|P|2.5||||||UNICODE UTF-8
MSA|AE|NIST-20130810082516
ERR|||204^UnknownKeyIdentifier^^^Patient Id is not exist|E
QAK|QRY12434188486468|AE
QPD|Q23^IHE PIX Query|QRY12434188486468|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
PID|||||^^^^^^L~^^^^^^S|^^^^^^L~^^^^^^S|||^^^^^^L~^^^^^^S


错误消息2:
MSH|^~\&|IHE PIX Manager|UIH|NIST_Hydra_PIX_Consumer|NIST|20130810082517||RSP^K23^RSP_K23|IHE PIX Manager-20130810082517-1|P|2.5||||||UNICODE UTF-8
MSA|AE|NIST-20130810082516
ERR|||204^UnknownKeyIdentifier^^^Patient Id is not exist|E
QAK|QRY12434188486468|NF
QPD|Q23^IHE PIX Query|QRY12434188486468|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO

错误消息3:
MSH|^~\&|IHE PIX Manager|UIH|NIST_Hydra_PIX_Consumer|NIST|20130810082517||ACK^K23^RSP_K23|IHE PIX Manager-20130810082517-1|P|2.5||||||UNICODE UTF-8
MSA|AE|NIST-20130810082516
ERR|||204^UnknownKeyIdentifier^^^Patient Id is not exist|E
QAK|QRY12434188486468|AE
QPD|Q23^IHE PIX Query|QRY12434188486468|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
posted @ 2013-08-14 17:04  muzizongheng  阅读(537)  评论(0编辑  收藏  举报
如果我们时时忙着展现自己的知识, 将何从忆起成长所需的无知?