/** * Returns * BHS-8: "Batch Security" - creates it if necessary */ public ST getBhs8_BatchSecurity() { ST retVal = this.getTypedField(8, 0); return retVal; }
/** * Creates a new BHS segment */ public BHS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(ST.class, true, 1, 1, new Object[]{ getMessage() }, "Batch Field Separator"); this.add(ST.class, true, 1, 3, new Object[]{ getMessage() }, "Batch Encoding Characters"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Sending Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Sending Facility"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Receiving Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Receiving Facility"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Batch Creation Date/Time"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Batch Security"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Name/ID/Type"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Control ID"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Reference Batch Control ID"); } catch(HL7Exception e) { log.error("Unexpected error creating BHS - 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 ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new ST(getMessage()); case 5: return new ST(getMessage()); case 6: return new TS(getMessage()); case 7: return new ST(getMessage()); case 8: return new ST(getMessage()); case 9: return new ST(getMessage()); case 10: return new ST(getMessage()); case 11: return new ST(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ST.class, true, 1, 1, new Object[]{ getMessage() }, "Batch Field Separator"); this.add(ST.class, true, 1, 3, new Object[]{ getMessage() }, "Batch Encoding Characters"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Sending Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Sending Facility"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Batch Receiving Application"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Receiving Facility"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Batch Creation Date/Time"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Batch Security"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Name/ID/Type"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Batch Comment"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Batch Control ID"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Reference Batch Control ID"); } catch(HL7Exception e) { log.error("Unexpected error creating BHS - 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 ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new ST(getMessage()); case 5: return new ST(getMessage()); case 6: return new TS(getMessage()); case 7: return new ST(getMessage()); case 8: return new ST(getMessage()); case 9: return new ST(getMessage()); case 10: return new ST(getMessage()); case 11: return new ST(getMessage()); default: return null; } }
/** * Returns * BHS-9: "Batch Name/ID/Type" - creates it if necessary */ public ST getBatchNameIDType() { ST retVal = this.getTypedField(9, 0); return retVal; }
/** * Creates a new BHS segment */ public BHS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * BHS-6: "Batch Receiving Facility" - creates it if necessary */ public ST getBatchReceivingFacility() { ST retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * BHS-7: "Batch Creation Date/Time" - creates it if necessary */ public TS getBhs7_BatchCreationDateTime() { TS retVal = this.getTypedField(7, 0); return retVal; }
/** * Returns * BHS-12: "Reference Batch Control ID" - creates it if necessary */ public ST getBhs12_ReferenceBatchControlID() { ST retVal = this.getTypedField(12, 0); return retVal; }
/** * Returns * BHS-3: "Batch Sending Application" - creates it if necessary */ public ST getBatchSendingApplication() { ST retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * BHS-5: "Batch Receiving Application" - creates it if necessary */ public ST getBhs5_BatchReceivingApplication() { ST retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns * BHS-6: "Batch Receiving Facility" - creates it if necessary */ public ST getBatchReceivingFacility() { ST retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * BHS-8: "Batch Security" - creates it if necessary */ public ST getBatchSecurity() { ST retVal = this.getTypedField(8, 0); return retVal; }
/** * Returns * BHS-11: "Batch Control ID" - creates it if necessary */ public ST getBatchControlID() { ST retVal = this.getTypedField(11, 0); return retVal; }
/** * Returns * BHS-1: "Batch Field Separator" - creates it if necessary */ public ST getBatchFieldSeparator() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * BHS-2: "Batch Encoding Characters" - creates it if necessary */ public ST getBhs2_BatchEncodingCharacters() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * BHS-3: "Batch Sending Application" - creates it if necessary */ public ST getBatchSendingApplication() { ST retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * BHS-5: "Batch Receiving Application" - creates it if necessary */ public ST getBhs5_BatchReceivingApplication() { ST retVal = this.getTypedField(5, 0); return retVal; }