public class FTS extends Segment
The FTS segment defines the end of a File.
Represents an HL7 FTS message segment. This segment has the following fields:
FTS-1: File Batch Count (NM)Optional
FTS-2: File Trailer Comment (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 |
|---|
FTS()
Constructs FTS segment
|
| Modifier and Type | Method and Description |
|---|---|
NM |
getFileBatchCount()
Retrieves the File Batch Count.
|
ST |
getFileTrailerComment()
Retrieves the Batch Comment.
|
void |
setFileBatchCount(NM objfileBatchCount)
Set the File Batch Count
This field contains the count of the individual batches contained within the File
|
void |
setFileBatchCount(java.lang.String strFileBatchCount)
Set the File Batch Count
This field contains the count of the individual batches contained within the File
|
void |
setFileTrailerComment(ST objfileTrailerComment)
Set the File Trailer Comment.
|
void |
setFileTrailerComment(java.lang.String strFileTrailerComment)
Set the File Trailer Comment.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic void setFileBatchCount(java.lang.String strFileBatchCount)
strFileBatchCount - - String value of FileBatchCountpublic void setFileBatchCount(NM objfileBatchCount)
objfileBatchCount - object of FileBatchCountpublic NM getFileBatchCount()
public void setFileTrailerComment(java.lang.String strFileTrailerComment)
strFileTrailerComment - - String value of Batch Commentpublic void setFileTrailerComment(ST objfileTrailerComment)
objfileTrailerCommentobject - of File Trailer Comment.public ST getFileTrailerComment()
public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Thrown when Segment Validation Fails.