Java Code Examples for ims.nursing.vo.CarePlanTemplateTitleCollection

The following are top voted examples for showing how to use ims.nursing.vo.CarePlanTemplateTitleCollection. 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 loadCarePlanGrd()
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BREATHING);
	if (tempColl != null)
	{
		 form.gridCarePlans().getRows().clear();
		 GenForm.gridCarePlansRow tempRow;
		 for (int i=0; i<tempColl.size(); i++)
		 {
			 CarePlanTemplateTitle template = tempColl.get(i);
			 tempRow = form.gridCarePlans().getRows().newRow();
			 tempRow.setValue(template);
			 tempRow.setcolCarePlans(template.getTitle());
		 }
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.COMMUNICATION);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.SPIRITUALITY);
	if (votempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection voTempColl = domain.listCarePlanTemplates(AssessmentComponentType.SLEEPING);
	if (voTempColl != null)
	{
		form.gCarePlans().getRows().clear();
		GenForm.gCarePlansRow tempRow;
		for (int i=0; i<voTempColl.size(); i++)
		{
			CarePlanTemplateTitle voTemplate = voTempColl.get(i);
			tempRow = form.gCarePlans().getRows().newRow();
			tempRow.setValue(voTemplate);
			tempRow.setcolCarePlans(voTemplate.getTitle());
		}
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BLADDER);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.BOWELS);
	if (votempColl != null)
	{
		form.container1().gridCarePlans().getRows().clear();
		GenForm.container1Container.gridCarePlansRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.container1().gridCarePlans().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.DRESSING);
	if (votempColl != null)
	{
		 form.gridCarePlan().getRows().clear();
		 GenForm.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			  CarePlanTemplateTitle votemplate = votempColl.get(i);
			  tempRow = form.gridCarePlan().getRows().newRow();
			  tempRow.setValue(votemplate);
			  tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	form.container1().gridCarePlan().getRows().clear();
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.PERSONAL_HYGIENE);
	if (votempColl != null)
	{
		 form.container1().gridCarePlan().getRows().clear();
		 GenForm.container1Container.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			 CarePlanTemplateTitle votemplate = votempColl.get(i);
			 tempRow = form.container1().gridCarePlan().getRows().newRow();
			 tempRow.setValue(votemplate);
			 tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd()
{
	// Populate the Grid CarePlan Templates
	    CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.EATING);
	if (votempColl != null)
	{
		  form.container1().gridCarePlan().getRows().clear();
		  GenForm.container1Container.gridCarePlanRow tempRow;
		  for (int i=0; i<votempColl.size(); i++)
		  {
			   CarePlanTemplateTitle votemplate = votempColl.get(i);
			   tempRow = form.container1().gridCarePlan().getRows().newRow();
			   tempRow.setValue(votemplate);
			   tempRow.setcolCarePlans(votemplate.getTitle());
		  }
	}
}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.EMOTIONAL_STATE);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd()
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BREATHING);
	if (tempColl != null)
	{
		 form.gridCarePlans().getRows().clear();
		 GenForm.gridCarePlansRow tempRow;
		 for (int i=0; i<tempColl.size(); i++)
		 {
			 CarePlanTemplateTitle template = tempColl.get(i);
			 tempRow = form.gridCarePlans().getRows().newRow();
			 tempRow.setValue(template);
			 tempRow.setcolCarePlans(template.getTitle());
		 }
	}
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.COMMUNICATION);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.SPIRITUALITY);
	if (votempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection voTempColl = domain.listCarePlanTemplates(AssessmentComponentType.SLEEPING);
	if (voTempColl != null)
	{
		form.gCarePlans().getRows().clear();
		GenForm.gCarePlansRow tempRow;
		for (int i=0; i<voTempColl.size(); i++)
		{
			CarePlanTemplateTitle voTemplate = voTempColl.get(i);
			tempRow = form.gCarePlans().getRows().newRow();
			tempRow.setValue(voTemplate);
			tempRow.setcolCarePlans(voTemplate.getTitle());
		}
	}
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BLADDER);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.BOWELS);
	if (votempColl != null)
	{
		form.container1().gridCarePlans().getRows().clear();
		GenForm.container1Container.gridCarePlansRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.container1().gridCarePlans().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.DRESSING);
	if (votempColl != null)
	{
		 form.gridCarePlan().getRows().clear();
		 GenForm.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			  CarePlanTemplateTitle votemplate = votempColl.get(i);
			  tempRow = form.gridCarePlan().getRows().newRow();
			  tempRow.setValue(votemplate);
			  tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	form.container1().gridCarePlan().getRows().clear();
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.PERSONAL_HYGIENE);
	if (votempColl != null)
	{
		 form.container1().gridCarePlan().getRows().clear();
		 GenForm.container1Container.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			 CarePlanTemplateTitle votemplate = votempColl.get(i);
			 tempRow = form.container1().gridCarePlan().getRows().newRow();
			 tempRow.setValue(votemplate);
			 tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd()
{
	// Populate the Grid CarePlan Templates
	    CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.EATING);
	if (votempColl != null)
	{
		  form.container1().gridCarePlan().getRows().clear();
		  GenForm.container1Container.gridCarePlanRow tempRow;
		  for (int i=0; i<votempColl.size(); i++)
		  {
			   CarePlanTemplateTitle votemplate = votempColl.get(i);
			   tempRow = form.container1().gridCarePlan().getRows().newRow();
			   tempRow.setValue(votemplate);
			   tempRow.setcolCarePlans(votemplate.getTitle());
		  }
	}
}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.EMOTIONAL_STATE);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd()
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BREATHING);
	if (tempColl != null)
	{
		 form.gridCarePlans().getRows().clear();
		 GenForm.gridCarePlansRow tempRow;
		 for (int i=0; i<tempColl.size(); i++)
		 {
			 CarePlanTemplateTitle template = tempColl.get(i);
			 tempRow = form.gridCarePlans().getRows().newRow();
			 tempRow.setValue(template);
			 tempRow.setcolCarePlans(template.getTitle());
		 }
	}
}
 
Example 22
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.COMMUNICATION);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 23
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.SPIRITUALITY);
	if (votempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 24
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection voTempColl = domain.listCarePlanTemplates(AssessmentComponentType.SLEEPING);
	if (voTempColl != null)
	{
		form.gCarePlans().getRows().clear();
		GenForm.gCarePlansRow tempRow;
		for (int i=0; i<voTempColl.size(); i++)
		{
			CarePlanTemplateTitle voTemplate = voTempColl.get(i);
			tempRow = form.gCarePlans().getRows().newRow();
			tempRow.setValue(voTemplate);
			tempRow.setcolCarePlans(voTemplate.getTitle());
		}
	}
}
 
Example 25
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BLADDER);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 26
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.BOWELS);
	if (votempColl != null)
	{
		form.container1().gridCarePlans().getRows().clear();
		GenForm.container1Container.gridCarePlansRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.container1().gridCarePlans().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 27
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.DRESSING);
	if (votempColl != null)
	{
		 form.gridCarePlan().getRows().clear();
		 GenForm.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			  CarePlanTemplateTitle votemplate = votempColl.get(i);
			  tempRow = form.gridCarePlan().getRows().newRow();
			  tempRow.setValue(votemplate);
			  tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 28
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	form.container1().gridCarePlan().getRows().clear();
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.PERSONAL_HYGIENE);
	if (votempColl != null)
	{
		 form.container1().gridCarePlan().getRows().clear();
		 GenForm.container1Container.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			 CarePlanTemplateTitle votemplate = votempColl.get(i);
			 tempRow = form.container1().gridCarePlan().getRows().newRow();
			 tempRow.setValue(votemplate);
			 tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 29
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd()
{
	// Populate the Grid CarePlan Templates
	    CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.EATING);
	if (votempColl != null)
	{
		  form.container1().gridCarePlan().getRows().clear();
		  GenForm.container1Container.gridCarePlanRow tempRow;
		  for (int i=0; i<votempColl.size(); i++)
		  {
			   CarePlanTemplateTitle votemplate = votempColl.get(i);
			   tempRow = form.container1().gridCarePlan().getRows().newRow();
			   tempRow.setValue(votemplate);
			   tempRow.setcolCarePlans(votemplate.getTitle());
		  }
	}
}
 
Example 30
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.EMOTIONAL_STATE);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 31
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd()
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BREATHING);
	if (tempColl != null)
	{
		 form.gridCarePlans().getRows().clear();
		 GenForm.gridCarePlansRow tempRow;
		 for (int i=0; i<tempColl.size(); i++)
		 {
			 CarePlanTemplateTitle template = tempColl.get(i);
			 tempRow = form.gridCarePlans().getRows().newRow();
			 tempRow.setValue(template);
			 tempRow.setcolCarePlans(template.getTitle());
		 }
	}
}
 
Example 32
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.COMMUNICATION);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 33
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.SPIRITUALITY);
	if (votempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 34
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection voTempColl = domain.listCarePlanTemplates(AssessmentComponentType.SLEEPING);
	if (voTempColl != null)
	{
		form.gCarePlans().getRows().clear();
		GenForm.gCarePlansRow tempRow;
		for (int i=0; i<voTempColl.size(); i++)
		{
			CarePlanTemplateTitle voTemplate = voTempColl.get(i);
			tempRow = form.gCarePlans().getRows().newRow();
			tempRow.setValue(voTemplate);
			tempRow.setcolCarePlans(voTemplate.getTitle());
		}
	}
}
 
Example 35
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.BLADDER);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	//Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.BOWELS);
	if (votempColl != null)
	{
		form.container1().gridCarePlans().getRows().clear();
		GenForm.container1Container.gridCarePlansRow tempRow;
		for (int i=0; i<votempColl.size(); i++)
		{
			CarePlanTemplateTitle votemplate = votempColl.get(i);
			tempRow = form.container1().gridCarePlans().getRows().newRow();
			tempRow.setValue(votemplate);
			tempRow.setcolCarePlans(votemplate.getTitle());
		}
	}
}
 
Example 37
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void loadCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.DRESSING);
	if (votempColl != null)
	{
		 form.gridCarePlan().getRows().clear();
		 GenForm.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			  CarePlanTemplateTitle votemplate = votempColl.get(i);
			  tempRow = form.gridCarePlan().getRows().newRow();
			  tempRow.setValue(votemplate);
			  tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 38
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	// Populate the Grid CarePlan Templates
	form.container1().gridCarePlan().getRows().clear();
	CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.PERSONAL_HYGIENE);
	if (votempColl != null)
	{
		 form.container1().gridCarePlan().getRows().clear();
		 GenForm.container1Container.gridCarePlanRow tempRow;
		 for (int i=0; i<votempColl.size(); i++)
		 {
			 CarePlanTemplateTitle votemplate = votempColl.get(i);
			 tempRow = form.container1().gridCarePlan().getRows().newRow();
			 tempRow.setValue(votemplate);
			 tempRow.setcolCarePlans(votemplate.getTitle());
		 }
	}
}
 
Example 39
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd()
{
	// Populate the Grid CarePlan Templates
	    CarePlanTemplateTitleCollection votempColl = domain.listCarePlanTemplates(AssessmentComponentType.EATING);
	if (votempColl != null)
	{
		  form.container1().gridCarePlan().getRows().clear();
		  GenForm.container1Container.gridCarePlanRow tempRow;
		  for (int i=0; i<votempColl.size(); i++)
		  {
			   CarePlanTemplateTitle votemplate = votempColl.get(i);
			   tempRow = form.container1().gridCarePlan().getRows().newRow();
			   tempRow.setValue(votemplate);
			   tempRow.setcolCarePlans(votemplate.getTitle());
		  }
	}
}
 
Example 40
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void prePopulateCarePlanGrd() 
{
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.EMOTIONAL_STATE);
	if (tempColl != null)
	{
		form.container1().gridCarePlan().getRows().clear();
		GenForm.container1Container.gridCarePlanRow tempRow;
		
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.container1().gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
}
 
Example 41
Project: AvoinApotti   File: NurAssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType) 
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates));
}
 
Example 42
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrid() 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();
	
	form.gridTemplates().getRows().clear();	
	
	GenForm.gridTemplatesRow row;							
	//Fill in the grid if there is any data
	for (int i=0; i<templateTitleColl.size(); i++)
	{
		CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
		//27/10/2004 - Sinead request - if "Active Only" checked than display only the active records
		if(form.chkActive().getValue() && voCpt.getActive().booleanValue() == false)
			continue;
		
		row = form.gridTemplates().getRows().newRow();
		row.setValue(voCpt);

		row.setColCreationDate(voCpt.getCreationDate());
		row.setColTitle(voCpt.getTitle());
		AssessmentComponentType comp = voCpt.getAssessmentComponent();
		if(comp !=null)
			row.setColAssessmentComponent(comp.getText());
		
		if(voCpt.getActive().booleanValue())
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
		}
		else
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_No);
		}
	}
}
 
Example 43
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onChkActiveValueChanged() throws PresentationLogicException 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();

	form.gridTemplates().getRows().clear();	

	GenForm.gridTemplatesRow row;
	//Fill in the grid with Active Care Plans	
	if(form.chkActive().getValue()== true)
	{
		for (int i=0; i<templateTitleColl.size(); i++)
		{
			CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
			
			if(voCpt.getActive().booleanValue()== true)
			{
				row = form.gridTemplates().getRows().newRow();
				row.setValue(voCpt);
				
				row.setColCreationDate(voCpt.getCreationDate());
				row.setColTitle(voCpt.getTitle());
				AssessmentComponentType comp = voCpt.getAssessmentComponent();
				//WDEV-935 - 3) Extra issue found: - Assessment Component crash in Care Plan Templates
				if(comp != null)
					row.setColAssessmentComponent(comp.getText());
				row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
			}	
		}
	}
	else
	{
		//Fill in the grid with all Care Plans
		populateGrid();
	}
	
	//WDEV-935
	form.btnUpdate().setEnabled(false);
}
 
Example 44
Project: AvoinApotti   File: AssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Returns a list of careplan templates
 */
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType)
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List<?> templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates)).sort();
	
}
 
Example 45
Project: openMAXIMS   File: NurAssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType) 
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates));
}
 
Example 46
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrid() 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();
	
	form.gridTemplates().getRows().clear();	
	
	GenForm.gridTemplatesRow row;							
	//Fill in the grid if there is any data
	for (int i=0; i<templateTitleColl.size(); i++)
	{
		CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
		//27/10/2004 - Sinead request - if "Active Only" checked than display only the active records
		if(form.chkActive().getValue() && voCpt.getActive().booleanValue() == false)
			continue;
		
		row = form.gridTemplates().getRows().newRow();
		row.setValue(voCpt);

		row.setColCreationDate(voCpt.getCreationDate());
		row.setColTitle(voCpt.getTitle());
		AssessmentComponentType comp = voCpt.getAssessmentComponent();
		if(comp !=null)
			row.setColAssessmentComponent(comp.getText());
		
		if(voCpt.getActive().booleanValue())
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
		}
		else
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_No);
		}
	}
}
 
Example 47
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onChkActiveValueChanged() throws PresentationLogicException 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();

	form.gridTemplates().getRows().clear();	

	GenForm.gridTemplatesRow row;
	//Fill in the grid with Active Care Plans	
	if(form.chkActive().getValue()== true)
	{
		for (int i=0; i<templateTitleColl.size(); i++)
		{
			CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
			
			if(voCpt.getActive().booleanValue()== true)
			{
				row = form.gridTemplates().getRows().newRow();
				row.setValue(voCpt);
				
				row.setColCreationDate(voCpt.getCreationDate());
				row.setColTitle(voCpt.getTitle());
				AssessmentComponentType comp = voCpt.getAssessmentComponent();
				//WDEV-935 - 3) Extra issue found: - Assessment Component crash in Care Plan Templates
				if(comp != null)
					row.setColAssessmentComponent(comp.getText());
				row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
			}	
		}
	}
	else
	{
		//Fill in the grid with all Care Plans
		populateGrid();
	}
	
	//WDEV-935
	form.btnUpdate().setEnabled(false);
}
 
Example 48
Project: openMAXIMS   File: AssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Returns a list of careplan templates
 */
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType)
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List<?> templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates)).sort();
	
}
 
Example 49
Project: openMAXIMS   File: NurAssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType) 
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates));
}
 
Example 50
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrid() 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();
	
	form.gridTemplates().getRows().clear();	
	
	GenForm.gridTemplatesRow row;							
	//Fill in the grid if there is any data
	for (int i=0; i<templateTitleColl.size(); i++)
	{
		CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
		//27/10/2004 - Sinead request - if "Active Only" checked than display only the active records
		if(form.chkActive().getValue() && voCpt.getActive().booleanValue() == false)
			continue;
		
		row = form.gridTemplates().getRows().newRow();
		row.setValue(voCpt);

		row.setColCreationDate(voCpt.getCreationDate());
		row.setColTitle(voCpt.getTitle());
		AssessmentComponentType comp = voCpt.getAssessmentComponent();
		if(comp !=null)
			row.setColAssessmentComponent(comp.getText());
		
		if(voCpt.getActive().booleanValue())
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
		}
		else
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_No);
		}
	}
}
 
Example 51
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onChkActiveValueChanged() throws PresentationLogicException 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();

	form.gridTemplates().getRows().clear();	

	GenForm.gridTemplatesRow row;
	//Fill in the grid with Active Care Plans	
	if(form.chkActive().getValue()== true)
	{
		for (int i=0; i<templateTitleColl.size(); i++)
		{
			CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
			
			if(voCpt.getActive().booleanValue()== true)
			{
				row = form.gridTemplates().getRows().newRow();
				row.setValue(voCpt);
				
				row.setColCreationDate(voCpt.getCreationDate());
				row.setColTitle(voCpt.getTitle());
				AssessmentComponentType comp = voCpt.getAssessmentComponent();
				//WDEV-935 - 3) Extra issue found: - Assessment Component crash in Care Plan Templates
				if(comp != null)
					row.setColAssessmentComponent(comp.getText());
				row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
			}	
		}
	}
	else
	{
		//Fill in the grid with all Care Plans
		populateGrid();
	}
	
	//WDEV-935
	form.btnUpdate().setEnabled(false);
}
 
Example 52
Project: openMAXIMS   File: AssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Returns a list of careplan templates
 */
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType)
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List<?> templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates)).sort();
	
}
 
Example 53
Project: openmaxims-linux   File: NurAssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType) 
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates));
}
 
Example 54
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrid() 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();
	
	form.gridTemplates().getRows().clear();	
	
	GenForm.gridTemplatesRow row;							
	//Fill in the grid if there is any data
	for (int i=0; i<templateTitleColl.size(); i++)
	{
		CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
		//27/10/2004 - Sinead request - if "Active Only" checked than display only the active records
		if(form.chkActive().getValue() && voCpt.getActive().booleanValue() == false)
			continue;
		
		row = form.gridTemplates().getRows().newRow();
		row.setValue(voCpt);

		row.setColCreationDate(voCpt.getCreationDate());
		row.setColTitle(voCpt.getTitle());
		AssessmentComponentType comp = voCpt.getAssessmentComponent();
		if(comp !=null)
			row.setColAssessmentComponent(comp.getText());
		
		if(voCpt.getActive().booleanValue())
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
		}
		else
		{
			row.setColIsActive(form.getImages().Core.AnswerBox_No);
		}
	}
}
 
Example 55
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onChkActiveValueChanged() throws PresentationLogicException 
{
	CarePlanTemplateTitleCollection templateTitleColl;
	templateTitleColl = domain.listCarePlanTemplates();

	form.gridTemplates().getRows().clear();	

	GenForm.gridTemplatesRow row;
	//Fill in the grid with Active Care Plans	
	if(form.chkActive().getValue()== true)
	{
		for (int i=0; i<templateTitleColl.size(); i++)
		{
			CarePlanTemplateTitle voCpt = templateTitleColl.get(i);
			
			if(voCpt.getActive().booleanValue()== true)
			{
				row = form.gridTemplates().getRows().newRow();
				row.setValue(voCpt);
				
				row.setColCreationDate(voCpt.getCreationDate());
				row.setColTitle(voCpt.getTitle());
				AssessmentComponentType comp = voCpt.getAssessmentComponent();
				//WDEV-935 - 3) Extra issue found: - Assessment Component crash in Care Plan Templates
				if(comp != null)
					row.setColAssessmentComponent(comp.getText());
				row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
			}	
		}
	}
	else
	{
		//Fill in the grid with all Care Plans
		populateGrid();
	}
	
	//WDEV-935
	form.btnUpdate().setEnabled(false);
}
 
Example 56
Project: openmaxims-linux   File: AssessmentComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Returns a list of careplan templates
 */
public CarePlanTemplateTitleCollection listCarePlanTemplates(AssessmentComponentType componentType)
{
	DomainFactory factory = getDomainFactory();
	
	String hql = "from CarePlanTemplate t " +
			" where t.assessmentComponent = :compType" + 
			" and t.active = :isActive";
	java.util.List<?> templates = factory.find(hql, new String[]{"compType", "isActive"}, new Object[]{getDomLookup(componentType), Boolean.TRUE});
	return (ims.nursing.vo.domain.CarePlanTemplateTitleAssembler.createCarePlanTemplateTitleCollectionFromCarePlanTemplate(templates)).sort();
	
}
 
Example 57
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
	form.textBoxHobbies().setFocus();
	form.setMode(FormMode.EDIT);
	form.bSave().setEnabled(true);
	form.gridCarePlan().setReadOnly(false);
	form.getLocalContext().setYesNoColl(ims.core.vo.lookups.LookupHelper.getYesNoUnknown(domain.getLookupService()));
	form.checkBoxCopy().setEnabled(false);
	
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.LEISURE);
	if (tempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
	
	// If there is an assessment in the global context, we want to call the get component
	// domain method
	// Otherwise, it is a new assessment component
	AssessmentHeaderInfo assmnt = form.getGlobalContext().Nursing.getAssessmentHeaderInfo();
	form.getLocalContext().setAssmnt(assmnt);
	if (assmnt != null && assmnt.getID_AssessmentIsNotNull())
	{		
		//AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt.getCurrentComponent(), AssessmentComponentType.LEISURE);
		AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt,AssessmentComponentType.LEISURE);
		form.getLocalContext().setAssessLeisure(assessLeisure);
		populateFormInfo(assessLeisure);			
	}
	else
	{
		// check if there is a relevant component
		getLastAssessmentComponent();
	}
	
	try
	{
		onAnswerBoxDrinkSociallyValueChanged();
	} catch (PresentationLogicException e)
	{
		throw new FormOpenException(e.getMessage(),e);		}
}
 
Example 58
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
	form.textBoxHobbies().setFocus();
	form.setMode(FormMode.EDIT);
	form.bSave().setEnabled(true);
	form.gridCarePlan().setReadOnly(false);
	form.getLocalContext().setYesNoColl(ims.core.vo.lookups.LookupHelper.getYesNoUnknown(domain.getLookupService()));
	form.checkBoxCopy().setEnabled(false);
	
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.LEISURE);
	if (tempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
	
	// If there is an assessment in the global context, we want to call the get component
	// domain method
	// Otherwise, it is a new assessment component
	AssessmentHeaderInfo assmnt = form.getGlobalContext().Nursing.getAssessmentHeaderInfo();
	form.getLocalContext().setAssmnt(assmnt);
	if (assmnt != null && assmnt.getID_AssessmentIsNotNull())
	{		
		//AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt.getCurrentComponent(), AssessmentComponentType.LEISURE);
		AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt,AssessmentComponentType.LEISURE);
		form.getLocalContext().setAssessLeisure(assessLeisure);
		populateFormInfo(assessLeisure);			
	}
	else
	{
		// check if there is a relevant component
		getLastAssessmentComponent();
	}
	
	try
	{
		onAnswerBoxDrinkSociallyValueChanged();
	} catch (PresentationLogicException e)
	{
		throw new FormOpenException(e.getMessage(),e);		}
}
 
Example 59
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
	form.textBoxHobbies().setFocus();
	form.setMode(FormMode.EDIT);
	form.bSave().setEnabled(true);
	form.gridCarePlan().setReadOnly(false);
	form.getLocalContext().setYesNoColl(ims.core.vo.lookups.LookupHelper.getYesNoUnknown(domain.getLookupService()));
	form.checkBoxCopy().setEnabled(false);
	
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.LEISURE);
	if (tempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
	
	// If there is an assessment in the global context, we want to call the get component
	// domain method
	// Otherwise, it is a new assessment component
	AssessmentHeaderInfo assmnt = form.getGlobalContext().Nursing.getAssessmentHeaderInfo();
	form.getLocalContext().setAssmnt(assmnt);
	if (assmnt != null && assmnt.getID_AssessmentIsNotNull())
	{		
		//AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt.getCurrentComponent(), AssessmentComponentType.LEISURE);
		AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt,AssessmentComponentType.LEISURE);
		form.getLocalContext().setAssessLeisure(assessLeisure);
		populateFormInfo(assessLeisure);			
	}
	else
	{
		// check if there is a relevant component
		getLastAssessmentComponent();
	}
	
	try
	{
		onAnswerBoxDrinkSociallyValueChanged();
	} catch (PresentationLogicException e)
	{
		throw new FormOpenException(e.getMessage(),e);		}
}
 
Example 60
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
	form.textBoxHobbies().setFocus();
	form.setMode(FormMode.EDIT);
	form.bSave().setEnabled(true);
	form.gridCarePlan().setReadOnly(false);
	form.getLocalContext().setYesNoColl(ims.core.vo.lookups.LookupHelper.getYesNoUnknown(domain.getLookupService()));
	form.checkBoxCopy().setEnabled(false);
	
	// Populate the Grid CarePlan Templates
	CarePlanTemplateTitleCollection tempColl = domain.listCarePlanTemplates(AssessmentComponentType.LEISURE);
	if (tempColl != null)
	{
		form.gridCarePlan().getRows().clear();
		GenForm.gridCarePlanRow tempRow;
		for (int i=0; i<tempColl.size(); i++)
		{
			CarePlanTemplateTitle template = tempColl.get(i);
			tempRow = form.gridCarePlan().getRows().newRow();
			tempRow.setValue(template);
			tempRow.setcolCarePlans(template.getTitle());
		}
	}
	
	// If there is an assessment in the global context, we want to call the get component
	// domain method
	// Otherwise, it is a new assessment component
	AssessmentHeaderInfo assmnt = form.getGlobalContext().Nursing.getAssessmentHeaderInfo();
	form.getLocalContext().setAssmnt(assmnt);
	if (assmnt != null && assmnt.getID_AssessmentIsNotNull())
	{		
		//AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt.getCurrentComponent(), AssessmentComponentType.LEISURE);
		AssessmentLeisure assessLeisure = (AssessmentLeisure)domain.getComponent(assmnt,AssessmentComponentType.LEISURE);
		form.getLocalContext().setAssessLeisure(assessLeisure);
		populateFormInfo(assessLeisure);			
	}
	else
	{
		// check if there is a relevant component
		getLastAssessmentComponent();
	}
	
	try
	{
		onAnswerBoxDrinkSociallyValueChanged();
	} catch (PresentationLogicException e)
	{
		throw new FormOpenException(e.getMessage(),e);		}
}