Java Code Examples for ims.icp.vo.PatientICPActionFullVoCollection

The following are top voted examples for showing how to use ims.icp.vo.PatientICPActionFullVoCollection. 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 displayLinkedForms()
	{
		
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		//populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
//		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), false);

		// Show header for
		form.lyrMain().tabPageClinicDetails().setHeaderVisible(true);
	}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLinkedActionsRecordBrowser(PatientICPActionFullVoCollection patientActionCollection)
{
	// Clear record browser
	form.lyrMain().tabPageClinicDetails().recbrLinkedActions().clear();

	if (patientActionCollection == null)
		return;

	for (int i = 0; i < patientActionCollection.size(); i++)
	{
		PatientICPActionFullVo patientAction = patientActionCollection.get(i);

		if (patientAction == null)
			continue;

		StringBuilder display = new StringBuilder();

		if (patientAction.getActionIsNotNull())
			display.append(patientAction.getAction().getName());

		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().newRow(patientAction, display.toString());
	}

	if (patientActionCollection.size() > 0)
		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().setValue(patientActionCollection.get(0));
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean completedPatientICP = form.getLocalContext().getCurrentPatientICPIsNotNull() && form.getLocalContext().getCurrentPatientICP().getCompletedDateTimeIsNotNull();

	if (tab instanceof tabPageClinicDetailsContainer)
	{
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), !completedPatientICP);
	}
}
 
Example 4
Project: AvoinApotti   File: PatientICPImpl.java   Source Code and License 6 votes vote down vote up
public PatientICPActionFullVoCollection getLinkedPatientICPActions(PatientICPActionFullVo patientAction)
{
	if (patientAction == null || !patientAction.getActionIsNotNull() || !patientAction.getICPIsNotNull())
		return null;
	
	String hqlQuery = "select patientAction from PatientICPAction as patientAction, ICPAction as action where patientAction.iCP.id = :ICP_ID " +
			"and patientAction.action.id = action.clinicalDetailActions.id and action.id = :ACTION_ID order by patientAction.action.name";
	
	ArrayList<String> paramNames = new ArrayList<String>();
	ArrayList<Object> paramValues = new ArrayList<Object>();

	paramNames.add("ICP_ID");
	paramValues.add(patientAction.getICP().getID_PatientICP());
	
	paramNames.add("ACTION_ID");
	paramValues.add(patientAction.getAction().getID_ICPAction());
	
	
	return PatientICPActionFullVoAssembler.createPatientICPActionFullVoCollectionFromPatientICPAction(getDomainFactory().find(hqlQuery, paramNames, paramValues));
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayLinkedForms()
	{
		
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		//populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
//		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), false);

		// Show header for
		form.lyrMain().tabPageClinicDetails().setHeaderVisible(true);
	}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLinkedActionsRecordBrowser(PatientICPActionFullVoCollection patientActionCollection)
{
	// Clear record browser
	form.lyrMain().tabPageClinicDetails().recbrLinkedActions().clear();

	if (patientActionCollection == null)
		return;

	for (int i = 0; i < patientActionCollection.size(); i++)
	{
		PatientICPActionFullVo patientAction = patientActionCollection.get(i);

		if (patientAction == null)
			continue;

		StringBuilder display = new StringBuilder();

		if (patientAction.getActionIsNotNull())
			display.append(patientAction.getAction().getName());

		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().newRow(patientAction, display.toString());
	}

	if (patientActionCollection.size() > 0)
		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().setValue(patientActionCollection.get(0));
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean completedPatientICP = form.getLocalContext().getCurrentPatientICPIsNotNull() && form.getLocalContext().getCurrentPatientICP().getCompletedDateTimeIsNotNull();

	if (tab instanceof tabPageClinicDetailsContainer)
	{
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), !completedPatientICP);
	}
}
 
Example 8
Project: openMAXIMS   File: PatientICPImpl.java   Source Code and License 6 votes vote down vote up
public PatientICPActionFullVoCollection getLinkedPatientICPActions(PatientICPActionFullVo patientAction)
{
	if (patientAction == null || !patientAction.getActionIsNotNull() || !patientAction.getICPIsNotNull())
		return null;
	
	String hqlQuery = "select patientAction from PatientICPAction as patientAction, ICPAction as action where patientAction.iCP.id = :ICP_ID " +
			"and patientAction.action.id = action.clinicalDetailActions.id and action.id = :ACTION_ID order by patientAction.action.name";
	
	ArrayList<String> paramNames = new ArrayList<String>();
	ArrayList<Object> paramValues = new ArrayList<Object>();

	paramNames.add("ICP_ID");
	paramValues.add(patientAction.getICP().getID_PatientICP());
	
	paramNames.add("ACTION_ID");
	paramValues.add(patientAction.getAction().getID_ICPAction());
	
	
	return PatientICPActionFullVoAssembler.createPatientICPActionFullVoCollectionFromPatientICPAction(getDomainFactory().find(hqlQuery, paramNames, paramValues));
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayLinkedForms()
	{
		
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		//populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
//		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), false);

		// Show header for
		form.lyrMain().tabPageClinicDetails().setHeaderVisible(true);
	}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLinkedActionsRecordBrowser(PatientICPActionFullVoCollection patientActionCollection)
{
	// Clear record browser
	form.lyrMain().tabPageClinicDetails().recbrLinkedActions().clear();

	if (patientActionCollection == null)
		return;

	for (int i = 0; i < patientActionCollection.size(); i++)
	{
		PatientICPActionFullVo patientAction = patientActionCollection.get(i);

		if (patientAction == null)
			continue;

		StringBuilder display = new StringBuilder();

		if (patientAction.getActionIsNotNull())
			display.append(patientAction.getAction().getName());

		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().newRow(patientAction, display.toString());
	}

	if (patientActionCollection.size() > 0)
		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().setValue(patientActionCollection.get(0));
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean completedPatientICP = form.getLocalContext().getCurrentPatientICPIsNotNull() && form.getLocalContext().getCurrentPatientICP().getCompletedDateTimeIsNotNull();

	if (tab instanceof tabPageClinicDetailsContainer)
	{
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), !completedPatientICP);
	}
}
 
Example 12
Project: openMAXIMS   File: PatientICPImpl.java   Source Code and License 6 votes vote down vote up
public PatientICPActionFullVoCollection getLinkedPatientICPActions(PatientICPActionFullVo patientAction)
{
	if (patientAction == null || !patientAction.getActionIsNotNull() || !patientAction.getICPIsNotNull())
		return null;
	
	String hqlQuery = "select patientAction from PatientICPAction as patientAction, ICPAction as action where patientAction.iCP.id = :ICP_ID " +
			"and patientAction.action.id = action.clinicalDetailActions.id and action.id = :ACTION_ID order by patientAction.action.name";
	
	ArrayList<String> paramNames = new ArrayList<String>();
	ArrayList<Object> paramValues = new ArrayList<Object>();

	paramNames.add("ICP_ID");
	paramValues.add(patientAction.getICP().getID_PatientICP());
	
	paramNames.add("ACTION_ID");
	paramValues.add(patientAction.getAction().getID_ICPAction());
	
	
	return PatientICPActionFullVoAssembler.createPatientICPActionFullVoCollectionFromPatientICPAction(getDomainFactory().find(hqlQuery, paramNames, paramValues));
}
 
Example 13
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void displayLinkedForms()
	{
		
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		//populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
//		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), false);

		// Show header for
		form.lyrMain().tabPageClinicDetails().setHeaderVisible(true);
	}
 
Example 14
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLinkedActionsRecordBrowser(PatientICPActionFullVoCollection patientActionCollection)
{
	// Clear record browser
	form.lyrMain().tabPageClinicDetails().recbrLinkedActions().clear();

	if (patientActionCollection == null)
		return;

	for (int i = 0; i < patientActionCollection.size(); i++)
	{
		PatientICPActionFullVo patientAction = patientActionCollection.get(i);

		if (patientAction == null)
			continue;

		StringBuilder display = new StringBuilder();

		if (patientAction.getActionIsNotNull())
			display.append(patientAction.getAction().getName());

		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().newRow(patientAction, display.toString());
	}

	if (patientActionCollection.size() > 0)
		form.lyrMain().tabPageClinicDetails().recbrLinkedActions().setValue(patientActionCollection.get(0));
}
 
Example 15
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean completedPatientICP = form.getLocalContext().getCurrentPatientICPIsNotNull() && form.getLocalContext().getCurrentPatientICP().getCompletedDateTimeIsNotNull();

	if (tab instanceof tabPageClinicDetailsContainer)
	{
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), !completedPatientICP);
	}
}
 
Example 16
Project: openmaxims-linux   File: PatientICPImpl.java   Source Code and License 6 votes vote down vote up
public PatientICPActionFullVoCollection getLinkedPatientICPActions(PatientICPActionFullVo patientAction)
{
	if (patientAction == null || !patientAction.getActionIsNotNull() || !patientAction.getICPIsNotNull())
		return null;
	
	String hqlQuery = "select patientAction from PatientICPAction as patientAction, ICPAction as action where patientAction.iCP.id = :ICP_ID " +
			"and patientAction.action.id = action.clinicalDetailActions.id and action.id = :ACTION_ID order by patientAction.action.name";
	
	ArrayList<String> paramNames = new ArrayList<String>();
	ArrayList<Object> paramValues = new ArrayList<Object>();

	paramNames.add("ICP_ID");
	paramValues.add(patientAction.getICP().getID_PatientICP());
	
	paramNames.add("ACTION_ID");
	paramValues.add(patientAction.getAction().getID_ICPAction());
	
	
	return PatientICPActionFullVoAssembler.createPatientICPActionFullVoCollectionFromPatientICPAction(getDomainFactory().find(hqlQuery, paramNames, paramValues));
}