本文整理汇总了Java中ims.assessment.vo.PatientAssessmentQuestionVo.getAssessmentQuestionIsNotNull方法的典型用法代码示例。如果您正苦于以下问题:Java PatientAssessmentQuestionVo.getAssessmentQuestionIsNotNull方法的具体用法?Java PatientAssessmentQuestionVo.getAssessmentQuestionIsNotNull怎么用?Java PatientAssessmentQuestionVo.getAssessmentQuestionIsNotNull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.assessment.vo.PatientAssessmentQuestionVo
的用法示例。
在下文中一共展示了PatientAssessmentQuestionVo.getAssessmentQuestionIsNotNull方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findOrCreateAnswer
import ims.assessment.vo.PatientAssessmentQuestionVo; //导入方法依赖的package包/类
private PatientAssessmentQuestionVo findOrCreateAnswer(PatientAssessmentQuestionVoCollection assesmentQuestions, AssessmentQuestionVo question)
{
if (assesmentQuestions == null || question == null)
return new PatientAssessmentQuestionVo();
for (int x = 0; x < assesmentQuestions.size(); x++)
{
PatientAssessmentQuestionVo assessmentQuestion = assesmentQuestions.get(x);
if (assessmentQuestion != null && assessmentQuestion.getAssessmentQuestionIsNotNull() && assessmentQuestion.getAssessmentQuestion().equals(question))
{
return assessmentQuestion;
}
}
return new PatientAssessmentQuestionVo();
}
示例2: findOrCreateAnswer
import ims.assessment.vo.PatientAssessmentQuestionVo; //导入方法依赖的package包/类
private PatientAssessmentQuestionVo findOrCreateAnswer(PatientAssessmentQuestionVoCollection assesmentQuestions, AssessmentQuestionVo question)
{
if(assesmentQuestions == null || question == null)
return new PatientAssessmentQuestionVo();
for(int x = 0; x < assesmentQuestions.size(); x++)
{
PatientAssessmentQuestionVo assessmentQuestion = assesmentQuestions.get(x);
if(assessmentQuestion != null
&& assessmentQuestion.getAssessmentQuestionIsNotNull()
&& assessmentQuestion.getAssessmentQuestion().equals(question))
{
return assessmentQuestion;
}
}
return new PatientAssessmentQuestionVo();
}
示例3: getNotApplicableQuestions
import ims.assessment.vo.PatientAssessmentQuestionVo; //导入方法依赖的package包/类
private String getNotApplicableQuestions()
{
PatientAssessmentVo voPatientAssessment = filterQuestions(form.getLocalContext().getPatientAssessmentVo(), NOT_APPLICABLE);
StringBuffer questions = new StringBuffer();
if (voPatientAssessment != null && voPatientAssessment.getAssessmentDataIsNotNull() && voPatientAssessment.getAssessmentData().getAnswerGroupsIsNotNull())
{
for (int i = 0; i < voPatientAssessment.getAssessmentData().getAnswerGroups().size(); i++)
{
PatientAssessmentGroupVo group = voPatientAssessment.getAssessmentData().getAnswerGroups().get(i);
for (int j = 0; j < group.getAssessmentAnswers().size(); j++)
{
PatientAssessmentQuestionVo voPatientAssessmentQuestion = group.getAssessmentAnswers().get(j);
if (voPatientAssessmentQuestion != null && voPatientAssessmentQuestion.getAssessmentQuestionIsNotNull() && voPatientAssessmentQuestion.getAssessmentQuestion().getQuestionIsNotNull())
{
questions.append(voPatientAssessmentQuestion.getAssessmentQuestion().getQuestion().getText());
questions.append("\n");
}
}
}
}
if(questions.length() > 0)
{
questions.insert(0, "The following questions are marked as Non Applicable:\n");
questions.append("Please confirm. \n");
return questions.toString();
}
return null;
}
示例4: getUrlText
import ims.assessment.vo.PatientAssessmentQuestionVo; //导入方法依赖的package包/类
private String getUrlText(PatientAssessmentQuestionVo voPatAssQuestion)
{
return voPatAssQuestion.getAssessmentQuestionIsNotNull()?voPatAssQuestion.getAssessmentQuestion().getURL():"";
}
示例5: calculateScores
import ims.assessment.vo.PatientAssessmentQuestionVo; //导入方法依赖的package包/类
private PatientAssessmentGroupVoCollection calculateScores(PatientAssessmentGroupVoCollection groups)
{
if(groups == null)
return null;
for(int x = 0; x < groups.size(); x++)
{
Float groupScore = new Float(0);
PatientAssessmentGroupVo group = groups.get(x);
if(group != null && group.getAssessmentAnswersIsNotNull())
{
for(int y = 0; y < group.getAssessmentAnswers().size(); y++)
{
PatientAssessmentQuestionVo assessmentQuestion = group.getAssessmentAnswers().get(y);
if(assessmentQuestion.getPatientAnswers() != null)
{
for(int i = 0; i < assessmentQuestion.getPatientAnswers().size(); i++)
{
PatientAssessmentAnswerVo answerDetail = assessmentQuestion.getPatientAnswers().get(i);
if(assessmentQuestion != null && assessmentQuestion.getAssessmentQuestionIsNotNull() && answerDetail.getAnswerDetailsIsNotNull())
{
AssessmentQuestionVo question = assessmentQuestion.getAssessmentQuestion();
if(question.getScoringAnswerTypeIsNotNull())
{
for(int z = 0; z < answerDetail.getAnswerDetails().size(); z++)
{
AnswerDetailsVo answerDetails = answerDetail.getAnswerDetails().get(z);
if(answerDetails != null && answerDetails.getAnswerTypeIsNotNull())
{
if(answerDetails.getAnswerType().equals(question.getScoringAnswerType()))
{
if(answerDetails.getPicklist() != null && answerDetails.getAnswerType().getOptionsIsNotNull())
{
for(int o = 0; o < answerDetails.getAnswerType().getOptions().size(); o++)
{
if(answerDetails.getPicklist().equals(answerDetails.getAnswerType().getOptions().get(o)))
{
if(answerDetails.getAnswerType().getOptions().get(o).getScoreIsNotNull())
{
groupScore += answerDetails.getAnswerType().getOptions().get(o).getScore();
break;
}
}
}
}
}
}
}
}
}
}
}
}
//WDEV-3916
group.setCurrentScore(new Float(groupScore));
groups.set(x, group);
}
}
return groups;
}