/** * 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 getAlternateStudyIDReps() { return this.getReps(3); }
/** * Returns * CM0-2: "Sponsor Study ID" - creates it if necessary */ public EI getSponsorStudyID() { EI retVal = this.getTypedField(2, 0); return retVal; }
/** * Creates a new CM0 segment */ public CM0(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "CM0 - Set ID"); this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Sponsor Study ID"); this.add(CE.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, 1, 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, 1, 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, 1, 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); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new EI(getMessage()); case 2: return new CE(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() }, "CM0 - Set ID"); this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Sponsor Study ID"); this.add(CE.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, 1, 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, 1, 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, 1, 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); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new EI(getMessage()); case 2: return new CE(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 a specific repetition of * CM0-3: "Alternate Study ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCm03_AlternateStudyID(int rep) { CE 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); }
/** * Creates a new CM0 segment */ public CM0(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * CM0-8: "Last Accrual Date" - creates it if necessary */ public DT getCm08_LastAccrualDate() { DT retVal = this.getTypedField(8, 0); 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 getAlternateStudyIDReps() { return this.getReps(3); }
/** * Returns * CM0-9: "Contact for Study" - creates it if necessary */ public XCN getCm09_ContactForStudy() { XCN retVal = this.getTypedField(9, 0); 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 * CM0-1: "CM0 - Set ID" - creates it if necessary */ public SI getCm01_CM0SetID() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns a specific repetition of * CM0-3: "Alternate Study ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCm03_AlternateStudyID(int rep) { CE retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns * CM0-4: "Title of Study" - creates it if necessary */ public ST getTitleOfStudy() { ST retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns * CM0-11: "Contact's Address" - creates it if necessary */ public XAD getCm011_ContactSAddress() { XAD retVal = this.getTypedField(11, 0); return retVal; }
/** * Returns * CM0-2: "Sponsor Study ID" - creates it if necessary */ public EI getCm02_SponsorStudyID() { EI retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a specific repetition of * CM0-3: "Alternate Study ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getAlternateStudyID(int rep) { CE retVal = this.getTypedField(3, rep); return retVal; }