/** * Returns a count of the current number of repetitions of Chairman of Study (CM0-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getChairmanOfStudyReps() { return this.getReps(5); }
/** * Returns * CM0-1: "Set ID - CM0" - creates it if necessary */ public SI getCm01_SetIDCM0() { SI retVal = this.getTypedField(1, 0); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - CM0"); this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Sponsor Study ID"); this.add(EI.class, false, 3, 60, new Object[]{ getMessage() }, "Alternate Study ID"); this.add(ST.class, true, 1, 300, new Object[]{ getMessage() }, "Title of Study"); this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Chairman of Study"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Last IRB Approval Date"); this.add(NM.class, false, 1, 8, new Object[]{ getMessage() }, "Total Accrual to Date"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Last Accrual Date"); this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Contact for Study"); this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Contact's Tel. Number"); this.add(XAD.class, false, 0, 100, new Object[]{ getMessage() }, "Contact's Address"); } catch(HL7Exception e) { log.error("Unexpected error creating CM0 - this is probably a bug in the source code generator.", e); } }
/** * Creates a new CM0 segment */ public CM0(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 EI(getMessage()); case 2: return new EI(getMessage()); case 3: return new ST(getMessage()); case 4: return new XCN(getMessage()); case 5: return new DT(getMessage()); case 6: return new NM(getMessage()); case 7: return new DT(getMessage()); case 8: return new XCN(getMessage()); case 9: return new XTN(getMessage()); case 10: return new XAD(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - CM0"); this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Sponsor Study ID"); this.add(EI.class, false, 3, 60, new Object[]{ getMessage() }, "Alternate Study ID"); this.add(ST.class, true, 1, 300, new Object[]{ getMessage() }, "Title of Study"); this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Chairman of Study"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Last IRB Approval Date"); this.add(NM.class, false, 1, 8, new Object[]{ getMessage() }, "Total Accrual to Date"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Last Accrual Date"); this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Contact for Study"); this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Contact's Tel. Number"); this.add(XAD.class, false, 0, 100, new Object[]{ getMessage() }, "Contact's Address"); } catch(HL7Exception e) { log.error("Unexpected error creating CM0 - this is probably a bug in the source code generator.", e); } }
/** * Creates a new CM0 segment */ public CM0(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 EI(getMessage()); case 2: return new EI(getMessage()); case 3: return new ST(getMessage()); case 4: return new XCN(getMessage()); case 5: return new DT(getMessage()); case 6: return new NM(getMessage()); case 7: return new DT(getMessage()); case 8: return new XCN(getMessage()); case 9: return new XTN(getMessage()); case 10: return new XAD(getMessage()); default: return null; } }
/** * Returns * CM0-2: "Sponsor Study ID" - creates it if necessary */ public EI getSponsorStudyID() { EI retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact for Study (CM0-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactForStudyReps() { return this.getReps(9); }
/** * Returns a specific repetition of * CM0-3: "Alternate Study ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public EI getAlternateStudyID(int rep) { EI retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Alternate Study ID (CM0-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCm03_AlternateStudyIDReps() { return this.getReps(3); }
/** * Returns a specific repetition of * CM0-5: "Chairman of Study" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getChairmanOfStudy(int rep) { XCN retVal = this.getTypedField(5, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Contact for Study (CM0-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCm09_ContactForStudyReps() { return this.getReps(9); }
/** * Returns * CM0-6: "Last IRB Approval Date" - creates it if necessary */ public DT getCm06_LastIRBApprovalDate() { DT retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Chairman of Study (CM0-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getChairmanOfStudyReps() { return this.getReps(5); }
/** * Returns all repetitions of Contact for Study (CM0-9). */ public XCN[] getContactForStudy() { XCN[] retVal = this.getTypedField(9, new XCN[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Chairman of Study (CM0-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCm05_ChairmanOfStudyReps() { return this.getReps(5); }
/** * Returns a specific repetition of * CM0-9: "Contact for Study" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getContactForStudy(int rep) { XCN retVal = this.getTypedField(9, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Contact's Address (CM0-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactSAddressReps() { return this.getReps(11); }