Java Code Examples for ims.ocrr.forms.newresultsalltabcomponent.GenForm.ListResultsByEnumeration

The following are top voted examples for showing how to use ims.ocrr.forms.newresultsalltabcomponent.GenForm.ListResultsByEnumeration. 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 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 2
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.OrdLocGrp().setValue(null);
	form.OrdLocGrp().setEnabled(false);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccOrderingHCP().clear();
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 4
Project: openMAXIMS   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 5
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.OrdLocGrp().setValue(null);
	form.OrdLocGrp().setEnabled(false);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccOrderingHCP().clear();
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 7
Project: openMAXIMS   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 8
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.OrdLocGrp().setValue(null);
	form.OrdLocGrp().setEnabled(false);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccOrderingHCP().clear();
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 10
Project: openmaxims-linux   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 11
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.OrdLocGrp().setValue(null);
	form.OrdLocGrp().setEnabled(false);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccOrderingHCP().clear();
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	newResultsSearchCriteria.setSelectedTab(ALL);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	
	if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoWard))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_WARD);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoED))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_ED);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoClinic))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_CLINIC);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoOther))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_OTHER);
	
	newResultsSearchCriteria.setOrderingLocation(form.qmbOrderingLocation().getValue());
	
	if(getIsOutpatientDepartment() && form.qmbOrderingLocation().getValue() instanceof LocationLiteVo)
	{
		newResultsSearchCriteria.setOutpatientDepartment((LocationLiteVo) form.qmbOrderingLocation().getValue());
	}
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getOrderingLocationTypeIsNotNull())
	{
		if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_WARD))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoWard);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_ED))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoED);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_CLINIC))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoClinic);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_OTHER))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoOther);
	}
	
	if((criteria.getOrderingLocation() instanceof ClinicLiteVo && !getIsOutpatientDepartment())
			|| (criteria.getOrderingLocation() instanceof LocationLiteVo && (criteria.getOutpatientDepartment() == null || (criteria.getOutpatientDepartment() != null && getIsOutpatientDepartment()))))
	{
		form.qmbOrderingLocation().newRow(criteria.getOrderingLocation(), criteria.getOrderingLocation().toString());
		form.qmbOrderingLocation().setValue(criteria.getOrderingLocation());
	}
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	newResultsSearchCriteria.setSelectedTab(ALL);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	
	if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoWard))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_WARD);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoED))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_ED);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoClinic))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_CLINIC);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoOther))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_OTHER);
	
	newResultsSearchCriteria.setOrderingLocation(form.qmbOrderingLocation().getValue());
	
	if(getIsOutpatientDepartment() && form.qmbOrderingLocation().getValue() instanceof LocationLiteVo)
	{
		newResultsSearchCriteria.setOutpatientDepartment((LocationLiteVo) form.qmbOrderingLocation().getValue());
	}
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getOrderingLocationTypeIsNotNull())
	{
		if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_WARD))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoWard);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_ED))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoED);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_CLINIC))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoClinic);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_OTHER))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoOther);
	}
	
	if((criteria.getOrderingLocation() instanceof ClinicLiteVo && !getIsOutpatientDepartment())
			|| (criteria.getOrderingLocation() instanceof LocationLiteVo && (criteria.getOutpatientDepartment() == null || (criteria.getOutpatientDepartment() != null && getIsOutpatientDepartment()))))
	{
		form.qmbOrderingLocation().newRow(criteria.getOrderingLocation(), criteria.getOrderingLocation().toString());
		form.qmbOrderingLocation().setValue(criteria.getOrderingLocation());
	}
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	newResultsSearchCriteria.setSelectedTab(ALL);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	
	if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoWard))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_WARD);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoED))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_ED);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoClinic))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_CLINIC);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoOther))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_OTHER);
	
	newResultsSearchCriteria.setOrderingLocation(form.qmbOrderingLocation().getValue());
	
	if(getIsOutpatientDepartment() && form.qmbOrderingLocation().getValue() instanceof LocationLiteVo)
	{
		newResultsSearchCriteria.setOutpatientDepartment((LocationLiteVo) form.qmbOrderingLocation().getValue());
	}
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getOrderingLocationTypeIsNotNull())
	{
		if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_WARD))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoWard);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_ED))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoED);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_CLINIC))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoClinic);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_OTHER))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoOther);
	}
	
	if((criteria.getOrderingLocation() instanceof ClinicLiteVo && !getIsOutpatientDepartment())
			|| (criteria.getOrderingLocation() instanceof LocationLiteVo && (criteria.getOutpatientDepartment() == null || (criteria.getOutpatientDepartment() != null && getIsOutpatientDepartment()))))
	{
		form.qmbOrderingLocation().newRow(criteria.getOrderingLocation(), criteria.getOrderingLocation().toString());
		form.qmbOrderingLocation().setValue(criteria.getOrderingLocation());
	}
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}
 
Example 19
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	newResultsSearchCriteria.setSelectedTab(ALL);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	
	if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoWard))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_WARD);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoED))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_ED);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoClinic))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_CLINIC);
	else if(form.OrdLocGrp().getValue().equals(OrdLocGrpEnumeration.rdoOther))
		newResultsSearchCriteria.setOrderingLocationType(ORDERING_LOCATION_TYPE_OTHER);
	
	newResultsSearchCriteria.setOrderingLocation(form.qmbOrderingLocation().getValue());
	
	if(getIsOutpatientDepartment() && form.qmbOrderingLocation().getValue() instanceof LocationLiteVo)
	{
		newResultsSearchCriteria.setOutpatientDepartment((LocationLiteVo) form.qmbOrderingLocation().getValue());
	}
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getOrderingLocationTypeIsNotNull())
	{
		if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_WARD))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoWard);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_ED))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoED);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_CLINIC))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoClinic);
		else if(criteria.getOrderingLocationType().equals(ORDERING_LOCATION_TYPE_OTHER))
			form.OrdLocGrp().setValue(OrdLocGrpEnumeration.rdoOther);
	}
	
	if((criteria.getOrderingLocation() instanceof ClinicLiteVo && !getIsOutpatientDepartment())
			|| (criteria.getOrderingLocation() instanceof LocationLiteVo && (criteria.getOutpatientDepartment() == null || (criteria.getOutpatientDepartment() != null && getIsOutpatientDepartment()))))
	{
		form.qmbOrderingLocation().newRow(criteria.getOrderingLocation(), criteria.getOrderingLocation().toString());
		form.qmbOrderingLocation().setValue(criteria.getOrderingLocation());
	}
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}