/** * Returns a count of the current number of repetitions of COMMENT (NTE-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCOMMENTReps() { return this.getReps(3); }
/** * Returns * NTE-2: "SOURCE OF COMMENT" - creates it if necessary */ public ID getSOURCEOFCOMMENT() { ID retVal = this.getTypedField(2, 0); return retVal; }
/** * Creates a new NTE segment */ public NTE(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "SET ID - NOTES AND COMMENTS"); this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(105) }, "SOURCE OF COMMENT"); this.add(TX.class, true, 0, 120, new Object[]{ getMessage() }, "COMMENT"); } catch(HL7Exception e) { log.error("Unexpected error creating NTE - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new ID(getMessage(), new Integer( 105 )); case 2: return new TX(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "SET ID - NOTES AND COMMENTS"); this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(105) }, "SOURCE OF COMMENT"); this.add(TX.class, true, 0, 120, new Object[]{ getMessage() }, "COMMENT"); } catch(HL7Exception e) { log.error("Unexpected error creating NTE - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new ID(getMessage(), new Integer( 105 )); case 2: return new TX(getMessage()); default: return null; } }
/** * Returns * NTE-2: "SOURCE OF COMMENT" - creates it if necessary */ public ID getSOURCEOFCOMMENT() { ID retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of COMMENT (NTE-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNte3_COMMENTReps() { return this.getReps(3); }
/** * Creates a new NTE segment */ public NTE(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns a specific repetition of * NTE-3: "COMMENT" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public TX getCOMMENT(int rep) { TX retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a count of the current number of repetitions of COMMENT (NTE-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCOMMENTReps() { return this.getReps(3); }
/** * Returns a specific repetition of * NTE-3: "COMMENT" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public TX getNte3_COMMENT(int rep) { TX retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a count of the current number of repetitions of COMMENT (NTE-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNte3_COMMENTReps() { return this.getReps(3); }
/** * Returns * NTE-1: "SET ID - NOTES AND COMMENTS" - creates it if necessary */ public SI getNte1_SETIDNOTESANDCOMMENTS() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * NTE-2: "SOURCE OF COMMENT" - creates it if necessary */ public ID getNte2_SOURCEOFCOMMENT() { ID retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * NTE-2: "SOURCE OF COMMENT" - creates it if necessary */ public ID getNte2_SOURCEOFCOMMENT() { ID retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a specific repetition of * NTE-3: "COMMENT" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public TX getCOMMENT(int rep) { TX retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a specific repetition of * NTE-3: "COMMENT" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public TX getNte3_COMMENT(int rep) { TX retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns * NTE-1: "SET ID - NOTES AND COMMENTS" - creates it if necessary */ public SI getSETIDNOTESANDCOMMENTS() { SI retVal = this.getTypedField(1, 0); return retVal; }