public class SGT extends Segment
The SGH segment is only used to provide information about the instantiated message structure to the parsing process to indicate that the segment group ends and subsequent segments should be interpreted accordingly. It does not contain any patient related data. The Segment Group Trailer is required if the segment group header exists.
Represents an HL7 SGT message segment. This segment has the following fields:
SGT-1: Set ID - SGT (SI)Required
SGT-2: Segment Group Name (ST)Optional
This class provides mechanism to validate message against HL7 v 2.8.2 standard.
The class provides accessors & mutators for the elements mentioned above.
The class has validate method which validates Message against HL7 v 2.8.2 standard.
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
SGT()
Constructs the SGT segment.
|
| Modifier and Type | Method and Description |
|---|---|
ST |
getSegmentGroupName()
Retrieves the Segment Group Name.
|
SI |
getSetID_SGT()
Retrieves the Set ID SGT.
|
void |
setSegmentGroupName(ST objSegmentGroupName)
Set the Segment Group Name.
|
void |
setSegmentGroupName(java.lang.String strSegmentGroupName)
Set the Segment Group Name.
|
void |
setSetID_SGT(SI objSetID_SGT)
Set the Set ID SGT.
|
void |
setSetID_SGT(java.lang.String strSetID_SGT)
Set the Set ID SGT.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetID_SGT()
public void setSetID_SGT(java.lang.String strSetID_SGT)
strSetID_SGT - This field contains the number that identifies SGT transaction.public void setSetID_SGT(SI objSetID_SGT)
objSetID_SGT - Object of Set ID SGT.public ST getSegmentGroupName()
public void setSegmentGroupName(java.lang.String strSegmentGroupName)
strSegmentGroupName - String value of Segment Group Namepublic void setSegmentGroupName(ST objSegmentGroupName)
objSegmentGroupName - Segment Group Namepublic boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.