HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

MSA segment

The MSA segment contains information sent while acknowledging another message. 2.15.8.0 MSA field definitions 2.15.8.1 MSA-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. HL7 Table 0008 - Acknowledgment code

The shape of one line

segmentMSA|MSA-1Acknowledgment Code|MSA-2Message Control ID|MSA-3Text Message|MSA-4Expected Sequence Number|MSA-5Delayed Acknowledgment…|MSA-6Error Condition

required optional kept for older systems, still counted

Count the pipes to find a field, and count the empty ones too: an empty field still holds its place. Leave out the separator before MSA-2 and its value arrives as MSA-1, so the receiver stores Message Control ID as Acknowledgment Code.

This page carries the MSA field table as published and nothing beyond it. The field notes, vendor behaviour, FHIR mapping and parsing guidance that thePID page has are still to be written for MSA.

Every field

SEQLENDTOPTRP/#TBL#ITEM#Element nameCardinality
MSA-12IDR000800018Acknowledgment Code1..1
MSA-220STR00010Message Control ID1..1
MSA-380STB00020Text Message deprecated0..1
MSA-415NMO00021Expected Sequence Number0..1
MSA-5W00022Delayed Acknowledgment Type deprecated0..1
250CEB035700023Error Condition deprecated0..1

MSA-6 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System

Message types carrying MSA

MSA appears in 63 message structures, belonging to 45 message types.