Java Code Examples for ims.ocrr.vo.RoleDisciplineSecurityLevelLiteGCVo

The following are top voted examples for showing how to use ims.ocrr.vo.RoleDisciplineSecurityLevelLiteGCVo. 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 initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().RefMan.setCatsReferral(null);
	form.getGlobalContext().RefMan.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.lyrMain().tabCharting().chartingControl().initialize(engine.isDialog());
	
	populateDispipline();
	populateChartTypes();
	form.lyrMain().tabSearch().GroupFilterResults().setValue(GenForm.lyrMainLayer.tabSearchContainer.GroupFilterResultsEnumeration.rdoAll);
	form.lyrMain().tabSearch().GrpCriteria().setValue(GenForm.lyrMainLayer.tabSearchContainer.GrpCriteriaEnumeration.rdoBegins);
	updateTotal(0);

	form.lyrMain().tabCharting().dteChartingStartDate().setValue(new Date().addYear(-1));
	form.lyrMain().tabCharting().dteChartingEndDate().setValue(new Date());

	setupGraphingView();
	
	//security level WDEV-11036
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.btnPrint().setEnabled(false);
	
	updatePrintCumulativeButtonStatus();
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().RefMan.setCatsReferral(null);
	form.getGlobalContext().RefMan.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();

	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());

	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().RefMan.setCatsReferral(null);
	form.getGlobalContext().RefMan.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.lyrMain().tabCharting().chartingControl().initialize(engine.isDialog());
	
	populateDispipline();
	populateChartTypes();
	form.lyrMain().tabSearch().GroupFilterResults().setValue(GenForm.lyrMainLayer.tabSearchContainer.GroupFilterResultsEnumeration.rdoAll);
	form.lyrMain().tabSearch().GrpCriteria().setValue(GenForm.lyrMainLayer.tabSearchContainer.GrpCriteriaEnumeration.rdoBegins);
	form.lyrMain().tabSearch().GroupInpatientOutpatient().setValue(GroupInpatientOutpatientEnumeration.rdoIPOPAll);
	updateTotal(0);

	form.lyrMain().tabCharting().dteChartingStartDate().setValue(new Date().addYear(-1));
	form.lyrMain().tabCharting().dteChartingEndDate().setValue(new Date());

	setupGraphingView();
	
	//security level WDEV-11036
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.btnPrint().setEnabled(false);
	
	updatePrintCumulativeButtonStatus();
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().RefMan.setCatsReferral(null);
	form.getGlobalContext().RefMan.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();

	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());

	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().RefMan.setCatsReferral(null);
	form.getGlobalContext().RefMan.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.lyrMain().tabCharting().chartingControl().initialize(engine.isDialog());
	
	populateDispipline();
	populateChartTypes();
	form.lyrMain().tabSearch().GroupFilterResults().setValue(GenForm.lyrMainLayer.tabSearchContainer.GroupFilterResultsEnumeration.rdoAll);
	form.lyrMain().tabSearch().GrpCriteria().setValue(GenForm.lyrMainLayer.tabSearchContainer.GrpCriteriaEnumeration.rdoBegins);
	updateTotal(0);

	form.lyrMain().tabCharting().dteChartingStartDate().setValue(new Date().addYear(-1));
	form.lyrMain().tabCharting().dteChartingEndDate().setValue(new Date());

	setupGraphingView();
	
	//security level WDEV-11036
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.btnPrint().setEnabled(false);
	
	updatePrintCumulativeButtonStatus();
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().RefMan.setCatsReferral(null);
	form.getGlobalContext().RefMan.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();

	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());

	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 10
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().CareUk.setCatsReferral(null);
	form.getGlobalContext().CareUk.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.lyrMain().tabCharting().chartingControl().initialize(engine.isDialog());
	
	populateDispipline();
	populateChartTypes();
	form.lyrMain().tabSearch().GroupFilterResults().setValue(GenForm.lyrMainLayer.tabSearchContainer.GroupFilterResultsEnumeration.rdoAll);
	form.lyrMain().tabSearch().GrpCriteria().setValue(GenForm.lyrMainLayer.tabSearchContainer.GrpCriteriaEnumeration.rdoBegins);
	updateTotal(0);

	form.lyrMain().tabCharting().dteChartingStartDate().setValue(new Date().addYear(-1));
	form.lyrMain().tabCharting().dteChartingEndDate().setValue(new Date());

	setupGraphingView();
	
	//security level WDEV-11036
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.btnPrint().setEnabled(false);
	
	updatePrintCumulativeButtonStatus();
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize()
{
	form.getGlobalContext().Core.setPatientShort(null);
	form.getGlobalContext().CareUk.setCatsReferral(null);
	form.getGlobalContext().CareUk.setReferralContractTypeForPatient(null);//wdev-12682

	loadLocation();
	displayGridFooter();
	enablePrintButton();
	setPatientIdentifierColumnCaption();

	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());

	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	if(!engine.isDialog())
		form.getGlobalContext().OCRR.setMyOrderQuestions(null);
		
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.getGlobalContext().Core.setHideCancelButton(Boolean.TRUE);
	form.getContextMenus().getOCRRSelectAndOrderRESETItem().setVisible(true);
	form.lyrTemplates().tabSearch().GrpCriteria().setValue(GrpCriteriaEnumeration.rdoContains);
	resetOrder();
	switchToSearchView();
	form.lyrTemplates().tabSearch().btnPlaceOrder().setVisible(false);
	form.lyrTemplates().tabTemplate().btnTemplatePlaceOrder().setVisible(false);
	
	if(!ConfigFlag.UI.DISABLE_MULTI_SITE_CATS_FUNCTIONALITY.getValue())
	{
		if(form.getGlobalContext().RefMan.getCatsReferral()!=null){
			LocationLiteVoCollection voCollLocation =  domain.listLocationLiteForReferralContract(form.getGlobalContext().RefMan.getCatsReferral(),true);
			if(voCollLocation != null)
				form.getLocalContext().setContractLocations(voCollLocation.toRefVoCollection());
		}
	}	
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	if(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplateIsNotNull())
		form.getLocalContext().setPreviewedItem(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplate());
	else if(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull())
		form.getLocalContext().setPreviewedItem(domain.getOrderEntryTemplate(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID()));
	
	//security level WDEV-9966
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();

	// Security Level
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	doSearch();
}
 
Example 16
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());

	loadDiscipline();
	
	resetSearchControlsToDefault();

	setWatchDefaultButtonState();

	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());

	//WDEV-9946
	form.ccOrderingHCP().initialize(MosType.HCP);
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	if (form.getGlobalContext().OCRR.getRefManNewResultsSearchCriteriaIsNotNull())
	{
		displaySearchCriteria();
		enableAutoRefeshStart(true);
		search();
	}
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();
	
	form.Group1().setVisible(Group1Enumeration.rdoComplete, ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 18
Project: AvoinApotti   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
	OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));
	
	//enforce Security here
	OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
	for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
		{
			voOrdTemplate.getComponents().remove(compToRemove);
		}
	}
	
	return voOrdTemplate;
}
 
Example 19
Project: AvoinApotti   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ComponentSelectOrderVoCollection getChildComponentsForOrderSet(Integer orderSetID, RoleDisciplineSecurityLevelLiteGCVo voSecurity) 
{
	ComponentSelectOrderVoCollection components = OrderSetSelectOrderVoAssembler.create((OrderSet)getDomainFactory().getDomainObject(OrderSet.class, orderSetID.intValue())).getComponents();
	
	//enforce Security here
	ComponentSelectOrderVoCollection removableComponenets = new ComponentSelectOrderVoCollection();
	for(ComponentSelectOrderVo comp : components)
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(ComponentSelectOrderVo compToRemove : removableComponenets)
		{
			components.remove(compToRemove);
		}
	}
	
	return components;
}
 
Example 20
Project: AvoinApotti   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	if (role == null || role.getId() < 1)
		throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");
	
	List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());
	
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();
	
	//to flag we have hit db once already
	voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
	voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));
	
	return voRoleDisciplineSecurityLevels;
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	if(!engine.isDialog())
		form.getGlobalContext().OCRR.setMyOrderQuestions(null);
		
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.getGlobalContext().Core.setHideCancelButton(Boolean.TRUE);
	form.getContextMenus().getOCRRSelectAndOrderRESETItem().setVisible(true);
	form.lyrTemplates().tabSearch().GrpCriteria().setValue(GrpCriteriaEnumeration.rdoContains);
	resetOrder();
	switchToSearchView();
	form.lyrTemplates().tabSearch().btnPlaceOrder().setVisible(false);
	form.lyrTemplates().tabTemplate().btnTemplatePlaceOrder().setVisible(false);
	
	if(!ConfigFlag.UI.DISABLE_MULTI_SITE_CATS_FUNCTIONALITY.getValue())
	{
		if(form.getGlobalContext().RefMan.getCatsReferral()!=null){
			LocationLiteVoCollection voCollLocation =  domain.listLocationLiteForReferralContract(form.getGlobalContext().RefMan.getCatsReferral(),true);
			if(voCollLocation != null)
				form.getLocalContext().setContractLocations(voCollLocation.toRefVoCollection());
		}
	}	
}
 
Example 22
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	if(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplateIsNotNull())
		form.getLocalContext().setPreviewedItem(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplate());
	else if(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull())
		form.getLocalContext().setPreviewedItem(domain.getOrderEntryTemplate(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID()));
	
	//security level WDEV-9966
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 23
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();

	// Security Level
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	//WDEV-19389 - start
	if (!(form.getGlobalContext().Core.getPatientShortIsNotNull() && form.getGlobalContext().OCRR.getClinicalOrdersResultsSearchCriteriaIsNotNull() && form.getGlobalContext().OCRR.getClinicalOrdersResultsSearchCriteria().getPatientIsNotNull() && form.getGlobalContext().Core.getPatientShort().equals(form.getGlobalContext().OCRR.getClinicalOrdersResultsSearchCriteria().getPatient())))
		form.getGlobalContext().OCRR.setClinicalOrdersResultsSearchCriteria(null);
	
	if(form.getGlobalContext().OCRR.getClinicalOrdersResultsSearchCriteriaIsNotNull())
	{
		setSearchCriteria(form.getGlobalContext().OCRR.getClinicalOrdersResultsSearchCriteria());
		if(doSearch())
		{
			form.getGlobalContext().OCRR.setClinicalOrdersResultsSearchCriteria(getSearchCriteria());
		}
	}
	else
		doSearch();		
	//WDEV-19389 - end
}
 
Example 24
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	form.GroupInpatientOutpatient().setValue(GroupInpatientOutpatientEnumeration.rdoIPOPAll);
	loadCmbDepartment();
	updateTotal();
	
	form.Group1().setVisible(Group1Enumeration.rdoComplete, ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	//WDEV-19389 
	if(form.getGlobalContext().OCRR.getRadiologyOrdersResultsSearchCriteriaIsNotNull())
	{
		if(form.getGlobalContext().Core.getPatientShortIsNotNull() &&
	       form.getGlobalContext().Core.getPatientShort().equals(form.getGlobalContext().OCRR.getRadiologyOrdersResultsSearchCriteria().getPatient())	)
		{
			setSearchCriteria(form.getGlobalContext().OCRR.getRadiologyOrdersResultsSearchCriteria());
			if(doSearch())
			{
				form.getGlobalContext().OCRR.setRadiologyOrdersResultsSearchCriteria(getSearchCriteria());
			}
		}
		else
			form.getGlobalContext().OCRR.setRadiologyOrdersResultsSearchCriteria(null);
	}
	
	updateControlsState();			
}
 
Example 25
Project: openMAXIMS   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
	OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));
	
	//enforce Security here
	OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
	for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
		{
			voOrdTemplate.getComponents().remove(compToRemove);
		}
	}
	
	return voOrdTemplate;
}
 
Example 26
Project: openMAXIMS   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ComponentSelectOrderVoCollection getChildComponentsForOrderSet(Integer orderSetID, RoleDisciplineSecurityLevelLiteGCVo voSecurity) 
{
	ComponentSelectOrderVoCollection components = OrderSetSelectOrderVoAssembler.create((OrderSet)getDomainFactory().getDomainObject(OrderSet.class, orderSetID.intValue())).getComponents();
	
	//enforce Security here
	ComponentSelectOrderVoCollection removableComponenets = new ComponentSelectOrderVoCollection();
	for(ComponentSelectOrderVo comp : components)
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(ComponentSelectOrderVo compToRemove : removableComponenets)
		{
			components.remove(compToRemove);
		}
	}
	
	return components;
}
 
Example 27
Project: openMAXIMS   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	if (role == null || role.getId() < 1)
		throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");
	
	List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());
	
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();
	
	//to flag we have hit db once already
	voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
	voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));
	
	return voRoleDisciplineSecurityLevels;
}
 
Example 28
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	if(!engine.isDialog())
		form.getGlobalContext().OCRR.setMyOrderQuestions(null);
		
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.getGlobalContext().Core.setHideCancelButton(Boolean.TRUE);
	form.getContextMenus().getOCRRSelectAndOrderRESETItem().setVisible(true);
	form.lyrTemplates().tabSearch().GrpCriteria().setValue(GrpCriteriaEnumeration.rdoContains);
	resetOrder();
	switchToSearchView();
	form.lyrTemplates().tabSearch().btnPlaceOrder().setVisible(false);
	form.lyrTemplates().tabTemplate().btnTemplatePlaceOrder().setVisible(false);
	
	if(!ConfigFlag.UI.DISABLE_MULTI_SITE_CATS_FUNCTIONALITY.getValue())
	{
		if(form.getGlobalContext().RefMan.getCatsReferral()!=null){
			LocationLiteVoCollection voCollLocation =  domain.listLocationLiteForReferralContract(form.getGlobalContext().RefMan.getCatsReferral(),true);
			if(voCollLocation != null)
				form.getLocalContext().setContractLocations(voCollLocation.toRefVoCollection());
		}
	}	
}
 
Example 29
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	if(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplateIsNotNull())
		form.getLocalContext().setPreviewedItem(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplate());
	else if(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull())
		form.getLocalContext().setPreviewedItem(domain.getOrderEntryTemplate(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID()));
	
	//security level WDEV-9966
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 30
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();

	// Security Level
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	doSearch();
}
 
Example 31
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());

	loadDiscipline();
	
	resetSearchControlsToDefault();

	setWatchDefaultButtonState();

	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());

	//WDEV-9946
	form.ccOrderingHCP().initialize(MosType.HCP);
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	if (form.getGlobalContext().OCRR.getRefManNewResultsSearchCriteriaIsNotNull())
	{
		displaySearchCriteria();
		enableAutoRefeshStart(true);
		search();
	}
}
 
Example 32
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();
	
	form.Group1().setVisible(Group1Enumeration.rdoComplete, ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 33
Project: openMAXIMS   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
	OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));
	
	//enforce Security here
	OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
	for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
		{
			voOrdTemplate.getComponents().remove(compToRemove);
		}
	}
	
	return voOrdTemplate;
}
 
Example 34
Project: openMAXIMS   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ComponentSelectOrderVoCollection getChildComponentsForOrderSet(Integer orderSetID, RoleDisciplineSecurityLevelLiteGCVo voSecurity) 
{
	ComponentSelectOrderVoCollection components = OrderSetSelectOrderVoAssembler.create((OrderSet)getDomainFactory().getDomainObject(OrderSet.class, orderSetID.intValue())).getComponents();
	
	//enforce Security here
	ComponentSelectOrderVoCollection removableComponenets = new ComponentSelectOrderVoCollection();
	for(ComponentSelectOrderVo comp : components)
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(ComponentSelectOrderVo compToRemove : removableComponenets)
		{
			components.remove(compToRemove);
		}
	}
	
	return components;
}
 
Example 35
Project: openMAXIMS   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	if (role == null || role.getId() < 1)
		throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");
	
	List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());
	
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();
	
	//to flag we have hit db once already
	voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
	voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));
	
	return voRoleDisciplineSecurityLevels;
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	if(!engine.isDialog())
		form.getGlobalContext().OCRR.setMyOrderQuestions(null);
		
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	form.getGlobalContext().Core.setHideCancelButton(Boolean.TRUE);
	form.getContextMenus().getOCRRSelectAndOrderRESETItem().setVisible(true);
	form.lyrTemplates().tabSearch().GrpCriteria().setValue(GrpCriteriaEnumeration.rdoContains);
	resetOrder();
	switchToSearchView();
	form.lyrTemplates().tabSearch().btnPlaceOrder().setVisible(false);
	form.lyrTemplates().tabTemplate().btnTemplatePlaceOrder().setVisible(false);
	
	if(!ConfigFlag.UI.DISABLE_MULTI_SITE_CATS_FUNCTIONALITY.getValue())
	{
		if(form.getGlobalContext().CareUk.getCatsReferral()!=null){
			LocationLiteVoCollection voCollLocation =  domain.listLocationLiteForReferralContract(form.getGlobalContext().CareUk.getCatsReferral(),true);
			if(voCollLocation != null)
				form.getLocalContext().setContractLocations(voCollLocation.toRefVoCollection());
		}
	}	
}
 
Example 37
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	if(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplateIsNotNull())
		form.getLocalContext().setPreviewedItem(form.getGlobalContext().OCRR.getPreviewedOrderEntryTemplate());
	else if(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull())
		form.getLocalContext().setPreviewedItem(domain.getOrderEntryTemplate(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID()));
	
	//security level WDEV-9966
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 38
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();

	// Security Level
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	doSearch();
}
 
Example 39
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize() throws PresentationLogicException
{
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());

	loadDiscipline();
	
	resetSearchControlsToDefault();

	setWatchDefaultButtonState();

	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());

	//WDEV-9946
	form.ccOrderingHCP().initialize(MosType.HCP);
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	if (form.getGlobalContext().OCRR.getCareUkNewResultsSearchCriteriaIsNotNull())
	{
		displaySearchCriteria();
		enableAutoRefeshStart(true);
		search();
	}
}
 
Example 40
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
	form.Group1().setValue(Group1Enumeration.rdoAll);
	form.GrpCriteria().setValue(GrpCriteriaEnumeration.rdoBegins);
	loadCmbDepartment();
	updateTotal();
	
	form.Group1().setVisible(Group1Enumeration.rdoComplete, ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
}
 
Example 41
Project: openmaxims-linux   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
	OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));
	
	//enforce Security here
	OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
	for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
		{
			voOrdTemplate.getComponents().remove(compToRemove);
		}
	}
	
	return voOrdTemplate;
}
 
Example 42
Project: openmaxims-linux   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
/**
 * method will filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ComponentSelectOrderVoCollection getChildComponentsForOrderSet(Integer orderSetID, RoleDisciplineSecurityLevelLiteGCVo voSecurity) 
{
	ComponentSelectOrderVoCollection components = OrderSetSelectOrderVoAssembler.create((OrderSet)getDomainFactory().getDomainObject(OrderSet.class, orderSetID.intValue())).getComponents();
	
	//enforce Security here
	ComponentSelectOrderVoCollection removableComponenets = new ComponentSelectOrderVoCollection();
	for(ComponentSelectOrderVo comp : components)
	{
		if(comp.getInvestigationIsNotNull())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
	}
	
	if(removableComponenets.size() > 0)
	{
		for(ComponentSelectOrderVo compToRemove : removableComponenets)
		{
			components.remove(compToRemove);
		}
	}
	
	return components;
}
 
Example 43
Project: openmaxims-linux   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	if (role == null || role.getId() < 1)
		throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");
	
	List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());
	
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();
	
	//to flag we have hit db once already
	voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
	voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));
	
	return voRoleDisciplineSecurityLevels;
}
 
Example 44
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private void initialise()
{
	form.getLocalContext().setPatientType(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());
	
	form.btnViewPACS().setVisible(false);
	form.getGlobalContext().OCRR.CentricityWebPACS.setAccessionNumber(null);

	form.getGlobalContext().OCRR.setSelectedInvs(null);
	if(form.getGlobalContext().OCRR.getOrderAwaitingAuthorisation() == null)
	{
		form.btnAuthorise().setVisible(false);
		form.btnUpdate().setVisible(false);
		form.btnCancel().setVisible(false);
	}
	else
	{
		form.btnAuthorise().setVisible(engine.hasRight(AppRight.CAN_AUTHORIZE_PATHOLOGY_ORDERS) || engine.hasRight(AppRight.CAN_AUTHORIZE_CLINICAL_IMAGING_ORDERS));
		form.btnUpdate().setVisible(true);
		form.btnCancel().setVisible(true);
	}
			
	//WDEV-4758
	if(!ConfigFlag.DOM.CREATE_ORDERS_WITH_CARECONTEXT_ONLY.getValue())
	{
		form.lblPasEpisodeID().setVisible(false);
		form.txtPasEpisodeID().setVisible(false);
	}
	else
	{
		form.txtPasEpisodeID().setEnabled(false);
	}
	
	if(ConfigFlag.UI.ORDER_ENTRY_UI_TYPE.getValue().equals("CARE_UK") || ConfigFlag.UI.ORDER_ENTRY_UI_TYPE.getValue().equals("UKSH")) //WDEV-11881
	{
		form.btnCancel().setText("Cancel Investigation(s)");
		form.btnCancel().setVisible(true);
	}
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	
	form.getLocalContext().setSelectOrderInvForPACS(null);	//wdev-17378
}
 
Example 45
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private void initialize() 
{
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	//WDEV-18349
	if (!isAlias())
	{
		engine.clearPatientContextInformation();
		form.lyrSearch().tabPageAll().ccAll().initialize();
	}
	else
	{
		form.lyrSearch().tabPagePatient().ccPatient().initialize();
		form.lyrSearch().showtabPagePatient();
		search(false, true, false);
	}
	
	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());
	form.getLocalContext().setWasTimerOn(false);
	
	// security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	NewResultsCriteriaVo criteria = form.getGlobalContext().OCRR.getNewResultsCriteria();
	
	if(criteria != null && !isAlias())
	{
		if(criteria.getSelectedTab() != null)
		{
			if(ALL == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageAll();
				form.lyrSearch().tabPageAll().ccAll().setValue(criteria);
			}
			else if(MYRESULTS == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageMyResults();
				form.lyrSearch().tabPageMyResults().ccMyResults().initialize();
				form.lyrSearch().tabPageMyResults().ccMyResults().setValue(criteria);
			}
			else if(INPATIENT == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageInpatient();
				form.lyrSearch().tabPageInpatient().ccInpatient().initialize();
				form.lyrSearch().tabPageInpatient().ccInpatient().setValue(criteria);
			}
			else if(OUTPATIENTS == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageOutpatient();
				form.lyrSearch().tabPageOutpatient().ccOutpatient().initialize();
				form.lyrSearch().tabPageOutpatient().ccOutpatient().setValue(criteria);
			}
			else if(ED == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageED();
				form.lyrSearch().tabPageED().ccED().initialize();
				form.lyrSearch().tabPageED().ccED().setValue(criteria);
			}
			
			if(criteria.getWasTimerOnIsNotNull() && criteria.getWasTimerOn())
			{
				form.getLocalContext().setWasTimerOn(true);
				toggleTimer(false);
			}
			
			search(false, false, false);
		}
	}
	
	updateControlsState();
}
 
Example 46
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private void initialize()
{
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());

	form.chkInpatientOrders().setValue(false);
	form.chkOutpatientOrders().setValue(false);

	setCurrentResponsibleClinician();
	loadDiscipline();

	form.cmbHospital().clear();
	LocationLiteVoCollection hospColl = domain.listHospitals();
	for (int i = 0; i < hospColl.size(); i++)
	{
		LocationLiteVo hosp = hospColl.get(i);
		form.cmbHospital().newRow(hosp, hosp.getName());
	}
	
	LocationLiteVo currentHospital = domain.getCurrentHospital(engine.getCurrentLocation());
	form.cmbHospital().setValue(currentHospital);

	resetSearchControlsToDefault();

	setWatchDefaultButtonState();

	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());
	
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322

	//WDEV-9946
	form.ccOrderingHCP().initialize(MosType.HCP);

	// security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));

	if (form.getGlobalContext().OCRR.getNewResultsSearchCriteriaIsNotNull())
	{
		displaySearchCriteria();
		search();
	}
	
	updateControlsState();
}
 
Example 47
Project: AvoinApotti   File: NewResultsSearchImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder) getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 48
Project: AvoinApotti   File: OrderEntryTemplatePreviewImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 49
Project: AvoinApotti   File: PathologyOrdersImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 50
Project: AvoinApotti   File: SelectandOrderImpl.java   Source Code and License 4 votes vote down vote up
/**
 * method will filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public InvestigationSelectOrderVo getChildComponentsForInvestigationOrProfile(Integer investigationID, RoleDisciplineSecurityLevelLiteGCVo voSecurity) 
{
	Investigation doInvest = (Investigation)getDomainFactory().getDomainObject(Investigation.class, investigationID.intValue());
	boolean isProfile =  doInvest.getInvestigationIndex().isIsProfile();
	
	InvestigationSelectOrderVo invest = InvestigationSelectOrderVoAssembler.create((Investigation)getDomainFactory().getDomainObject(Investigation.class, investigationID.intValue()));

	//enforce Security here for profiles to filter out children that do not pass the security check
	if(isProfile)
	{
		InvestigationSelectOrderVoCollection removableComponenets = new InvestigationSelectOrderVoCollection();
		for(InvestigationSelectOrderVo comp : invest.getAssocInvestigations())
		{
			if(voSecurity != null)
			{
				SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getID_Investigation());
				if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
				{
					if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
					{
						removableComponenets.add(comp);
						continue;
					}
				}
			}
		}
		
		if(removableComponenets.size() > 0)
		{
			for(InvestigationSelectOrderVo compToRemove : removableComponenets)
			{
				invest.getAssocInvestigations().remove(compToRemove);
			}
		}
		
		//if the profile now has no secure children return null which will tell ui that none of the children passed the security check
		if(invest.getAssocInvestigations().size() == 0)
			return null;
	}
	
	return invest;
}
 
Example 51
Project: AvoinApotti   File: SelectandOrderImpl.java   Source Code and License 4 votes vote down vote up
public SelectedComponentFromSelectOrderVoCollection listInvestigationsOrProfiles(Category category, String name, LocationLiteVo location, ServiceShortVo service, Boolean isProfile, Boolean beginsWith, RoleDisciplineSecurityLevelLiteGCVo roleDiscliplineeSecurityLevels, LocationRefVoCollection locationList) 
{		
	SelectedComponentFromSelectOrderVoCollection listResults = new SelectedComponentFromSelectOrderVoCollection();
	
	ItemSelection impl = (ItemSelection)getDomainImpl(ItemSelectionImpl.class);
	if(impl != null)
	{
		//WDEV-10065 - pass param here for contract
		InvestShortVoCollection results = impl.listInvestigationsOrProfiles(category, name, location, service, isProfile, Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, beginsWith, locationList);
		if(results == null)
			return listResults;
		
		for(int x = 0; x < results.size(); x++)
		{
			InvestShortVo result = results.get(x);
			
			//WDEV-9780 checkSecurityLevel - if doesn't pass continue in loop
			if(roleDiscliplineeSecurityLevels != null)
			{
				ServiceRefVo voInvService = result.getProviderServiceIsNotNull() && result.getProviderService().getLocationServiceIsNotNull() && result.getProviderService().getLocationService().getServiceIsNotNull() ? result.getProviderService().getLocationService().getService() : null;
				SecurityLevelConfigVo voInvSecurityLevel = result.getInvestigationIndexIsNotNull() ? result.getInvestigationIndex().getSecurityLevel() : null;

				if(!roleDiscliplineeSecurityLevels.doesInvPassSecurityCheck(voInvService, voInvSecurityLevel,true)) //WDEV-11622
					continue;
			}

			if(result != null && result.getID_InvestigationIsNotNull() && result.getInvestigationIndexIsNotNull())
			{
				SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
				component.setID(result.getID_Investigation());
				component.setCategory(result.getInvestigationIndex().getCategory());
				component.setText(result.getInvestigationIndex().getName());
				component.setAdditionalLocationInfo(result.getLocationInfo());
				//component.setTooltip(result.getInvestigationIndex().getDescription());
				component.setHelpText(result.buildHelpTextTooltip());
				component.setIsAddon(result.getIsAddon());
				if(result.getProviderServiceIsNotNull() && result.getProviderService().getLocationServiceIsNotNull() && result.getProviderService().getLocationService().getServiceIsNotNull())
					component.setServiceID(result.getProviderService().getLocationService().getService().getID_Service());
				
				component.setMinReOrderPeriod(result.getMinReorderPeriodUnit());
				component.setMinReOrderVal(result.getMinReorderPeriodVal());
				component.setMinReOrderFemalePeriod(result.getFemaleMinReorderPeriodUnit());
				component.setMinReOrderFemaleVal(result.getFemaleMinReorderPeriodVal());
				
				component.setRequiresSite(result.getInvestigationIndex().getRequiresSiteSpecifier());
				component.setGenderSpecific(result.getInvestigationIndex().getGenderSpecific());
				component.setPhlebMayCollect(result.getInvestigationIndex().getPhlebMayCollect());

				component.setTooltip(getComponentInvestigationTooltip(result));

				SelectAndOrderComponentType type = SelectAndOrderComponentType.INVESTIGATION;
				if(result.getInvestigationIndex().getIsProfileIsNotNull() && result.getInvestigationIndex().getIsProfile().booleanValue())
					type = SelectAndOrderComponentType.PROFILE;
				component.setComponentType(type);
				
				if(SelectAndOrderComponentType.PROFILE.equals(type))//WDEV-16624
				{
					component.setAssociatedInvestigations(result.getAssocInvestigations());
				}
				
				listResults.add(component);
			}
		}
	}
	
	return listResults;
}
 
Example 52
Project: AvoinApotti   File: PathologyResultsImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 53
Project: AvoinApotti   File: OrderSummaryImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 54
Project: AvoinApotti   File: RadiologyOrdersImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 55
Project: AvoinApotti   File: ClinicalImagingResultsImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
	
}
 
Example 56
Project: AvoinApotti   File: NewResultsImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role) 
{
	SelectandOrder impl = (SelectandOrder)getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}
 
Example 57
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private void initialise()
{
	form.getLocalContext().setPatientType(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());
	
	form.btnViewPACS().setVisible(false);
	form.getGlobalContext().OCRR.CentricityWebPACS.setAccessionNumber(null);

	form.getGlobalContext().OCRR.setSelectedInvs(null);
	if(form.getGlobalContext().OCRR.getOrderAwaitingAuthorisation() == null)
	{
		form.btnAuthorise().setVisible(false);
		form.btnUpdate().setVisible(false);
		form.btnCancel().setVisible(false);
	}
	else
	{
		form.btnAuthorise().setVisible(engine.hasRight(AppRight.CAN_AUTHORIZE_PATHOLOGY_ORDERS) || engine.hasRight(AppRight.CAN_AUTHORIZE_CLINICAL_IMAGING_ORDERS));
		form.btnUpdate().setVisible(true);
		form.btnCancel().setVisible(true);
	}
			
	//WDEV-4758
	if(!ConfigFlag.DOM.CREATE_ORDERS_WITH_CARECONTEXT_ONLY.getValue())
	{
		form.lblPasEpisodeID().setVisible(false);
		form.txtPasEpisodeID().setVisible(false);
	}
	else
	{
		form.txtPasEpisodeID().setEnabled(false);
	}
	
	if(ConfigFlag.UI.ORDER_ENTRY_UI_TYPE.getValue().equals("CARE_UK") || ConfigFlag.UI.ORDER_ENTRY_UI_TYPE.getValue().equals("UKSH")) //WDEV-11881
	{
		form.btnCancel().setText("Cancel Investigation(s)");
		form.btnCancel().setVisible(true);
	}
	
	//security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if(voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null &&  voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	
	form.getLocalContext().setSelectOrderInvForPACS(null);	//wdev-17378
}
 
Example 58
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private void initialize() 
{
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	//WDEV-18349
	if (!isAlias())
	{
		engine.clearPatientContextInformation();
		form.lyrSearch().tabPageAll().ccAll().initialize();
	}
	else
	{
		form.lyrSearch().tabPagePatient().ccPatient().initialize();
		form.lyrSearch().showtabPagePatient();
		search(false, true, false);
	}
	
	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());
	form.getLocalContext().setWasTimerOn(false);
	
	// security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));
	
	NewResultsCriteriaVo criteria = form.getGlobalContext().OCRR.getNewResultsCriteria();
	
	if(criteria != null && !isAlias())
	{
		if(criteria.getSelectedTab() != null)
		{
			if(ALL == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageAll();
				form.lyrSearch().tabPageAll().ccAll().setValue(criteria);
			}
			else if(MYRESULTS == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageMyResults();
				form.lyrSearch().tabPageMyResults().ccMyResults().initialize();
				form.lyrSearch().tabPageMyResults().ccMyResults().setValue(criteria);
			}
			else if(INPATIENT == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageInpatient();
				form.lyrSearch().tabPageInpatient().ccInpatient().initialize();
				form.lyrSearch().tabPageInpatient().ccInpatient().setValue(criteria);
			}
			else if(OUTPATIENTS == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageOutpatient();
				form.lyrSearch().tabPageOutpatient().ccOutpatient().initialize();
				form.lyrSearch().tabPageOutpatient().ccOutpatient().setValue(criteria);
			}
			else if(ED == criteria.getSelectedTab())
			{
				form.lyrSearch().showtabPageED();
				form.lyrSearch().tabPageED().ccED().initialize();
				form.lyrSearch().tabPageED().ccED().setValue(criteria);
			}
			
			if(criteria.getWasTimerOnIsNotNull() && criteria.getWasTimerOn())
			{
				form.getLocalContext().setWasTimerOn(true);
				toggleTimer(false);
			}
			
			search(false, false, false);
		}
	}
	
	updateControlsState();
}
 
Example 59
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private void initialize()
{
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());

	form.chkInpatientOrders().setValue(false);
	form.chkOutpatientOrders().setValue(false);

	setCurrentResponsibleClinician();
	loadDiscipline();

	form.cmbHospital().clear();
	LocationLiteVoCollection hospColl = domain.listHospitals();
	for (int i = 0; i < hospColl.size(); i++)
	{
		LocationLiteVo hosp = hospColl.get(i);
		form.cmbHospital().newRow(hosp, hosp.getName());
	}
	
	LocationLiteVo currentHospital = domain.getCurrentHospital(engine.getCurrentLocation());
	form.cmbHospital().setValue(currentHospital);

	resetSearchControlsToDefault();

	setWatchDefaultButtonState();

	form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());
	
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322

	//WDEV-9946
	form.ccOrderingHCP().initialize(MosType.HCP);

	// security level WDEV-9780
	RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
	if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
		form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));

	if (form.getGlobalContext().OCRR.getNewResultsSearchCriteriaIsNotNull())
	{
		displaySearchCriteria();
		search();
	}
	
	updateControlsState();
}
 
Example 60
Project: openMAXIMS   File: NewResultsSearchImpl.java   Source Code and License 4 votes vote down vote up
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
	SelectandOrder impl = (SelectandOrder) getDomainImpl(SelectandOrderImpl.class);
	return impl.getRoleDisciplineSecurityLevels(role);
}