public class DSC extends Segment
The DSC segment is used in the continuation protocol.
Represents an HL7 DSC message segment. This segment has the following fields:
DSC-1: Continuation Pointer (ST)Optional
DSC-2: Continuation Style (ID)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 |
|---|
DSC()
Constructs the DSC segment.
|
| Modifier and Type | Method and Description |
|---|---|
ST |
getContinuationPointer()
Retrieves the Continuation Pointer.
|
ID |
getContinuationStyle()
Retrieves the Continuation Style.
|
void |
setContinuationPointer(ST objcontinuationPointer)
Set the Continuation Pointer.
|
void |
setContinuationPointer(java.lang.String strContinuationPointer)
Set the Continuation Pointer.
|
void |
setContinuationStyle(ID objcontinuationStyle)
Set the Continuation Style.
|
void |
setContinuationStyle(java.lang.String strContinuationStyle)
Set the Continuation Style.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic ST getContinuationPointer()
public ID getContinuationStyle()
public void setContinuationPointer(java.lang.String strContinuationPointer)
strContinuationPointer - Contains the continuation pointer.public void setContinuationPointer(ST objcontinuationPointer)
objcontinuationPointer - object of Continuation Pointer.public void setContinuationStyle(java.lang.String strContinuationStyle)
strContinuationStyle - Used for ContinuationStyle.public void setContinuationStyle(ID objcontinuationStyle)
objcontinuationStyle - object of Continuation Style.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Thrown when Segment Validation Fails.