Class MSH

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class MSH extends AbstractSegment

Represents an HL7 MSH message segment (MESSAGE HEADER). This segment has the following fields:

  • MSH-1: Field separator (ST)
  • MSH-2: Encoding characters (ST)
  • MSH-3: Sending application (ST) optional
  • MSH-4: Sending facility (ST) optional
  • MSH-5: Receiving application (ST) optional
  • MSH-6: Receiving facility (ST) optional
  • MSH-7: Date / Time of message (TS) optional
  • MSH-8: Security (ST) optional
  • MSH-9: Message type (CM_MSG)
  • MSH-10: Message Control ID (ST)
  • MSH-11: Processing ID (ID)
  • MSH-12: Version ID (ID)
  • MSH-13: Sequence number (NM) optional
  • MSH-14: Continuation pointer (ST) optional
  • MSH-15: Accept acknowledgement type (ID) optional
  • MSH-16: Application acknowledgement type (ID) optional
  • MSH-17: Country code (ID) optional
See Also: