/** * 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. */ public int getBts3_BatchTotalsReps() { return this.getReps(3); }
/** * Returns * BTS-1: "Batch Message Count" - creates it if necessary */ public ST getBts1_BatchMessageCount() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new BTS segment */ public BTS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "Batch Message Count"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(NM.class, false, 0, 100, new Object[]{ getMessage() }, "Batch Totals"); } catch(HL7Exception e) { log.error("Unexpected error creating BTS - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new NM(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "Batch Message Count"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(NM.class, false, 0, 100, new Object[]{ getMessage() }, "Batch Totals"); } catch(HL7Exception e) { log.error("Unexpected error creating BTS - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new NM(getMessage()); default: return null; } }
/** * Returns a specific repetition of * BTS-3: "Batch Totals" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public NM getBts3_BatchTotals(int rep) { NM retVal = this.getTypedField(3, rep); return retVal; }
/** * 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. */ public int getBts3_BatchTotalsReps() { return this.getReps(3); }
/** * Creates a new BTS segment */ public BTS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * BTS-1: "Batch Message Count" - creates it if necessary */ public ST getBts1_BatchMessageCount() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * 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. */ public int getBatchTotalsReps() { return this.getReps(3); }
/** * Returns * BTS-1: "Batch Message Count" - creates it if necessary */ public ST getBatchMessageCount() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * 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. */ public int getBatchTotalsReps() { return this.getReps(3); }
/** * Returns * BTS-2: "Batch Comment" - creates it if necessary */ public ST getBatchComment() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns all repetitions of Batch Totals (BTS-3). */ public NM[] getBts3_BatchTotals() { NM[] retVal = this.getTypedField(3, new NM[0]); return retVal; }
/** * Returns * BTS-2: "Batch Comment" - creates it if necessary */ public ST getBatchComment() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * BTS-2: "Batch Comment" - creates it if necessary */ public ST getBts2_BatchComment() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns all repetitions of Batch Totals (BTS-3). */ public NM[] getBts3_BatchTotals() { NM[] retVal = this.getTypedField(3, new NM[0]); return retVal; }
/** * Returns * BTS-1: "Batch Message Count" - creates it if necessary */ public ST getBatchMessageCount() { ST retVal = this.getTypedField(1, 0); return retVal; }