MajwareMAJWARE
MSA
Message Control6 fields

MSA — Message Acknowledgment

Appears in ACK messages and application-level acknowledgment responses. Always paired with an MSH segment.

The MSA segment is returned by the receiving system to confirm receipt of a message. It carries the acknowledgment code and echoes back the original message control ID so the sender can match the ACK to the original message.

Real-World Context

MSA is how you know whether a message was accepted or rejected. The acknowledgment code in MSA.1 is critical for error handling — AA means accepted, AE means application error, AR means rejected. Monitoring for AE or AR codes in production is essential for catching silent failures before they impact patient care.

Field Reference

Click any row to see the full description, common values, and troubleshooting tip.

#Field NameTypeReqMax Len
1Acknowledgment CodeIDR2▶
2Message Control IDSTR199▶
3Text MessageSTO80▶
4Expected Sequence NumberNMO15▶
5Delayed Acknowledgment TypeIDO1▶
6Error ConditionCEO250▶

Example Segment

1MSA||AA|MSG00001|Message accepted successfully

Related Segments

Used In Message Types

Parse messages with MSA in real time

Paste any HL7 message into our free viewer. Decodes every segment and field instantly, client-side.

Open HL7 Message Viewer →

Need a message to test with?

Copy a realistic sample for any message type, or open it directly in the viewer. Free, no signup.

Browse HL7 Sample Messages →
← Back to HL7 Segment Reference