Java Code Examples for ims.ocrr.vo.SpecimenWorkListItemListVo.getDFTOrderInvestigationIsNotNull()

The following are Jave code examples for showing how to use getDFTOrderInvestigationIsNotNull() of the ims.ocrr.vo.SpecimenWorkListItemListVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private Object getIdentifier(SpecimenWorkListItemListVo item)
{
	String patIdValue = "";
	String patIdentifier = ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
	PatIdType patIdType = PatIdType.getNegativeInstance(patIdentifier);
	if (patIdType != null)
	{
		PatientIdCollection patIdsColl = null;
		//WDEV-16232
		if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
			patIdsColl = item.getSpecimen().getOrder().getPatient().getIdentifiers();
		else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
			patIdsColl = item.getDFTOrderInvestigation().getOrderDetails().getPatient().getIdentifiers();
			
		for (int i = 0; patIdsColl != null && i < patIdsColl.size(); i++)
		{
			if (patIdsColl.get(i).getTypeIsNotNull() && patIdsColl.get(i).getType().equals(patIdType))
			{
				patIdValue = patIdsColl.get(i).getValue();
				break;
			}
		}
	}

	return patIdType.toString() + " " + patIdValue;
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private String getInvestigationName(SpecimenWorkListItemListVo specimen)
{
	String investigationName = "";

	if (specimen.getSpecimenIsNotNull())
	{
		for (int j = 0; specimen.getSpecimen().getInvestigationsIsNotNull() && j < specimen.getSpecimen().getInvestigations().size(); j++)
		{
			if (specimen.getSpecimen().getInvestigations().get(j).getInvestigationIsNotNull() && specimen.getSpecimen().getInvestigations().get(j).getInvestigation().getInvestigationIndexIsNotNull() && specimen.getSpecimen().getInvestigations().get(j).getInvestigation().getInvestigationIndex().getName() != null)
			{
				investigationName = (investigationName != "" ? investigationName + ", " + specimen.getSpecimen().getInvestigations().get(j).getInvestigation().getInvestigationIndex().getName() : specimen.getSpecimen().getInvestigations().get(j).getInvestigation().getInvestigationIndex().getName());
			}
		}

		return investigationName;
	}
	else if (specimen.getDFTOrderInvestigationIsNotNull() && specimen.getDFTOrderInvestigation().getInvestigationIsNotNull() && specimen.getDFTOrderInvestigation().getInvestigation().getInvestigationIndexIsNotNull() && specimen.getDFTOrderInvestigation().getInvestigation().getInvestigationIndex().getNameIsNotNull())
	{
		investigationName = specimen.getDFTOrderInvestigation().getInvestigation().getInvestigationIndex().getName();
		return investigationName;
	}

	return investigationName;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private String getPatientName(SpecimenWorkListItemListVo specimen)
{
	String patientName = "";
	String surename = "";
	String forename = "";

	if (specimen.getSpecimenIsNotNull() && specimen.getSpecimen().getOrderIsNotNull() && specimen.getSpecimen().getOrder().getPatientIsNotNull() && specimen.getSpecimen().getOrder().getPatient().getNameIsNotNull())
	{
		forename = specimen.getSpecimen().getOrder().getPatient().getName().getForename();
		surename = specimen.getSpecimen().getOrder().getPatient().getName().getSurname();

		patientName = (forename != null ? surename + " " + forename : surename);
		return patientName;
	}
	else if (specimen.getDFTOrderInvestigationIsNotNull() && specimen.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && specimen.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull() && specimen.getDFTOrderInvestigation().getOrderDetails().getPatient().getNameIsNotNull())
	{
		forename = specimen.getDFTOrderInvestigation().getOrderDetails().getPatient().getName().getForename();
		surename = specimen.getDFTOrderInvestigation().getOrderDetails().getPatient().getName().getSurname();

		patientName = (forename != null ? surename + " " + forename : surename);
		return patientName;
	}

	return patientName;
}
 
Example 4
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private Object getIdentifier(SpecimenWorkListItemListVo item)
{
	String patIdValue = "";
	String patIdentifier = ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
	PatIdType patIdType = PatIdType.getNegativeInstance(patIdentifier);
	if (patIdType != null)
	{
		PatientIdCollection patIdsColl = null;
		//WDEV-16232
		if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
			patIdsColl = item.getSpecimen().getOrder().getPatient().getIdentifiers();
		else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
			patIdsColl = item.getDFTOrderInvestigation().getOrderDetails().getPatient().getIdentifiers();
			
		for (int i = 0; patIdsColl != null && i < patIdsColl.size(); i++)
		{
			if (patIdsColl.get(i).getTypeIsNotNull() && patIdsColl.get(i).getType().equals(patIdType))
			{
				patIdValue = patIdsColl.get(i).getValue();
				break;
			}
		}
	}

	return patIdType.toString() + " " + patIdValue;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private Object getIdentifier(SpecimenWorkListItemListVo item)
{
	String patIdValue = "";
	String patIdentifier = ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
	PatIdType patIdType = PatIdType.getNegativeInstance(patIdentifier);
	if (patIdType != null)
	{
		PatientIdCollection patIdsColl = null;
		//WDEV-16232
		if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
			patIdsColl = item.getSpecimen().getOrder().getPatient().getIdentifiers();
		else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
			patIdsColl = item.getDFTOrderInvestigation().getOrderDetails().getPatient().getIdentifiers();
			
		for (int i = 0; patIdsColl != null && i < patIdsColl.size(); i++)
		{
			if (patIdsColl.get(i).getTypeIsNotNull() && patIdsColl.get(i).getType().equals(patIdType))
			{
				patIdValue = patIdsColl.get(i).getValue();
				break;
			}
		}
	}

	return patIdType.toString() + " " + patIdValue;
}
 
Example 6
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 6 votes
private Object getIdentifier(SpecimenWorkListItemListVo item)
{
	String patIdValue = "";
	String patIdentifier = ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
	PatIdType patIdType = PatIdType.getNegativeInstance(patIdentifier);
	if (patIdType != null)
	{
		PatientIdCollection patIdsColl = null;
		//WDEV-16232
		if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
			patIdsColl = item.getSpecimen().getOrder().getPatient().getIdentifiers();
		else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
			patIdsColl = item.getDFTOrderInvestigation().getOrderDetails().getPatient().getIdentifiers();
			
		for (int i = 0; patIdsColl != null && i < patIdsColl.size(); i++)
		{
			if (patIdsColl.get(i).getTypeIsNotNull() && patIdsColl.get(i).getType().equals(patIdType))
			{
				patIdValue = patIdsColl.get(i).getValue();
				break;
			}
		}
	}

	return patIdType.toString() + " " + patIdValue;
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private String gePatientTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	String patient = "(No patient)";
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull() && item.getSpecimen().getOrder().getPatient().getNameIsNotNull())
		patient = item.getSpecimen().getOrder().getPatient().getName().toString();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatient().getNameIsNotNull())
		patient=item.getDFTOrderInvestigation().getOrderDetails().getPatient().getName().toString();
	
	sb.append(patient);
	sb.append(" - ");
	sb.append(getIdentifier(item));
	return sb.toString();
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private PatientRefVo getPatientIdentifier(SpecimenWorkListItemListVo item)
{
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
		return item.getSpecimen().getOrder().getPatient();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
		item.getDFTOrderInvestigation().getOrderDetails().getPatient();
	return null;
}
 
Example 9
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 5 votes
private String gePatientTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	String patient = "(No patient)";
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull() && item.getSpecimen().getOrder().getPatient().getNameIsNotNull())
		patient = item.getSpecimen().getOrder().getPatient().getName().toString();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatient().getNameIsNotNull())
		patient=item.getDFTOrderInvestigation().getOrderDetails().getPatient().getName().toString();
	
	sb.append(patient);
	sb.append(" - ");
	sb.append(getIdentifier(item));
	return sb.toString();
}
 
Example 10
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 5 votes
private PatientRefVo getPatientIdentifier(SpecimenWorkListItemListVo item)
{
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
		return item.getSpecimen().getOrder().getPatient();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
		item.getDFTOrderInvestigation().getOrderDetails().getPatient();
	return null;
}
 
Example 11
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 5 votes
private String gePatientTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	String patient = "(No patient)";
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull() && item.getSpecimen().getOrder().getPatient().getNameIsNotNull())
		patient = item.getSpecimen().getOrder().getPatient().getName().toString();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatient().getNameIsNotNull())
		patient=item.getDFTOrderInvestigation().getOrderDetails().getPatient().getName().toString();
	
	sb.append(patient);
	sb.append(" - ");
	sb.append(getIdentifier(item));
	return sb.toString();
}
 
Example 12
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 5 votes
private PatientRefVo getPatientIdentifier(SpecimenWorkListItemListVo item)
{
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
		return item.getSpecimen().getOrder().getPatient();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
		item.getDFTOrderInvestigation().getOrderDetails().getPatient();
	return null;
}
 
Example 13
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 5 votes
private String gePatientTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	String patient = "(No patient)";
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull() && item.getSpecimen().getOrder().getPatient().getNameIsNotNull())
		patient = item.getSpecimen().getOrder().getPatient().getName().toString();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatient().getNameIsNotNull())
		patient=item.getDFTOrderInvestigation().getOrderDetails().getPatient().getName().toString();
	
	sb.append(patient);
	sb.append(" - ");
	sb.append(getIdentifier(item));
	return sb.toString();
}
 
Example 14
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 5 votes
private PatientRefVo getPatientIdentifier(SpecimenWorkListItemListVo item)
{
	//WDEV-16232
	if (item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getPatientIsNotNull())
		return item.getSpecimen().getOrder().getPatient();
	else if (item.getDFTOrderInvestigationIsNotNull() && item.getDFTOrderInvestigation().getOrderDetailsIsNotNull() && item.getDFTOrderInvestigation().getOrderDetails().getPatientIsNotNull())
		item.getDFTOrderInvestigation().getOrderDetails().getPatient();
	return null;
}
 
Example 15
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Core.PrintReport) && result.equals(DialogResult.OK))
	{
		printSelectedItems();
	}
	
	//WDEV-17760
	if (formName.equals(form.getForms().Core.PrintMultipleOrders) && result.equals(DialogResult.OK))
	{
		SpecimenWorkListItemListVoCollection voColl = getWorkListItemsToprint();
		
		for (int i = 0; i < voColl.size(); i++)
		{
			//WDEV-16232 after the printing, save the DFT investigation
			SpecimenWorkListItemListVo item = voColl.get(i);
			
			if (item.getDFTOrderInvestigationIsNotNull())
			{
				item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

				try
				{
					domain.saveWorkListItem(item);
				}
				catch (StaleObjectException e)
				{
					engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
				}
			}
		}
	
		refreshDataInGrid(voColl);
	}
	
	if (formName.equals(form.getForms().OCRR.WardSpecimenMoveTo))
	{
		if (result.equals(DialogResult.OK))
		{
			//WDEV-16708
			SpecimenWorkListItemListVo specimen = form.getGlobalContext().OCRR.getSpecimenWorkListItemList();
			
			if (isRowEditable(specimen.getCollectionStatus()))
			{
				form.getGlobalContext().OCRR.setSpecimenWorkListItemList(domain.getSpecimenWorkListItem(specimen.getID_SpecimenWorkListItem()));
			}
			
			refreshRecord(form.getGlobalContext().OCRR.getSpecimenWorkListItemList());
			enableContextMenu();
		}
		form.getGlobalContext().OCRR.setSpecimenWorkListItemList(null);
	}
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private void addGridRow(SpecimenWorkListItemListVo specimen)
{
	DynamicGridRow row = form.dyngrdPrint().getRows().newRow();
	row.setSelectable(false);

	String patId = getPatientIdentifier(specimen);
	String patName = getPatientName(specimen);
	String invName = getInvestigationName(specimen);

	DynamicGridCell cell = row.getCells().newCell(getColumn(COL_IDENTIFIER), DynamicCellType.STRING);
	cell.setTooltip(patId);
	cell.setReadOnly(true);
	cell.setValue(patId);

	cell = row.getCells().newCell(getColumn(COL_NAME), DynamicCellType.STRING);
	cell.setTooltip(patName);
	cell.setReadOnly(true);
	cell.setValue(patName);

	cell = row.getCells().newCell(getColumn(COL_INVESTIGATION), DynamicCellType.STRING);
	cell.setTooltip(invName);
	cell.setReadOnly(true);
	cell.setValue(invName);

	if (specimen.getDFTOrderInvestigationIsNotNull() && specimen.getDFTOrderInvestigation().getInvestigationIsNotNull() && specimen.getDFTOrderInvestigation().getInvestigation().getInvestigationIndexIsNotNull() && specimen.getDFTOrderInvestigation().getInvestigation().getInvestigationIndex().getNameIsNotNull())
	{
		cell = row.getCells().newCell(getColumn(COL_NO_OF_LABELS_SETS), DynamicCellType.INT);
		cell.setReadOnly(false);
		cell.setValue(specimen.getDFTOrderInvestigation().getInvestigation().getNoLabelSets());
		cell.setIntMaxLength(2);
	}

	cell = row.getCells().newCell(getColumn(COL_PREVIEW), DynamicCellType.IMAGEBUTTON);
	cell.setValue(form.getImages().Core.ZoomInEnabled16);
	cell.setAutoPostBack(true);

	if (specimen.getSpecimenIsNotNull())
	{
		row.setValue(specimen.getSpecimen());
	}
	else
		row.setValue(specimen.getDFTOrderInvestigation());
}
 
Example 17
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Core.PrintReport) && result.equals(DialogResult.OK))
	{
		printSelectedItems();
	}
	
	//WDEV-17760
	if (formName.equals(form.getForms().Core.PrintMultipleOrders) && result.equals(DialogResult.OK))
	{
		SpecimenWorkListItemListVoCollection voColl = getWorkListItemsToprint();
		
		for (int i = 0; i < voColl.size(); i++)
		{
			//WDEV-16232 after the printing, save the DFT investigation
			SpecimenWorkListItemListVo item = voColl.get(i);
			
			if (item.getDFTOrderInvestigationIsNotNull())
			{
				item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

				try
				{
					domain.saveWorkListItem(item);
				}
				catch (StaleObjectException e)
				{
					engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
				}
			}
		}
	
		refreshDataInGrid(voColl);
	}
	
	if (formName.equals(form.getForms().OCRR.WardSpecimenMoveTo))
	{
		if (result.equals(DialogResult.OK))
		{
			//WDEV-16708
			SpecimenWorkListItemListVo specimen = form.getGlobalContext().OCRR.getSpecimenWorkListItemList();
			
			if (isRowEditable(specimen.getCollectionStatus()))
			{
				form.getGlobalContext().OCRR.setSpecimenWorkListItemList(domain.getSpecimenWorkListItem(specimen.getID_SpecimenWorkListItem()));
			}
			
			refreshRecord(form.getGlobalContext().OCRR.getSpecimenWorkListItemList());
			enableContextMenu();
		}
		form.getGlobalContext().OCRR.setSpecimenWorkListItemList(null);
	}
}
 
Example 18
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Core.PrintReport) && result.equals(DialogResult.OK))
	{
		printSelectedItems();
	}
	
	//WDEV-17760
	if (formName.equals(form.getForms().Core.PrintMultipleOrders) && result.equals(DialogResult.OK))
	{
		SpecimenWorkListItemListVoCollection voColl = getWorkListItemsToprint();
		
		for (int i = 0; i < voColl.size(); i++)
		{
			//WDEV-16232 after the printing, save the DFT investigation
			SpecimenWorkListItemListVo item = voColl.get(i);
			
			if (item.getDFTOrderInvestigationIsNotNull())
			{
				item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

				try
				{
					domain.saveWorkListItem(item);
				}
				catch (StaleObjectException e)
				{
					engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
				}
			}
		}
	
		refreshDataInGrid(voColl);
	}
	
	if (formName.equals(form.getForms().OCRR.WardSpecimenMoveTo))
	{
		if (result.equals(DialogResult.OK))
		{
			//WDEV-16708
			SpecimenWorkListItemListVo specimen = form.getGlobalContext().OCRR.getSpecimenWorkListItemList();
			
			if (isRowEditable(specimen.getCollectionStatus()))
			{
				form.getGlobalContext().OCRR.setSpecimenWorkListItemList(domain.getSpecimenWorkListItem(specimen.getID_SpecimenWorkListItem()));
			}
			
			refreshRecord(form.getGlobalContext().OCRR.getSpecimenWorkListItemList());
			enableContextMenu();
		}
		form.getGlobalContext().OCRR.setSpecimenWorkListItemList(null);
	}
}
 
Example 19
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 4 votes
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Core.PrintReport) && result.equals(DialogResult.OK))
	{
		printSelectedItems();
	}
	
	//WDEV-17760
	if (formName.equals(form.getForms().Core.PrintMultipleOrders) && result.equals(DialogResult.OK))
	{
		SpecimenWorkListItemListVoCollection voColl = getWorkListItemsToprint();
		
		for (int i = 0; i < voColl.size(); i++)
		{
			//WDEV-16232 after the printing, save the DFT investigation
			SpecimenWorkListItemListVo item = voColl.get(i);
			
			if (item.getDFTOrderInvestigationIsNotNull())
			{
				item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

				try
				{
					domain.saveWorkListItem(item);
				}
				catch (StaleObjectException e)
				{
					engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
				}
			}
		}
	
		refreshDataInGrid(voColl);
	}
	
	if (formName.equals(form.getForms().OCRR.WardSpecimenMoveTo))
	{
		if (result.equals(DialogResult.OK))
		{
			//WDEV-16708
			SpecimenWorkListItemListVo specimen = form.getGlobalContext().OCRR.getSpecimenWorkListItemList();
			
			if (isRowEditable(specimen.getCollectionStatus()))
			{
				form.getGlobalContext().OCRR.setSpecimenWorkListItemList(domain.getSpecimenWorkListItem(specimen.getID_SpecimenWorkListItem()));
			}
			
			refreshRecord(form.getGlobalContext().OCRR.getSpecimenWorkListItemList());
			enableContextMenu();
		}
		form.getGlobalContext().OCRR.setSpecimenWorkListItemList(null);
	}
}