Java Code Examples for ims.framework.LayerBridge.equals()

The following are Jave code examples for showing how to use equals() of the ims.framework.LayerBridge class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrPrognosticTNMTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab()))
	{
		if (!Boolean.TRUE.equals(form.getLocalContext().getDataWasImported())
				&& !form.getLocalContext().getSelectedRecordIsNotNull()
				&& form.getLocalContext().getSelectedGroupIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getSelectedGroup().getHasTNM())
				&& (!form.getLocalContext().getSelectedSiteIsNotNull() || !Boolean.TRUE.equals(form.getLocalContext().getSelectedSite().getHasSiteSpecificTNM())))
		{
			importTNMValuesFromOverallStaging();
		}
		
		// Mark as data have been imported - even if the import process didn't take place,
		// the import process must take place only when first changing tabs after selecting the group
		form.getLocalContext().setDataWasImported(Boolean.TRUE);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyr1TabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyr1().tabConsultant()))
	{						
		populateConsultationTab();			
	}
	if (tab.equals(form.lyr1().tabTherapy()))
	{						
		initializeTherapyDynamicGrid();			
	}
	else if (tab.equals(form.lyr1().tabActions()))
	{					
		initializeActionTab();
		form.lyr1().showtabActions();
		populateActionsTab();
	}
	else if (tab.equals(form.lyr1().tabAnaesthetist()))
	{
		populateAnaesthetistTab();
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyrTabs().tabPageFavourites());
	if(isFavouriteTab)
	{
		populateFavorites();
		form.lyrTabs().tabPageFavourites().btnSelectFavourite().setAsDefaultButton();
	}
	
	if(tab.equals(form.lyrTabs().tabPageSearch()))
	{
		form.lyrTabs().tabPageSearch().imbSearch().setAsDefaultButton();
	}
	
	if(tab.equals(form.lyrTabs().tabPageSelect()))
	{
		form.lyrTabs().tabPageSelect().imbSeachSelect().setAsDefaultButton();
	}

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);

}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrStepsTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		if (tab.equals(form.lyrSteps().tabPageStep1()))
		{
			form.lyrSteps().tabPageStep1().ccStep1Find().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, engine.isDialog());
		}
		else if (tab.equals(form.lyrSteps().tabPageStep2()))
		{
			form.lyrSteps().tabPageStep2().ccAMTS().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, null);
		}
		else if (tab.equals(form.lyrSteps().tabPageFollowUp()))
		{
			form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, (form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() != null ? form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() : new DementiaAssessAndInvestigateVo())); //wdev-16366
		}
		updateControlsState();
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrRulesTabChanged(LayerBridge tab)
{

	if (tab.equals(form.lyrRules().tabOverview()))
	{
		IRule rule = getRuleFromScreen();
		StringBuilder sb = new StringBuilder();
		sb.append("<b>IF</b><br>");
		int tabs = 0;
		for (int x = 0; x < rule.getConditions().size(); x++)
		{
			renderCondition(sb, rule.getConditions().get(x), rule, tabs);
		}

		form.lyrRules().tabOverview().htmOverview().setHTML(sb.toString());
	}

}
 
Example 6
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrStepsTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		if (tab.equals(form.lyrSteps().tabPageStep1()))
		{
			form.lyrSteps().tabPageStep1().ccStep1Find().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, engine.isDialog());
		}
		else if (tab.equals(form.lyrSteps().tabPageStep2()))
		{
			form.lyrSteps().tabPageStep2().ccAMTS().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, null);
		}
		else if (tab.equals(form.lyrSteps().tabPageFollowUp()))
		{
			form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, (form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() != null ? form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() : new DementiaAssessAndInvestigateVo())); //wdev-16366
		}
		updateControlsState();
	}
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrMaintenanceTabChanged(LayerBridge tab)
{
	if(tab.equals(form.lyrMaintenance().tabBookExc()))
	{
		form.lyrMaintenance().tabBookExc().imbBookSearch().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabCancelExc()))
	{
		form.lyrMaintenance().tabCancelExc().imbCancelSearch().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabPdsRequests()))
	{
		form.lyrMaintenance().tabPdsRequests().imbPdsSearch().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabSdsRequests()))
	{
		form.lyrMaintenance().tabSdsRequests().imbSearchSds().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabSlotPoll()))
	{
		form.lyrMaintenance().tabSlotPoll().imbPollSearch().setAsDefaultButton();
	}
	
	updateContextMenuState();
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
protected void onlyrPatientListsTabChanged(LayerBridge tab)
{
	form.getGlobalContext().Core.setPatientShort(null);
	engine.setPatientInfo("Please enter Patient ID or Surname and/or Forename");

	form.getLocalContext().setpreviousScreens(0);
	form.getLocalContext().setfirstRecordFromGrid(null);
	form.getLocalContext().setlastRecordFromGrid(null);

	if (tab.equals(form.lyrPatientLists().tabInpatientList()))
	{
		form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
		form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
		clearScreen(PatientListType.INPATIENTLIST);
	}
	else if (tab.equals(form.lyrPatientLists().tabOutpatientList()))
	{
		form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
		form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
		clearScreen(PatientListType.OUTPATIENTLIST);
	}
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
protected void onlyrSearcFilterTabChanged(LayerBridge tab) 
{
	clearTabsControls();
	//WDEV-19389 
	if(tab.equals(form.lyrSearcFilter().tabRecordingHcp()) && form.getGlobalContext().Clinical.getAuthoringClinicalNotesSearchCriteriaIsNotNull())
	{
		setAuthoringSearchCriteria(form.getGlobalContext().Clinical.getAuthoringClinicalNotesSearchCriteria());
		search(TABHCP);
	}
	
	if(tab.equals(form.lyrSearcFilter().tabRecordingUser()) && form.getGlobalContext().Clinical.getUserClinicalNotesSearchCriteriaIsNotNull())
	{
		setUseSearchCriteria(form.getGlobalContext().Clinical.getUserClinicalNotesSearchCriteria());
		search(TABUSER);
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrPrognosticTNMTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab()))
	{
		if (!Boolean.TRUE.equals(form.getLocalContext().getDataWasImported())
				&& !form.getLocalContext().getSelectedRecordIsNotNull()
				&& form.getLocalContext().getSelectedGroupIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getSelectedGroup().getHasTNM())
				&& (!form.getLocalContext().getSelectedSiteIsNotNull() || !Boolean.TRUE.equals(form.getLocalContext().getSelectedSite().getHasSiteSpecificTNM())))
		{
			importTNMValuesFromOverallStaging();
		}
		
		// Mark as data have been imported - even if the import process didn't take place,
		// the import process must take place only when first changing tabs after selecting the group
		form.getLocalContext().setDataWasImported(Boolean.TRUE);
	}
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
@Override
protected void onlyrRulesTabChanged(LayerBridge tab)
{

	if (tab.equals(form.lyrRules().tabOverview()))
	{
		IRule rule = getRuleFromScreen();
		StringBuilder sb = new StringBuilder();
		sb.append("<b>IF</b><br>");
		int tabs = 0;
		for (int x = 0; x < rule.getConditions().size(); x++)
		{
			renderCondition(sb, rule.getConditions().get(x), rule, tabs);
		}

		form.lyrRules().tabOverview().htmOverview().setHTML(sb.toString());
	}

}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrSurgeryDetailsTabChanged(LayerBridge tab) 
{
	updateContextMenus();
	
	if (form.getMode().equals(FormMode.EDIT))
	{
		if (tab.equals(form.lyrSurgeryDetails().tabGenDet()))
			form.lyrSurgeryDetails().tabGenDet().dteSurgery().setValue(form.lyrSurgeryDetails().tabProc().dteStartSurgery().getValue());
		
		if (tab.equals(form.lyrSurgeryDetails().tabProc()))
			form.lyrSurgeryDetails().tabProc().dteStartSurgery().setValue(form.lyrSurgeryDetails().tabGenDet().dteSurgery().getValue());
	}
	
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrSelectTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrSelect().tabWaitingList()))
	{
		populateWaitingListGrid();
	}
	//WDEV-18449 
	if (tab.equals(form.lyrSelect().tabAppInvs()))
	{
		form.getLocalContext().setAction(ReferralAppointmentDetailsAction.REFRESH);
		form.fireCustomControlValueChanged();
	}
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrListsTabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyrLists().tabPageCurrentIP()))
		form.lyrLists().tabPageCurrentIP().ccCurrentIPList().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingElectiveAdmissions()))
		form.lyrLists().tabPagePendingElectiveAdmissions().ccPending().refresh();
	
	if (tab.equals(form.lyrLists().tabPageBedState()))
		form.lyrLists().tabPageBedState().ccBedState().refresh();

	if (tab.equals(form.lyrLists().tabPageRecentDischarges()))
		form.lyrLists().tabPageRecentDischarges().ccRecentDischarges().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingEmergencyAdmissions()))
		form.lyrLists().tabPagePendingEmergencyAdmissions().ccPengingEmergencyAdms().refresh(false);

	if (tab.equals(form.lyrLists().tabPageTransfers()))
		form.lyrLists().tabPageTransfers().ccTransfers().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingDischarges()))
		form.lyrLists().tabPagePendingDischarges().cc1().refresh();
	
	if (tab.equals(form.lyrLists().tabElectiveListPendingElectiveAdms()))
		form.lyrLists().tabElectiveListPendingElectiveAdms().ccPendingEL().refresh();
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrTabs().tabRoles()))
	{
		createDynamicGridColumns(form.lyrTabs().tabRoles().dyngrdQuestions(), false);
		roleGridSelectionChanged();
	}
	
	if(tab.equals(form.lyrTabs().tabGroups()))
	{
		refreshGroupGrid();
	}
}
 
Example 16
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrNursingTabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyr1().tabNursing().lyrNursing().tabClexane()))
	{
		populateClexaneTab();
	}
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyr1TabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyr1().tabFavourites());
	if (isFavouriteTab)
		populateFavorites();

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);
}
 
Example 18
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}
 
Example 19
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrObs2TabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().initialize();
   		}
   		updateControlsState();
	}
}
 
Example 20
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}
 
Example 21
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrObs2TabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().initialize();
   		}
   		updateControlsState();
	}
}
 
Example 22
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
@Override
//WDEV-16673
protected void onlyrEmergencyAttendanceTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();
		
		if (selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof AttendanceDetailsVo)
		{
			form.getGlobalContext().Core.setCurrentCareContext(selectedRow.getValue()!=null ? ((AttendanceDetailsVo) selectedRow.getValue()).getCareContext():null);
			form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(domain.getAttendanceDetails((AttendanceDetailsVo) selectedRow.getValue()));
			
			AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
			CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
			EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
			PatientShort patient = form.getGlobalContext().Core.getPatientShort();
			
			if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
			{
				form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());
			}
			else if (tab.equals(form.lyrEmergencyAttendance().tabChart()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
			{
				form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
				form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));
				
			}
			else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
			{
				form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
				form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));
				
			}
		}	
	}
	updateControlState();	
}
 
Example 23
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrTabs().tabRoles()))
	{
		createDynamicGridColumns(form.lyrTabs().tabRoles().dyngrdQuestions(), false);
		roleGridSelectionChanged();
	}
	
	if(tab.equals(form.lyrTabs().tabGroups()))
	{
		refreshGroupGrid();
	}
}
 
Example 24
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}
 
Example 25
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrTransferTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrDetail().tabTransfer().lyrTransfer().tabIn()))
	{
		if (!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().isInitialized())
		{
			populateTransferInListFromData();
			form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().initialize(MosType.MEDIC);
		}
	}
	else if (tab.equals(form.lyrDetail().tabTransfer().lyrTransfer().tabOut()))
	{
		if (!form.lyrDetail().tabTransfer().lyrTransfer().tabOut().isInitialized())
		{
			populateTransferOutTabFromData();
		}
		form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(form.getLocalContext().getPendingTransferOutIsNotNull());
	}
	else if (tab.equals(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant()))
	{
		if (!form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().isInitialized())
		{
			populateConsultantTransferTabFromData();
		}
		form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(false);
	}
}
 
Example 26
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyr1TabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyr1().tabFavourites());
	if (isFavouriteTab)
		populateFavorites();

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);
}
 
Example 27
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrSurgeryDetailsTabChanged(LayerBridge tab) 
{
	updateContextMenus();
	
	if (form.getMode().equals(FormMode.EDIT))
	{
		if (tab.equals(form.lyrSurgeryDetails().tabGenDet()))
			form.lyrSurgeryDetails().tabGenDet().dteSurgery().setValue(form.lyrSurgeryDetails().tabProc().dteStartSurgery().getValue());
		
		if (tab.equals(form.lyrSurgeryDetails().tabProc()))
			form.lyrSurgeryDetails().tabProc().dteStartSurgery().setValue(form.lyrSurgeryDetails().tabGenDet().dteSurgery().getValue());
	}
	
}
 
Example 28
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyr1TabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyr1().tabFavourites());
	if (isFavouriteTab)
		populateFavorites();

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);
}
 
Example 29
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	//WDEV-19389 
	if (tab.equals(form.lyrMain().tabCharting()) && form.getGlobalContext().OCRR.getPathologyOrdersResultsChartingCriteriaIsNotNull())
	{
		setChartingSearchCriteria(form.getGlobalContext().OCRR.getPathologyOrdersResultsChartingCriteria());
		searchChartingResults();
	}
	updatePrintCumulativeButtonStatus();
}
 
Example 30
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}
 
Example 31
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrObs2TabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails()); //WDEV-20426
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().initialize();
   		}
   		updateControlsState();
	}
}
 
Example 32
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyr1().tabFavourites());
	if (isFavouriteTab)
		populateFavorites();

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);

}
 
Example 33
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
@Override
protected void onlyrSupportServicesTabChanged(LayerBridge tab) 
{
	if (FormMode.EDIT.equals(form.getMode()))
		return;
	
	if (tab.equals(form.lyrSupportServices().tabPageProf()))
		openProfessional();
	else if (tab.equals(form.lyrSupportServices().tabPageServices()))
		openServices();
	else if (tab.equals(form.lyrSupportServices().tabPageFamily()))
		openFamily();
}
 
Example 34
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
protected void onlyrDetailsTabChanged(LayerBridge tab)
{
	if(tab.equals(form.lyrDetails().tabPreview()) && form.getLocalContext().getSelectedItem() != null && form.getLocalContext().getReportChangedIsNotNull() && form.getLocalContext().getReportChanged().booleanValue())
	{
		form.lyrDetails().tabPreview().htmReport().setHTML("");
		
		if(form.getLocalContext().getSelectedItem() != null && form.getLocalContext().getReportChangedIsNotNull() && form.getLocalContext().getReportChanged().booleanValue() && form.getLocalContext().getSelectedItem().getID_ClinicalCorrespondence() != null)
		{
			buildReport();
			form.getLocalContext().setReportChanged(Boolean.FALSE);
		}
	}  //WDEV-1039 - 3) We need to Display the Medication Overview record for this context, if the ClinicalCorrespondenceBo has not been saved for the context we are in we need to retrieve the Overview and display it. 
	else if(tab.equals(form.lyrDetails().tabServices()) && !isMedicationDataLoaded())
	{
		form.lyrDetails().tabServices().dyngrdMedication().clear();
		
		MedicationOverViewFilterVo voFilter = new MedicationOverViewFilterVo();

		voFilter.setType(MedicationSnapShot.DISCHARGE);
		voFilter.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
		voFilter.setPatientRef(form.getGlobalContext().Core.getPatientShort());
		
		MedicationOverViewVo voOverView = domain.getLatestMedicationOverViewVo(voFilter);
		
		if (voOverView != null && voOverView.getMedicationIsNotNull())
		{
			//WDEV-1039 - 2)We need to change the icons used in the medication preview to those used in the medication page 
			MedicationDosesDynamicGridPopulation gridPopulation = new MedicationDosesDynamicGridPopulation(form.lyrDetails().tabServices().dyngrdMedication(), form.getImages().Admin.Activity, form.getImages().ICP.Child);			
			gridPopulation.initializeGrid();
			gridPopulation.populate(voOverView);
			
			form.getLocalContext().setIsMedicationDataLoaded(Boolean.TRUE);
		}
	}
	else if(tab.equals(form.lyrDetails().tabCommentsOPD()) && form.getLocalContext().getOutpatientSummaryChanged().booleanValue() && form.getMode().equals(FormMode.EDIT))
	{
		if(form.getLocalContext().getSelectedItem() == null)
		{
			OutpatientNotesOutcomeVo voOPDSummary = domain.getOPDSummary(form.getGlobalContext().Core.getCurrentClinicalContact());
			
			if(voOPDSummary != null && form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().size() == 3)
			{
				form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().get(0).setColText(voOPDSummary.getClinicalNote().getObjectiveNote());
				form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().get(1).setColText(voOPDSummary.getClinicalNote().getPlanNote());
				form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().get(2).setColText(voOPDSummary.getInstructionNextClinic());
				
				form.lyrDetails().tabCommentsOPD().cmbOPFollowUp().setValue(voOPDSummary.getOutcome());
				form.lyrDetails().tabCommentsOPD().intOPReviewIn().setValue(voOPDSummary.getReviewIn());
				form.lyrDetails().tabCommentsOPD().cmbOPReviewIn().setValue(voOPDSummary.getReviewinUnits());
				
				form.getLocalContext().setOutpatientSummaryChanged(Boolean.FALSE);
			}
		}
	}
}
 
Example 35
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
@Override
protected void onlyrDetailTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrDetail().tabTransfer()))
	{
		if (form.lyrDetail().tabTransfer().lyrTransfer().tabIn().isVisible())
		{
			if (!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().isInitialized())
			{
				populateTransferInListFromData();
				form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().initialize(MosType.MEDIC);
			}
		}	
		else if (form.lyrDetail().tabTransfer().lyrTransfer().tabOut().isVisible())
		{
			populateTransferOutTabFromData();	
			form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(form.getLocalContext().getPendingTransferOutIsNotNull());
		}
	}
	else if (tab.equals(form.lyrDetail().tabDischarge()))
	{
		if (!form.lyrDetail().tabDischarge().isInitialized())
		{
			populateDischargeTabFromData();
		}
	}
	else if (tab.equals(form.lyrDetail().tabCloseBed()))
	{
		if (!form.lyrDetail().tabCloseBed().isInitialized())
		{
			populateCloseBedTabFromData();
		}
	}
	else if (tab.equals(form.lyrDetail().tabHomeLeave()))
	{
		if (form.lyrDetail().tabHomeLeave().dteHLDate().getValue() == null)
			form.lyrDetail().tabHomeLeave().dteHLDate().setValue(new Date());
	}
	else if (tab.equals(form.lyrDetail().tabEstimatedDischarge()))
	{
		if (!form.lyrDetail().tabEstimatedDischarge().isInitialized())
		{
			populateEstimatedDischargeTabFromData();
		}
	}
	else if (tab.equals(form.lyrDetail().tabBedMove()))
	{
		if (!form.lyrDetail().tabBedMove().isInitialized())
		{
			populateBedMoveTabFromData();
		}
	}
	else if (tab.equals(form.lyrDetail().tabInfants()))
	{
		if (!form.lyrDetail().tabInfants().isInitialized())
		{
			populateInfantsTabFromData();
		}
	}
}
 
Example 36
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
@Override
protected void onlyr1TabChanged(LayerBridge tab) 
{
	boolean isProviderCancellation = form.getGlobalContext().RefMan.getIsProviderCancellationIsNotNull() && form.getGlobalContext().RefMan.getIsProviderCancellation();
	
	if (tab.equals(form.lyr1().tabReferralLetter()))
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.DOCS);
		form.lyr1().tabReferralLetter().customControlUploadDoc().initialize(null, UploadDocumentStoreLevel.REFERRAL,DocumentViewLevel.REFERRAL);////WDEV-12242			
	}
	else if (tab.equals(form.lyr1().tabReferralAppts()))
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.APPTS);
		form.lyr1().tabReferralAppts().ccAppts().initialise(engine.hasRight(AppRight.ALLOW_ORDERINVESTIGATIONS_CAREUK));		
		populateApptDetailComponent();		
	}		
	else if (tab.equals(form.lyr1().tabBaselineObs()))
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.BASELINEOBS);
		form.lyr1().tabBaselineObs().ccNursingNotes().initialize();
	}
	else if (tab.equals(form.lyr1().tabPrescription()))
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.PRESCRIPTION);
		form.lyr1().tabPrescription().ccPrescription().initialize(isProviderCancellation, null);
	}
	else if (tab.equals(form.lyr1().tabAssesments()))
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.ASSESSMENTS);
		form.lyr1().tabAssesments().ccPatientSpecialtyAssessments().initialize();
	}
	else if (tab.equals(form.lyr1().tabInvestigations()))
	{
		form.lyr1().tabInvestigations().ccInvestigations().initialise(engine.hasRight(AppRight.CAN_VIEW_CONFIDENTIAL_INVESTIGATION_RESULTS), engine.hasRight(AppRight.CAN_VIEW_CONFIDENTIAL_INVESTIGATIONS_ORDERED), Boolean.TRUE);	
	}
	else if (tab.equals(form.lyr1().tabOutcome())) 
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.OUTCOME);
		form.lyr1().tabOutcome().ccOutcome().initialize(isProviderCancellation,null,null,null);
	}
	else if (tab.equals(form.lyr1().tabDischarge())) 
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.OUTCOME);
		buildFinalReport();
	}
	else if(tab.equals(form.lyr1().tabClinicalNotes()))
	{
		form.getLocalContext().setSelectedTab(AtConsultationSelectedTab.CLINICALNOTES);
		form.lyr1().tabClinicalNotes().ccClinicalNotes().initialize(isProviderCancellation);
	}
	else if (tab.equals(form.lyr1().tabNotes()))
	{
		form.lyr1().tabNotes().ccNote().initialize();
	}
	else if (tab.equals(form.lyr1().tabSpecimenCollection()))
	{
		form.lyr1().tabSpecimenCollection().ccSpecimenCollection().initialize();
	}
}
 
Example 37
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
protected void onlyr1TabChanged(LayerBridge tab) 
{
	boolean isProviderCancellation = form.getGlobalContext().RefMan.getIsProviderCancellationIsNotNull() && form.getGlobalContext().RefMan.getIsProviderCancellation();
	
	if (form.getGlobalContext().RefMan.getIsComponentInEditModeIsNotNull() &&		
		 form.getGlobalContext().RefMan.getIsComponentInEditMode().equals(FormMode.EDIT))
	{
		return;
	}
	
	if (tab.equals(form.lyr1().tabPatientDocuments())) 
	{
		form.getLocalContext().setSelectedTab(OnExaminationSelectedTab.PATIENT_DOCUMENTS);
		form.lyr1().tabPatientDocuments().ccDocuments().initialize(null, UploadDocumentStoreLevel.REFERRAL,DocumentViewLevel.REFERRAL);//WDEV-12242			
	}
	else if(tab.equals(form.lyr1().tabClinicalNote()))//WDEV-13943
	{
		form.getLocalContext().setSelectedTab(OnExaminationSelectedTab.CLINICAL_NOTES);
		form.lyr1().tabClinicalNote().ccClinicalNote().initialize(isProviderCancellation);
	}
	else if (tab.equals(form.lyr1().tabPrescription()))
	{
		form.getLocalContext().setSelectedTab(OnExaminationSelectedTab.PRESCRIPTIONS);
		form.lyr1().tabPrescription().ccPrescription().initialize(isProviderCancellation, null);
	}
	else if (tab.equals(form.lyr1().tabOutcome())) 
	{
		form.getLocalContext().setSelectedTab(OnExaminationSelectedTab.OUTCOME);
		form.lyr1().tabOutcome().ccOutcome().initialize(isProviderCancellation,null,null,null);
	}
	else if (tab.equals(form.lyr1().tabTLT())) 
	{
		form.getLocalContext().setSelectedTab(OnExaminationSelectedTab.TLT);
		form.lyr1().tabTLT().lyrTLT().tabPageTLTNotes().ccTLT().initialize(isProviderCancellation, null);
		
		if (form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().isVisible())
		{
			openTLTOutcome();				
		}
	}
	else if (tab.equals(form.lyr1().tabFinalReport())) 
	{
		form.getLocalContext().setSelectedTab(OnExaminationSelectedTab.FINAL_REPORT);
		buildFinalReport();
	}			
}
 
Example 38
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 4 votes
protected void onlyrDetailsTabChanged(LayerBridge tab)
{
	if(tab.equals(form.lyrDetails().tabPreview()) && form.getLocalContext().getSelectedItem() != null && form.getLocalContext().getReportChangedIsNotNull() && form.getLocalContext().getReportChanged().booleanValue())
	{
		form.lyrDetails().tabPreview().htmReport().setHTML("");
		
		if(form.getLocalContext().getSelectedItem() != null && form.getLocalContext().getReportChangedIsNotNull() && form.getLocalContext().getReportChanged().booleanValue() && form.getLocalContext().getSelectedItem().getID_ClinicalCorrespondence() != null)
		{
			buildReport();
			form.getLocalContext().setReportChanged(Boolean.FALSE);
		}
	}  //WDEV-1039 - 3) We need to Display the Medication Overview record for this context, if the ClinicalCorrespondenceBo has not been saved for the context we are in we need to retrieve the Overview and display it. 
	else if(tab.equals(form.lyrDetails().tabServices()) && !isMedicationDataLoaded())
	{
		form.lyrDetails().tabServices().dyngrdMedication().clear();
		
		MedicationOverViewFilterVo voFilter = new MedicationOverViewFilterVo();

		voFilter.setType(MedicationSnapShot.DISCHARGE);
		voFilter.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
		voFilter.setPatientRef(form.getGlobalContext().Core.getPatientShort());
		
		MedicationOverViewVo voOverView = domain.getLatestMedicationOverViewVo(voFilter);
		
		if (voOverView != null && voOverView.getMedicationIsNotNull())
		{
			//WDEV-1039 - 2)We need to change the icons used in the medication preview to those used in the medication page 
			MedicationDosesDynamicGridPopulation gridPopulation = new MedicationDosesDynamicGridPopulation(form.lyrDetails().tabServices().dyngrdMedication(), form.getImages().Admin.Activity, form.getImages().ICP.Child);			
			gridPopulation.initializeGrid();
			gridPopulation.populate(voOverView);
			
			form.getLocalContext().setIsMedicationDataLoaded(Boolean.TRUE);
		}
	}
	else if(tab.equals(form.lyrDetails().tabCommentsOPD()) && form.getLocalContext().getOutpatientSummaryChanged().booleanValue() && form.getMode().equals(FormMode.EDIT))
	{
		if(form.getLocalContext().getSelectedItem() == null)
		{
			OutpatientNotesOutcomeVo voOPDSummary = domain.getOPDSummary(form.getGlobalContext().Core.getCurrentClinicalContact());
			
			if(voOPDSummary != null && form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().size() == 3)
			{
				form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().get(0).setColText(voOPDSummary.getClinicalNote().getObjectiveNote());
				form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().get(1).setColText(voOPDSummary.getClinicalNote().getPlanNote());
				form.lyrDetails().tabCommentsOPD().grdClinicalNotes().getRows().get(2).setColText(voOPDSummary.getInstructionNextClinic());
				
				form.lyrDetails().tabCommentsOPD().cmbOPFollowUp().setValue(voOPDSummary.getOutcome());
				form.lyrDetails().tabCommentsOPD().intOPReviewIn().setValue(voOPDSummary.getReviewIn());
				form.lyrDetails().tabCommentsOPD().cmbOPReviewIn().setValue(voOPDSummary.getReviewinUnits());
				
				form.getLocalContext().setOutpatientSummaryChanged(Boolean.FALSE);
			}
		}
	}
}
 
Example 39
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
@Override
protected void onlyrListsTabChanged(LayerBridge tab) 
{
	if( form.lyrLists().tabPagePendingEmergencyAdmissions() != null && form.lyrLists().tabPagePendingEmergencyAdmissions().ccPendingEDAdms() != null) //wdev-11804
		form.lyrLists().tabPagePendingEmergencyAdmissions().ccPendingEDAdms().leaveComponent(); 					//wdev-11804
	
	if (tab.equals(form.lyrLists().tabPageCurrentIP()))
		form.lyrLists().tabPageCurrentIP().ccCurrentIPList().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingElectiveAdmissions()))
	{
		form.lyrLists().tabPagePendingElectiveAdmissions().ccPending().open();
		form.lyrLists().tabPagePendingElectiveAdmissions().ccPending().refresh();
	}
	
	if (tab.equals(form.lyrLists().tabPageBedState()))
	{
		form.lyrLists().tabPageBedState().ccBedState().open();
		form.lyrLists().tabPageBedState().ccBedState().refresh();
	}

	if (tab.equals(form.lyrLists().tabPageRecentDischarges()))
	{
		form.lyrLists().tabPageRecentDischarges().ccRecentDischarges().open();
		form.lyrLists().tabPageRecentDischarges().ccRecentDischarges().refresh();
	}

	if (tab.equals(form.lyrLists().tabPagePendingEmergencyAdmissions()))
	{
		form.lyrLists().tabPagePendingEmergencyAdmissions().ccPendingEDAdms().open();
		form.lyrLists().tabPagePendingEmergencyAdmissions().ccPendingEDAdms().refresh(false);
	}

	if (tab.equals(form.lyrLists().tabPageTransfers()))
	{
		form.lyrLists().tabPageTransfers().ccTransfers().open();
		form.lyrLists().tabPageTransfers().ccTransfers().refresh();
	}

	if (tab.equals(form.lyrLists().tabPagePendingDischarges()))
	{
		form.lyrLists().tabPagePendingDischarges().cc1().open();
		form.lyrLists().tabPagePendingDischarges().cc1().refresh();
	}
	
	if (tab.equals(form.lyrLists().tabElectiveListPendingElectiveAdms()))
	{
		form.lyrLists().tabElectiveListPendingElectiveAdms().ccPendingEL().open();
		form.lyrLists().tabElectiveListPendingElectiveAdms().ccPendingEL().refresh();
	}
	if (tab.equals(form.lyrLists().tabPendingEmergencies()))
	{
		if (!form.lyrLists().tabPendingEmergencies().isInitialized())
		{	
			form.lyrLists().tabPendingEmergencies().ccPendingEmergenciesAdm().initializeCustomControl();
		}
		form.lyrLists().tabPendingEmergencies().ccPendingEmergenciesAdm().setFocusOnSearch();
		form.lyrLists().tabPendingEmergencies().ccPendingEmergenciesAdm().refresh();

	}
	if (tab.equals(form.lyrLists().tabPendingEmergencyTheatre()))
	{
		if (!form.lyrLists().tabPendingEmergencyTheatre().isInitialized())
		{	
			form.lyrLists().tabPendingEmergencyTheatre().ccPendingEmergencyTheatreAdm().initializeCustomControl();
		}
		form.lyrLists().tabPendingEmergencyTheatre().ccPendingEmergencyTheatreAdm().setFocusOnSearch();
		form.lyrLists().tabPendingEmergencyTheatre().ccPendingEmergencyTheatreAdm().refresh();
	}
}
 
Example 40
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
@Override
protected void onlyrTLTTabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome()))
		openTLTOutcome();
}