The QAK segment contains information sent with responses to a query.
SEQ |
LEN |
DT |
OPT |
RP/# |
TBL# |
ITEM# |
ELEMENT NAME |
1 |
32 |
ST |
C |
00696 |
Query Tag |
||
2 |
2 |
ID |
O |
0208 |
00708 |
Query Response Status |
2.24.22.0 QAK field definitions
Definition: This field may be valued by the initiating system to identify the query, and may be used to match response messages to the originating query. If it is valued, the responding system is required to echo it back as the first field in the query acknowledgment segment (QAK). This field differs from MSA-2-message control ID in that its value remains constant for each message (i.e., all continuation messages) associated with the query, whereas MSA-2-message control ID may vary with each continuation message, since it is associated with each individual message, not the query as a whole.
Definition: This field allows the responding system to return a precise response status. It is especially useful in the case where no data is found that matches the query parameters, but where there is also no error. It is defined with HL7 table 0208 - Query response status.
Table 0208 - Query response status
Value |
Description |
OK |
Data found, no errors (this is the default) |
NF |
No data found, no errors |
AE |
Applications error |
AR |
Application reject |