public class NCK extends Segment
The NCK segment is used to allow the various applications on the network to synchronize their system clocks (system date and time).
Represents an HL7 NCK message segment. This segment has the following fields:
NCK-1: System Date/Time (DTM)Required
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 |
|---|
NCK()
Constructs the NCK segment.
|
| Modifier and Type | Method and Description |
|---|---|
DTM |
getSystemDateTime()
Retrieves the System Date Time.
|
void |
setSystemDateTime(DTM systemDate_Time)
Set the System Date Time.
|
void |
setSystemDateTime(java.lang.String strDate)
Set the System Date Time.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic void setSystemDateTime(java.lang.String strDate)
strDate - Specifies a point in time using a 24-hour clock notation.public void setSystemDateTime(DTM systemDate_Time)
systemDate_Time - System Date Timepublic DTM getSystemDateTime()
public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails