public class SGH extends Segment
This segment 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.
Represents an HL7 SGH message segment. This segment has the following fields:
SGH-1: Set ID - SGH (SI)Required
SGH-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 |
|---|
SGH()
Constructs the SGH segment.
|
| Modifier and Type | Method and Description |
|---|---|
ST |
getSegmentGroupName()
Retrieves the Segment Group Name.
|
SI |
getSetID_SGH()
Retrieves the Set ID SGH.
|
void |
setSegmentGroupName(ST objSegmentGroupName)
Set the Segment Group Name.
|
void |
setSegmentGroupName(java.lang.String strSegmentGroupName)
Set the Segment Group Name.
|
void |
setSetID_SGH(SI objSetID_SGH)
Set the Set ID SGH.
|
void |
setSetID_SGH(java.lang.String strSetID_SGH)
Set the Set ID SGH.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetID_SGH()
public void setSetID_SGH(java.lang.String strSetID_SGH)
strSetID_SGH - This field contains the number that identifies SGH transaction.public void setSetID_SGH(SI objSetID_SGH)
objSetID_SGH - Object of Set ID SGH.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.