/** * Returns * FHS-6: "FILE RECEIVING FACILITY" - creates it if necessary */ public ST getFILERECEIVINGFACILITY() { ST retVal = this.getTypedField(6, 0); return retVal; }
/** * Creates a new FHS segment */ public FHS(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() }, "FILE FIELD SEPARATOR"); this.add(ST.class, true, 1, 4, new Object[]{ getMessage() }, "FILE ENCODING CHARACTERS"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "FILE SENDING APPLICATION"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE SENDING FACILITY"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "FILE RECEIVING APPLICATION"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE RECEIVING FACILITY"); this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "DATE/TIME OF FILE CREATION"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "FILE SECURITY"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE NAME/ID"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "FILE HEADER COMMENT"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE CONTROL ID"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "REFERENCE FILE CONTROL ID"); } catch(HL7Exception e) { log.error("Unexpected error creating FHS - 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() }, "FILE FIELD SEPARATOR"); this.add(ST.class, true, 1, 4, new Object[]{ getMessage() }, "FILE ENCODING CHARACTERS"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "FILE SENDING APPLICATION"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE SENDING FACILITY"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "FILE RECEIVING APPLICATION"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE RECEIVING FACILITY"); this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "DATE/TIME OF FILE CREATION"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "FILE SECURITY"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE NAME/ID"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "FILE HEADER COMMENT"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "FILE CONTROL ID"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "REFERENCE FILE CONTROL ID"); } catch(HL7Exception e) { log.error("Unexpected error creating FHS - 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 * FHS-10: "FILE HEADER COMMENT" - creates it if necessary */ public ST getFILEHEADERCOMMENT() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Creates a new FHS segment */ public FHS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * FHS-11: "FILE CONTROL ID" - creates it if necessary */ public ST getFhs11_FILECONTROLID() { ST retVal = this.getTypedField(11, 0); return retVal; }
/** * Returns * FHS-2: "FILE ENCODING CHARACTERS" - creates it if necessary */ public ST getFhs2_FILEENCODINGCHARACTERS() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * FHS-6: "FILE RECEIVING FACILITY" - creates it if necessary */ public ST getFILERECEIVINGFACILITY() { ST retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * FHS-10: "FILE HEADER COMMENT" - creates it if necessary */ public ST getFhs10_FILEHEADERCOMMENT() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns * FHS-7: "DATE/TIME OF FILE CREATION" - creates it if necessary */ public TS getDATETIMEOFFILECREATION() { TS retVal = this.getTypedField(7, 0); return retVal; }
/** * Returns * FHS-9: "FILE NAME/ID" - creates it if necessary */ public ST getFILENAMEID() { ST retVal = this.getTypedField(9, 0); return retVal; }
/** * Returns * FHS-10: "FILE HEADER COMMENT" - creates it if necessary */ public ST getFhs10_FILEHEADERCOMMENT() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns * FHS-1: "FILE FIELD SEPARATOR" - creates it if necessary */ public ST getFhs1_FILEFIELDSEPARATOR() { ST retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * FHS-4: "FILE SENDING FACILITY" - creates it if necessary */ public ST getFILESENDINGFACILITY() { ST retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns * FHS-9: "FILE NAME/ID" - creates it if necessary */ public ST getFhs9_FILENAMEID() { ST retVal = this.getTypedField(9, 0); return retVal; }
/** * Returns * FHS-10: "FILE HEADER COMMENT" - creates it if necessary */ public ST getFILEHEADERCOMMENT() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns * FHS-11: "FILE CONTROL ID" - creates it if necessary */ public ST getFhs11_FILECONTROLID() { ST retVal = this.getTypedField(11, 0); return retVal; }