Java Code Examples for ims.assessment.configuration.vo.UserDefinedObjectComponentRefVo

The following are top voted examples for showing how to use ims.assessment.configuration.vo.UserDefinedObjectComponentRefVo. 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 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	//TODO - to be saved in local context and provide a Domain Interface method to get value of the Return to
	//Also please revisit all the references of this component where getReturnToFormName is used 
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 5
Project: AvoinApotti   File: GraphicAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
public UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo refVo)
{
	if(refVo == null)
		throw new RuntimeException("Cannot get UserDefinedObjectComponentRefVo for null UserDefinedObjectComponentRefVo");

	DomainFactory factory = getDomainFactory();
	UserDefinedObjectComponent doUserDefinedObjectComponent = (UserDefinedObjectComponent) factory.getDomainObject(UserDefinedObjectComponent.class, refVo.getID_UserDefinedObjectComponent());
	return UserDefinedObjectComponentVoAssembler.create(doUserDefinedObjectComponent);
}
 
Example 6
Project: AvoinApotti   File: UserAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 7
Project: AvoinApotti   File: UserAssessmentInstantiationWithComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}

	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	// WDEV-2301
	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());

	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}

	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}

	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);

	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());// form.getForms().Clinical.ClinicalNoteDrawing);

	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	//TODO - to be saved in local context and provide a Domain Interface method to get value of the Return to
	//Also please revisit all the references of this component where getReturnToFormName is used 
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 14
Project: openMAXIMS   File: GraphicAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
public UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo refVo)
{
	if(refVo == null)
		throw new RuntimeException("Cannot get UserDefinedObjectComponentRefVo for null UserDefinedObjectComponentRefVo");

	DomainFactory factory = getDomainFactory();
	UserDefinedObjectComponent doUserDefinedObjectComponent = (UserDefinedObjectComponent) factory.getDomainObject(UserDefinedObjectComponent.class, refVo.getID_UserDefinedObjectComponent());
	return UserDefinedObjectComponentVoAssembler.create(doUserDefinedObjectComponent);
}
 
Example 15
Project: openMAXIMS   File: UserAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 16
Project: openMAXIMS   File: UserAssessmentInstantiationWithComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}

	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	// WDEV-2301
	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());

	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}

	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}

	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);

	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());// form.getForms().Clinical.ClinicalNoteDrawing);

	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	//TODO - to be saved in local context and provide a Domain Interface method to get value of the Return to
	//Also please revisit all the references of this component where getReturnToFormName is used 
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 22
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 23
Project: openMAXIMS   File: GraphicAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
public UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo refVo)
{
	if(refVo == null)
		throw new RuntimeException("Cannot get UserDefinedObjectComponentRefVo for null UserDefinedObjectComponentRefVo");

	DomainFactory factory = getDomainFactory();
	UserDefinedObjectComponent doUserDefinedObjectComponent = (UserDefinedObjectComponent) factory.getDomainObject(UserDefinedObjectComponent.class, refVo.getID_UserDefinedObjectComponent());
	return UserDefinedObjectComponentVoAssembler.create(doUserDefinedObjectComponent);
}
 
Example 24
Project: openMAXIMS   File: UserAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 25
Project: openMAXIMS   File: UserAssessmentInstantiationWithComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 26
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}

	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	// WDEV-2301
	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());

	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);
}
 
Example 27
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}

	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}

	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);

	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());// form.getForms().Clinical.ClinicalNoteDrawing);

	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 29
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	//TODO - to be saved in local context and provide a Domain Interface method to get value of the Return to
	//Also please revisit all the references of this component where getReturnToFormName is used 
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 30
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);	
}
 
Example 31
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if(voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return; 
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if(voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return; 
	}
	
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if(voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}
	
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if(editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return; 
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	
	form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Assessment.PatientAssessment);
	
	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}
 
Example 32
Project: openmaxims-linux   File: GraphicAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
public UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo refVo)
{
	if(refVo == null)
		throw new RuntimeException("Cannot get UserDefinedObjectComponentRefVo for null UserDefinedObjectComponentRefVo");

	DomainFactory factory = getDomainFactory();
	UserDefinedObjectComponent doUserDefinedObjectComponent = (UserDefinedObjectComponent) factory.getDomainObject(UserDefinedObjectComponent.class, refVo.getID_UserDefinedObjectComponent());
	return UserDefinedObjectComponentVoAssembler.create(doUserDefinedObjectComponent);
}
 
Example 33
Project: openmaxims-linux   File: UserAssessmentInstantiationImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 34
Project: openmaxims-linux   File: UserAssessmentInstantiationWithComponentImpl.java   Source Code and License 5 votes vote down vote up
/**
* getComponent
*/
public ims.assessment.vo.UserDefinedObjectComponentVo getComponent(UserDefinedObjectComponentRefVo ref)
{
	if(ref == null || ref.getID_UserDefinedObjectComponent() == null)
		throw new DomainRuntimeException("Invalid component");
			
	return UserDefinedObjectComponentVoAssembler.create((UserDefinedObjectComponent)getDomainFactory().getDomainObject(UserDefinedObjectComponent.class, ref.getID_UserDefinedObjectComponent().intValue()));
}
 
Example 35
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateGraphicAssessment(boolean editComponent)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}
	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Graphic Patient Assessment Data");
		return;
	}
	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}

	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(editComponent));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);
	// WDEV-2301
	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());

	engine.open(form.getForms().Assessment.GraphicAssessmentInstantiation);
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void updateUserAssessment(boolean updateAssessment)
{
	PatientUserDefinedObjectListVo voPatientUserDefinedObjectList = getParentPatientUserDefinedObjectList();
	if (voPatientUserDefinedObjectList == null)
	{
		displayError("Please select a Patient User Defined Object");
		return;
	}
	PatientAssessmentListVo voPatientAssessmentList = getPatientAssessmentFromGrid();
	if (voPatientAssessmentList == null)
	{
		displayError("Please select a Patient Assessment");
		return;
	}

	PatientAssessmentDataListVo voPatientAssessmentData = voPatientAssessmentList.getAssessmentData();
	if (voPatientAssessmentData == null)
	{
		displayError("Please select a Patient Assessment Data");
		return;
	}

	PatientUserDefinedObjectVo voPatientUserDefinedObjectVo = domain.getPatientUserDefinedObject(voPatientUserDefinedObjectList);
	UserDefinedObjectComponentRefVo editedComponent = getEditedComponent(voPatientUserDefinedObjectVo);
	if (editedComponent == null)
	{
		displayError("Please select a User Defined Object Component");
		return;
	}
	form.getGlobalContext().Clinical.PatientAssessment.setEditComponent(new Boolean(updateAssessment));
	form.getGlobalContext().Clinical.PatientAssessment.setEditedComponent(editedComponent);
	form.getGlobalContext().Clinical.PatientAssessment.setSelectedAssessment(voPatientAssessmentList);
	form.getGlobalContext().Assessment.setPatientUserDefinedObject(voPatientUserDefinedObjectVo);

	form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());// form.getForms().Clinical.ClinicalNoteDrawing);

	engine.open(form.getForms().Assessment.UserAssessmentInstantiationWithComponent);
}