Class BTS

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class BTS extends AbstractSegment

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:
  • Constructor Details

  • 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

      public ST 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

      public int 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

      public CM_BATCH_TOTAL getBatchTotals(int rep)
      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

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment