/** * Returns a count of the current number of repetitions of R/U Which Date/Time Qualifier (URS-6). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRUWhichDateTimeQualifierReps() { return this.getReps(6); }
/** * Returns * URS-2: "R/U When Data Start Date/Time" - creates it if necessary */ public TS getRUWhenDataStartDateTime() { TS retVal = this.getTypedField(2, 0); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(ST.class, true, 0, 20, new Object[]{ getMessage() }, "R/U Where Subject Definition"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "R/U When Data Start Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "R/U When Data End Date/Time"); this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "R/U What User Qualifier"); this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "R/U Other Results Subject Definition"); this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(156) }, "R/U Which Date/Time Qualifier"); this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(157) }, "R/U Which Date/Time Status Qualifier"); this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(158) }, "R/U Date/Time Selection Qualifier"); this.add(TQ.class, false, 1, 60, new Object[]{ getMessage() }, "R/U Quantity/Timing Qualifier"); } catch(HL7Exception e) { log.error("Unexpected error creating URS - this is probably a bug in the source code generator.", e); } }
/** * Creates a new URS segment */ public URS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new TS(getMessage()); case 2: return new TS(getMessage()); case 3: return new ST(getMessage()); case 4: return new ST(getMessage()); case 5: return new ID(getMessage(), new Integer( 156 )); case 6: return new ID(getMessage(), new Integer( 157 )); case 7: return new ID(getMessage(), new Integer( 158 )); case 8: return new TQ(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ST.class, true, 0, 20, new Object[]{ getMessage() }, "R/U Where Subject Definition"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "R/U When Data Start Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "R/U When Data End Date/Time"); this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "R/U What User Qualifier"); this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "R/U Other Results Subject Definition"); this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(156) }, "R/U Which Date/Time Qualifier"); this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(157) }, "R/U Which Date/Time Status Qualifier"); this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(158) }, "R/U Date/Time Selection Qualifier"); this.add(TQ.class, false, 1, 60, new Object[]{ getMessage() }, "R/U Quantity/Timing Qualifier"); } catch(HL7Exception e) { log.error("Unexpected error creating URS - this is probably a bug in the source code generator.", e); } }
/** * Creates a new URS segment */ public URS(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new TS(getMessage()); case 2: return new TS(getMessage()); case 3: return new ST(getMessage()); case 4: return new ST(getMessage()); case 5: return new ID(getMessage(), new Integer( 156 )); case 6: return new ID(getMessage(), new Integer( 157 )); case 7: return new ID(getMessage(), new Integer( 158 )); case 8: return new TQ(getMessage()); default: return null; } }
/** * Returns * URS-2: "R/U When Data Start Date/Time" - creates it if necessary */ public TS getUrs2_RUWhenDataStartDateTime() { TS retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of R/U Where Subject Definition (URS-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRUWhereSubjectDefinitionReps() { return this.getReps(1); }
/** * Returns * URS-3: "R/U When Data End Date/Time" - creates it if necessary */ public TS getUrs3_RUWhenDataEndDateTime() { TS retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns a count of the current number of repetitions of R/U Where Subject Definition (URS-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getUrs1_RUWhereSubjectDefinitionReps() { return this.getReps(1); }
/** * Returns * URS-2: "R/U When Data Start Date/Time" - creates it if necessary */ public TS getRUWhenDataStartDateTime() { TS retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of R/U Which Date/Time Qualifier (URS-6). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getUrs6_RUWhichDateTimeQualifierReps() { return this.getReps(6); }
/** * Returns a specific repetition of * URS-5: "R/U Other Results Subject Definition" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ST getUrs5_RUOtherResultsSubjectDefinition(int rep) { ST retVal = this.getTypedField(5, rep); return retVal; }
/** * Returns a count of the current number of repetitions of R/U Which Date/Time Status Qualifier (URS-7). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getUrs7_RUWhichDateTimeStatusQualifierReps() { return this.getReps(7); }
/** * Returns all repetitions of R/U Which Date/Time Status Qualifier (URS-7). */ public ID[] getUrs7_RUWhichDateTimeStatusQualifier() { ID[] retVal = this.getTypedField(7, new ID[0]); return retVal; }
/** * Returns a count of the current number of repetitions of R/U Date/Time Selection Qualifier (URS-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRUDateTimeSelectionQualifierReps() { return this.getReps(8); }
/** * Returns a specific repetition of * URS-8: "R/U Date/Time Selection Qualifier" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ID getUrs8_RUDateTimeSelectionQualifier(int rep) { ID retVal = this.getTypedField(8, rep); return retVal; }
/** * Returns a count of the current number of repetitions of R/U Other Results Subject Definition (URS-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRUOtherResultsSubjectDefinitionReps() { return this.getReps(5); }