Java Code Examples for ims.core.vo.PatientMedicationLiteVo.validate()

The following are Jave code examples for showing how to use validate() of the ims.core.vo.PatientMedicationLiteVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private boolean save()
{
	PatientMedicationLiteVo medicationData = populateInstanceData();
	
	String[] errors = medicationData.validate();
	
	if(errors != null && errors.length > 0)
	{
		engine.showErrors(errors);	
		return false;
	}
	form.getGlobalContext().Emergency.setPrescriptionDrug(medicationData);
	
	form.getGlobalContext().RefMan.setPrescriptionMedication(medicationData);
			
	return true;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private boolean save()
{
	PatientMedicationLiteVo medicationData = populateInstanceData();
	
	String[] errors = medicationData.validate();
	
	if(errors != null && errors.length > 0)
	{
		engine.showErrors(errors);	
		return false;
	}
	
	form.getGlobalContext().RefMan.setPrescriptionMedication(medicationData);
	return true;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean save()
{
	PatientMedicationLiteVo medicationData = populateInstanceData();
	
	String[] errors = medicationData.validate();
	
	if(errors != null && errors.length > 0)
	{
		engine.showErrors(errors);	
		return false;
	}
	
	form.getGlobalContext().RefMan.setPrescriptionMedication(medicationData);
	return true;
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private boolean save()
{
	PatientMedicationLiteVo medicationData = populateInstanceData();
	
	String[] errors = medicationData.validate();
	
	if(errors != null && errors.length > 0)
	{
		engine.showErrors(errors);	
		return false;
	}
	
	form.getGlobalContext().CareUk.setPrescriptionMedication(medicationData);
	return true;
}