Java Code Examples for ims.core.vo.enums.MosType

The following are top voted examples for showing how to use ims.core.vo.enums.MosType. 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 refreshSearchCriteria() 
{
	if (form.getGlobalContext().Oncology.getInternalReferralListFilterIsNotNull())
	{
		form.cmbType().setValue(form.getGlobalContext().Oncology.getInternalReferralListFilterIsNotNull() ? form.getGlobalContext().Oncology.getInternalReferralListFilter().getReferralType() : null);
		if (form.getGlobalContext().Oncology.getInternalReferralListFilter().getReferredByIsNotNull())
		{
			form.ccReferredBy().initialize(MosType.HCP);
			form.ccReferredBy().setValue((IMos)form.getGlobalContext().Oncology.getInternalReferralListFilter().getReferredBy());
		}
		form.dteFrom().setValue(form.getGlobalContext().Oncology.getInternalReferralListFilter().getDateFrom());
		form.dteTo().setValue(form.getGlobalContext().Oncology.getInternalReferralListFilter().getDateTo());
		form.GroupStatus().setValue(form.getGlobalContext().Oncology.getInternalReferralListFilter().getActiveOnlyIsNotNull() && form.getGlobalContext().Oncology.getInternalReferralListFilter().getActiveOnly() ? GroupStatusEnumeration.rdoCurrent : GroupStatusEnumeration.rdoAll);
			
		search();
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateConsultantTransferTabFromData()
{
	form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().lblCurrentCons().setValue("");
	BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
	if(voBedSpaceState != null)
	{
		if(voBedSpaceState.getInpatientEpisodeIsNotNull() && voBedSpaceState.getInpatientEpisode().getPasEventIsNotNull() && voBedSpaceState.getInpatientEpisode().getPasEvent().getConsultantIsNotNull())
			form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().lblCurrentCons().setValue(voBedSpaceState.getInpatientEpisode().getPasEvent().getConsultant().getIMosName());
	}
	else if (form.getGlobalContext().Core.getSelectedWaitingAreaPatientIsNotNull())
	{
		InPatientEpisodeADTVo voEpisode = domain.getInpatientEpisode(form.getGlobalContext().Core.getSelectedWaitingAreaPatient());
		if (voEpisode != null && voEpisode.getPasEventIsNotNull() && voEpisode.getPasEvent().getConsultantIsNotNull()) //WDEV-16004
			form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().lblCurrentCons().setValue(voEpisode.getPasEvent().getConsultant().getIMosName());
	}
	
	form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().initialize(MosType.MEDIC);
	form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().isRequired(true);
	form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().dtimConsultantTransfer().setValue(new DateTime());
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	form.ccConsultant().initialize(MosType.MEDIC);
	form.ccConsultant().isRequired(true);
	
	//WDEV-12587
	bindCmbSourceOfReferralLookup();
	form.ccReferringConsultant().initialize(MosType.MEDIC);
	
	enableInstanceControls(false);
	
	//WDEV-10696 - hide A&E Tabs 
	if(!ConfigFlag.UI.DISPLAY_ANE_BEDMANAGEMENT.getValue())
	{
		form.lyrAdmission().tabEmergency().setVisible(false);
		form.lyrAdmission().tabEmergency().setHeaderVisible(false);
	}
	
	//WDEV-12968 Default Id Type to config type 
	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());
	form.lyrAdmission().tabWaiting().cmbIdType().setValue(dispIdType);			
}
 
Example 4
Project: AvoinApotti   File: MOSQueryImpl.java   Source Code and License 6 votes vote down vote up
public IMos[] listMOS(String name, MosType mosType, HcpDisType mosDiscipline, Integer mosLocation, Boolean canReferPatient,Boolean isALocalConsultant,Boolean isResponsibleHcp) 
{
	if(name == null || (name != null && name.length() == 0))
		throw new DomainRuntimeException("Can not search on null name.");
	
	if(mosType == null)
		mosType = MosType.ALL;
	
	if(mosType.equals(MosType.HCP))
	{
		return listHCP(name, null, mosDiscipline, mosLocation, canReferPatient,isALocalConsultant,isResponsibleHcp);//WDEV-15544 //WDEV-15194
	}
	if(mosType.equals(MosType.MEDIC))
	{
		return listHCP(name, MEDIC, null, mosLocation, canReferPatient,isALocalConsultant,isResponsibleHcp);//WDEV-15544 //WDEV-15194
	}
	
	return listAllMOS(name);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialise()
{

	form.lblListOwners().setValue("");
	form.lyrTabs().tabExtendedView().btnBlockSession().setImage(form.getImages().Core.RedFlag);
	form.lyrTabs().tabExtendedView().btnCancelSession().setImage(form.getImages().Core.Delete);
	form.lyrTabs().tabExtendedView().btnMoveSession().setImage(form.getImages().Core.MoveTo);
	form.lyrTabs().tabExtendedView().btnAddComments().setImage(form.getImages().Core.Add);
	form.lyrTabs().tabExtendedView().btnAddSlot().setImage(form.getImages().Core.Add);
	form.lyrTabs().tabExtendedView().btnReOpen().setImage(form.getImages().Core.Tick);

	form.ccListOwner().initialize(MosType.HCP);
	populateHospitalCombo();
	populateServicesCombo();

	populateSearchCriteria();
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
public void initialize()
{
	clear();

	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	form.ccOrderingHCP().initialize(MosType.HCP);

	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());

	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();

	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);

	updateControlsState();
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	form.ccListOwner().initialize(MosType.HCP);
	
	initializeDynamicGrid();
	enableTransfer();
	if (form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagementIsNotNull())
	{
		form.qmbService().newRow(form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getService(),form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getServiceIsNotNull()?form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getService().getServiceName():"");
		form.qmbService().setValue(form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getService());		
		form.qmbConsultant().newRow(form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getConsultant(),form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getConsultantIsNotNull()?form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getConsultant().getName().toString():"");
		form.qmbConsultant().setValue(form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getConsultant());
		form.qmbElectiveListName().newRow(form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getElectiveListName(), form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getElectiveListNameIsNotNull()?form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getElectiveListName().getWaitingListName():"");			
		form.qmbElectiveListName().setValue(form.getGlobalContext().RefMan.getSearchCriteriaForElectiveListManagement().getElectiveListName());

		search();
	}
	
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
public void initializeComponent()
{
	setTooltips();

	populateWards();
	form.ccDischCons().initialize(MosType.MEDIC);
	form.ccAuthoring().setIsRequiredPropertyToControls(true);
	form.ccAuthoring().initializeComponent(HcpDisType.MEDICAL);

	clearInstanceControls();

	form.getGlobalContext().Clinical.seteDischargeCompleted(false);

	form.getLocalContext().setisReadonly(false);

	form.getLocalContext().setbInitialised(null);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialize() 
{
	populateHospitalCombo();
	
	ILocation currentLocation = engine.getCurrentLocation();
	LocSiteLiteVo currentHospiptal = domain.getCurrentHospital(currentLocation);
	
	form.cmbHospital().setValue(currentHospiptal);
	if(form.cmbHospital().getValue() != null && currentLocation instanceof LocationLiteVo)
	{
		listCurrentWards(form.cmbHospital().getValue(), null, false);
		form.qmbCurrentWard().setValue((LocationLiteVo) currentLocation);
	}
	
	form.ccConsultant().initialize(MosType.MEDIC);
	
	bindVTEAssessmentStatusCombo();
	
	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());
	form.cmbIDType().setValue(dispIdType);
	
	form.getLocalContext().setWasTimerOn(false);
	form.getTimers().gettimerRefresh().setInterval(ConfigFlag.UI.VTE_RISK_ASSESSMENT_AUTO_REFRESH_TIME_SECONDS.getValue());
}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initialise()
{
	form.ccCompletingClinician().initialize(MosType.MEDIC);
	form.getLocalContext().setcurentSurgicalOpNotes(null);
	form.getLocalContext().setselectedRecord(null);
	form.btnGenerate().setEnabled(true);
	form.ccCompletingClinician().isRequired(true);	//wdev-13658
	//wdev-13658
	form.chkSurgicalOperationNotesComplete().setValue(Boolean.FALSE);
	form.ccCompletingClinician().setVisible(false);
	form.dtimCompletion().setVisible(false);
	form.lblCompletingClinician().setVisible(false);
	form.lblDateofCompletion().setVisible(false);
	//-------------------
	
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
/**
 *	Function used to initialize the form
 *	Initialize the MosQuery components, clear the global contexts
 */
public void initialize() throws ims.framework.exceptions.PresentationLogicException
{
	// Initialize MosQuery components
	form.ccAuthoringHCP().initialize(MosType.HCP);
	form.ccResponsibleHCP().initialize(MosType.HCP);
	
	// Check system flag and set appropriate column name
	form.grdAssessments().setColAuthoringHCPCaption(ConfigFlag.UI.PATIENT_ASSESSMENT_SEARCH_DISPLAY_HCP_COLUMN_TYPE.getValue());
	
	// Remove statuses different from "In Progress" or "Completed"
	ArrayList<?> values = form.cmbAssessmentStatus().getValues();
	
	for (int i = values.size() - 1; i >= 0; i--)
	{
		if (!PatientAssessmentStatusReason.COMPLETED.equals(values.get(i)) && !PatientAssessmentStatusReason.INPROGRESS.equals(values.get(i)))
		{
			form.cmbAssessmentStatus().removeRow((PatientAssessmentStatusReason) values.get(i));
		}
	}
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
public void initialize(ims.clinical.vo.SurgicalAuditOperationDetailRefVo surgicalAuditRef)
{
	if (surgicalAuditRef != null)
	{
		form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(surgicalAuditRef));
	}

	// form.ccConsultant().initialize(MosType.MEDIC);
	form.ccRecoveryRoomNurse().initialize(MosType.HCP, HcpDisType.NURSING);
	form.ccWardUnitNurse().initialize(MosType.HCP, HcpDisType.NURSING);
	form.ccHandOverFromRecoveryNurse().initialize(MosType.HCP, HcpDisType.NURSING);

	populateSentToCombo();

	open();
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initializeTabCareRecord()
{
	form.lyr1().tabCareRecord().ccActualProcedurePerformed().setCodingItemType(CodingItemType.PROCEDURE);
	form.lyr1().tabCareRecord().ccActualProcedurePerformed().setHotlist(new Boolean(false));
	form.lyr1().tabCareRecord().ccActualProcedurePerformed().setIsRequired(true);
	form.lyr1().tabCareRecord().ccPlannedProcedure().setCodingItemType(CodingItemType.PROCEDURE);
	form.lyr1().tabCareRecord().ccPlannedProcedure().setHotlist(new Boolean(false));
	form.lyr1().tabCareRecord().ccPlannedProcedure().setIsRequired(true);

	form.lyr1().tabCareRecord().ccSurgeon().initialize(MosType.HCP);
	form.lyr1().tabCareRecord().ccSurgeonAssistant().initialize(MosType.HCP);
	form.lyr1().tabCareRecord().ccAnaesthetist().initialize(MosType.HCP);
	form.lyr1().tabCareRecord().ccODAODP().initialize(MosType.HCP);

	form.lyr1().tabCareRecord().ccScrubNurse().initialize(MosType.HCP, HcpDisType.NURSING);
	form.lyr1().tabCareRecord().ccCirculatingNurse().initialize(MosType.HCP, HcpDisType.NURSING);
	
	//wdev-12096
	form.getLocalContext().setNewOrEditMode(null);
	//-----------

	loadTheatreCombo(null);
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
public void initialize() throws FormOpenException
{
	// Set the procedure as the clinical coding
	form.ccClinicalProcedure().setCodingItemType(CodingItemType.PROCEDURE);
	form.ccClinicalProcedure().setHotlist(Boolean.FALSE);

	// Remove BOTH value from theatre type lookup
	form.cmbTheatreType().removeRow(TheatreType.BOTH);
	
	// Initialise the Authoring Component
	form.ccAuthoring().setIsRequiredPropertyToControls(true);
			
	form.getLocalContext().setAssessment(null);

	initDynGridComments();
	
	Object hcpLiteUser = domain.getHcpLiteUser();
	
	if (hcpLiteUser instanceof HcpLiteVo)
	{
		form.getLocalContext().setLoggedInHcp((HcpRefVo) hcpLiteUser);
	}
	
	// WDEV-11667 - Initialise MosQuery component to work with HCP of type Medic
	form.ccNamedSurgeon().initialize(MosType.MEDIC);
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	form.ccClinicDoctor().initialize(MosType.MEDIC);
	form.ccClinicDoctor().isRequired(true);
	form.ccCardiologist().initialize(MosType.MEDIC);
	form.ccCardiologist().isRequired(true);

	if (!form.getGlobalContext().Core.getCurrentCareContext().getPasEventIsNotNull())
		engine.showMessage("There is no PAS Event linked to the current care context","Warning",MessageButtons.OK,MessageIcon.WARNING);
}
 
Example 16
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initializeCustomControl() 
{
	initializeCodingControl();

	form.getLocalContext().setPreOpPossumUserAssessment(domain.getAssessment(PreActiveActiveInactiveStatus.ACTIVE, UserDefinedAssessmentType.PREOPPOSSUM));
	form.getLocalContext().setOperativePossumUserAssessment(domain.getAssessment(PreActiveActiveInactiveStatus.ACTIVE, UserDefinedAssessmentType.OPERATIVEDETAILSPOSSUM));

	//WDEV-5193
	form.lyrSurgeryDetails().tabGenDet().customControlMosConsultant().initialize(MosType.HCP);
	form.lyrSurgeryDetails().tabProc().customControlMosSurgeon().initialize(MosType.HCP);
	form.lyrSurgeryDetails().tabProc().customControlMosAnaesthetist().initialize(MosType.HCP);
//	UserDefinedAssessmentType.PREOPPOSSUM
//	UserDefinedAssessmentType.OPERATIVEDETAILSPOSSUM
}
 
Example 17
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.GroupStatus().setValue(GroupStatusEnumeration.rdoCurrent);
	
	loadReferralTypeCombo();
	refreshSearchCriteria();
	form.ccReferredBy().initialize(MosType.HCP);
}
 
Example 18
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize() throws FormOpenException
{
	// WDEV-5193
	//form.lyrDetails().tabDetails().customControlMos().initialize(MosType.MEDIC);		//wdev-12819
	
	//WDEV-15194
	form.lyrDetails().tabDetails().customControlMos().initializeResponsibleHcp(MosType.MEDIC,true);
	form.lyrDetails().tabDetails().customControlMos().isRequired(true);
	
	//wdev-12819
	//form.lyrDetails().tabDetails().ccPrescribing().setLabels(AuthoringLabelType.PRESCRIBING);
	//form.lyrDetails().tabDetails().ccPrescribing().initializeComponent(HcpDisType.MEDICAL);
	form.lyrDetails().tabDetails().ccPrescribingHCP().initialize(MosType.MEDIC);		//wdev-13110
	//--------
	form.getLocalContext().setCurrentValueCollectionCycleDetailsTabGrid(null);										//wdev-12819	
	form.getLocalContext().setCurrentCollectionCycleAndDrugGrid(null);												//wdev-12819
	form.lyrDetails().tabCycleAndDrug().GroupFilterStatus().setValue(GroupFilterStatusEnumeration.rdoStatusActive);  //wdev-12819
	form.getLocalContext().setAddEditMode(null);			//wdev-12416
	
	initializeContextMenus();

	if (ConfigFlag.UI.USE_GENERIC_CHEMOTHERAPY_CYCLE_AND_DRUG_DETAILS.getValue())
	{
		initializeDynamicGrid(); 
		form.lyrDetails().tabCycleAndDrugCCO().setVisible(false);
		form.lyrDetails().tabCycleAndDrugCCO().setHeaderVisible(false);
	}
	else
	{
		initializeDynamicGrid(); //wdev-12819
		form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().setValue(GroupStatusEnumeration.rdoActiveFilter);

		initializeCCODynamicGrid(form.grdChemotherapy().getValue() != null && form.grdChemotherapy().getValue().getDrugTherapyTypeIsNotNull() ? form.grdChemotherapy().getValue().getDrugTherapyType() : null);
		showHideDayDurationControls(form.grdChemotherapy().getValue() != null && form.grdChemotherapy().getValue().getDrugTherapyTypeIsNotNull() ? form.grdChemotherapy().getValue().getDrugTherapyType() : null);
		//form.lyrDetails().tabCycleAndDrug().setVisible(true);
		//form.lyrDetails().tabCycleAndDrug().setHeaderVisible(true);
		
	}
}
 
Example 19
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialise()
{
	form.setMode(FormMode.VIEW);
	form.ccReferredBy().initialize(MosType.HCP);
	form.ccReferredBy().isRequired(Boolean.TRUE);
	initializeDynamicGrid();
	loadReferralTypeCombo();
}
 
Example 20
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	form.lyrDetails().showtabDetails();

	// WDEV-5193
	form.lyrDetails().tabDetails().customConsultant().initialize(MosType.MEDIC);
	form.lyrDetails().tabDetails().customConsultant().isRequired(true);
	
	//form.lyrDetails().tabDetails().ccPrescribing().setLabels(AuthoringLabelType.PRESCRIBING);
	//form.lyrDetails().tabDetails().ccPrescribing().initializeComponent(HcpDisType.MEDICAL);
	form.lyrDetails().tabDetails().ccPrescribingHCP().initialize(MosType.MEDIC);	//wdev-13110
	
	bindDiseaseStatus();
}
 
Example 21
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialise()
{
	form.setMode(FormMode.VIEW);
	form.lyr1().tabPageDetails().btnEdit().setVisible(false);
	form.lyr1().tabPageDetails().ccHcp().initialize(MosType.HCP);
	form.lyr1().tabPageSummary().ccSearchHCP().initialize(MosType.HCP);
	form.lyr1().tabPageDetails().ccHcp().isRequired(Boolean.TRUE);
	
	loadHcpDisciplines();
}
 
Example 22
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	form.ccAdmittingNurse().initialize(MosType.HCP,HcpDisType.NURSING);
	form.ccConfirmedBy().initialize(MosType.ALL);
	form.ccDischarged().initialize(MosType.ALL);
	
	//form.getLocalContext().setisOpenCarePlan(false);
	CarePlanCollection carePlColl = domain.getCareplans(form.getGlobalContext().Core.getCurrentCareContext());
	form.getLocalContext().setisOpenCarePlan(iterateCarePlanCollection(carePlColl));
	
	//WDEV-13846 
	form.getLocalContext().setclinicalAdmission(null);
	form.getLocalContext().setlocalContextForRie(null);
}
 
Example 23
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	form.ccHCP().initialize(MosType.HCP);
	populateWardCmb();
	form.dteFromDate().setValue(new Date());
	form.dteToDate().setValue((new Date()).addDay(7));
	form.grpStatus().setValue(grpStatusEnumeration.rdoActive);
}
 
Example 24
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@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 25
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize(MosType mosType, HcpDisType mosDiscipline, Integer mosLocation)
{
	form.getLocalContext().setMOSSearchType(mosType);
	form.getLocalContext().setMosDiscipline(mosDiscipline);
	form.getLocalContext().setMOSLocation(mosLocation);
	
}
 
Example 26
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * Function used to initialize the form
 */
private void initialize()
{
	// Initialize custom controls
	form.ccMedicSearch().initialize(MosType.MEDIC);
	form.ccNurseSearch().initialize(MosType.HCP, HcpDisType.NURSING);
	
	// Initialize local context
	form.getLocalContext().setRegistrationDateSortOrder(SortOrder.ASCENDING);
	form.getLocalContext().setLOSSortOrder(SortOrder.ASCENDING);
	
	// Set initial values for radio buttons
	form.grpDischargeStatus().setValue(grpDischargeStatusEnumeration.rdoCurrentlyED);
	
	//populateSpecialtyCombo
	populateSpecialtyCombo();//WDEV-17653
	
	// Populate search criteria to screen from persistent global context
	populateSearchControls(form.getGlobalContext().Emergency.getTrackingAndAttendance_SearchCriteria());
	setTotalsLabel();//WDEV-18339
	
	// Clear global contexts for selection
	clearSelection();
	
	//WDEV-17425
	initializeButtons();
}
 
Example 27
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	form.ccOrderingHCP().initialize(MosType.HCP);
	
	presetResponsibleForOrder();
	presetReviewingHCP();
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 28
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void setCurrentResponsibleClinician()
{
	if (ConfigFlag.UI.NEW_RESULTS_ALLOW_RETRIEVAL_BY_THE_CURRENT_RESPONSIBLE_CONSULTANT_FOR_PATIENT.getValue())
	{
		setCurrentResponsibleClinicianVisible(true);
		form.ccCurrentRespClin().initialize(MosType.HCP);
	}
	else
	{
		setCurrentResponsibleClinicianVisible(false);
	}
}
 
Example 29
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	
	LocationLiteVo edLocation = domain.getErDept(form.cmbHospital().getValue());
	form.getLocalContext().setEmergencyDepartment(edLocation);
		
	form.chkExcludeCurrentInpatients().setValue(true);
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	form.ccOrderingHCP().initialize(MosType.HCP);
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 30
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	setLocationDefaults();
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	form.ccOrderingHCP().initialize(MosType.HCP);
	presetResponsibleForOrder();
	presetReviewingHCP();
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 31
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	populateWard();
	
	form.chkCurrentInpatientsOnly().setValue(true);
	form.chkInpatientOrdersPatientDischarged().setValue(true);
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	
	form.chkOrder().setValue(true);
	form.chkCurrentIP().setValue(true);
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 32
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 33
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	form.Group1().setValue(ims.ocrr.forms.resultssummary.GenForm.Group1Enumeration.rdoInp);		

	loadDiscipline();
	form.ccConsultant().initialize(MosType.HCP);
	form.btnClear().setVisible(true);
	form.btnClear().setEnabled(false);
	
}
 
Example 34
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 *	Function used to initialize the form
 *		- initialize local & global contexts
 *		- initialize controls & custom controls
 *		- hide all context menu options
 */
public void initialize() throws FormOpenException
{
	// Perform initialization on local & global contexts
	form.getLocalContext().setSelectedComment(null);
	
	// Initialize authoring information component
	form.ctnDetails().ccAutoringInfo().setIsRequiredPropertyToControls(true);
	// Initialize correcting HCP query & mark it as mandatory
	form.ctnDetails().ccCorrectingHCP().initialize(MosType.HCP);
	form.ctnDetails().ccCorrectingHCP().isRequired(Boolean.TRUE);
	// Hide all context menu options
	form.getContextMenus().OCRR.hideAllResultsCommentsMenuMenuItems();
}
 
Example 35
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	form.txtSearchName().setFocus();
	form.cmbSearchStatus().setValue(PreActiveActiveInactiveStatus.ACTIVE);
	form.getGlobalContext().Pathways.setPathwayToCopy(null);
	form.getGlobalContext().Pathways.setSelectedPathway(null);
	//form.customControlConsultant().setHcpType(HcpDisType.MEDICAL);
	//WDEV-5193 
	form.customControlMos().initialize(MosType.MEDIC);
	search();
}
 
Example 36
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialise()
{
	form.ccRecordingUser().initialize(MosType.ALL);
	form.ccRecordingUser().setValue((IMos) domain.getMosUser());
	form.ccRecordingUser().isRequired(true);
	form.dtimRecording().setValue(new DateTime());
}
 
Example 37
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	loadSpecialtiesCombo();
	form.cmbSpecialty().setFocus();
	//form.customControlConsultant().setHcpType(HcpDisType.MEDICAL);
	
	//WDEV-5193 
	form.customControlMos().initialize(MosType.MEDIC);
	
	//setting the text of the PatId Column
	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); 
	form.grdDetails().setColHospNoCaption(dispIdType.getText());

	restoreSearchCriteria();
}
 
Example 38
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
	form.ccMos().initialize(MosType.ALL);
	form.ccMos().isRequired(Boolean.TRUE);
	form.ccMos().setValue((IMos) domain.getMosUser());
	form.dtimCancelled().setValue(new DateTime());
	populateCancelationType(); // WDEV-18390 
}
 
Example 39
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialise()
{
	form.setMode(FormMode.VIEW);	
			 
	form.lyr1().tabSearch().ccConsultant().initialize(MosType.HCP);

	//WDEV-13313
	if(!engine.getFormName().equals(form.getForms().RefMan.TheatreAvailability))
	{
		FitForSurgeryAssessmentLiteVo fitForSurgery = domain.getLatestFitForSurgeryAssessment(form.getGlobalContext().RefMan.getCatsReferral());
		form.getLocalContext().setAnaestheticType(fitForSurgery != null ? fitForSurgery.getAnaestheticType() : null);
	}

	form.lyr1().tabSearch().cmbAnaesType().setValue(form.getLocalContext().getAnaestheticType());
	if(form.getLocalContext().getAnaestheticTypeIsNotNull())
	{
		if(!engine.hasRight(AppRight.ALLOW_ANAESTHETIC_TYPE_CHANGE))
		{
			form.lyr1().tabSearch().cmbAnaesType().setVisible(false); //hide the combo
			
			if(form.getLocalContext().getAnaestheticTypeIsNotNull())
				form.lyr1().tabSearch().lblAnaestheticTypeText().setValue(form.getLocalContext().getAnaestheticType().getText());
		}
	}

	loadServices();
	loadLocations();
	
	//WDEV-18396
	form.chkElective().setValue(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue());
	
}
 
Example 40
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialize()
{
	clearScreen();

	form.ccRemovedBy().isRequired(true);
	form.ccRemovedBy().initialize(MosType.ALL);
	Object mos = domain.getMosUser();

	if (mos != null && mos instanceof MemberOfStaffRefVo)
		form.ccRemovedBy().setValue((MemberOfStaffLiteVo) mos);

	form.dtimRemovalDateTime().setValue(new DateTime());
}