/** * Returns * EVN-1: "Event Type Code" - creates it if necessary */ public ID getEventTypeCode() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new EVN segment */ public EVN(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(ID.class, true, 1, 3, new Object[]{ getMessage(), new Integer(3) }, "Event Type Code"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Recorded Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time Planned Event"); this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(62) }, "Event Reason Code"); this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Operator ID"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Occurred"); } catch(HL7Exception e) { log.error("Unexpected error creating EVN - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ID(getMessage(), new Integer( 3 )); case 1: return new TS(getMessage()); case 2: return new TS(getMessage()); case 3: return new ID(getMessage(), new Integer( 62 )); case 4: return new CN(getMessage()); case 5: return new TS(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ID.class, true, 1, 3, new Object[]{ getMessage(), new Integer(3) }, "Event Type Code"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Recorded Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time Planned Event"); this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(62) }, "Event Reason Code"); this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Operator ID"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Occurred"); } catch(HL7Exception e) { log.error("Unexpected error creating EVN - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ID(getMessage(), new Integer( 3 )); case 1: return new TS(getMessage()); case 2: return new TS(getMessage()); case 3: return new ID(getMessage(), new Integer( 62 )); case 4: return new CN(getMessage()); case 5: return new TS(getMessage()); default: return null; } }
/** * Returns * EVN-3: "Date/Time Planned Event" - creates it if necessary */ public TS getEvn3_DateTimePlannedEvent() { TS retVal = this.getTypedField(3, 0); return retVal; }
/** * Creates a new EVN segment */ public EVN(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * EVN-6: "Event Occurred" - creates it if necessary */ public TS getEventOccurred() { TS retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * EVN-4: "Event Reason Code" - creates it if necessary */ public ID getEvn4_EventReasonCode() { ID retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns * EVN-1: "Event Type Code" - creates it if necessary */ public ID getEvn1_EventTypeCode() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * EVN-2: "Recorded Date/Time" - creates it if necessary */ public TS getRecordedDateTime() { TS retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * EVN-6: "Event Occurred" - creates it if necessary */ public TS getEventOccurred() { TS retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * EVN-2: "Recorded Date/Time" - creates it if necessary */ public TS getEvn2_RecordedDateTime() { TS retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * EVN-6: "Event Occurred" - creates it if necessary */ public TS getEvn6_EventOccurred() { TS retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * EVN-1: "Event Type Code" - creates it if necessary */ public ID getEvn1_EventTypeCode() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * EVN-2: "Recorded Date/Time" - creates it if necessary */ public TS getRecordedDateTime() { TS retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * EVN-4: "Event Reason Code" - creates it if necessary */ public ID getEventReasonCode() { ID retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns * EVN-6: "Event Occurred" - creates it if necessary */ public TS getEvn6_EventOccurred() { TS retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns * EVN-3: "Date/Time Planned Event" - creates it if necessary */ public TS getDateTimePlannedEvent() { TS retVal = this.getTypedField(3, 0); return retVal; }