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

The following are Jave code examples for showing how to use getDFTOrderInvestigation() 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 String getHeaderTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	sb.append("Date Required: ");
	sb.append(item.getDateToCollectIsNotNull() ? item.getDateToCollect().toString() : "");
	sb.append(" - Responsible Clinician: ");
	
	if(item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinicianIsNotNull() &&
	   item.getSpecimen().getOrder().getResponsibleClinician().getMosIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName().toString());
	}
	else if(item.getSpecimen() == null && item.getDFTOrderInvestigation() != null && item.getDFTOrderInvestigation().getOrderDetails() != null && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician() != null
			&& item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos() != null	 && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName().toString());
	}
	
	return sb.toString();
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private String getHeaderTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	sb.append("Date Required: ");
	sb.append(item.getDateToCollectIsNotNull() ? item.getDateToCollect().toString() : "");
	sb.append(" - Responsible Clinician: ");
	
	if(item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinicianIsNotNull() &&
	   item.getSpecimen().getOrder().getResponsibleClinician().getMosIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName().toString());
	}
	else if(item.getSpecimen() == null && item.getDFTOrderInvestigation() != null && item.getDFTOrderInvestigation().getOrderDetails() != null && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician() != null
			&& item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos() != null	 && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName().toString());
	}
	
	return sb.toString();
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private String getHeaderTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	sb.append("Date Required: ");
	sb.append(item.getDateToCollectIsNotNull() ? item.getDateToCollect().toString() : "");
	sb.append(" - Responsible Clinician: ");
	
	if(item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinicianIsNotNull() &&
	   item.getSpecimen().getOrder().getResponsibleClinician().getMosIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName().toString());
	}
	else if(item.getSpecimen() == null && item.getDFTOrderInvestigation() != null && item.getDFTOrderInvestigation().getOrderDetails() != null && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician() != null
			&& item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos() != null	 && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName().toString());
	}
	
	return sb.toString();
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 6 votes
private String getHeaderTitle(SpecimenWorkListItemListVo item)
{
	StringBuffer sb = new StringBuffer();
	sb.append("Date Required: ");
	sb.append(item.getDateToCollectIsNotNull() ? item.getDateToCollect().toString() : "");
	sb.append(" - Responsible Clinician: ");
	
	if(item.getSpecimenIsNotNull() && item.getSpecimen().getOrderIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinicianIsNotNull() &&
	   item.getSpecimen().getOrder().getResponsibleClinician().getMosIsNotNull() && item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getSpecimen().getOrder().getResponsibleClinician().getMos().getName().toString());
	}
	else if(item.getSpecimen() == null && item.getDFTOrderInvestigation() != null && item.getDFTOrderInvestigation().getOrderDetails() != null && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician() != null
			&& item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos() != null	 && item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName() != null)
	{
		sb.append(item.getDFTOrderInvestigation().getOrderDetails().getResponsibleClinician().getMos().getName().toString());
	}
	
	return sb.toString();
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void saveInvestigationIfDFT()
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void printActionedRecords()
{
	String urlQueryServer = ConfigFlag.GEN.QUERY_SERVER_URL.getValue();
	String urlReportServer = ConfigFlag.GEN.REPORT_SERVER_URL.getValue();

	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				QueryBuilderClient client = new QueryBuilderClient(urlQueryServer, engine.getSessionId());
				
				client.addSeed(new SeedValue("SpecimenWorkListItem_id", item.getID_SpecimenWorkListItem(), Integer.class));
				
				try
				{
					client.printReport(form.getGlobalContext().Core.getReport(), form.getGlobalContext().Core.getTemplate(), urlReportServer, form.getGlobalContext().Core.getPrinterSelect(), 1);
				} 
				catch (QueryBuilderClientException e1)
				{
					engine.showMessage("Error creating report: " + e1.getMessage());
					return;
				}
				
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private void saveInvestigationIfDFT()
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 8
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private void printActionedRecords()
{
	String urlQueryServer = ConfigFlag.GEN.QUERY_SERVER_URL.getValue();
	String urlReportServer = ConfigFlag.GEN.REPORT_SERVER_URL.getValue();

	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				QueryBuilderClient client = new QueryBuilderClient(urlQueryServer, engine.getSessionId());
				
				client.addSeed(new SeedValue("SpecimenWorkListItem_id", item.getID_SpecimenWorkListItem(), Integer.class));
				
				try
				{
					client.printReport(form.getGlobalContext().Core.getReport(), form.getGlobalContext().Core.getTemplate(), urlReportServer, form.getGlobalContext().Core.getPrinterSelect(), 1);
				} 
				catch (QueryBuilderClientException e1)
				{
					engine.showMessage("Error creating report: " + e1.getMessage());
					return;
				}
				
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 9
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private void saveInvestigationIfDFT()
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
private void printActionedRecords()
{
	String urlQueryServer = ConfigFlag.GEN.QUERY_SERVER_URL.getValue();
	String urlReportServer = ConfigFlag.GEN.REPORT_SERVER_URL.getValue();

	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				QueryBuilderClient client = new QueryBuilderClient(urlQueryServer, engine.getSessionId());
				
				client.addSeed(new SeedValue("SpecimenWorkListItem_id", item.getID_SpecimenWorkListItem(), Integer.class));
				
				try
				{
					client.printReport(form.getGlobalContext().Core.getReport(), form.getGlobalContext().Core.getTemplate(), urlReportServer, form.getGlobalContext().Core.getPrinterSelect(), 1);
				} 
				catch (QueryBuilderClientException e1)
				{
					engine.showMessage("Error creating report: " + e1.getMessage());
					return;
				}
				
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 4 votes
private void saveInvestigationIfDFT()
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 4 votes
private void printActionedRecords()
{
	String urlQueryServer = ConfigFlag.GEN.QUERY_SERVER_URL.getValue();
	String urlReportServer = ConfigFlag.GEN.REPORT_SERVER_URL.getValue();

	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow parentRow = form.dyngrdCollect().getRows().get(i);
		
		for (int j = 0; j < parentRow.getRows().size(); j++)
		{
			DynamicGridRow row = parentRow.getRows().get(j);
			
			DynamicGridCell cell = row.getCells().get(getColumn(ACTIONED_COL));
			
			boolean isActioned = false;
			
			if(cell != null && cell.getValue() instanceof Boolean)
				isActioned = ((Boolean)cell.getValue()).booleanValue();

			SpecimenWorkListItemListVo item = (SpecimenWorkListItemListVo) row.getValue();
			
			if(isActioned && item != null)
			{
				QueryBuilderClient client = new QueryBuilderClient(urlQueryServer, engine.getSessionId());
				
				client.addSeed(new SeedValue("SpecimenWorkListItem_id", item.getID_SpecimenWorkListItem(), Integer.class));
				
				try
				{
					client.printReport(form.getGlobalContext().Core.getReport(), form.getGlobalContext().Core.getTemplate(), urlReportServer, form.getGlobalContext().Core.getPrinterSelect(), 1);
				} 
				catch (QueryBuilderClientException e1)
				{
					engine.showMessage("Error creating report: " + e1.getMessage());
					return;
				}
				
				//after the labels are printed, save the DFT investigation
				if (item.getDFTOrderInvestigation() != null)
				{
					item.setCollectionStatus(SpecimenCollectionStatus.COLLECTIONCOMPLETE);

					try
					{
						domain.saveWorkListItem(item);
					}
					catch (StaleObjectException e)
					{
						engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
					}

					populateCollectDataGrid(form.lyrPatDetails().tabPagePatientList().grdPatient().getValue(), getStatus());
				}
			}
		}
	}
}