visit the hl7 website The Demo site for our new HL7 Version 2+ (plus) Standard

18.8.166 SGH - segment group header (2.14.13)

The SGH segment is only used to provide information about the instantiated message structure to indicate that a new segment group begins and subsequent segments SHOULD be interpreted accordingly. It does not contain any patient related data.

It is expected that each SGH will be accompanied by an SGT, as depicted below in the abstract message diagram: WRP: Widget Reports

Segments

Description

Status

Chapter

MSH

Message Header

2

[{SFT}]

Software Segment

2

[UAC]

User Authentication Credential

2

MSA

Message Acknowledgment

2

[{ERR}]

Error Segment

2

{

---Widget begin

[SGH]

Segment Group Header

2

WDN

Widget Description

XX

WPN

Widget Portion

XX

[SGT}

Segment Group Trailer

2

}

---Widget end

HL7 Attribute Table - SGH - Segment Group Header

Base Framework
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
SGH
103389Set ID - SGH SHOULD[1..1] 
SI

Sequence ID

203390Segment Group Name
=

Truncation allowed.

MAY[0..1] 60
ST

String Data

Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
SGH
103389Set ID - SGH SHALL[1..1] 
SI

Sequence ID

203390Segment Group Name
=

Truncation allowed.

MAY[0..1] 60
ST

String Data

Base FrameworkBase Standard Profile
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData TypeImplementVocabulary
SGH 
103389Set ID - SGH SHOULD[1..1] 
SI

Sequence ID

SHALL
203390Segment Group Name
=

Truncation allowed.

MAY[0..1] 60
ST

String Data

MAY
Base Framework Base Standard Profile
Seq# Data Element Description Flags Optionality Repetition Length C.LEN Table Data Type Optionality Table
SGH  
1 03389 Set ID - SGH   O      
SI

Sequence ID

R  
2 03390 Segment Group Name   O     60#  
ST

String Data

   
Seq# Data Element Description Optionality Repetition Length C.LEN Table Data Type
SGH
1 03389 Set ID - SGH R      
SI

Sequence ID

2 03390 Segment Group Name O     60#  
ST

String Data

18.8.166.1 SGH field definitions (2.14.13.0)

18.8.166.2 SGH-1 Set ID – SGH (SI) 03389 (2.14.13.1)

Definition: For the first segment group transmitted, the sequence number SHALL be 1; for the second , it SHALL be 2; and so on.

18.8.166.3 SGH-2 Segment Group Name (ST) 03390 (2.14.13.2)

Definition: This field contains the name of the segment group.