コード例 #1
0
  /**
   * This method is used to get Clinical Trial information
   *
   * @return ClinicalTrial object containing Clinical Trail Details.
   */
  private ClinicalTrial getClinicalTrial() {

    ClinicalTrial clinicalTrial = ClinicalTrial.Factory.newInstance();
    String answer = null;
    String subAnswer = null;
    answer = getAnswer(IS_CLINICAL_TRIAL);
    if (answer != null) {
      if (!answer.equals(NOT_ANSWERED)) {
        if (S2SConstants.PROPOSAL_YNQ_ANSWER_Y.equals(answer)) {
          clinicalTrial.setIsClinicalTrial(YesNoDataType.Y_YES);
          subAnswer = getAnswer(PHASE_III_CLINICAL_TRIAL);
          if (subAnswer != null && !subAnswer.equals(NOT_ANSWERED)) {
            if (S2SConstants.PROPOSAL_YNQ_ANSWER_Y.equals(subAnswer)) {
              clinicalTrial.setIsPhaseIIIClinicalTrial(YesNoDataType.Y_YES);
            } else {
              clinicalTrial.setIsPhaseIIIClinicalTrial(YesNoDataType.N_NO);
            }
          } else {
            clinicalTrial.setIsPhaseIIIClinicalTrial(null);
          }
        } else {
          clinicalTrial.setIsClinicalTrial(YesNoDataType.N_NO);
        }
      }
    }
    return clinicalTrial;
  }
 /**
  * This method is used to get Clinical Trial information
  *
  * @return ClinicalTrial object containing Clinical Trail Details.
  */
 private ClinicalTrial getClinicalTrial() {
   ClinicalTrial clinicalTrial = ClinicalTrial.Factory.newInstance();
   ProposalYnq proposalYnq = getProposalYnQ(IS_CLINICAL_TRIAL);
   if (proposalYnq != null && proposalYnq.getAnswer() != null) {
     clinicalTrial.setIsClinicalTrial(getProposalYnQAnswer(proposalYnq));
   }
   proposalYnq = getProposalYnQ(PHASE_III_CLINICAL_TRIAL);
   if (proposalYnq != null && proposalYnq.getAnswer() != null) {
     clinicalTrial.setIsPhaseIIIClinicalTrial(getProposalYnQAnswer(proposalYnq));
   }
   return clinicalTrial;
 }