Java Code Examples for ims.assessment.helper.UserAssessmentInstHelper.getAnswers()

The following are Jave code examples for showing how to use getAnswers() of the ims.assessment.helper.UserAssessmentInstHelper 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: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentVo getNewPatientAssessment(PatientAssessmentVo voPatientAssessment) throws PresentationLogicException
{
	UserAssessmentVo voUserAssessment = form.getGlobalContext().Nursing.getUserAssessmentDPP();
	if (voUserAssessment != null)
	{
		voPatientAssessment = new PatientAssessmentVo();
		UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
		helper.populate(voUserAssessment);
		
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(voUserAssessment);
		PatientAssessmentGroupVoCollection voColl = helper.getAnswers(assessmentData.getAnswerGroups());
		voColl = setAsNotAnswerdNonStandardQuestions(voUserAssessment, voColl);
		assessmentData.setAnswerGroups(voColl);
		
		voPatientAssessment.setAssessmentData(assessmentData);
		form.getLocalContext().setPatientAssessmentVo(voPatientAssessment);
	}
	else
	{
		throw new CodingRuntimeException("Cannot Instantiate data with null Daily Patient Record.");
	}
	return voPatientAssessment;
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentVo getNewPatientAssessment(PatientAssessmentVo voPatientAssessment) throws PresentationLogicException
{
	UserAssessmentVo voUserAssessment = form.getGlobalContext().Nursing.getUserAssessmentDPP();
	if (voUserAssessment != null)
	{
		voPatientAssessment = new PatientAssessmentVo();
		UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
		helper.populate(voUserAssessment);
		
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(voUserAssessment);
		PatientAssessmentGroupVoCollection voColl = helper.getAnswers(assessmentData.getAnswerGroups());
		voColl = setAsNotAnswerdNonStandardQuestions(voUserAssessment, voColl);
		assessmentData.setAnswerGroups(voColl);
		
		voPatientAssessment.setAssessmentData(assessmentData);
		form.getLocalContext().setPatientAssessmentVo(voPatientAssessment);
	}
	else
	{
		throw new CodingRuntimeException("Cannot Instantiate data with null Daily Patient Record.");
	}
	return voPatientAssessment;
}
 
Example 3
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
private PatientAssessmentVo getNewPatientAssessment(PatientAssessmentVo voPatientAssessment) throws PresentationLogicException
{
	UserAssessmentVo voUserAssessment = form.getGlobalContext().Nursing.getUserAssessmentDPP();
	if (voUserAssessment != null)
	{
		voPatientAssessment = new PatientAssessmentVo();
		UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
		helper.populate(voUserAssessment);
		
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(voUserAssessment);
		PatientAssessmentGroupVoCollection voColl = helper.getAnswers(assessmentData.getAnswerGroups());
		voColl = setAsNotAnswerdNonStandardQuestions(voUserAssessment, voColl);
		assessmentData.setAnswerGroups(voColl);
		
		voPatientAssessment.setAssessmentData(assessmentData);
		form.getLocalContext().setPatientAssessmentVo(voPatientAssessment);
	}
	else
	{
		throw new CodingRuntimeException("Cannot Instantiate data with null Daily Patient Record.");
	}
	return voPatientAssessment;
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private boolean populateAssessmentDataFromScreen(PatientAssessmentVo vo, boolean createPOCRecords)
{
	if(vo == null)
		return false;
	
	PatientAssessmentVo initialAssessment = vo != null ? (PatientAssessmentVo) vo.clone() : null;
	if (vo.getAssessmentData() == null)
	{
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(form.getGlobalContext().Nursing.getUserAssessmentDPP());
		vo.setAssessmentData(assessmentData);
	}
 
	UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(vo.getAssessmentData().getAnswerGroups());

	/*DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());*/
	
	/*PatientAssessmentGroupVoCollection notAvailableAnswColl = getNotApplicableAndNotAnswered(vo.getAssessmentData().getAnswerGroups());
	removeNotAnswered(vo.getAssessmentData().getAnswerGroups());
	vo.getAssessmentData().setAnswerGroups(getAnswerGroups(currentAnswer, notAvailableAnswColl));*/
	
	DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	
	if (createPOCRecords)
	{
		return populatePlanOfCareVoCollection(currentAnswer, helper);
	}

	return true;
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void setAnswers()
{
	PatientAssessmentVo currentAssessment = form.getLocalContext().getCurrentAssessment();
	PatientAssessmentDataVo assessmentData = currentAssessment.getAssessmentData();
	UserAssessmentInstHelper helper = getHelper();
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(assessmentData.getAnswerGroups());
	assessmentData.setAnswerGroups(currentAnswer);
	
	currentAssessment.setStatus(form.cmbStatus().getValue());
	currentAssessment.setStatusReason(form.cmbReason().getValue());
	
	currentAssessment.setAuthoringInformation(form.customControlAuthoring().getValue());
	
	form.getLocalContext().setCurrentAssessment(currentAssessment);
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean populateAssessmentDataFromScreen(PatientAssessmentVo vo, boolean createPOCRecords)
{
	if(vo == null)
		return false;
	
	PatientAssessmentVo initialAssessment = vo != null ? (PatientAssessmentVo) vo.clone() : null;
	if (vo.getAssessmentData() == null)
	{
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(form.getGlobalContext().Nursing.getUserAssessmentDPP());
		vo.setAssessmentData(assessmentData);
	}
 
	UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(vo.getAssessmentData().getAnswerGroups());

	/*DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());*/
	
	/*PatientAssessmentGroupVoCollection notAvailableAnswColl = getNotApplicableAndNotAnswered(vo.getAssessmentData().getAnswerGroups());
	removeNotAnswered(vo.getAssessmentData().getAnswerGroups());
	vo.getAssessmentData().setAnswerGroups(getAnswerGroups(currentAnswer, notAvailableAnswColl));*/
	
	DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	
	if (createPOCRecords)
	{
		return populatePlanOfCareVoCollection(currentAnswer, helper);
	}

	return true;
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void setAnswers()
{
	PatientAssessmentVo currentAssessment = form.getLocalContext().getCurrentAssessment();
	PatientAssessmentDataVo assessmentData = currentAssessment.getAssessmentData();
	UserAssessmentInstHelper helper = getHelper();
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(assessmentData.getAnswerGroups());
	assessmentData.setAnswerGroups(currentAnswer);
	
	currentAssessment.setStatus(form.cmbStatus().getValue());
	currentAssessment.setStatusReason(form.cmbReason().getValue());
	
	currentAssessment.setAuthoringInformation(form.customControlAuthoring().getValue());
	
	form.getLocalContext().setCurrentAssessment(currentAssessment);
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean populateAssessmentDataFromScreen(PatientAssessmentVo vo, boolean createPOCRecords)
{
	if(vo == null)
		return false;
	
	PatientAssessmentVo initialAssessment = vo != null ? (PatientAssessmentVo) vo.clone() : null;
	if (vo.getAssessmentData() == null)
	{
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(form.getGlobalContext().Nursing.getUserAssessmentDPP());
		vo.setAssessmentData(assessmentData);
	}
 
	UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(vo.getAssessmentData().getAnswerGroups());

	/*DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());*/
	
	/*PatientAssessmentGroupVoCollection notAvailableAnswColl = getNotApplicableAndNotAnswered(vo.getAssessmentData().getAnswerGroups());
	removeNotAnswered(vo.getAssessmentData().getAnswerGroups());
	vo.getAssessmentData().setAnswerGroups(getAnswerGroups(currentAnswer, notAvailableAnswColl));*/
	
	DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	
	if (createPOCRecords)
	{
		return populatePlanOfCareVoCollection(currentAnswer, helper);
	}

	return true;
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void setAnswers()
{
	PatientAssessmentVo currentAssessment = form.getLocalContext().getCurrentAssessment();
	PatientAssessmentDataVo assessmentData = currentAssessment.getAssessmentData();
	UserAssessmentInstHelper helper = getHelper();
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(assessmentData.getAnswerGroups());
	assessmentData.setAnswerGroups(currentAnswer);
	
	currentAssessment.setStatus(form.cmbStatus().getValue());
	currentAssessment.setStatusReason(form.cmbReason().getValue());
	
	currentAssessment.setAuthoringInformation(form.customControlAuthoring().getValue());
	
	form.getLocalContext().setCurrentAssessment(currentAssessment);
}
 
Example 10
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private boolean populateAssessmentDataFromScreen(PatientAssessmentVo vo, boolean createPOCRecords)
{
	if(vo == null)
		return false;
	
	PatientAssessmentVo initialAssessment = vo != null ? (PatientAssessmentVo) vo.clone() : null;
	if (vo.getAssessmentData() == null)
	{
		PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo();
		assessmentData.setUserAssessment(form.getGlobalContext().Nursing.getUserAssessmentDPP());
		vo.setAssessmentData(assessmentData);
	}
 
	UserAssessmentInstHelper helper = getHelper(form.lyrTabs().tabCurrent().dynQuestions());
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(vo.getAssessmentData().getAnswerGroups());

	/*DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());*/
	
	/*PatientAssessmentGroupVoCollection notAvailableAnswColl = getNotApplicableAndNotAnswered(vo.getAssessmentData().getAnswerGroups());
	removeNotAnswered(vo.getAssessmentData().getAnswerGroups());
	vo.getAssessmentData().setAnswerGroups(getAnswerGroups(currentAnswer, notAvailableAnswColl));*/
	
	DynamicAssessmentHelper.populateHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	DynamicAssessmentHelper.populateConfirmingHCPDataForAnswers(initialAssessment, vo, (HcpLiteVo)domain.getHcpLiteUser(), new DateTime());
	
	if (createPOCRecords)
	{
		return populatePlanOfCareVoCollection(currentAnswer, helper);
	}

	return true;
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private void setAnswers()
{
	PatientAssessmentVo currentAssessment = form.getLocalContext().getCurrentAssessment();
	PatientAssessmentDataVo assessmentData = currentAssessment.getAssessmentData();
	UserAssessmentInstHelper helper = getHelper();
	PatientAssessmentGroupVoCollection currentAnswer = helper.getAnswers(assessmentData.getAnswerGroups());
	assessmentData.setAnswerGroups(currentAnswer);
	
	currentAssessment.setStatus(form.cmbStatus().getValue());
	currentAssessment.setStatusReason(form.cmbReason().getValue());
	
	currentAssessment.setAuthoringInformation(form.customControlAuthoring().getValue());
	
	form.getLocalContext().setCurrentAssessment(currentAssessment);
}