Developer documentation‎ > ‎HL7 API‎ > ‎Messages‎ > ‎

ACK


Acknowledgement

Overview

This message is used to indicate whether PKB received your message successfully or not. There is 1 success code (AA) and 2 error codes (AR or AE) that can be returned in MSA-1.1.
AR is used to indicate an error condition that we have checked for, e.g. a mandatory field was not included.
AE is used to indicate an unexpected error occurred.

Definition


Segment Field Component Description Example
MSH

Message header. This conforms to PKB's standard definition.
MSA

Message acknowledgement

MSA-1
Acknowledgement code


MSA-1.1 Acknowledgement code. AA = accepted, AR = rejected, AE = error AR

MSA-2
Message control ID. This will match the message control ID supplied in the inbound message.


MSA-2.1 Message control ID ABC0000000001

MSA-3
Text message. If there is an error, this will provide further details.


MSA-3.1 Text message placer id (SCH.1.1) must be provided

Examples

PKB will respond with an ACK message; there are three possible acknowledgement codes.

AA: Message received successfully.
MSH|^~\&|HL7API|PKB|App|SendingInst|20190201102500+0000||ACK^R01|PKB-20190201102500+0000|P|2.4||||||||
MSA|AA|messageID||


AR: Message rejected due to validation errors (detail included).
MSH|^~\&;|HL7API|PKB|App|SendingInst|20190201112500+0000||ACK^R01|PKB-20190201112500+0000|P|2.4||||||||
MSA|AR|messageID|Parsing or validation error: OBR[1].OBX[2]: No observation timestamp in OBX or OBR|


AE: Unexpected error during processing (usually due to a severely malformed message).
MSH|^~\&;|HL7API|PKB|App|SendingInst|20190201122500+0000||ACK^R01|PKB-20190201122500+0000|P|2.4||||||||
MSA|AE|messageId|Unexpected error while processing: null|


Comments