Java Code Examples for ims.ocrr.helper.PhlebotomyHelper

The following are top voted examples for showing how to use ims.ocrr.helper.PhlebotomyHelper. 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   View source code 6 votes vote down vote up
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
	StringBuffer sb = new StringBuffer();
	for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
	{
		InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
		if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
		{
			for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
			{
				if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
				{
					sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
				}
			}
		}
	}

	return sb.toString().length() > 0 ? sb.toString() : null;
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
	StringBuffer sb = new StringBuffer();
	for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
	{
		InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
		if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
		{
			for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
			{
				if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
				{
					sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
				}
			}
		}
	}

	return sb.toString().length() > 0 ? sb.toString() : null;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
	StringBuffer sb = new StringBuffer();
	for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
	{
		InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
		if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
		{
			for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
			{
				if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
				{
					sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
				}
			}
		}
	}

	return sb.toString().length() > 0 ? sb.toString() : null;
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
	StringBuffer sb = new StringBuffer();
	for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
	{
		InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
		if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
		{
			for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
			{
				if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
				{
					sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
				}
			}
		}
	}

	return sb.toString().length() > 0 ? sb.toString() : null;
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 11
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 12
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 13
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 14
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private Date calculateOutpatientDate()
{
	return new PhlebotomyHelper().calculateDateToCollect(form.intQuantity().getValue(), form.cmbValues().getValue());
}
 
Example 15
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 17
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 18
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 19
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 20
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 21
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 22
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 23
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 24
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private Date calculateOutpatientDate()
{
	return new PhlebotomyHelper().calculateDateToCollect(form.intQuantity().getValue(), form.cmbValues().getValue());
}
 
Example 25
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 26
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 27
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 28
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 29
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 30
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 31
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 32
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 33
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 34
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private Date calculateOutpatientDate()
{
	return new PhlebotomyHelper().calculateDateToCollect(form.intQuantity().getValue(), form.cmbValues().getValue());
}
 
Example 35
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 37
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 38
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}
 
Example 39
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private String getPhlebotomistComment(String existingComment, String phlebotomistString, DateTime dateTimeCollected, String commentCollected)
{
	return new ims.ocrr.helper.PhlebotomyHelper().getPhlebotomistComment(existingComment, phlebotomistString, dateTimeCollected, commentCollected);
}
 
Example 40
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private PhlebotomyHelper getHelper()
{
	return new PhlebotomyHelper(engine.getLoggedInUser().getUserRealName());
}