Java Code Examples for ims.ocrr.vo.PathologyResultListShortVo

The following are top voted examples for showing how to use ims.ocrr.vo.PathologyResultListShortVo. 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 viewPathologySelectedOrder()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		if (result.getOrderDetails() != null)
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(result.getOrderDetails());
			
			if (AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(result.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(result.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(grdPathologyRow selectedRow)
{
	PathologyResultListShortVo resultParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	
	if (isStatusResulted(resultParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;
	
	for (int i = 0; i < selectedRow.getRows().size(); i++)
	{
		grdPathologyRow childRow = selectedRow.getRows().get(i);
		
		PathologyResultListShortVo result = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(result.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}

	return false;
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSpecimenDisplayValue(PathologyResultListShortVo result)  
{
	if (result == null || result.getSpecimen() == null || (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() == null && result.getResultSpecimenType() == null)) //wdev-15780 //WDEV-14677
		return "[No specimen source]";
	
	StringBuilder display = new StringBuilder();
	
	if (result.getResultSpecimenType() != null)  //wdev-15780
	{
		display.append(result.getResultSpecimenType().getText());			//wdev-15780
	}
	else if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() != null) //WDEV-14677
	{ 
		display.append(result.getSpecimen().get(0).getSpecimenSource().getText()); //wdev-15780
	}
	
	if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSiteCd() != null)  //wdev-15780  //WDEV-14677
	{
		display.append(" - ").append(result.getSpecimen().get(0).getSiteCd().getText()); //wdev-15780
	}
	
	return display.toString();
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow selectedRow)
{
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = selectedRow.getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}
	return false;
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewSelectedOrder()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() != null)
	{
		PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
		if (voPathologyResult.getOrderDetailsIsNotNull())
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(getSelectedDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(voPathologyResult.getOrderDetails());
			
			//	WDEV-11097
			if(AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(voPathologyResult.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(voPathologyResult.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVo getCurrentInv()
{
	//WDEV-11547 change this to return only invs that are resulted whther the child or parent is clicked on
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue();

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = form.lyrMain().tabSearch().grdResults().getSelectedRow().getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return row.getValue();
	}
	return null;
	
	
	
	//return form.lyrMain().tabSearch().grdResults().getValue();
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVoCollection getAllInvs()
{
	OcsPathRadResultVoCollection result = new OcsPathRadResultVoCollection();

	for (int x = 0; x < form.lyrMain().tabSearch().grdResults().getRows().size(); x++)
	{
		//WDEV-11547 - only add actual results to this collection
		grdResultsRow pRow = form.lyrMain().tabSearch().grdResults().getRows().get(x);
		PathologyResultListShortVo res = form.lyrMain().tabSearch().grdResults().getRows().get(x).getColResultDetails();
		if(res != null && res.getResultDetails() != null && res.getResultDetails().getPathologyResultDetailsIsNotNull() && res.getResultDetails().getPathologyResultDetails().size() > 0 && res.getResultDetails().getPathologyResultDetails().get(0) != null)//	WDEV-16232	
			result.add(form.lyrMain().tabSearch().grdResults().getRows().get(x).getValue());
		else
		{
			if(pRow.getRows() != null)
			{
				for (int y = 0; y < pRow.getRows().size(); y++)
				{
					PathologyResultListShortVo res1 = pRow.getRows().get(y).getColResultDetails();
					if(res1 != null && res1.getResultDetails() != null && res1.getResultDetails().getPathologyResultDetailsIsNotNull() && res1.getResultDetails().getPathologyResultDetails().size() > 0 && res1.getResultDetails().getPathologyResultDetails().get(0) != null)	//WDEV-16232		
						result.add(pRow.getRows().get(y).getValue());
				}
			}
		}
	}
	return result;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewPathologySelectedOrder()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		if (result.getOrderDetails() != null)
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(result.getOrderDetails());
			
			if (AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(result.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(result.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(grdPathologyRow selectedRow)
{
	PathologyResultListShortVo resultParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	
	if (isStatusResulted(resultParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;
	
	for (int i = 0; i < selectedRow.getRows().size(); i++)
	{
		grdPathologyRow childRow = selectedRow.getRows().get(i);
		
		PathologyResultListShortVo result = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(result.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}

	return false;
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSpecimenDisplayValue(PathologyResultListShortVo result)  
{
	if (result == null || result.getSpecimen() == null || (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() == null && result.getResultSpecimenType() == null)) //wdev-15780 //WDEV-14677
		return "[No specimen source]";
	
	StringBuilder display = new StringBuilder();
	
	if (result.getResultSpecimenType() != null)  //wdev-15780
	{
		display.append(result.getResultSpecimenType().getText());			//wdev-15780
	}
	else if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() != null) //WDEV-14677
	{ 
		display.append(result.getSpecimen().get(0).getSpecimenSource().getText()); //wdev-15780
	}
	
	if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSiteCd() != null)  //wdev-15780  //WDEV-14677
	{
		display.append(" - ").append(result.getSpecimen().get(0).getSiteCd().getText()); //wdev-15780
	}
	
	return display.toString();
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewPathologySelectedOrder()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		if (result.getOrderDetails() != null)
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(result.getOrderDetails());
			
			if (AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(result.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(result.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(grdPathologyRow selectedRow)
{
	PathologyResultListShortVo resultParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	
	if (isStatusResulted(resultParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;
	
	for (int i = 0; i < selectedRow.getRows().size(); i++)
	{
		grdPathologyRow childRow = selectedRow.getRows().get(i);
		
		PathologyResultListShortVo result = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(result.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}

	return false;
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSpecimenDisplayValue(PathologyResultListShortVo result)  
{
	if (result == null || result.getSpecimen() == null || (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() == null && result.getResultSpecimenType() == null)) //wdev-15780 //WDEV-14677
		return "[No specimen source]";
	
	StringBuilder display = new StringBuilder();
	
	if (result.getResultSpecimenType() != null)  //wdev-15780
	{
		display.append(result.getResultSpecimenType().getText());			//wdev-15780
	}
	else if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() != null) //WDEV-14677
	{ 
		display.append(result.getSpecimen().get(0).getSpecimenSource().getText()); //wdev-15780
	}
	
	if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSiteCd() != null)  //wdev-15780  //WDEV-14677
	{
		display.append(" - ").append(result.getSpecimen().get(0).getSiteCd().getText()); //wdev-15780
	}
	
	return display.toString();
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow selectedRow)
{
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = selectedRow.getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}
	return false;
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewSelectedOrder()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() != null)
	{
		PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
		if (voPathologyResult.getOrderDetailsIsNotNull())
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(getSelectedDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(voPathologyResult.getOrderDetails());
			
			//	WDEV-11097
			if(AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(voPathologyResult.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(voPathologyResult.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVo getCurrentInv()
{
	//WDEV-11547 change this to return only invs that are resulted whther the child or parent is clicked on
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue();

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = form.lyrMain().tabSearch().grdResults().getSelectedRow().getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return row.getValue();
	}
	return null;
	
	
	
	//return form.lyrMain().tabSearch().grdResults().getValue();
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVoCollection getAllInvs()
{
	OcsPathRadResultVoCollection result = new OcsPathRadResultVoCollection();

	for (int x = 0; x < form.lyrMain().tabSearch().grdResults().getRows().size(); x++)
	{
		//WDEV-11547 - only add actual results to this collection
		grdResultsRow pRow = form.lyrMain().tabSearch().grdResults().getRows().get(x);
		PathologyResultListShortVo res = form.lyrMain().tabSearch().grdResults().getRows().get(x).getColResultDetails();
		if(res != null && res.getResultDetails() != null && res.getResultDetails().getPathologyResultDetailsIsNotNull() && res.getResultDetails().getPathologyResultDetails().size() > 0 && res.getResultDetails().getPathologyResultDetails().get(0) != null)//	WDEV-16232	
			result.add(form.lyrMain().tabSearch().grdResults().getRows().get(x).getValue());
		else
		{
			if(pRow.getRows() != null)
			{
				for (int y = 0; y < pRow.getRows().size(); y++)
				{
					PathologyResultListShortVo res1 = pRow.getRows().get(y).getColResultDetails();
					if(res1 != null && res1.getResultDetails() != null && res1.getResultDetails().getPathologyResultDetailsIsNotNull() && res1.getResultDetails().getPathologyResultDetails().size() > 0 && res1.getResultDetails().getPathologyResultDetails().get(0) != null)	//WDEV-16232		
						result.add(pRow.getRows().get(y).getValue());
				}
			}
		}
	}
	return result;
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewPathologySelectedOrder()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		if (result.getOrderDetails() != null)
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(result.getOrderDetails());
			
			if (AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(result.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(result.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(grdPathologyRow selectedRow)
{
	PathologyResultListShortVo resultParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	
	if (isStatusResulted(resultParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;
	
	for (int i = 0; i < selectedRow.getRows().size(); i++)
	{
		grdPathologyRow childRow = selectedRow.getRows().get(i);
		
		PathologyResultListShortVo result = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(result.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}

	return false;
}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSpecimenDisplayValue(PathologyResultListShortVo result)  
{
	if (result == null || result.getSpecimen() == null || (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() == null && result.getResultSpecimenType() == null)) //wdev-15780 //WDEV-14677
		return "[No specimen source]";
	
	StringBuilder display = new StringBuilder();
	
	if (result.getResultSpecimenType() != null)  //wdev-15780
	{
		display.append(result.getResultSpecimenType().getText());			//wdev-15780
	}
	else if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() != null) //WDEV-14677
	{ 
		display.append(result.getSpecimen().get(0).getSpecimenSource().getText()); //wdev-15780
	}
	
	if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSiteCd() != null)  //wdev-15780  //WDEV-14677
	{
		display.append(" - ").append(result.getSpecimen().get(0).getSiteCd().getText()); //wdev-15780
	}
	
	return display.toString();
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow selectedRow)
{
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = selectedRow.getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}
	return false;
}
 
Example 22
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewSelectedOrder()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() != null)
	{
		PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
		if (voPathologyResult.getOrderDetailsIsNotNull())
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(getSelectedDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(voPathologyResult.getOrderDetails());
			
			//	WDEV-11097
			if(AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(voPathologyResult.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(voPathologyResult.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 23
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVo getCurrentInv()
{
	//WDEV-11547 change this to return only invs that are resulted whther the child or parent is clicked on
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue();

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = form.lyrMain().tabSearch().grdResults().getSelectedRow().getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return row.getValue();
	}
	return null;
	
	
	
	//return form.lyrMain().tabSearch().grdResults().getValue();
}
 
Example 24
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVoCollection getAllInvs()
{
	OcsPathRadResultVoCollection result = new OcsPathRadResultVoCollection();

	for (int x = 0; x < form.lyrMain().tabSearch().grdResults().getRows().size(); x++)
	{
		//WDEV-11547 - only add actual results to this collection
		grdResultsRow pRow = form.lyrMain().tabSearch().grdResults().getRows().get(x);
		PathologyResultListShortVo res = form.lyrMain().tabSearch().grdResults().getRows().get(x).getColResultDetails();
		if(res != null && res.getResultDetails() != null && res.getResultDetails().getPathologyResultDetailsIsNotNull() && res.getResultDetails().getPathologyResultDetails().size() > 0 && res.getResultDetails().getPathologyResultDetails().get(0) != null)//	WDEV-16232	
			result.add(form.lyrMain().tabSearch().grdResults().getRows().get(x).getValue());
		else
		{
			if(pRow.getRows() != null)
			{
				for (int y = 0; y < pRow.getRows().size(); y++)
				{
					PathologyResultListShortVo res1 = pRow.getRows().get(y).getColResultDetails();
					if(res1 != null && res1.getResultDetails() != null && res1.getResultDetails().getPathologyResultDetailsIsNotNull() && res1.getResultDetails().getPathologyResultDetails().size() > 0 && res1.getResultDetails().getPathologyResultDetails().get(0) != null)	//WDEV-16232		
						result.add(pRow.getRows().get(y).getValue());
				}
			}
		}
	}
	return result;
}
 
Example 25
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewPathologySelectedOrder()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		if (result.getOrderDetails() != null)
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(result.getOrderDetails());
			
			if (AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(result.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(result.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 26
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(grdPathologyRow selectedRow)
{
	PathologyResultListShortVo resultParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	
	if (isStatusResulted(resultParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;
	
	for (int i = 0; i < selectedRow.getRows().size(); i++)
	{
		grdPathologyRow childRow = selectedRow.getRows().get(i);
		
		PathologyResultListShortVo result = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(result.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}

	return false;
}
 
Example 27
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSpecimenDisplayValue(PathologyResultListShortVo result)  
{
	if (result == null || result.getSpecimen() == null || (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() == null && result.getResultSpecimenType() == null)) //wdev-15780 //WDEV-14677
		return "[No specimen source]";
	
	StringBuilder display = new StringBuilder();
	
	if (result.getResultSpecimenType() != null)  //wdev-15780
	{
		display.append(result.getResultSpecimenType().getText());			//wdev-15780
	}
	else if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSpecimenSource() != null) //WDEV-14677
	{ 
		display.append(result.getSpecimen().get(0).getSpecimenSource().getText()); //wdev-15780
	}
	
	if (result.getSpecimen()!=null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getSiteCd() != null)  //wdev-15780  //WDEV-14677
	{
		display.append(" - ").append(result.getSpecimen().get(0).getSiteCd().getText()); //wdev-15780
	}
	
	return display.toString();
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private boolean hasResults(GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow selectedRow)
{
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) selectedRow.getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = selectedRow.getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return true;
	}
	return false;
}
 
Example 29
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void viewSelectedOrder()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() != null)
	{
		PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
		if (voPathologyResult.getOrderDetailsIsNotNull())
		{
			form.getGlobalContext().OCRR.setResultDisplayDate(getSelectedDisplayDateTime().getDate());
			form.getGlobalContext().OCRR.PathologyResults.setOrder(voPathologyResult.getOrderDetails());
			
			//	WDEV-11097
			if(AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(voPathologyResult.getOrderDetails().getAuthorisationOrderStatus()))
			{
				form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(voPathologyResult.getOrderDetails());
			}
			
			engine.open(form.getForms().OCRR.OrderSummaryDialog, true);
		}
	}
}
 
Example 30
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVo getCurrentInv()
{
	//WDEV-11547 change this to return only invs that are resulted whther the child or parent is clicked on
	PathologyResultListShortVo resParent = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue().getOrderInvestigation();
	if (isResultedStatus(resParent.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.lyrMain().tabSearch().grdResults().getSelectedRow().getValue();

	GenForm.lyrMainLayer.tabSearchContainer.grdResultsRowCollection rowColl = form.lyrMain().tabSearch().grdResults().getSelectedRow().getRows();
	for (int i = 0; i < rowColl.size(); i++)
	{
		GenForm.lyrMainLayer.tabSearchContainer.grdResultsRow row = rowColl.get(i);
		PathologyResultListShortVo res = (PathologyResultListShortVo) row.getValue().getOrderInvestigation();
		if (isResultedStatus(res.getOrdInvCurrentStatus().getOrdInvStatus()))
			return row.getValue();
	}
	return null;
	
	
	
	//return form.lyrMain().tabSearch().grdResults().getValue();
}
 
Example 31
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private OcsPathRadResultVoCollection getAllInvs()
{
	OcsPathRadResultVoCollection result = new OcsPathRadResultVoCollection();

	for (int x = 0; x < form.lyrMain().tabSearch().grdResults().getRows().size(); x++)
	{
		//WDEV-11547 - only add actual results to this collection
		grdResultsRow pRow = form.lyrMain().tabSearch().grdResults().getRows().get(x);
		PathologyResultListShortVo res = form.lyrMain().tabSearch().grdResults().getRows().get(x).getColResultDetails();
		if(res != null && res.getResultDetails() != null && res.getResultDetails().getPathologyResultDetailsIsNotNull() && res.getResultDetails().getPathologyResultDetails().size() > 0 && res.getResultDetails().getPathologyResultDetails().get(0) != null)//	WDEV-16232	
			result.add(form.lyrMain().tabSearch().grdResults().getRows().get(x).getValue());
		else
		{
			if(pRow.getRows() != null)
			{
				for (int y = 0; y < pRow.getRows().size(); y++)
				{
					PathologyResultListShortVo res1 = pRow.getRows().get(y).getColResultDetails();
					if(res1 != null && res1.getResultDetails() != null && res1.getResultDetails().getPathologyResultDetailsIsNotNull() && res1.getResultDetails().getPathologyResultDetails().size() > 0 && res1.getResultDetails().getPathologyResultDetails().get(0) != null)	//WDEV-16232		
						result.add(pRow.getRows().get(y).getValue());
				}
			}
		}
	}
	return result;
}
 
Example 32
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void viewPathologyResults()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
		form.getGlobalContext().OCRR.setSelectedPathRadResults(getSelectedPathologyInvestigations());
		form.getGlobalContext().OCRR.setCurrentPathRadResult(getCurrentInvestigation());
		
		engine.open(form.getForms().OCRR.ResultDialog, false);
	}
}
 
Example 33
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private OcsPathRadResultVoCollection getSelectedPathologyInvestigations()
{
	OcsPathRadResultVoCollection results = new OcsPathRadResultVoCollection();

	for (int i = 0; i < form.grdPathology().getRows().size(); i++)
	{
		grdPathologyRow pathologyRow = form.grdPathology().getRows().get(i);

		PathologyResultListShortVo pathologyResult = pathologyRow.getColResultsDetails();

		if (pathologyResult != null && pathologyResult.getResultDetails() != null && pathologyResult.getResultDetails().getPathologyResultDetails() != null)
		{
			results.add(pathologyRow.getValue());
		}
		else if (pathologyRow.getRows() != null)
		{
			for (int j = 0; j < pathologyRow.getRows().size(); j++)
			{
				PathologyResultListShortVo pathChildResult = pathologyRow.getRows().get(j).getColResultsDetails();
				
				if (pathChildResult != null && pathChildResult.getResultDetails() != null && pathChildResult.getResultDetails().getPathologyResultDetails() != null)
				{
					results.add(pathologyRow.getRows().get(j).getValue());
				}
			}
		}
	}

	return results;
}
 
Example 34
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean hasResults(PathologyResultListShortVo result)
{		
	if (isResultedStatus(result.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	return false;
}
 
Example 35
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean isDFT(PathologyResultListShortVo result) 
{
	if(result == null || result.getInvestigation() == null)
		return false;
	
	if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
		return true;
		
	return false;
}
 
Example 36
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private DateTime getSelectedDisplayDateTime()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() == null)
		return null;

	PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
	return voPathologyResult.getDisplayDateTime();
}
 
Example 37
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void viewPathologyResults()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
		form.getGlobalContext().OCRR.setSelectedPathRadResults(getSelectedPathologyInvestigations());
		form.getGlobalContext().OCRR.setCurrentPathRadResult(getCurrentInvestigation());
		
		engine.open(form.getForms().OCRR.ResultDialog, false);
	}
}
 
Example 38
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private OcsPathRadResultVoCollection getSelectedPathologyInvestigations()
{
	OcsPathRadResultVoCollection results = new OcsPathRadResultVoCollection();

	for (int i = 0; i < form.grdPathology().getRows().size(); i++)
	{
		grdPathologyRow pathologyRow = form.grdPathology().getRows().get(i);

		PathologyResultListShortVo pathologyResult = pathologyRow.getColResultsDetails();

		if (pathologyResult != null && pathologyResult.getResultDetails() != null && pathologyResult.getResultDetails().getPathologyResultDetails() != null)
		{
			results.add(pathologyRow.getValue());
		}
		else if (pathologyRow.getRows() != null)
		{
			for (int j = 0; j < pathologyRow.getRows().size(); j++)
			{
				PathologyResultListShortVo pathChildResult = pathologyRow.getRows().get(j).getColResultsDetails();
				
				if (pathChildResult != null && pathChildResult.getResultDetails() != null && pathChildResult.getResultDetails().getPathologyResultDetails() != null)
				{
					results.add(pathologyRow.getRows().get(j).getValue());
				}
			}
		}
	}

	return results;
}
 
Example 39
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean hasResults(PathologyResultListShortVo result)
{		
	if (isResultedStatus(result.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	return false;
}
 
Example 40
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void viewPathologyResults()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
		form.getGlobalContext().OCRR.setSelectedPathRadResults(getSelectedPathologyInvestigations());
		form.getGlobalContext().OCRR.setCurrentPathRadResult(getCurrentInvestigation());
		
		engine.open(form.getForms().OCRR.ResultDialog, false);
	}
}
 
Example 41
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private OcsPathRadResultVoCollection getSelectedPathologyInvestigations()
{
	OcsPathRadResultVoCollection results = new OcsPathRadResultVoCollection();

	for (int i = 0; i < form.grdPathology().getRows().size(); i++)
	{
		grdPathologyRow pathologyRow = form.grdPathology().getRows().get(i);

		PathologyResultListShortVo pathologyResult = pathologyRow.getColResultsDetails();

		if (pathologyResult != null && pathologyResult.getResultDetails() != null && pathologyResult.getResultDetails().getPathologyResultDetails() != null)
		{
			results.add(pathologyRow.getValue());
		}
		else if (pathologyRow.getRows() != null)
		{
			for (int j = 0; j < pathologyRow.getRows().size(); j++)
			{
				PathologyResultListShortVo pathChildResult = pathologyRow.getRows().get(j).getColResultsDetails();
				
				if (pathChildResult != null && pathChildResult.getResultDetails() != null && pathChildResult.getResultDetails().getPathologyResultDetails() != null)
				{
					results.add(pathologyRow.getRows().get(j).getValue());
				}
			}
		}
	}

	return results;
}
 
Example 42
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean isDFT(PathologyResultListShortVo result) 
{
	if(result == null || result.getInvestigation() == null)
		return false;
	
	if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
		return true;
		
	return false;
}
 
Example 43
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private DateTime getSelectedDisplayDateTime()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() == null)
		return null;

	PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
	return voPathologyResult.getDisplayDateTime();
}
 
Example 44
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void viewPathologyResults()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
		form.getGlobalContext().OCRR.setSelectedPathRadResults(getSelectedPathologyInvestigations());
		form.getGlobalContext().OCRR.setCurrentPathRadResult(getCurrentInvestigation());
		
		engine.open(form.getForms().OCRR.ResultDialog, false);
	}
}
 
Example 45
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private OcsPathRadResultVoCollection getSelectedPathologyInvestigations()
{
	OcsPathRadResultVoCollection results = new OcsPathRadResultVoCollection();

	for (int i = 0; i < form.grdPathology().getRows().size(); i++)
	{
		grdPathologyRow pathologyRow = form.grdPathology().getRows().get(i);

		PathologyResultListShortVo pathologyResult = pathologyRow.getColResultsDetails();

		if (pathologyResult != null && pathologyResult.getResultDetails() != null && pathologyResult.getResultDetails().getPathologyResultDetails() != null)
		{
			results.add(pathologyRow.getValue());
		}
		else if (pathologyRow.getRows() != null)
		{
			for (int j = 0; j < pathologyRow.getRows().size(); j++)
			{
				PathologyResultListShortVo pathChildResult = pathologyRow.getRows().get(j).getColResultsDetails();
				
				if (pathChildResult != null && pathChildResult.getResultDetails() != null && pathChildResult.getResultDetails().getPathologyResultDetails() != null)
				{
					results.add(pathologyRow.getRows().get(j).getValue());
				}
			}
		}
	}

	return results;
}
 
Example 46
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean hasResults(PathologyResultListShortVo result)
{		
	if (isResultedStatus(result.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	return false;
}
 
Example 47
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean isDFT(PathologyResultListShortVo result) 
{
	if(result == null || result.getInvestigation() == null)
		return false;
	
	if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
		return true;
		
	return false;
}
 
Example 48
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private DateTime getSelectedDisplayDateTime()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() == null)
		return null;

	PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
	return voPathologyResult.getDisplayDateTime();
}
 
Example 49
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void viewPathologyResults()
{
	if (form.grdPathology().getSelectedRow() != null
			&& form.grdPathology().getValue() != null)
	{
		PathologyResultListShortVo result = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
		
		form.getGlobalContext().OCRR.setResultDisplayDate(result.getDisplayDateTime().getDate());
		form.getGlobalContext().OCRR.setSelectedPathRadResults(getSelectedPathologyInvestigations());
		form.getGlobalContext().OCRR.setCurrentPathRadResult(getCurrentInvestigation());
		
		engine.open(form.getForms().OCRR.ResultDialog, false);
	}
}
 
Example 50
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private OcsPathRadResultVoCollection getSelectedPathologyInvestigations()
{
	OcsPathRadResultVoCollection results = new OcsPathRadResultVoCollection();

	for (int i = 0; i < form.grdPathology().getRows().size(); i++)
	{
		grdPathologyRow pathologyRow = form.grdPathology().getRows().get(i);

		PathologyResultListShortVo pathologyResult = pathologyRow.getColResultsDetails();

		if (pathologyResult != null && pathologyResult.getResultDetails() != null && pathologyResult.getResultDetails().getPathologyResultDetails() != null)
		{
			results.add(pathologyRow.getValue());
		}
		else if (pathologyRow.getRows() != null)
		{
			for (int j = 0; j < pathologyRow.getRows().size(); j++)
			{
				PathologyResultListShortVo pathChildResult = pathologyRow.getRows().get(j).getColResultsDetails();
				
				if (pathChildResult != null && pathChildResult.getResultDetails() != null && pathChildResult.getResultDetails().getPathologyResultDetails() != null)
				{
					results.add(pathologyRow.getRows().get(j).getValue());
				}
			}
		}
	}

	return results;
}
 
Example 51
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean hasResults(PathologyResultListShortVo result)
{		
	if (isResultedStatus(result.getOrdInvCurrentStatus().getOrdInvStatus()))
		return true;

	return false;
}
 
Example 52
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean isDFT(PathologyResultListShortVo result) 
{
	if(result == null || result.getInvestigation() == null)
		return false;
	
	if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
		return true;
		
	return false;
}
 
Example 53
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private DateTime getSelectedDisplayDateTime()
{
	if (form.lyrMain().tabSearch().grdResults().getValue() == null)
		return null;

	PathologyResultListShortVo voPathologyResult = (PathologyResultListShortVo) form.lyrMain().tabSearch().grdResults().getValue().getOrderInvestigation();
	return voPathologyResult.getDisplayDateTime();
}
 
Example 54
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private OcsPathRadResultVo getCurrentInvestigation()
{
	if (form.grdPathology().getSelectedRow() == null || form.grdPathology().getValue() == null)
		return null;
	
	PathologyResultListShortVo parentResult = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
	
	if (isStatusResulted(parentResult.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.grdPathology().getSelectedRow().getValue();
	
	
	grdPathologyRowCollection childRows = form.grdPathology().getSelectedRow().getRows();
	
	for (int i = 0; i < childRows.size(); i++)
	{
		grdPathologyRow childRow = childRows.get(i);
		
		PathologyResultListShortVo childResult = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(childResult.getOrdInvCurrentStatus().getOrdInvStatus()))
			return childRow.getValue();
	}

	return null;
}
 
Example 55
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
	if (result == null)
		return null;
	
	StringBuffer displayString = new StringBuffer();

	
	OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();
	
	if (currentStatus != null)
	{
		displayString.append("<b>Current status: </b>").append(currentStatus.getText());
		
		if (OrderInvStatus.CANCELLED.equals(currentStatus)
			&& result.getOrdInvCurrentStatus().getStatusReason() != null
			&& result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
		{
			displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
		}
		
		displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

		if (result.getOrdInvCurrentStatus().getChangeUser() != null)
		{
			displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
		}
		
		if (result.getRepDateTime() != null && dateUnseen != null)
		{
			if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
			{
				if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
				{
					displayString.append("<br>Unseen");
				}
			}
			else if (OrderInvStatus.REVIEW.equals(currentStatus))
			{
				if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
				{
					displayString.append("<br>Requires Attention");
				}
				else
				{
					displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
				}
			}
		}
	}
	
	if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
	{
		ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();
		
		comments.sort(SortOrder.DESCENDING);
		ResultCommentsLiteVo lastComment = comments.get(0);
		
		displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
		displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());
		
		// Append corrections
		if (lastComment.getCorrectingDateTime() != null)
		{
			displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
			displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
		}
	}
	
	return displayString.toString();
}
 
Example 56
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private OcsPathRadResultVo getCurrentInvestigation()
{
	if (form.grdPathology().getSelectedRow() == null || form.grdPathology().getValue() == null)
		return null;
	
	PathologyResultListShortVo parentResult = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
	
	if (isStatusResulted(parentResult.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.grdPathology().getSelectedRow().getValue();
	
	
	grdPathologyRowCollection childRows = form.grdPathology().getSelectedRow().getRows();
	
	for (int i = 0; i < childRows.size(); i++)
	{
		grdPathologyRow childRow = childRows.get(i);
		
		PathologyResultListShortVo childResult = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(childResult.getOrdInvCurrentStatus().getOrdInvStatus()))
			return childRow.getValue();
	}

	return null;
}
 
Example 57
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
	if (result == null)
		return null;
	
	StringBuffer displayString = new StringBuffer();

	
	OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();
	
	if (currentStatus != null)
	{
		displayString.append("<b>Current status: </b>").append(currentStatus.getText());
		
		if (OrderInvStatus.CANCELLED.equals(currentStatus)
			&& result.getOrdInvCurrentStatus().getStatusReason() != null
			&& result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
		{
			displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
		}
		
		displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

		if (result.getOrdInvCurrentStatus().getChangeUser() != null)
		{
			displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
		}
		
		if (result.getRepDateTime() != null && dateUnseen != null)
		{
			if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
			{
				if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
				{
					displayString.append("<br>Unseen");
				}
			}
			else if (OrderInvStatus.REVIEW.equals(currentStatus))
			{
				if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
				{
					displayString.append("<br>Requires Attention");
				}
				else
				{
					displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
				}
			}
		}
	}
	
	if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
	{
		ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();
		
		comments.sort(SortOrder.DESCENDING);
		ResultCommentsLiteVo lastComment = comments.get(0);
		
		displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
		displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());
		
		// Append corrections
		if (lastComment.getCorrectingDateTime() != null)
		{
			displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
			displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
		}
	}
	
	return displayString.toString();
}
 
Example 58
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private OcsPathRadResultVo getCurrentInvestigation()
{
	if (form.grdPathology().getSelectedRow() == null || form.grdPathology().getValue() == null)
		return null;
	
	PathologyResultListShortVo parentResult = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
	
	if (isStatusResulted(parentResult.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.grdPathology().getSelectedRow().getValue();
	
	
	grdPathologyRowCollection childRows = form.grdPathology().getSelectedRow().getRows();
	
	for (int i = 0; i < childRows.size(); i++)
	{
		grdPathologyRow childRow = childRows.get(i);
		
		PathologyResultListShortVo childResult = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(childResult.getOrdInvCurrentStatus().getOrdInvStatus()))
			return childRow.getValue();
	}

	return null;
}
 
Example 59
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
	if (result == null)
		return null;
	
	StringBuffer displayString = new StringBuffer();

	
	OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();
	
	if (currentStatus != null)
	{
		displayString.append("<b>Current status: </b>").append(currentStatus.getText());
		
		if (OrderInvStatus.CANCELLED.equals(currentStatus)
			&& result.getOrdInvCurrentStatus().getStatusReason() != null
			&& result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
		{
			displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
		}
		
		displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

		if (result.getOrdInvCurrentStatus().getChangeUser() != null)
		{
			displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
		}
		
		if (result.getRepDateTime() != null && dateUnseen != null)
		{
			if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
			{
				if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
				{
					displayString.append("<br>Unseen");
				}
			}
			else if (OrderInvStatus.REVIEW.equals(currentStatus))
			{
				if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
				{
					displayString.append("<br>Requires Attention");
				}
				else
				{
					displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
				}
			}
		}
	}
	
	if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
	{
		ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();
		
		comments.sort(SortOrder.DESCENDING);
		ResultCommentsLiteVo lastComment = comments.get(0);
		
		displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
		displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());
		
		// Append corrections
		if (lastComment.getCorrectingDateTime() != null)
		{
			displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
			displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
		}
	}
	
	return displayString.toString();
}
 
Example 60
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private OcsPathRadResultVo getCurrentInvestigation()
{
	if (form.grdPathology().getSelectedRow() == null || form.grdPathology().getValue() == null)
		return null;
	
	PathologyResultListShortVo parentResult = (PathologyResultListShortVo) form.grdPathology().getSelectedRow().getValue().getOrderInvestigation();
	
	if (isStatusResulted(parentResult.getOrdInvCurrentStatus().getOrdInvStatus()))
		return form.grdPathology().getSelectedRow().getValue();
	
	
	grdPathologyRowCollection childRows = form.grdPathology().getSelectedRow().getRows();
	
	for (int i = 0; i < childRows.size(); i++)
	{
		grdPathologyRow childRow = childRows.get(i);
		
		PathologyResultListShortVo childResult = (PathologyResultListShortVo) childRow.getValue().getOrderInvestigation();
		
		if (isStatusResulted(childResult.getOrdInvCurrentStatus().getOrdInvStatus()))
			return childRow.getValue();
	}

	return null;
}