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); } }
/** * 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 getFillerOverrideCriteriaReps() { return this.getReps(5); }
/** * Returns * APR-4: "Slot Spacing Criteria" - creates it if necessary */ public NM getSlotSpacingCriteria() { NM retVal = this.getTypedField(4, 0); return retVal; }
/** * Creates a new APR segment */ public APR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@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; } }
/** * Creates a new APR segment */ public APR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@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-2: "Resource Selection Criteria" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SCV getApr2_ResourceSelectionCriteria(int rep) { SCV retVal = this.getTypedField(2, 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); }
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); } }
/** * Returns all repetitions of Resource Selection Criteria (APR-2). */ public SCV[] getResourceSelectionCriteria() { SCV[] retVal = this.getTypedField(2, new SCV[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Time Selection Criteria (APR-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTimeSelectionCriteriaReps() { return this.getReps(1); }
/** * Returns all repetitions of Resource Selection Criteria (APR-2). */ public SCV[] getApr2_ResourceSelectionCriteria() { SCV[] retVal = this.getTypedField(2, new SCV[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Time Selection Criteria (APR-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getApr1_TimeSelectionCriteriaReps() { return this.getReps(1); }
/** * Returns all repetitions of Location Selection Criteria (APR-3). */ public SCV[] getApr3_LocationSelectionCriteria() { 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 all repetitions of Resource Selection Criteria (APR-2). */ public SCV[] getResourceSelectionCriteria() { SCV[] retVal = this.getTypedField(2, 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 getApr2_ResourceSelectionCriteriaReps() { 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 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); }