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