/** * Returns a count of the current number of repetitions of Study Randomized Arm (CSR-12). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStudyRandomizedArmReps() { return this.getReps(12); }
/** * Returns * CSR-2: "Alternate Study ID" - creates it if necessary */ public EI getAlternateStudyID() { EI retVal = this.getTypedField(2, 0); return retVal; }
/** * Creates a new CSR segment */ public CSR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Sponsor Study ID"); this.add(EI.class, false, 1, 60, new Object[]{ getMessage() }, "Alternate Study ID"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Institution Registering the Patient"); this.add(CX.class, true, 1, 30, new Object[]{ getMessage() }, "Sponsor Patient ID"); this.add(CX.class, false, 1, 30, new Object[]{ getMessage() }, "Alternate Patient ID"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of Patient Study Registration"); this.add(XCN.class, false, 1, 60, new Object[]{ getMessage() }, "Person Performing Study Registration"); this.add(XCN.class, true, 1, 60, new Object[]{ getMessage() }, "Study Authorizing Provider"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/time Patient Study Consent Signed"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Patient Study Eligibility Status"); this.add(TS.class, false, 3, 26, new Object[]{ getMessage() }, "Study Randomization Date/time"); this.add(CE.class, false, 3, 200, new Object[]{ getMessage() }, "Study Randomized Arm"); this.add(CE.class, false, 3, 200, new Object[]{ getMessage() }, "Stratum for Study Randomization"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Patient Evaluability Status"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/time Ended Study"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Reason Ended Study"); } catch(HL7Exception e) { log.error("Unexpected error creating CSR - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new EI(getMessage()); case 1: return new EI(getMessage()); case 2: return new CE(getMessage()); case 3: return new CX(getMessage()); case 4: return new CX(getMessage()); case 5: return new TS(getMessage()); case 6: return new XCN(getMessage()); case 7: return new XCN(getMessage()); case 8: return new TS(getMessage()); case 9: return new CE(getMessage()); case 10: return new TS(getMessage()); case 11: return new CE(getMessage()); case 12: return new CE(getMessage()); case 13: return new CE(getMessage()); case 14: return new TS(getMessage()); case 15: return new CE(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Sponsor Study ID"); this.add(EI.class, false, 1, 60, new Object[]{ getMessage() }, "Alternate Study ID"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Institution Registering the Patient"); this.add(CX.class, true, 1, 30, new Object[]{ getMessage() }, "Sponsor Patient ID"); this.add(CX.class, false, 1, 30, new Object[]{ getMessage() }, "Alternate Patient ID"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of Patient Study Registration"); this.add(XCN.class, false, 1, 60, new Object[]{ getMessage() }, "Person Performing Study Registration"); this.add(XCN.class, true, 1, 60, new Object[]{ getMessage() }, "Study Authorizing Provider"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/time Patient Study Consent Signed"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Patient Study Eligibility Status"); this.add(TS.class, false, 3, 26, new Object[]{ getMessage() }, "Study Randomization Date/time"); this.add(CE.class, false, 3, 200, new Object[]{ getMessage() }, "Study Randomized Arm"); this.add(CE.class, false, 3, 200, new Object[]{ getMessage() }, "Stratum for Study Randomization"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Patient Evaluability Status"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/time Ended Study"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Reason Ended Study"); } catch(HL7Exception e) { log.error("Unexpected error creating CSR - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new EI(getMessage()); case 1: return new EI(getMessage()); case 2: return new CE(getMessage()); case 3: return new CX(getMessage()); case 4: return new CX(getMessage()); case 5: return new TS(getMessage()); case 6: return new XCN(getMessage()); case 7: return new XCN(getMessage()); case 8: return new TS(getMessage()); case 9: return new CE(getMessage()); case 10: return new TS(getMessage()); case 11: return new CE(getMessage()); case 12: return new CE(getMessage()); case 13: return new CE(getMessage()); case 14: return new TS(getMessage()); case 15: return new CE(getMessage()); default: return null; } }
/** * Returns * CSR-6: "Date/Time of Patient Study Registration" - creates it if necessary */ public TS getDateTimeOfPatientStudyRegistration() { TS retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Study Randomized Arm (CSR-12). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCsr12_StudyRandomizedArmReps() { return this.getReps(12); }
/** * Creates a new CSR segment */ public CSR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * CSR-6: "Date/Time of Patient Study Registration" - creates it if necessary */ public TS getCsr6_DateTimeOfPatientStudyRegistration() { TS retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Study Randomized Arm (CSR-12). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStudyRandomizedArmReps() { return this.getReps(12); }
/** * Returns * CSR-14: "Patient Evaluability Status" - creates it if necessary */ public CE getPatientEvaluabilityStatus() { CE retVal = this.getTypedField(14, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Study Randomized Arm (CSR-12). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCsr12_StudyRandomizedArmReps() { return this.getReps(12); }
/** * Returns * CSR-2: "Alternate Study ID" - creates it if necessary */ public EI getCsr2_AlternateStudyID() { EI retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Study Randomization Date/time (CSR-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStudyRandomizationDateTimeReps() { return this.getReps(11); }
/** * Returns * CSR-4: "Sponsor Patient ID" - creates it if necessary */ public CX getSponsorPatientID() { CX retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Stratum for Study Randomization (CSR-13). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStratumForStudyRandomizationReps() { return this.getReps(13); }
/** * Returns * CSR-5: "Alternate Patient ID" - creates it if necessary */ public CX getAlternatePatientID() { CX retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Study Randomization Date/time (CSR-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCsr11_StudyRandomizationDateTimeReps() { return this.getReps(11); }