HL7 v2 QAK-1 (Query Tag): Format, Values, and Testing Notes
QAK-1 is a short identifier with one job — letting a system that fired off several queries figure out which response belongs to which request — and it is routinely left blank or hardcoded in test fixtures that never send more than one query at a time.
QAK-1 is the Query Tag field. The requesting system generates this value and attaches it to the outgoing query; the responding system is expected to copy it unchanged into its response so the two messages can be matched up, even when multiple queries from the same sender are in flight at once.
What this field contains
Example
QAK-1 (Q1042) is a fabricated query tag standing in for the identifier the requester would have generated for this lookup.
Where this trips people up
It's easy to write query-response test fixtures where the tag is a static placeholder value, since a single-threaded test harness never actually needs to distinguish one query from another. That gap stays invisible until a production system starts firing concurrent queries and discovers that responses are arriving with tags that don't match anything in its pending-query table, usually surfacing as queries that appear to time out even though a response technically came back.