Package ca.uhn.hl7v2.model.v22.segment
Class BTS
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v22.segment.BTS
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 BTS message segment (BATCH TRAILER). This segment has the following fields:
- BTS-1: Batch Message Count (ST) optional
- BTS-2: Batch Comment (ST) optional
- BTS-3: Batch Totals (CM_BATCH_TOTAL) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) Returns BTS-2: "Batch Comment" - creates it if necessaryReturns BTS-1: "Batch Message Count" - creates it if necessaryReturns all repetitions of Batch Totals (BTS-3).getBatchTotals(int rep) Returns a specific repetition of BTS-3: "Batch Totals" - creates it if necessaryintReturns a count of the current number of repetitions of Batch Totals (BTS-3).Returns BTS-1: "Batch Message Count" - creates it if necessaryReturns BTS-2: "Batch Comment" - creates it if necessaryReturns all repetitions of Batch Totals (BTS-3).getBts3_BatchTotals(int rep) Returns a specific repetition of BTS-3: "Batch Totals" - creates it if necessaryintReturns a count of the current number of repetitions of Batch Totals (BTS-3).insertBatchTotals(int rep) Inserts a repetition of BTS-3: "Batch Totals" at a specific indexinsertBts3_BatchTotals(int rep) Inserts a repetition of BTS-3: "Batch Totals" at a specific indexremoveBatchTotals(int rep) Removes a repetition of BTS-3: "Batch Totals" at a specific indexremoveBts3_BatchTotals(int rep) Removes a repetition of BTS-3: "Batch Totals" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
BTS
Creates a new BTS segment
-
-
Method Details
-
getBatchMessageCount
Returns BTS-1: "Batch Message Count" - creates it if necessary -
getBts1_BatchMessageCount
Returns BTS-1: "Batch Message Count" - creates it if necessary -
getBatchComment
Returns BTS-2: "Batch Comment" - creates it if necessary -
getBts2_BatchComment
Returns BTS-2: "Batch Comment" - creates it if necessary -
getBatchTotals
Returns all repetitions of Batch Totals (BTS-3). -
getBts3_BatchTotals
Returns all repetitions of Batch Totals (BTS-3). -
getBatchTotalsReps
Returns a count of the current number of repetitions of Batch Totals (BTS-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getBatchTotals
Returns a specific repetition of BTS-3: "Batch Totals" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getBts3_BatchTotals
Returns a specific repetition of BTS-3: "Batch Totals" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getBts3_BatchTotalsReps
Returns a count of the current number of repetitions of Batch Totals (BTS-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertBatchTotals
Inserts a repetition of BTS-3: "Batch Totals" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertBts3_BatchTotals
Inserts a repetition of BTS-3: "Batch Totals" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeBatchTotals
Removes a repetition of BTS-3: "Batch Totals" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeBts3_BatchTotals
Removes a repetition of BTS-3: "Batch Totals" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-