/** * Returns a count of the current number of repetitions of Filler Override Criteria (APR-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getApr5_FillerOverrideCriteriaReps() { return this.getReps(5); }
/** * Returns a specific repetition of * APR-1: "Time Selection Criteria" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SCV getTimeSelectionCriteria(int rep) { SCV retVal = this.getTypedField(1, rep); return retVal; }
/** * Creates a new APR segment */ public APR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Time Selection Criteria"); this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Resource Selection Criteria"); this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Location Selection Criteria"); this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Slot Spacing Criteria"); this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Filler Override Criteria"); } catch(HL7Exception e) { log.error("Unexpected error creating APR - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SCV(getMessage()); case 1: return new SCV(getMessage()); case 2: return new SCV(getMessage()); case 3: return new NM(getMessage()); case 4: return new SCV(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Time Selection Criteria"); this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Resource Selection Criteria"); this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Location Selection Criteria"); this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Slot Spacing Criteria"); this.add(SCV.class, false, 0, 80, new Object[]{ getMessage() }, "Filler Override Criteria"); } catch(HL7Exception e) { log.error("Unexpected error creating APR - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SCV(getMessage()); case 1: return new SCV(getMessage()); case 2: return new SCV(getMessage()); case 3: return new NM(getMessage()); case 4: return new SCV(getMessage()); default: return null; } }
/** * Returns a specific repetition of * APR-3: "Location Selection Criteria" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SCV getLocationSelectionCriteria(int rep) { SCV retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Resource Selection Criteria (APR-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getApr2_ResourceSelectionCriteriaReps() { return this.getReps(2); }
/** * Creates a new APR segment */ public APR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * APR-4: "Slot Spacing Criteria" - creates it if necessary */ public NM getApr4_SlotSpacingCriteria() { NM retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Location Selection Criteria (APR-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getLocationSelectionCriteriaReps() { return this.getReps(3); }
/** * Returns all repetitions of Filler Override Criteria (APR-5). */ public SCV[] getApr5_FillerOverrideCriteria() { SCV[] retVal = this.getTypedField(5, new SCV[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Resource Selection Criteria (APR-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getResourceSelectionCriteriaReps() { return this.getReps(2); }
/** * Returns a specific repetition of * APR-1: "Time Selection Criteria" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SCV getTimeSelectionCriteria(int rep) { SCV retVal = this.getTypedField(1, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Resource Selection Criteria (APR-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getApr2_ResourceSelectionCriteriaReps() { return this.getReps(2); }
/** * Returns all repetitions of Location Selection Criteria (APR-3). */ public SCV[] getLocationSelectionCriteria() { SCV[] retVal = this.getTypedField(3, new SCV[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Resource Selection Criteria (APR-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getResourceSelectionCriteriaReps() { return this.getReps(2); }
/** * Returns a specific repetition of * APR-5: "Filler Override Criteria" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SCV getApr5_FillerOverrideCriteria(int rep) { SCV retVal = this.getTypedField(5, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Filler Override Criteria (APR-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getApr5_FillerOverrideCriteriaReps() { return this.getReps(5); }