public class BTS extends Segment
The BTS segment defines the end of a batch.
Represents an HL7 BTS message segment. This segment has the following fields:
BTS-1: Batch Message Count (ST)Optional
BTS-2: Batch Comment (ST)Optional
BTS-3: Batch Totals (NM)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 |
|---|
BTS()
Constructs BTS segment
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBatchTotals(NM objtempBatchTotals)
Set the Batch Totals.
|
void |
addBatchTotals(java.lang.String strBatchTotals)
Set the Batch Totals.
|
ST |
getBatchComment()
Retrieves the Batch Comment.
|
ST |
getBatchMessageCount()
Retrieves the Batch Message Count.
|
ISingleCollection<NM> |
getBatchTotals()
Retrieves Batch Totals.
|
void |
setBatchComment(ST objbatchComment)
Set the Batch Comment.
|
void |
setBatchComment(java.lang.String strBatchComment)
Set the Batch Comment.
|
void |
setBatchMessageCount(ST objbatchMessageCount)
Set the Batch Message Count
This field contains the count of the individual messages contained within the batch
|
void |
setBatchMessageCount(java.lang.String strBatchMessageCount)
Set the Batch Message Count
This field contains the count of the individual messages contained within the batch
|
void |
setBatchTotals(ISingleCollection<NM> objBatchTotalsList)
Set the Batch Totals.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic void setBatchMessageCount(java.lang.String strBatchMessageCount)
strBatchMessageCount - - String value of BatchMessageCountpublic void setBatchMessageCount(ST objbatchMessageCount)
objbatchMessageCount - object of BatchMessageCountpublic ST getBatchMessageCount()
public void setBatchComment(java.lang.String strBatchComment)
strBatchComment - - String value of Batch Commentpublic void setBatchComment(ST objbatchComment)
objbatchComment - object of Batch Commentpublic ST getBatchComment()
public void addBatchTotals(java.lang.String strBatchTotals)
strBatchTotals - Batch Totals.public void addBatchTotals(NM objtempBatchTotals)
objtempBatchTotals - object of Batch Totals.public void setBatchTotals(ISingleCollection<NM> objBatchTotalsList)
objBatchTotalsList - List of batch total.public ISingleCollection<NM> getBatchTotals()
public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Thrown when Segment Validation Fails.