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()));
}