Java Code Examples for ims.assessment.vo.PatientAssessmentQuestionVo.getAssessmentQuestion()

The following are Jave code examples for showing how to use getAssessmentQuestion() of the ims.assessment.vo.PatientAssessmentQuestionVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void setPocFlag(PatientAssessmentGroupVoCollection currentAnswer, UserAssessmentInstHelper helper)
{
	// Add the records checked
	for (int i = 0; i < currentAnswer.size(); i++)
	{
		PatientAssessmentGroupVo voPatAssessGroup = currentAnswer.get(i);
		for (int j = 0; j < voPatAssessGroup.getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo voPatAssessmQuestion = voPatAssessGroup.getAssessmentAnswers().get(j);
			AssessmentQuestionVo voAssessmQuestion = voPatAssessmQuestion.getAssessmentQuestion();
			//Do not modify the POC if the questions has no Answers 
			boolean isPocSelected = isPocSelected(helper, voAssessmQuestion) && hasAnswers(voPatAssessmQuestion);
			voPatAssessmQuestion.setIsPoc(new Boolean(isPocSelected));
		}
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;

	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 3
Project: AvoinApotti   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
@SuppressWarnings("unchecked")
private ArrayList validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList errors)
{
	if(errors == null)
		errors = new ArrayList();	
	if(assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;
	
	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();
	
	validateAllAnswers(errors, question, patientAnswers, isMandatory);			
	
	return errors;
}
 
Example 4
Project: AvoinApotti   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;
	
	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private void setPocFlag(PatientAssessmentGroupVoCollection currentAnswer, UserAssessmentInstHelper helper)
{
	// Add the records checked
	for (int i = 0; i < currentAnswer.size(); i++)
	{
		PatientAssessmentGroupVo voPatAssessGroup = currentAnswer.get(i);
		for (int j = 0; j < voPatAssessGroup.getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo voPatAssessmQuestion = voPatAssessGroup.getAssessmentAnswers().get(j);
			AssessmentQuestionVo voAssessmQuestion = voPatAssessmQuestion.getAssessmentQuestion();
			//Do not modify the POC if the questions has no Answers 
			boolean isPocSelected = isPocSelected(helper, voAssessmQuestion) && hasAnswers(voPatAssessmQuestion);
			voPatAssessmQuestion.setIsPoc(new Boolean(isPocSelected));
		}
	}
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;

	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 7
Project: openMAXIMS   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
@SuppressWarnings("unchecked")
private ArrayList validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList errors)
{
	if(errors == null)
		errors = new ArrayList();	
	if(assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;
	
	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();
	
	validateAllAnswers(errors, question, patientAnswers, isMandatory);			
	
	return errors;
}
 
Example 8
Project: openMAXIMS   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;
	
	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private void setPocFlag(PatientAssessmentGroupVoCollection currentAnswer, UserAssessmentInstHelper helper)
{
	// Add the records checked
	for (int i = 0; i < currentAnswer.size(); i++)
	{
		PatientAssessmentGroupVo voPatAssessGroup = currentAnswer.get(i);
		for (int j = 0; j < voPatAssessGroup.getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo voPatAssessmQuestion = voPatAssessGroup.getAssessmentAnswers().get(j);
			AssessmentQuestionVo voAssessmQuestion = voPatAssessmQuestion.getAssessmentQuestion();
			//Do not modify the POC if the questions has no Answers 
			boolean isPocSelected = isPocSelected(helper, voAssessmQuestion) && hasAnswers(voPatAssessmQuestion);
			voPatAssessmQuestion.setIsPoc(new Boolean(isPocSelected));
		}
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;

	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 11
Project: openMAXIMS   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
@SuppressWarnings("unchecked")
private ArrayList validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList errors)
{
	if(errors == null)
		errors = new ArrayList();	
	if(assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;
	
	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();
	
	validateAllAnswers(errors, question, patientAnswers, isMandatory);			
	
	return errors;
}
 
Example 12
Project: openMAXIMS   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;
	
	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 13
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
private void setPocFlag(PatientAssessmentGroupVoCollection currentAnswer, UserAssessmentInstHelper helper)
{
	// Add the records checked
	for (int i = 0; i < currentAnswer.size(); i++)
	{
		PatientAssessmentGroupVo voPatAssessGroup = currentAnswer.get(i);
		for (int j = 0; j < voPatAssessGroup.getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo voPatAssessmQuestion = voPatAssessGroup.getAssessmentAnswers().get(j);
			AssessmentQuestionVo voAssessmQuestion = voPatAssessmQuestion.getAssessmentQuestion();
			//Do not modify the POC if the questions has no Answers 
			boolean isPocSelected = isPocSelected(helper, voAssessmQuestion) && hasAnswers(voPatAssessmQuestion);
			voPatAssessmQuestion.setIsPoc(new Boolean(isPocSelected));
		}
	}
}
 
Example 14
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;

	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 15
Project: openmaxims-linux   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
@SuppressWarnings("unchecked")
private ArrayList validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList errors)
{
	if(errors == null)
		errors = new ArrayList();	
	if(assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;
	
	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();
	
	validateAllAnswers(errors, question, patientAnswers, isMandatory);			
	
	return errors;
}
 
Example 16
Project: openmaxims-linux   File: UserAssessmentInstHelper.java   Source Code and License Vote up 6 votes
private PatientAssessmentQuestionVo findAnswer(PatientAssessmentGroupVoCollection groupVoColl, AssessmentQuestionVo question)
{
	if (groupVoColl == null || question == null)
		return null;
	
	for (int i = 0; i < groupVoColl.size(); i++)
	{
		for (int j = 0; j < groupVoColl.get(i).getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo answer = groupVoColl.get(i).getAssessmentAnswers().get(j);
			AssessmentQuestionVo assessmentQuestion = answer.getAssessmentQuestion();
			if (assessmentQuestion != null && assessmentQuestion.equals(question))
				return answer;
		}

	}
	return null;
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private ArrayList<String> validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList<String> errors)
{
	if (errors == null)
		errors = new ArrayList<String>();
	if (assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;

	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();

	validateAllAnswers(errors, question, patientAnswers, isMandatory);

	return errors;
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private ArrayList<String> validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList<String> errors)
{
	if (errors == null)
		errors = new ArrayList<String>();
	if (assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;

	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();

	validateAllAnswers(errors, question, patientAnswers, isMandatory);

	return errors;
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private ArrayList<String> validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList<String> errors)
{
	if (errors == null)
		errors = new ArrayList<String>();
	if (assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;

	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();

	validateAllAnswers(errors, question, patientAnswers, isMandatory);

	return errors;
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private ArrayList<String> validateAnswer(PatientAssessmentQuestionVo assessmentQuestion, ArrayList<String> errors)
{
	if (errors == null)
		errors = new ArrayList<String>();
	if (assessmentQuestion == null || assessmentQuestion.getAssessmentQuestion() == null || assessmentQuestion.getPatientAnswers() == null)
		return errors;

	QuestionInformationVo question = assessmentQuestion.getAssessmentQuestion().getQuestion();
	PatientAssessmentAnswerVoCollection patientAnswers = assessmentQuestion.getPatientAnswers();
	Boolean isMandatory = assessmentQuestion.getIsMandatory();

	validateAllAnswers(errors, question, patientAnswers, isMandatory);

	return errors;
}
 
Example 21
Project: AvoinApotti   File: UserAssessmentInstHelper.java   Source Code and License Vote up 4 votes
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;
}
 
Example 22
Project: openMAXIMS   File: UserAssessmentInstHelper.java   Source Code and License Vote up 4 votes
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;
}
 
Example 23
Project: openMAXIMS   File: UserAssessmentInstHelper.java   Source Code and License Vote up 4 votes
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;
}
 
Example 24
Project: openmaxims-linux   File: UserAssessmentInstHelper.java   Source Code and License Vote up 4 votes
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;
}