/** * Returns * BHS-1: "BATCH FIELD SEPARATOR" - creates it if necessary */ public ST getBATCHFIELDSEPARATOR() { ST retVal = this.getTypedField(1, 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, 19, 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, 19, 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 getBhs9_BATCHNAMEIDTYPE() { 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-5: "BATCH RECEIVING APPLICATION" - creates it if necessary */ public ST getBATCHRECEIVINGAPPLICATION() { ST retVal = this.getTypedField(5, 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-10: "BATCH COMMENT" - creates it if necessary */ public ST getBATCHCOMMENT() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns * BHS-5: "BATCH RECEIVING APPLICATION" - creates it if necessary */ public ST getBATCHRECEIVINGAPPLICATION() { ST retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns * BHS-6: "BATCH RECEIVING FACILITY" - creates it if necessary */ public ST getBhs6_BATCHRECEIVINGFACILITY() { ST retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * BHS-7: "BATCH CREATION DATE/TIME" - creates it if necessary */ public TS getBATCHCREATIONDATETIME() { TS retVal = this.getTypedField(7, 0); return retVal; }
/** * Returns * BHS-10: "BATCH COMMENT" - creates it if necessary */ public ST getBATCHCOMMENT() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns * BHS-9: "BATCH NAME/ID/TYPE" - creates it if necessary */ public ST getBhs9_BATCHNAMEIDTYPE() { ST retVal = this.getTypedField(9, 0); return retVal; }
/** * Returns * BHS-4: "BATCH SENDING FACILITY" - creates it if necessary */ public ST getBATCHSENDINGFACILITY() { ST retVal = this.getTypedField(4, 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-8: "BATCH SECURITY" - creates it if necessary */ public ST getBhs8_BATCHSECURITY() { 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; }