public class NST extends Segment
The NST segment allows application control-level statistical information to be passed between the various systems on the network.
Represents an HL7 NST message segment. This segment has the following fields:
NST-1: Statistics Available (ID)Required
NST-2: Source Identifier (ST)Optional
NST-3: Source Type (ID)Optional
NST-4: Statistics Start (DTM)Optional
NST-5: Statistics End (DTM)Optional
NST-6: Receive Character Count (NM)Optional
NST-7: Send Character Count (NM)Optional
NST-8: Messages Received (NM)Optional
NST-9: Messages Sent (NM)Optional
NST-10: Checksum Errors Received (NM)Optional
NST-11: Length Errors Received (NM)Optional
NST-12: Other Errors Received (NM)Optional
NST-13: Connect Timeouts (NM)Optional
NST-14: Receive Timeouts (NM)Optional
NST-15: Application control-level Errors (NM)
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 |
|---|
NST()
Constructs the NST segment.
|
| Modifier and Type | Method and Description |
|---|---|
NM |
getApplicationcontrollevelErrors()
Retrieves the Application control level Errors.
|
NM |
getChecksumErrorsReceived()
Retrieves the Checksum Errors Received.
|
NM |
getConnectTimeouts()
Retrieves the Connect Timeouts.
|
NM |
getLengthErrorsReceived()
Retrieves the Length Errors Received.
|
NM |
getMessagesReceived()
Retrieves the Messages Received.
|
NM |
getMessagesSent()
Retrieves the Messages Sent.
|
NM |
getOtherErrorsReceived()
Retrieves the Other Errors Received.
|
NM |
getReceiveCharacterCount()
Retrieves the Receive Character Count.
|
NM |
getReceiveTimeouts()
Retrieves the Receive Timeouts.
|
NM |
getSendCharacterCount()
Retrieves the Send Character Count.
|
ST |
getSourceIdentifier()
Retrieves the Source Identifier.
|
ID |
getSourceType()
Retrieves the Source Type.
|
ID |
getStatisticsAvailable()
Retrieves the Statistics Available.
|
DTM |
getStatisticsEnd()
Retrieves the Statistics End.
|
DTM |
getStatisticsStart()
Retrieves the Statistics Start.
|
void |
setApplicationcontrollevelErrors(NM objapplicationcontrollevelErrors)
Set the Application control level Errors.
|
void |
setApplicationcontrollevelErrors(java.lang.String strApplicationcontrollevelErrors)
Set the Application control level Errors.
|
void |
setChecksumErrorsReceived(NM objchecksumErrorsReceived)
Set the Checksum Errors Received.
|
void |
setChecksumErrorsReceived(java.lang.String strChecksumErrorsReceived)
Set the Checksum Errors Received.
|
void |
setConnectTimeouts(NM objconnectTimeouts)
Set the Connect Timeouts.
|
void |
setConnectTimeouts(java.lang.String strConnectTimeouts)
Set the Connect Timeouts.
|
void |
setLengthErrorsReceived(NM objlengthErrorsReceived)
Set the Length Errors Received.
|
void |
setLengthErrorsReceived(java.lang.String strLengthErrorsReceived)
Set the Length Errors Received.
|
void |
setMessagesReceived(NM objmessagesReceived)
Set the Messages Received.
|
void |
setMessagesReceived(java.lang.String strMessagesReceived)
Set the Messages Received.
|
void |
setMessagesSent(NM objmessagesSent)
Set the Messages Sent.
|
void |
setMessagesSent(java.lang.String strMessagesSent)
Set the Messages Sent.
|
void |
setOtherErrorsReceived(NM objotherErrorsReceived)
Set the Other Errors Received.
|
void |
setOtherErrorsReceived(java.lang.String strOtherErrorsReceived)
Set the Other Errors Received.
|
void |
setReceiveCharacterCount(NM objreceiveCharacterCount)
Set the Receive Character Count.
|
void |
setReceiveCharacterCount(java.lang.String strReceiveCharacterCount)
Set the Receive Character Count.
|
void |
setReceiveTimeouts(NM objreceiveTimeouts)
Set the Receive Timeouts.
|
void |
setReceiveTimeouts(java.lang.String strReceiveTimeouts)
Set the Receive Timeouts.
|
void |
setSendCharacterCount(NM objsendCharacterCount)
Set the Send Character Count.
|
void |
setSendCharacterCount(java.lang.String strSendCharacterCount)
Set the Send Character Count.
|
void |
setSourceIdentifier(ST objsourceIdentifier)
Set the Source Identifier.
|
void |
setSourceIdentifier(java.lang.String strSourceIdentifier)
Set the Source Identifier.
|
void |
setSourceType(ID objsourceType)
Set the Source Type.
|
void |
setSourceType(java.lang.String strSourceType)
Set the Source Type.
|
void |
setStatisticsAvailable(ID objstatisticsAvailable)
Set the Statistics Available.
|
void |
setStatisticsAvailable(java.lang.String strStatisticsAvailable)
Set the Statistics Available.
|
void |
setStatisticsEnd(DTM objstatisticsEnd)
Set the Statistics End.
|
void |
setStatisticsEnd(java.lang.String strDate)
Set the Statistics End.
|
void |
setStatisticsStart(DTM objstatisticsStart)
Set the Statistics Start.
|
void |
setStatisticsStart(java.lang.String strDate)
Set the Statistics Start.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic NM getApplicationcontrollevelErrors()
public NM getChecksumErrorsReceived()
public NM getConnectTimeouts()
public NM getLengthErrorsReceived()
public NM getMessagesReceived()
public NM getMessagesSent()
public NM getOtherErrorsReceived()
public NM getReceiveCharacterCount()
public NM getReceiveTimeouts()
public NM getSendCharacterCount()
public ST getSourceIdentifier()
public ID getSourceType()
public ID getStatisticsAvailable()
public DTM getStatisticsEnd()
public DTM getStatisticsStart()
public void setStatisticsAvailable(java.lang.String strStatisticsAvailable)
strStatisticsAvailable - Used as StatisticsAvailable.public void setStatisticsAvailable(ID objstatisticsAvailable)
objstatisticsAvailable - Used as StatisticsAvailable.public void setSourceIdentifier(java.lang.String strSourceIdentifier)
strSourceIdentifier - The name of the party.public void setSourceIdentifier(ST objsourceIdentifier)
objsourceIdentifier - The name of the party.public void setSourceType(java.lang.String strSourceType)
strSourceType - used as SourceType.public void setSourceType(ID objsourceType)
objsourceType - used as SourceType.public void setStatisticsStart(java.lang.String strDate)
strDate - Specifies a point in time using a 24-hour clock notation.public void setStatisticsStart(DTM objstatisticsStart)
objstatisticsStart - Statistics Startpublic void setStatisticsEnd(java.lang.String strDate)
strDate - Specifies a point in time using a 24-hour clock notation.public void setStatisticsEnd(DTM objstatisticsEnd)
objstatisticsEnd - Statistics Endpublic void setReceiveCharacterCount(java.lang.String strReceiveCharacterCount)
strReceiveCharacterCount - Specifies Transaction Quantitypublic void setReceiveCharacterCount(NM objreceiveCharacterCount)
objreceiveCharacterCount - Specifies Transaction Quantitypublic void setSendCharacterCount(java.lang.String strSendCharacterCount)
strSendCharacterCount - Specifies Transaction Quantity.public void setSendCharacterCount(NM objsendCharacterCount)
objsendCharacterCount - Specifies Transaction Quantity.public void setMessagesReceived(java.lang.String strMessagesReceived)
strMessagesReceived - Specifies Transaction Quantitypublic void setMessagesReceived(NM objmessagesReceived)
objmessagesReceived - Specifies Transaction Quantitypublic void setMessagesSent(java.lang.String strMessagesSent)
strMessagesSent - Specifies Transaction Quantity.public void setMessagesSent(NM objmessagesSent)
objmessagesSent - Specifies Transaction Quantity.public void setChecksumErrorsReceived(java.lang.String strChecksumErrorsReceived)
strChecksumErrorsReceived - Specifies Transaction Quantitypublic void setChecksumErrorsReceived(NM objchecksumErrorsReceived)
objchecksumErrorsReceived - Specifies Transaction Quantitypublic void setLengthErrorsReceived(java.lang.String strLengthErrorsReceived)
strLengthErrorsReceived - Specifies Transaction Quantitypublic void setLengthErrorsReceived(NM objlengthErrorsReceived)
objlengthErrorsReceived - Specifies Transaction Quantitypublic void setOtherErrorsReceived(java.lang.String strOtherErrorsReceived)
strOtherErrorsReceived - Specifies Transaction Quantity.public void setOtherErrorsReceived(NM objotherErrorsReceived)
objotherErrorsReceived - Specifies Transaction Quantity.public void setConnectTimeouts(java.lang.String strConnectTimeouts)
strConnectTimeouts - Specifies Transaction Quantity.public void setConnectTimeouts(NM objconnectTimeouts)
objconnectTimeouts - Specifies Transaction Quantity.public void setReceiveTimeouts(java.lang.String strReceiveTimeouts)
strReceiveTimeouts - Specifies Transaction Quantity.public void setReceiveTimeouts(NM objreceiveTimeouts)
objreceiveTimeouts - Specifies Transaction Quantity.public void setApplicationcontrollevelErrors(java.lang.String strApplicationcontrollevelErrors)
strApplicationcontrollevelErrors - Specifies Transaction Quantity.public void setApplicationcontrollevelErrors(NM objapplicationcontrollevelErrors)
objapplicationcontrollevelErrors - Specifies Transaction Quantity.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails