private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - NTE"); this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(105) }, "Source of Comment"); this.add(FT.class, false, 0, 65536, new Object[]{ getMessage() }, "Comment"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Comment Type"); } catch(HL7Exception e) { log.error("Unexpected error creating NTE - this is probably a bug in the source code generator.", e); } }
/** * 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-4: "Comment Type" - creates it if necessary */ public CE getCommentType() { CE retVal = this.getTypedField(4, 0); return retVal; }
/** {@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 FT(getMessage()); case 3: return new CE(getMessage()); default: return null; } }
/** * Creates a new NTE segment */ public NTE(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
int totalNTEs = parent.getNTEReps(); for (int iNTE = 0; iNTE < totalNTEs; iNTE++) { for (FT obxComment : parent.getNTE(iNTE).getComment()) { if (comments.length() > 0) { comments.append(" ");
/** {@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 FT(getMessage()); case 3: return new CE(getMessage()); default: return null; } }
/** * Creates a new NTE segment */ public NTE(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
for (FT obxComment : parent.getNTE(i).getComment()) { if (comments.length() > 0) { comments.append(" ");
/** * Returns a specific repetition of * NTE-3: "Comment" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public FT getComment(int rep) { FT retVal = this.getTypedField(3, rep); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - NTE"); this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(105) }, "Source of Comment"); this.add(FT.class, false, 0, 65536, new Object[]{ getMessage() }, "Comment"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Comment Type"); } catch(HL7Exception e) { log.error("Unexpected error creating NTE - this is probably a bug in the source code generator.", e); } }
/** * 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 a specific repetition of * NTE-3: "Comment" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public FT getNte3_Comment(int rep) { FT 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 * 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); }
/** * Returns * NTE-1: "Set ID - NTE" - creates it if necessary */ public SI getSetIDNTE() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * NTE-2: "Source of Comment" - creates it if necessary */ public ID getSourceOfComment() { 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 FT getComment(int rep) { FT retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns all repetitions of Comment (NTE-3). */ public FT[] getNte3_Comment() { FT[] retVal = this.getTypedField(3, new FT[0]); return retVal; }