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(CM.class, false, 1, 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); } }
/** * Returns * BTS-3: "BATCH TOTALS" - creates it if necessary */ public CM getBts3_BATCHTOTALS() { CM retVal = this.getTypedField(3, 0); return retVal; }
/** * Creates a new BTS segment */ public BTS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new CM(getMessage()); default: return null; } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new CM(getMessage()); default: return null; } }
/** * Returns * BTS-3: "BATCH TOTALS" - creates it if necessary */ public CM getBts3_BATCHTOTALS() { CM retVal = this.getTypedField(3, 0); return retVal; }
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(CM.class, false, 1, 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); } }
/** * Creates a new BTS segment */ public BTS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * 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 getBATCHCOMMENT() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * BTS-1: "BATCH MESSAGE COUNT" - creates it if necessary */ public ST getBATCHMESSAGECOUNT() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * BTS-1: "BATCH MESSAGE COUNT" - creates it if necessary */ public ST getBts1_BATCHMESSAGECOUNT() { ST retVal = this.getTypedField(1, 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 * BTS-3: "BATCH TOTALS" - creates it if necessary */ public CM getBATCHTOTALS() { CM retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * BTS-1: "BATCH MESSAGE COUNT" - creates it if necessary */ public ST getBATCHMESSAGECOUNT() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * BTS-1: "BATCH MESSAGE COUNT" - creates it if necessary */ public ST getBts1_BATCHMESSAGECOUNT() { ST retVal = this.getTypedField(1, 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 * BTS-3: "BATCH TOTALS" - creates it if necessary */ public CM getBATCHTOTALS() { CM retVal = this.getTypedField(3, 0); return retVal; }