Java Code Examples for ims.core.vo.BedSpaceStateLiteVo.getWardIsNotNull()

The following are Jave code examples for showing how to use getWardIsNotNull() of the ims.core.vo.BedSpaceStateLiteVo 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 5 votes
private void cmbOutHospitalValueChanged(boolean bUserCalled)
{
	form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().clear();

	if (form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue() == null)
		return;

	LocationLiteVoCollection voCollWards = domain.listActiveWardsForHospitalLite(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue());
	if (voCollWards != null)
	{
		for (LocationLiteVo voWard : voCollWards)
		{
			// exclude current ward
			BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
			if (voBedSpaceState != null && voBedSpaceState.getWardIsNotNull())
			{
				if (voWard.equals(voBedSpaceState.getWard()))
					continue;
			}

			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().newRow(voWard, voWard.getName());
		}

		if (voCollWards.size() == 1)
			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().setValue(voCollWards.get(0));
		else if (voCollWards.size() > 0)
		{
			if (!bUserCalled)
				form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().showOpened();
		}

	}
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void cmbOutHospitalValueChanged(boolean bUserCalled)
{
	form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().clear();

	if (form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue() == null)
		return;

	LocationLiteVoCollection voCollWards = domain.listActiveWardsForHospitalLite(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue());
	if (voCollWards != null)
	{			
		for (LocationLiteVo voWard : voCollWards)
		{
			// exclude current ward
			BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
			if (voBedSpaceState != null && voBedSpaceState.getWardIsNotNull())
			{
				if (voWard.equals(voBedSpaceState.getWard()))
					continue;
			}
			//WDEV-21208 - exclude Opened for View Ward
			else if (form.getGlobalContext().Core.getWardViewPatientListWardIsNotNull())
			{
				if (voWard.equals(form.getGlobalContext().Core.getWardViewPatientListWard()))
					continue;
			}

			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().newRow(voWard, voWard.getName());
		}

		if (voCollWards.size() == 1)
			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().setValue(voCollWards.get(0));
		else if (voCollWards.size() > 0)
		{
			if (!bUserCalled)
				form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().showOpened();
		}

	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void cmbOutHospitalValueChanged(boolean bUserCalled)
{
	form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().clear();

	if (form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue() == null)
		return;

	LocationLiteVoCollection voCollWards = domain.listActiveWardsForHospitalLite(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue());
	if (voCollWards != null)
	{
		for (LocationLiteVo voWard : voCollWards)
		{
			// exclude current ward
			BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
			if (voBedSpaceState != null && voBedSpaceState.getWardIsNotNull())
			{
				if (voWard.equals(voBedSpaceState.getWard()))
					continue;
			}

			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().newRow(voWard, voWard.getName());
		}

		if (voCollWards.size() == 1)
			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().setValue(voCollWards.get(0));
		else if (voCollWards.size() > 0)
		{
			if (!bUserCalled)
				form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().showOpened();
		}

	}
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private void cmbOutHospitalValueChanged(boolean bUserCalled)
{
	form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().clear();

	if (form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue() == null)
		return;

	LocationLiteVoCollection voCollWards = domain.listActiveWardsForHospitalLite(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutHospital().getValue());
	if (voCollWards != null)
	{
		for (LocationLiteVo voWard : voCollWards)
		{
			// exclude current ward
			BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
			if (voBedSpaceState != null && voBedSpaceState.getWardIsNotNull())
			{
				if (voWard.equals(voBedSpaceState.getWard()))
					continue;
			}

			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().newRow(voWard, voWard.getName());
		}

		if (voCollWards.size() == 1)
			form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().setValue(voCollWards.get(0));
		else if (voCollWards.size() > 0)
		{
			if (!bUserCalled)
				form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbOutTransfer().showOpened();
		}

	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void populateScreenFromEmergencyData(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmissionAdmit) 
{
	clearScreen();
	if(voPendingEmergencyAdmissionAdmit == null)
		return;
	
	BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
	if(voBedSpaceState != null)
	{
		if(voBedSpaceState.getWardIsNotNull())
		{
			form.cmbWard().newRow(voBedSpaceState.getWard(), voBedSpaceState.getWard().toString());
			form.cmbWard().setValue(voBedSpaceState.getWard());
		}
		
		if(voBedSpaceState.getBedSpaceIsNotNull())
			form.cmbWardType().setValue(voBedSpaceState.getBedSpace().getWardType());
	}

	if(voPendingEmergencyAdmissionAdmit.getPasEventIsNotNull())
	{
		form.ccConsultant().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getConsultant());
		listSpecialtiesForConsultant();
		
		if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
		{
			if(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialtyIsNotNull())
			{
				if(!form.cmbCCOSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty()))
					form.cmbCCOSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty().getText());
			}
				
			form.cmbCCOSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty());
		}
		//if conspc call did not find specialty (conspc mapping was removed) add it as a value anyway
		if(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialtyIsNotNull())
		{
			if(!form.cmbSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty()))
				form.cmbSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty().getText());
		}
		
		form.cmbSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty());
	}

	//WDEV-10076
	form.cmbMethod().setValue(null);
	form.cmbSource().setValue(SourceOfAdmission.HOMEADDRESS);
	form.dtimAdmit().setValue(new DateTime());

	form.chkChaplain().setValue(false);
	
	loadEpisodes();
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
private void populateScreenFromEmergencyData(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmissionAdmit) 
{
	clearScreen();
	if(voPendingEmergencyAdmissionAdmit == null)
		return;
	
	BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
	if(voBedSpaceState != null)
	{
		if(voBedSpaceState.getWardIsNotNull())
		{
			form.cmbWard().newRow(voBedSpaceState.getWard(), voBedSpaceState.getWard().toString());
			form.cmbWard().setValue(voBedSpaceState.getWard());
		}
		
		if(voBedSpaceState.getBedSpaceIsNotNull())
			form.cmbWardType().setValue(voBedSpaceState.getBedSpace().getWardType());
	}

	if(voPendingEmergencyAdmissionAdmit.getPasEventIsNotNull())
	{
		form.ccConsultant().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getConsultant());
		listSpecialtiesForConsultant();
		
		if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
		{
			if(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialtyIsNotNull())
			{
				if(!form.cmbCCOSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty()))
					form.cmbCCOSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty().getText());
			}
				
			form.cmbCCOSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty());
		}
		//if conspc call did not find specialty (conspc mapping was removed) add it as a value anyway
		if(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialtyIsNotNull())
		{
			if(!form.cmbSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty()))
				form.cmbSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty().getText());
		}
		
		form.cmbSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty());
	}

	//WDEV-10076
	form.cmbMethod().setValue(null);
	form.cmbSource().setValue(SourceOfAdmission.HOMEADDRESS);
	form.dtimAdmit().setValue(new DateTime());

	form.chkChaplain().setValue(false);
	
	loadEpisodes();
}
 
Example 7
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 4 votes
private void populateScreenFromEmergencyData(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmissionAdmit) 
{
	clearScreen();
	if(voPendingEmergencyAdmissionAdmit == null)
		return;
	
	BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
	if(voBedSpaceState != null)
	{
		if(voBedSpaceState.getWardIsNotNull())
		{
			form.cmbWard().newRow(voBedSpaceState.getWard(), voBedSpaceState.getWard().toString());
			form.cmbWard().setValue(voBedSpaceState.getWard());
		}
		
		if(voBedSpaceState.getBedSpaceIsNotNull())
			form.cmbWardType().setValue(voBedSpaceState.getBedSpace().getWardType());
	}

	if(voPendingEmergencyAdmissionAdmit.getPasEventIsNotNull())
	{
		form.ccConsultant().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getConsultant());
		listSpecialtiesForConsultant();
		
		if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
		{
			if(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialtyIsNotNull())
			{
				if(!form.cmbCCOSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty()))
					form.cmbCCOSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty().getText());
			}
				
			form.cmbCCOSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty());
		}
		//if conspc call did not find specialty (conspc mapping was removed) add it as a value anyway
		if(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialtyIsNotNull())
		{
			if(!form.cmbSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty()))
				form.cmbSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty().getText());
		}
		
		form.cmbSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty());
	}

	//WDEV-10076
	form.cmbMethod().setValue(null);
	form.cmbSource().setValue(SourceOfAdmission.HOMEADDRESS);
	form.dtimAdmit().setValue(new DateTime());

	form.chkChaplain().setValue(false);
	
	loadEpisodes();
}