Type Alias: NackReason
NackReason =
"handler-rejected"|"uncorrelatable-inbound"|"discarded-bytes"
Why the server sent a negative acknowledgement instead of AA on the auto-ACK path.
A stable, PHI-free enum (no payload bytes, no control ID), safe to log and to key
metrics on.
'handler-rejected', a commit-gatedonMessagehandler threw/rejected (the commit contract: a positive ACK cannot precede a successful commit).'uncorrelatable-inbound', the inbound could not carry a correlatable positive ACK (no readableMSH, an empty MSH-10, or a batch/concatenated-message shape). A positiveAAhere names a control ID the sender cannot match → timeout → resend → duplicate clinical message. See rawAckUncorrelatable.'discarded-bytes', the decoder flaggedMLLP_TRAILING_BYTESfor this frame: a mid-payloadVTmade it discard accumulated bytes and deliver only the fragment after it. The clinical message was destroyed in transit; a positiveAAwould tell the sender a message we never received was delivered.