Java Code Examples for ims.nursing.helper.NursingSummaryHelper

The following are top voted examples for showing how to use ims.nursing.helper.NursingSummaryHelper. 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 populateGrdDPP(PlanOfCareHistoryVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();			

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdDPPRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareHistoryVo voHistoryItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdDPP().getRows().newRow();

			if (voHistoryItem.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
				row.setColDateTime(voHistoryItem.getAuthoringInformation().getAuthoringDateTime().toString());
			if (voHistoryItem.getAuthoringInformation().getAuthoringHcpIsNotNull())
				row.setColHcps(voHistoryItem.getAuthoringInformation().getAuthoringHcp().toString());
			if (voHistoryItem.getAnswerTextIsNotNull())
				row.setColDPP(voHistoryItem.getAnswerText());

			row.setBackColor(voHistoryItem.getLevelOfIntervention());
			row.setValue(voHistoryItem);
		}
	}	
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGrdDPP(PlanOfCareHistoryVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();			

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdDPPRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareHistoryVo voHistoryItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdDPP().getRows().newRow();

			if (voHistoryItem.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
				row.setColDateTime(voHistoryItem.getAuthoringInformation().getAuthoringDateTime().toString());
			if (voHistoryItem.getAuthoringInformation().getAuthoringHcpIsNotNull())
				row.setColHcps(voHistoryItem.getAuthoringInformation().getAuthoringHcp().toString());
			if (voHistoryItem.getAnswerTextIsNotNull())
				row.setColDPP(voHistoryItem.getAnswerText());

			row.setBackColor(voHistoryItem.getLevelOfIntervention());
			row.setValue(voHistoryItem);
		}
	}	
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGrdDPP(PlanOfCareHistoryVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();			

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdDPPRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareHistoryVo voHistoryItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdDPP().getRows().newRow();

			if (voHistoryItem.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
				row.setColDateTime(voHistoryItem.getAuthoringInformation().getAuthoringDateTime().toString());
			if (voHistoryItem.getAuthoringInformation().getAuthoringHcpIsNotNull())
				row.setColHcps(voHistoryItem.getAuthoringInformation().getAuthoringHcp().toString());
			if (voHistoryItem.getAnswerTextIsNotNull())
				row.setColDPP(voHistoryItem.getAnswerText());

			row.setBackColor(voHistoryItem.getLevelOfIntervention());
			row.setValue(voHistoryItem);
		}
	}	
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGrdDPP(PlanOfCareHistoryVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();			

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdDPPRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareHistoryVo voHistoryItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdDPP().getRows().newRow();

			if (voHistoryItem.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
				row.setColDateTime(voHistoryItem.getAuthoringInformation().getAuthoringDateTime().toString());
			if (voHistoryItem.getAuthoringInformation().getAuthoringHcpIsNotNull())
				row.setColHcps(voHistoryItem.getAuthoringInformation().getAuthoringHcp().toString());
			if (voHistoryItem.getAnswerTextIsNotNull())
				row.setColDPP(voHistoryItem.getAnswerText());

			row.setBackColor(voHistoryItem.getLevelOfIntervention());
			row.setValue(voHistoryItem);
		}
	}	
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void listPlansOfCareByStatus(PlanOfCareStatus status)
{
	if (status != null)
	{
		PlanOfCareListVoCollection coll = domain.listPlansofCareByStatus(form.getGlobalContext().Core.getCurrentCareContext(), status);
		NursingSummaryHelper helper = new NursingSummaryHelper(form.lyrPOC().tabPocList().dyngrdPOC(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
		helper.displayActionsGroupByPlan(coll, false);
		updateContextMenuState();
	}
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareActionsVo voActionsItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

			if (voActionsItem.getAuthoringInformationIsNotNull())
				row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
			if (voActionsItem.getActionIsNotNull())
				row.setColAction(voActionsItem.getAction().toString());
			if (voActionsItem.getReviewIsNotNull())
			{
				row.setColReview(voActionsItem.getReview());
			}

			row.setValue(voActionsItem);
		}
	}

}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateActions()
{
	DateTime date1 = null;
	DateTime date2 = null;
	
	if(form.cmbInterval().getValue() != null)
	{
		date1 = new DateTime();
		date2 = new DateTime();
		
		int hours = 0;
		if(PlanOfCareInterval.HOURS12.equals(form.cmbInterval().getValue()))
			hours = -12;
		else if(PlanOfCareInterval.HOURS24.equals(form.cmbInterval().getValue()))
			hours = -24;
		else if(PlanOfCareInterval.HOURS36.equals(form.cmbInterval().getValue()))
			hours = -36;
		else if(PlanOfCareInterval.HOURS48.equals(form.cmbInterval().getValue()))
			hours = -48;
		else if(PlanOfCareInterval.HOURS72.equals(form.cmbInterval().getValue()))
			hours = -72;
		
		date1.addHours(hours);
	}
	
	PlanOfCareListVoCollection coll = domain.listPlansofCare(form.getGlobalContext().Core.getCurrentCareContext(), null, date1, date2);
	NursingSummaryHelper helper = new NursingSummaryHelper(form.dyngrdActions(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
	helper.displayActionsGroupByPlan(coll, false);
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void listPlansOfCareByStatus(PlanOfCareStatus status)
{
	if (status != null)
	{
		PlanOfCareListVoCollection coll = domain.listPlansofCareByStatus(form.getGlobalContext().Core.getCurrentCareContext(), status);
		NursingSummaryHelper helper = new NursingSummaryHelper(form.lyrPOC().tabPocList().dyngrdPOC(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
		helper.displayActionsGroupByPlan(coll, false);
		updateContextMenuState();
	}
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareActionsVo voActionsItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

			if (voActionsItem.getAuthoringInformationIsNotNull())
				row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
			if (voActionsItem.getActionIsNotNull())
				row.setColAction(voActionsItem.getAction().toString());
			if (voActionsItem.getReviewIsNotNull())
			{
				row.setColReview(voActionsItem.getReview());
			}

			row.setValue(voActionsItem);
		}
	}

}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateActions()
{
	DateTime date1 = null;
	DateTime date2 = null;
	
	if(form.cmbInterval().getValue() != null)
	{
		date1 = new DateTime();
		date2 = new DateTime();
		
		int hours = 0;
		if(PlanOfCareInterval.HOURS12.equals(form.cmbInterval().getValue()))
			hours = -12;
		else if(PlanOfCareInterval.HOURS24.equals(form.cmbInterval().getValue()))
			hours = -24;
		else if(PlanOfCareInterval.HOURS36.equals(form.cmbInterval().getValue()))
			hours = -36;
		else if(PlanOfCareInterval.HOURS48.equals(form.cmbInterval().getValue()))
			hours = -48;
		else if(PlanOfCareInterval.HOURS72.equals(form.cmbInterval().getValue()))
			hours = -72;
		
		date1.addHours(hours);
	}
	
	PlanOfCareListVoCollection coll = domain.listPlansofCare(form.getGlobalContext().Core.getCurrentCareContext(), null, date1, date2);
	NursingSummaryHelper helper = new NursingSummaryHelper(form.dyngrdActions(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
	helper.displayActionsGroupByPlan(coll, false);
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void listPlansOfCareByStatus(PlanOfCareStatus status)
{
	if (status != null)
	{
		PlanOfCareListVoCollection coll = domain.listPlansofCareByStatus(form.getGlobalContext().Core.getCurrentCareContext(), status);
		NursingSummaryHelper helper = new NursingSummaryHelper(form.lyrPOC().tabPocList().dyngrdPOC(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
		helper.displayActionsGroupByPlan(coll, false);
		updateContextMenuState();
	}
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareActionsVo voActionsItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

			if (voActionsItem.getAuthoringInformationIsNotNull())
				row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
			if (voActionsItem.getActionIsNotNull())
				row.setColAction(voActionsItem.getAction().toString());
			if (voActionsItem.getReviewIsNotNull())
			{
				row.setColReview(voActionsItem.getReview());
			}

			row.setValue(voActionsItem);
		}
	}

}
 
Example 13
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateActions()
{
	DateTime date1 = null;
	DateTime date2 = null;
	
	if(form.cmbInterval().getValue() != null)
	{
		date1 = new DateTime();
		date2 = new DateTime();
		
		int hours = 0;
		if(PlanOfCareInterval.HOURS12.equals(form.cmbInterval().getValue()))
			hours = -12;
		else if(PlanOfCareInterval.HOURS24.equals(form.cmbInterval().getValue()))
			hours = -24;
		else if(PlanOfCareInterval.HOURS36.equals(form.cmbInterval().getValue()))
			hours = -36;
		else if(PlanOfCareInterval.HOURS48.equals(form.cmbInterval().getValue()))
			hours = -48;
		else if(PlanOfCareInterval.HOURS72.equals(form.cmbInterval().getValue()))
			hours = -72;
		
		date1.addHours(hours);
	}
	
	PlanOfCareListVoCollection coll = domain.listPlansofCare(form.getGlobalContext().Core.getCurrentCareContext(), null, date1, date2);
	NursingSummaryHelper helper = new NursingSummaryHelper(form.dyngrdActions(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
	helper.displayActionsGroupByPlan(coll, false);
}
 
Example 14
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void listPlansOfCareByStatus(PlanOfCareStatus status)
{
	if (status != null)
	{
		PlanOfCareListVoCollection coll = domain.listPlansofCareByStatus(form.getGlobalContext().Core.getCurrentCareContext(), status);
		NursingSummaryHelper helper = new NursingSummaryHelper(form.lyrPOC().tabPocList().dyngrdPOC(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll);
		helper.displayActionsGroupByPlan(coll, false);
		updateContextMenuState();
	}
}
 
Example 15
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
	if (list != null)
	{
		NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
		helper.sortDesc();

		ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

		for(int i=0; i< list.size(); i++)
		{
			PlanOfCareActionsVo voActionsItem = list.get(i);
			row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

			if (voActionsItem.getAuthoringInformationIsNotNull())
				row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
			if (voActionsItem.getActionIsNotNull())
				row.setColAction(voActionsItem.getAction().toString());
			if (voActionsItem.getReviewIsNotNull())
			{
				row.setColReview(voActionsItem.getReview());
			}

			row.setValue(voActionsItem);
		}
	}

}