private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "CM2 - Set ID"); this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Scheduled Time Point"); this.add(ST.class, false, 1, 300, new Object[]{ getMessage() }, "Description of Time Point"); this.add(CE.class, true, 200, 60, new Object[]{ getMessage() }, "Events Scheduled This Time Point"); } catch(HL7Exception e) { log.error("Unexpected error creating CM2 - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCm24_EventsScheduledThisTimePointReps() { return this.getReps(4); }
/** * Returns * CM2-1: "CM2 - Set ID" - creates it if necessary */ public SI getCM2SetID() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new CM2 segment */ public CM2(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new CE(getMessage()); case 2: return new ST(getMessage()); case 3: return new CE(getMessage()); default: return null; } }
/** * Creates a new CM2 segment */ public CM2(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new CE(getMessage()); case 2: return new ST(getMessage()); case 3: return new CE(getMessage()); default: return null; } }
/** * Returns * CM2-2: "Scheduled Time Point" - creates it if necessary */ public CE getCm22_ScheduledTimePoint() { CE retVal = this.getTypedField(2, 0); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "CM2 - Set ID"); this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Scheduled Time Point"); this.add(ST.class, false, 1, 300, new Object[]{ getMessage() }, "Description of Time Point"); this.add(CE.class, true, 200, 60, new Object[]{ getMessage() }, "Events Scheduled This Time Point"); } catch(HL7Exception e) { log.error("Unexpected error creating CM2 - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEventsScheduledThisTimePointReps() { return this.getReps(4); }
/** * Returns all repetitions of Events Scheduled This Time Point (CM2-4). */ public CE[] getCm24_EventsScheduledThisTimePoint() { CE[] retVal = this.getTypedField(4, new CE[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCm24_EventsScheduledThisTimePointReps() { return this.getReps(4); }
/** * Returns a specific repetition of * CM2-4: "Events Scheduled This Time Point" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCm24_EventsScheduledThisTimePoint(int rep) { CE retVal = this.getTypedField(4, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Events Scheduled This Time Point (CM2-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEventsScheduledThisTimePointReps() { return this.getReps(4); }
/** * Returns * CM2-3: "Description of Time Point" - creates it if necessary */ public ST getCm23_DescriptionOfTimePoint() { ST retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * CM2-1: "CM2 - Set ID" - creates it if necessary */ public SI getCM2SetID() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns a specific repetition of * CM2-4: "Events Scheduled This Time Point" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getEventsScheduledThisTimePoint(int rep) { CE retVal = this.getTypedField(4, rep); return retVal; }
/** * Returns * CM2-2: "Scheduled Time Point" - creates it if necessary */ public CE getScheduledTimePoint() { CE retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns all repetitions of Events Scheduled This Time Point (CM2-4). */ public CE[] getEventsScheduledThisTimePoint() { CE[] retVal = this.getTypedField(4, new CE[0]); return retVal; }
/** * Returns * CM2-1: "CM2 - Set ID" - creates it if necessary */ public SI getCm21_CM2SetID() { SI retVal = this.getTypedField(1, 0); return retVal; }