Java Code Examples for ims.ocrr.helper.ResultDisplayHelper

The following are top voted examples for showing how to use ims.ocrr.helper.ResultDisplayHelper. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayResultWhenInboundMessageCorrupted()
{
	form.pnlSpecOrExam().setVisible(true);
	form.htmDocument().setVisible(true);
	showResultStatusOptions(true);
	form.dyngrdResults().setVisible(false);
	
	if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		form.lnkViewPatientDetails().setVisible(true);
	else
		form.lnkViewPatientDetails().setVisible(false);
	
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	form.getLocalContext().sethtmlString("");
	form.htmDocument().setHTML("");
	updateButtonStateIfManualResult(true);
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onDyngrdResultsCellButtonClicked(DynamicGridCell cell) 
{
	if(isSTHKModeResultCheck())
	{
		if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_CHKD))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			close();
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_NEXT))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(true);
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_PREVIEW))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(false);
		}
	}
	
	updateControlsState();
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayResultWhenInboundMessageCorrupted()
{
	form.pnlSpecOrExam().setVisible(true);
	form.htmDocument().setVisible(true);
	showResultStatusOptions(true);
	form.dyngrdResults().setVisible(false);
	
	if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		form.lnkViewPatientDetails().setVisible(true);
	else
		form.lnkViewPatientDetails().setVisible(false);
	
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	form.getLocalContext().sethtmlString("");
	form.htmDocument().setHTML("");
	updateButtonStateIfManualResult(true);
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onDyngrdResultsCellButtonClicked(DynamicGridCell cell) 
{
	if(isSTHKModeResultCheck())
	{
		if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_CHKD))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			close();
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_NEXT))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(true);
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_PREVIEW))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(false);
		}
	}
	
	updateControlsState();
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayResultWhenInboundMessageCorrupted()
{
	form.pnlSpecOrExam().setVisible(true);
	form.htmDocument().setVisible(true);
	showResultStatusOptions(true);
	form.dyngrdResults().setVisible(false);
	
	if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		form.lnkViewPatientDetails().setVisible(true);
	else
		form.lnkViewPatientDetails().setVisible(false);
	
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	form.getLocalContext().sethtmlString("");
	form.htmDocument().setHTML("");
	updateButtonStateIfManualResult(true);
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onDyngrdResultsCellButtonClicked(DynamicGridCell cell) 
{
	if(isSTHKModeResultCheck())
	{
		if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_CHKD))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			close();
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_NEXT))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(true);
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_PREVIEW))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(false);
		}
	}
	
	updateControlsState();
}
 
Example 7
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayResultWhenInboundMessageCorrupted()
{
	form.pnlSpecOrExam().setVisible(true);
	form.htmDocument().setVisible(true);
	showResultStatusOptions(true);
	form.dyngrdResults().setVisible(false);
	
	if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		form.lnkViewPatientDetails().setVisible(true);
	else
		form.lnkViewPatientDetails().setVisible(false);
	
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	form.getLocalContext().sethtmlString("");
	form.htmDocument().setHTML("");
	updateButtonStateIfManualResult(true);
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onDyngrdResultsCellButtonClicked(DynamicGridCell cell) 
{
	if(isSTHKModeResultCheck())
	{
		if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_CHKD))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			close();
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_NEXT))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(true);
		}
		else if(cell.getIdentifier().equals(ResultDisplayHelper.BUTTON_PREVIEW))
		{
			form.getLocalContext().setPickValue(hasMarkResultAsCheckedRoleRight() ? ResultDisplayHelper.PICK_CHKD : ResultDisplayHelper.PICK_VIEWED);
			move(false);
		}
	}
	
	updateControlsState();
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * WDEV-13321
 * Function used to update the state of the controls on screen
 */
private void updateControlsState()
{
	Integer pickValue = form.getLocalContext().getPickValue();
	
	form.ccMedicReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
	form.lblAllocateforReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsSeenValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_SEEN);
	
	if (form.chkMarkAsSeen().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsCheckedValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_CHKD);
	
	if (form.chkMarkAsChecked().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkEnableExitValueChanged() throws PresentationLogicException {
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	setNavigationState();
	if(form.chkEnableExit().getValue())
	{
		form.imbClose().setEnabled(true);
		//WDEV-10904,wdev-11989
		if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
	}
	else 
	{
		form.imbClose().setEnabled(false);
		//WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}
	
	// WDEV-13321
	form.ccMedicReview().clear();
	
	form.chkMarkAsSeen().setValue(false);
	form.chkMarkAsChecked().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * WDEV-13321
 * Function used to update the state of the controls on screen
 */
private void updateControlsState()
{
	Integer pickValue = form.getLocalContext().getPickValue();
	
	form.ccMedicReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
	form.lblAllocateforReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsSeenValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_SEEN);
	
	if (form.chkMarkAsSeen().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsCheckedValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_CHKD);
	
	if (form.chkMarkAsChecked().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkEnableExitValueChanged() throws PresentationLogicException {
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	setNavigationState();
	if(form.chkEnableExit().getValue())
	{
		form.imbClose().setEnabled(true);
		//WDEV-10904,wdev-11989
		if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
	}
	else 
	{
		form.imbClose().setEnabled(false);
		//WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}
	
	// WDEV-13321
	form.ccMedicReview().clear();
	
	form.chkMarkAsSeen().setValue(false);
	form.chkMarkAsChecked().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * WDEV-13321
 * Function used to update the state of the controls on screen
 */
private void updateControlsState()
{
	Integer pickValue = form.getLocalContext().getPickValue();
	
	form.ccMedicReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
	form.lblAllocateforReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsSeenValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_SEEN);
	
	if (form.chkMarkAsSeen().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsCheckedValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_CHKD);
	
	if (form.chkMarkAsChecked().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkEnableExitValueChanged() throws PresentationLogicException {
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	setNavigationState();
	if(form.chkEnableExit().getValue())
	{
		form.imbClose().setEnabled(true);
		//WDEV-10904,wdev-11989
		if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
	}
	else 
	{
		form.imbClose().setEnabled(false);
		//WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}
	
	// WDEV-13321
	form.ccMedicReview().clear();
	
	form.chkMarkAsSeen().setValue(false);
	form.chkMarkAsChecked().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 21
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
	protected void onChkMarkForReviewValueChanged() throws PresentationLogicException {
		form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_QRY);
		if(form.chkMarkForReview().getValue())
		{
			form.imbClose().setEnabled(true);
			//WDEV-10904,wdev-11989
			if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
			{
				form.lnkViewPatientDetails().setVisible(true);
				form.lnkViewPatientDetails().setEnabled(true);
			}
			form.btnCumulResult();
			setNavigationState();
		}
		else 
		{
			form.imbClose().setEnabled(false);
			//WDEV-10904
			form.lnkViewPatientDetails().setVisible(false);
			form.lnkViewPatientDetails().setEnabled(false);
			disableNavigation();
			form.getLocalContext().setPickValue(null);

		}
		form.chkEnableExit().setValue(false);
		form.chkMarkAsSeen().setValue(false);
		form.chkMarkAsChecked().setValue(false);
		
		// WDEV-18052 - Do not default in HCP
		// WDEV-13321
		// Default to responsible HCP clinician
//		NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//		
//		// WDEV-14097
//		// Default to 'Responsible Clinician' only if MEDICAL
//		if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//		{
//			form.ccMedicReview().setValue(result.getResponsibleClinician());
//		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 22
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * WDEV-13321
 * Function used to update the state of the controls on screen
 */
private void updateControlsState()
{
	Integer pickValue = form.getLocalContext().getPickValue();
	
	form.ccMedicReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
	form.lblAllocateforReview().setVisible(ResultDisplayHelper.PICK_QRY.equals(pickValue));
}
 
Example 23
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsSeenValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_SEEN);
	
	if (form.chkMarkAsSeen().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 24
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkMarkAsCheckedValueChanged() throws PresentationLogicException
{
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_CHKD);
	
	if (form.chkMarkAsChecked().getValue())
	{
		form.imbClose().setEnabled(true);
		// WDEV-10904,wdev-11989
		if (ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
		setNavigationState();
	}
	else
	{
		form.imbClose().setEnabled(false);
		// WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}

	// WDEV-13321
	form.ccMedicReview().clear();

	form.chkEnableExit().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 25
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onChkEnableExitValueChanged() throws PresentationLogicException {
	form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_VIEWED);
	setNavigationState();
	if(form.chkEnableExit().getValue())
	{
		form.imbClose().setEnabled(true);
		//WDEV-10904,wdev-11989
		if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
		{
			form.lnkViewPatientDetails().setVisible(true);
			form.lnkViewPatientDetails().setEnabled(true);
		}
	}
	else 
	{
		form.imbClose().setEnabled(false);
		//WDEV-10904
		form.lnkViewPatientDetails().setVisible(false);
		form.lnkViewPatientDetails().setEnabled(false);
		disableNavigation();
	}
	
	// WDEV-13321
	form.ccMedicReview().clear();
	
	form.chkMarkAsSeen().setValue(false);
	form.chkMarkAsChecked().setValue(false);
	form.chkMarkForReview().setValue(false);
	updateControlsState();
}
 
Example 26
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private boolean updateRecord()
{
	try
	{
		HcpRefVo hcp = (HcpRefVo) form.ccMedicReview().getValue();

		Integer pickValue = form.getLocalContext().getPickValue();
		if (pickValue == null)
		{
			engine.showMessage("No value has been chosen from the pick list at the bottom of the report.");
			return false;
		}

		if (pickValue.equals(ResultDisplayHelper.PICK_VIEWED))
		{
			domain.resetAllocatedReviewHCP(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
			return true;
		}

		OrderInvStatus status = null;
		if (pickValue.equals(ResultDisplayHelper.PICK_CHKD))
		{
			status = OrderInvStatus.CHECKED;
		}
		else if (pickValue.equals(ResultDisplayHelper.PICK_SEEN))
		{
			status = OrderInvStatus.SEEN;
		}
		else if (pickValue.equals(ResultDisplayHelper.PICK_QRY))
		{
			status = OrderInvStatus.REVIEW;

			// WDEV-13321
			if (hcp == null)
			{
				engine.showMessage("Allocate for review medic is mandatory.");
				return false;
			}
		}
		

		if (form.getGlobalContext().OCRR.getCurrentPathRadResult().getCategoryIsNotNull() && form.getGlobalContext().OCRR.getCurrentPathRadResult().getCategory().equals(Category.PATHOLOGY))
		{
			form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(domain.updatePathologyResultStatus(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation(), status, hcp)); // wdev-11555, WDEV-13321
		}
		else
		{
			// -wdev-11555
			OrderInvestigationVo temp = domain.updateRadResultStatus(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation(), status, hcp);	// WDEV-13321
			if (temp != null)
				form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(temp);
			// wdev-11555
		}
	}
	catch (StaleObjectException e)
	{
		// The updated Order Investigation will be returned within the StaleObjectException
		// We need to update the global context with the new value so that future status updates will work
		DomainObject obj = e.getStaleObject();
		form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(new OrderInvestigationRefVo(obj.getId(), obj.getVersion()));
		engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
		open();
		return false;
	}
	form.getGlobalContext().OCRR.setLastUpdatedPathRadResult(form.getGlobalContext().OCRR.getCurrentPathRadResult());
	return true;
}
 
Example 27
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onDyngrdResultsCellValueChanged(DynamicGridCell cell)
	{
		disableNavigation();
		
		form.imbClose().setEnabled(false);
		form.lnkViewPatientDetails().setVisible(false);
		//form.imbPrint().setEnabled(false);
		
		// WDEV-13321
		form.getLocalContext().setPickValue(null);
		
		DynamicGridCellItemCollection items = cell.getItems();
		for (int i = 0; i < items.size(); i++)
		{
			DynamicGridCellItem item = items.get(i);
			if (item.isChecked())
			{
				form.imbClose().setEnabled(true);
				//form.imbPrint().setEnabled(true);
				if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
					form.lnkViewPatientDetails().setVisible(true);
				else
					form.lnkViewPatientDetails().setVisible(false);
				form.getLocalContext().setPickValue((Integer)item.getIdentifier());
				setNavigationState();
			}
		}
		
		// WDEV-13321
		// Default to responsible HCP clinician
		if (ResultDisplayHelper.PICK_QRY.equals(form.getLocalContext().getPickValue()))
		{
			// WDEV-18052 - Do not default in Medic
//			NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//			
//			// WDEV-14097
//			// Default in only if the 'Responsible HCP' is a MEDIC
//			if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//			{
//				form.ccMedicReview().setValue(result.getResponsibleClinician());
//			}
		}
		else
		{
			form.ccMedicReview().clear();
		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 28
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
@Override
	protected void onChkMarkForReviewValueChanged() throws PresentationLogicException {
		form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_QRY);
		if(form.chkMarkForReview().getValue())
		{
			form.imbClose().setEnabled(true);
			//WDEV-10904,wdev-11989
			if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
			{
				form.lnkViewPatientDetails().setVisible(true);
				form.lnkViewPatientDetails().setEnabled(true);
			}
			form.btnCumulResult();
			setNavigationState();
		}
		else 
		{
			form.imbClose().setEnabled(false);
			//WDEV-10904
			form.lnkViewPatientDetails().setVisible(false);
			form.lnkViewPatientDetails().setEnabled(false);
			disableNavigation();
			form.getLocalContext().setPickValue(null);

		}
		form.chkEnableExit().setValue(false);
		form.chkMarkAsSeen().setValue(false);
		form.chkMarkAsChecked().setValue(false);
		
		// WDEV-18052 - Do not default in HCP
		// WDEV-13321
		// Default to responsible HCP clinician
//		NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//		
//		// WDEV-14097
//		// Default to 'Responsible Clinician' only if MEDICAL
//		if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//		{
//			form.ccMedicReview().setValue(result.getResponsibleClinician());
//		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 29
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onDyngrdResultsCellValueChanged(DynamicGridCell cell)
	{
		disableNavigation();
		
		form.imbClose().setEnabled(false);
		form.lnkViewPatientDetails().setVisible(false);
		//form.imbPrint().setEnabled(false);
		
		// WDEV-13321
		form.getLocalContext().setPickValue(null);
		
		DynamicGridCellItemCollection items = cell.getItems();
		for (int i = 0; i < items.size(); i++)
		{
			DynamicGridCellItem item = items.get(i);
			if (item.isChecked())
			{
				form.imbClose().setEnabled(true);
				//form.imbPrint().setEnabled(true);
				if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
					form.lnkViewPatientDetails().setVisible(true);
				else
					form.lnkViewPatientDetails().setVisible(false);
				form.getLocalContext().setPickValue((Integer)item.getIdentifier());
				setNavigationState();
			}
		}
		
		// WDEV-13321
		// Default to responsible HCP clinician
		if (ResultDisplayHelper.PICK_QRY.equals(form.getLocalContext().getPickValue()))
		{
			// WDEV-18052 - Do not default in Medic
//			NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//			
//			// WDEV-14097
//			// Default in only if the 'Responsible HCP' is a MEDIC
//			if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//			{
//				form.ccMedicReview().setValue(result.getResponsibleClinician());
//			}
		}
		else
		{
			form.ccMedicReview().clear();
		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 30
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
@Override
	protected void onChkMarkForReviewValueChanged() throws PresentationLogicException {
		form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_QRY);
		if(form.chkMarkForReview().getValue())
		{
			form.imbClose().setEnabled(true);
			//WDEV-10904,wdev-11989
			if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
			{
				form.lnkViewPatientDetails().setVisible(true);
				form.lnkViewPatientDetails().setEnabled(true);
			}
			form.btnCumulResult();
			setNavigationState();
		}
		else 
		{
			form.imbClose().setEnabled(false);
			//WDEV-10904
			form.lnkViewPatientDetails().setVisible(false);
			form.lnkViewPatientDetails().setEnabled(false);
			disableNavigation();
			form.getLocalContext().setPickValue(null);

		}
		form.chkEnableExit().setValue(false);
		form.chkMarkAsSeen().setValue(false);
		form.chkMarkAsChecked().setValue(false);
		
		// WDEV-18052 - Do not default in HCP
		// WDEV-13321
		// Default to responsible HCP clinician
//		NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//		
//		// WDEV-14097
//		// Default to 'Responsible Clinician' only if MEDICAL
//		if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//		{
//			form.ccMedicReview().setValue(result.getResponsibleClinician());
//		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 31
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private boolean updateRecord()
{
	try
	{
		HcpRefVo hcp = (HcpRefVo) form.ccMedicReview().getValue();

		Integer pickValue = form.getLocalContext().getPickValue();
		if (pickValue == null)
		{
			engine.showMessage("No value has been chosen from the pick list at the bottom of the report.");
			return false;
		}

		if (pickValue.equals(ResultDisplayHelper.PICK_VIEWED))
		{
			domain.resetAllocatedReviewHCP(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
			return true;
		}

		OrderInvStatus status = null;
		if (pickValue.equals(ResultDisplayHelper.PICK_CHKD))
		{
			status = OrderInvStatus.CHECKED;
		}
		else if (pickValue.equals(ResultDisplayHelper.PICK_SEEN))
		{
			status = OrderInvStatus.SEEN;
		}
		else if (pickValue.equals(ResultDisplayHelper.PICK_QRY))
		{
			status = OrderInvStatus.REVIEW;

			// WDEV-13321
			if (hcp == null)
			{
				engine.showMessage("Allocate for review medic is mandatory.");
				return false;
			}
		}
		

		if (form.getGlobalContext().OCRR.getCurrentPathRadResult().getCategoryIsNotNull() && form.getGlobalContext().OCRR.getCurrentPathRadResult().getCategory().equals(Category.PATHOLOGY))
		{
			form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(domain.updatePathologyResultStatus(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation(), status, hcp)); // wdev-11555, WDEV-13321
		}
		else
		{
			// -wdev-11555
			OrderInvestigationVo temp = domain.updateRadResultStatus(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation(), status, hcp);	// WDEV-13321
			if (temp != null)
				form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(temp);
			// wdev-11555
		}
	}
	catch (StaleObjectException e)
	{
		// The updated Order Investigation will be returned within the StaleObjectException
		// We need to update the global context with the new value so that future status updates will work
		DomainObject obj = e.getStaleObject();
		form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(new OrderInvestigationRefVo(obj.getId(), obj.getVersion()));
		engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
		open();
		return false;
	}
	form.getGlobalContext().OCRR.setLastUpdatedPathRadResult(form.getGlobalContext().OCRR.getCurrentPathRadResult());
	return true;
}
 
Example 32
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onDyngrdResultsCellValueChanged(DynamicGridCell cell)
	{
		disableNavigation();
		
		form.imbClose().setEnabled(false);
		form.lnkViewPatientDetails().setVisible(false);
		//form.imbPrint().setEnabled(false);
		
		// WDEV-13321
		form.getLocalContext().setPickValue(null);
		
		DynamicGridCellItemCollection items = cell.getItems();
		for (int i = 0; i < items.size(); i++)
		{
			DynamicGridCellItem item = items.get(i);
			if (item.isChecked())
			{
				form.imbClose().setEnabled(true);
				//form.imbPrint().setEnabled(true);
				if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
					form.lnkViewPatientDetails().setVisible(true);
				else
					form.lnkViewPatientDetails().setVisible(false);
				form.getLocalContext().setPickValue((Integer)item.getIdentifier());
				setNavigationState();
			}
		}
		
		// WDEV-13321
		// Default to responsible HCP clinician
		if (ResultDisplayHelper.PICK_QRY.equals(form.getLocalContext().getPickValue()))
		{
			// WDEV-18052 - Do not default in Medic
//			NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//			
//			// WDEV-14097
//			// Default in only if the 'Responsible HCP' is a MEDIC
//			if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//			{
//				form.ccMedicReview().setValue(result.getResponsibleClinician());
//			}
		}
		else
		{
			form.ccMedicReview().clear();
		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 33
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
@Override
	protected void onChkMarkForReviewValueChanged() throws PresentationLogicException {
		form.getLocalContext().setPickValue(ResultDisplayHelper.PICK_QRY);
		if(form.chkMarkForReview().getValue())
		{
			form.imbClose().setEnabled(true);
			//WDEV-10904,wdev-11989
			if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
			{
				form.lnkViewPatientDetails().setVisible(true);
				form.lnkViewPatientDetails().setEnabled(true);
			}
			form.btnCumulResult();
			setNavigationState();
		}
		else 
		{
			form.imbClose().setEnabled(false);
			//WDEV-10904
			form.lnkViewPatientDetails().setVisible(false);
			form.lnkViewPatientDetails().setEnabled(false);
			disableNavigation();
			form.getLocalContext().setPickValue(null);

		}
		form.chkEnableExit().setValue(false);
		form.chkMarkAsSeen().setValue(false);
		form.chkMarkAsChecked().setValue(false);
		
		// WDEV-18052 - Do not default in HCP
		// WDEV-13321
		// Default to responsible HCP clinician
//		NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//		
//		// WDEV-14097
//		// Default to 'Responsible Clinician' only if MEDICAL
//		if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//		{
//			form.ccMedicReview().setValue(result.getResponsibleClinician());
//		}
		
		// WDEV-13321
		updateControlsState();
	}
 
Example 34
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
private boolean updateRecord()
{
	try
	{
		HcpRefVo hcp = (HcpRefVo) form.ccMedicReview().getValue();

		Integer pickValue = form.getLocalContext().getPickValue();
		if (pickValue == null)
		{
			engine.showMessage("No value has been chosen from the pick list at the bottom of the report.");
			return false;
		}

		if (pickValue.equals(ResultDisplayHelper.PICK_VIEWED))
		{
			domain.resetAllocatedReviewHCP(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
			return true;
		}

		OrderInvStatus status = null;
		if (pickValue.equals(ResultDisplayHelper.PICK_CHKD))
		{
			status = OrderInvStatus.CHECKED;
		}
		else if (pickValue.equals(ResultDisplayHelper.PICK_SEEN))
		{
			status = OrderInvStatus.SEEN;
		}
		else if (pickValue.equals(ResultDisplayHelper.PICK_QRY))
		{
			status = OrderInvStatus.REVIEW;

			// WDEV-13321
			if (hcp == null)
			{
				engine.showMessage("Allocate for review medic is mandatory.");
				return false;
			}
		}
		

		if (form.getGlobalContext().OCRR.getCurrentPathRadResult().getCategoryIsNotNull() && form.getGlobalContext().OCRR.getCurrentPathRadResult().getCategory().equals(Category.PATHOLOGY))
		{
			form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(domain.updatePathologyResultStatus(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation(), status, hcp)); // wdev-11555, WDEV-13321
		}
		else
		{
			// -wdev-11555
			OrderInvestigationVo temp = domain.updateRadResultStatus(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation(), status, hcp);	// WDEV-13321
			if (temp != null)
				form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(temp);
			// wdev-11555
		}
	}
	catch (StaleObjectException e)
	{
		// The updated Order Investigation will be returned within the StaleObjectException
		// We need to update the global context with the new value so that future status updates will work
		DomainObject obj = e.getStaleObject();
		form.getGlobalContext().OCRR.getCurrentPathRadResult().setOrderInvestigation(new OrderInvestigationRefVo(obj.getId(), obj.getVersion()));
		engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
		open();
		return false;
	}
	form.getGlobalContext().OCRR.setLastUpdatedPathRadResult(form.getGlobalContext().OCRR.getCurrentPathRadResult());
	return true;
}
 
Example 35
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onDyngrdResultsCellValueChanged(DynamicGridCell cell)
	{
		disableNavigation();
		
		form.imbClose().setEnabled(false);
		form.lnkViewPatientDetails().setVisible(false);
		//form.imbPrint().setEnabled(false);
		
		// WDEV-13321
		form.getLocalContext().setPickValue(null);
		
		DynamicGridCellItemCollection items = cell.getItems();
		for (int i = 0; i < items.size(); i++)
		{
			DynamicGridCellItem item = items.get(i);
			if (item.isChecked())
			{
				form.imbClose().setEnabled(true);
				//form.imbPrint().setEnabled(true);
				if(ConfigFlag.UI.DISPLAY_RESULT_PATIENT_DETAILS_LINK.getValue())
					form.lnkViewPatientDetails().setVisible(true);
				else
					form.lnkViewPatientDetails().setVisible(false);
				form.getLocalContext().setPickValue((Integer)item.getIdentifier());
				setNavigationState();
			}
		}
		
		// WDEV-13321
		// Default to responsible HCP clinician
		if (ResultDisplayHelper.PICK_QRY.equals(form.getLocalContext().getPickValue()))
		{
			// WDEV-18052 - Do not default in Medic
//			NewResultOcsOrderVo result = domain.getNewResultOcsOrderVo(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
//			
//			// WDEV-14097
//			// Default in only if the 'Responsible HCP' is a MEDIC
//			if (result.getResponsibleClinicianIsNotNull() && HcpDisType.MEDICAL.equals(result.getResponsibleClinician().getHcpType()))
//			{
//				form.ccMedicReview().setValue(result.getResponsibleClinician());
//			}
		}
		else
		{
			form.ccMedicReview().clear();
		}
		
		// WDEV-13321
		updateControlsState();
	}