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

The following are Jave code examples for showing how to use getIsPoc() 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.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private boolean setQuestionRowAnswer(DynamicGridRow groupRow, PatientAssessmentQuestionVo assessmentQuestion, PatientAssessmentGroupVo group)
{
	if (assessmentQuestion == null || assessmentQuestion.getPatientAnswers() == null)
		return false;

	DynamicGridRow initialQuestionRow = null;
	DynamicGridRow questionRow = findRow(groupRow, assessmentQuestion.getAssessmentQuestion());
	if (questionRow == null)
		return false;

	if (isDPP)
	{
		DynamicGridColumn pocColumn = this.grid.getColumns().getByIdentifier(POC_COLUMN);
		if (pocColumn != null)
		{
			DynamicGridCell pocCell = questionRow.getCells().get(pocColumn);
			if (pocCell != null)
			{
				Boolean pocChecked = assessmentQuestion != null ? assessmentQuestion.getIsPoc() : Boolean.FALSE;
				// Set readonly the cell when we have a saved POC value
				// against a Question
				if (pocChecked != null && pocChecked.booleanValue() && assessmentQuestion.getID_PatientAssessmentQuestionIsNotNull())
					pocCell.setReadOnly(true);
				pocCell.setValue(pocChecked);
			}
		}
	}

	for (int i = 0; i < assessmentQuestion.getPatientAnswers().size(); i++)
	{
		PatientAssessmentAnswerVo answerDetail = assessmentQuestion.getPatientAnswers().get(i);

		if (answerDetail != null)
		{
			if (i > 0)
			{
				if (initialQuestionRow == null)
					initialQuestionRow = questionRow;

				questionRow = duplicateQuestionRow(initialQuestionRow);
			}

			for (int x = 0; x < answerDetail.getAnswerDetails().size(); x++)
			{
				AnswerDetailsVo answer = answerDetail.getAnswerDetails().get(x);
				DynamicGridCell cell = findCell(questionRow, answer.getAnswerType());

				if (cell != null)
				{
					if (x == 0)
						cell.getRow().setValue(answerDetail);
					setCellAnswer(cell, answer);
				}
			}
		}
	}

	return true;
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private boolean setQuestionRowAnswer(DynamicGridRow groupRow, PatientAssessmentQuestionVo assessmentQuestion, PatientAssessmentGroupVo group)
{
	if (assessmentQuestion == null || assessmentQuestion.getPatientAnswers() == null)
		return false;

	DynamicGridRow initialQuestionRow = null;
	DynamicGridRow questionRow = findRow(groupRow, assessmentQuestion.getAssessmentQuestion());
	if (questionRow == null)
		return false;

	if (isDPP)
	{
		DynamicGridColumn pocColumn = this.grid.getColumns().getByIdentifier(POC_COLUMN);
		if (pocColumn != null)
		{
			DynamicGridCell pocCell = questionRow.getCells().get(pocColumn);
			if (pocCell != null)
			{
				Boolean pocChecked = assessmentQuestion != null ? assessmentQuestion.getIsPoc() : Boolean.FALSE;
				// Set readonly the cell when we have a saved POC value
				// against a Question
				if (pocChecked != null && pocChecked.booleanValue() && assessmentQuestion.getID_PatientAssessmentQuestionIsNotNull())
					pocCell.setReadOnly(true);
				pocCell.setValue(pocChecked);
			}
		}
	}

	for (int i = 0; i < assessmentQuestion.getPatientAnswers().size(); i++)
	{
		PatientAssessmentAnswerVo answerDetail = assessmentQuestion.getPatientAnswers().get(i);

		if (answerDetail != null)
		{
			if (i > 0)
			{
				if (initialQuestionRow == null)
					initialQuestionRow = questionRow;

				questionRow = duplicateQuestionRow(initialQuestionRow);
			}

			for (int x = 0; x < answerDetail.getAnswerDetails().size(); x++)
			{
				AnswerDetailsVo answer = answerDetail.getAnswerDetails().get(x);
				DynamicGridCell cell = findCell(questionRow, answer.getAnswerType());

				if (cell != null)
				{
					if (x == 0)
						cell.getRow().setValue(answerDetail);
					setCellAnswer(cell, answer);
				}
			}
		}
	}

	return true;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private boolean setQuestionRowAnswer(DynamicGridRow groupRow, PatientAssessmentQuestionVo assessmentQuestion, PatientAssessmentGroupVo group)
{
	if (assessmentQuestion == null || assessmentQuestion.getPatientAnswers() == null)
		return false;

	DynamicGridRow initialQuestionRow = null;
	DynamicGridRow questionRow = findRow(groupRow, assessmentQuestion.getAssessmentQuestion());
	if (questionRow == null)
		return false;

	if (isDPP)
	{
		DynamicGridColumn pocColumn = this.grid.getColumns().getByIdentifier(POC_COLUMN);
		if (pocColumn != null)
		{
			DynamicGridCell pocCell = questionRow.getCells().get(pocColumn);
			if (pocCell != null)
			{
				Boolean pocChecked = assessmentQuestion != null ? assessmentQuestion.getIsPoc() : Boolean.FALSE;
				// Set readonly the cell when we have a saved POC value
				// against a Question
				if (pocChecked != null && pocChecked.booleanValue() && assessmentQuestion.getID_PatientAssessmentQuestionIsNotNull())
					pocCell.setReadOnly(true);
				pocCell.setValue(pocChecked);
			}
		}
	}

	for (int i = 0; i < assessmentQuestion.getPatientAnswers().size(); i++)
	{
		PatientAssessmentAnswerVo answerDetail = assessmentQuestion.getPatientAnswers().get(i);

		if (answerDetail != null)
		{
			if (i > 0)
			{
				if (initialQuestionRow == null)
					initialQuestionRow = questionRow;

				questionRow = duplicateQuestionRow(initialQuestionRow);
			}

			for (int x = 0; x < answerDetail.getAnswerDetails().size(); x++)
			{
				AnswerDetailsVo answer = answerDetail.getAnswerDetails().get(x);
				DynamicGridCell cell = findCell(questionRow, answer.getAnswerType());

				if (cell != null)
				{
					if (x == 0)
						cell.getRow().setValue(answerDetail);
					setCellAnswer(cell, answer);
				}
			}
		}
	}

	return true;
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 4 votes
private boolean setQuestionRowAnswer(DynamicGridRow groupRow, PatientAssessmentQuestionVo assessmentQuestion, PatientAssessmentGroupVo group)
{
	if (assessmentQuestion == null || assessmentQuestion.getPatientAnswers() == null)
		return false;

	DynamicGridRow initialQuestionRow = null;
	DynamicGridRow questionRow = findRow(groupRow, assessmentQuestion.getAssessmentQuestion());
	if (questionRow == null)
		return false;

	if (isDPP)
	{
		DynamicGridColumn pocColumn = this.grid.getColumns().getByIdentifier(POC_COLUMN);
		if (pocColumn != null)
		{
			DynamicGridCell pocCell = questionRow.getCells().get(pocColumn);
			if (pocCell != null)
			{
				Boolean pocChecked = assessmentQuestion != null ? assessmentQuestion.getIsPoc() : Boolean.FALSE;
				// Set readonly the cell when we have a saved POC value
				// against a Question
				if (pocChecked != null && pocChecked.booleanValue() && assessmentQuestion.getID_PatientAssessmentQuestionIsNotNull())
					pocCell.setReadOnly(true);
				pocCell.setValue(pocChecked);
			}
		}
	}

	for (int i = 0; i < assessmentQuestion.getPatientAnswers().size(); i++)
	{
		PatientAssessmentAnswerVo answerDetail = assessmentQuestion.getPatientAnswers().get(i);

		if (answerDetail != null)
		{
			if (i > 0)
			{
				if (initialQuestionRow == null)
					initialQuestionRow = questionRow;

				questionRow = duplicateQuestionRow(initialQuestionRow);
			}

			for (int x = 0; x < answerDetail.getAnswerDetails().size(); x++)
			{
				AnswerDetailsVo answer = answerDetail.getAnswerDetails().get(x);
				DynamicGridCell cell = findCell(questionRow, answer.getAnswerType());

				if (cell != null)
				{
					if (x == 0)
						cell.getRow().setValue(answerDetail);
					setCellAnswer(cell, answer);
				}
			}
		}
	}

	return true;
}