Previous Page TOC Index Next Page

2.24.2 MSA - message acknowledgment segment

The MSA segment contains information sent while acknowledging another message.

Figure 2-9. MSA attributes

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

1

2

ID

R


0008

00018

Acknowledgment Code

2

20

ST

R



00010

Message Control ID

3

80

ST

O



00020

Text Message

4

15

NM

O



00021

Expected Sequence Number

5

1

ID

B


0102

00022

Delayed Acknowledgment Type

6

100

CE

O



00023

Error Condition

2.24.2.0 MSA field definitions

2.24.2.1 Acknowledgment code (ID) 00018

Definition: This field contains an acknowledgment code, see message processing rules. Refer to HL7 table 0008 - Acknowledgment code for valid values.

Table 0008 - Acknowledgment code

Value

Description

AA

Original mode: Application Accept
Enhanced mode: Application acknowledgment: Accept

AE

Original mode: Application Error
Enhanced mode: Application acknowledgment: Error

AR

Original mode: Application Reject
Enhanced mode: Application acknowledgment: Reject

CA

Enhanced mode: Accept acknowledgment: Commit Accept

CE

Enhanced mode: Accept acknowledgment: Commit Error

CR

Enhanced mode: Accept acknowledgment: Commit Reject

2.24.2.2 Message control ID (ST) 00010

Definition: This field contains the message control ID of the message sent by the sending system. It allows the sending system to associate this response with the message for which it is intended.

2.24.2.3 Text message (ST) 00020

Definition: This optional field further describes an error condition. This text may be printed in error logs or presented to an end user.

2.24.2.4 Expected sequence number (NM) 00021

Definition: This optional numeric field is used in the sequence number protocol.

2.24.2.5 Delayed acknowledgment type (ID) 00022

Definition: This field has been retained for backward compatibility. This field is used only as described above, in Section 2.12.2, "Application (level 7) processing rules, deferred processing xe "Processing rules: application" xe "Processing rules: deferred" two phase reply (original acknowledgment mode only)." Otherwise this field is not used.

Table 0102 - Delayed acknowledgment type

Value

Description

D

Message received, stored for later processing

F

acknowledgment after processing

2.24.2.6 Error condition (CE) 00023

Components: <identifier (ID)> ^ <text (ST)> ^ <name of coding system (ST)> ^ <alternate identifier (ID)> ^ <alternate text (ST)> ^ <name of alternate coding system (ST)>

Definition: This field allows the acknowledging system to use a user-defined error code to further specify AR or AE type acknowledgements. This field is a generalized replacement for MSA-3-text message.

Previous Page TOC Index Next Page