MajwareMAJWARE
MRG
Patient Administration7 fields

MRGMerge Patient Information

Appears in ADT A34, A35, A36, A37, A38, A39, A40, A41, A42, A43, A44, A45, A46, A47, A48, A49 messages.

The MRG segment contains the prior identifiers for a patient before a merge or move operation. It is sent in ADT A34 through A40 messages to allow receiving systems to update their patient index when a merge or move occurs.

Real-World Context

MRG messages are among the most dangerous in production environments. An incorrectly executed patient merge can cause clinical data from two different patients to be combined under one record, which is a patient safety event. Always validate the sending and receiving identifiers carefully. When a merge causes problems downstream, the MRG segment is the first place to look.

Field Reference

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

#Field NameTypeReqMax Len
1Prior Patient Identifier ListCXR250
2Prior Alternate Patient IDCXO20
3Prior Patient Account NumberCXO250
4Prior Patient IDCXO20
5Prior Visit NumberCXO250
6Prior Alternate Visit IDCXO250
7Prior Patient NameXPNO250

Example Segment

HL7 v2.x Message
1MRG||OLDMRN123^^^HOSPITAL^MR|||OLDACCT001^^^HOSPITAL^AN||OLDVISIT001^^^HOSPITAL^VN|DOE^JOHN^A

Related Segments

Used In Message Types

Parse messages with MRG in real time

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

Open HL7 Message Viewer →

Need HL7 mapping templates?

The HL7 Integration Toolkit includes field mapping worksheets, interface spec templates, and a go-live checklist for every major HL7 message type.

View HL7 Integration Toolkit →
← Back to HL7 Segment Reference