Java Code Examples for ims.configuration.InitConfig

The following are top voted examples for showing how to use ims.configuration.InitConfig. 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   View source code 6 votes vote down vote up
private boolean checkAssessmentRecordingLevel()
{
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
  		if(recordingLevel == null)
  			recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
  		if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getCurrentCareContext() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.PATIENT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getPatientShort() == null)
  				return false;
  		}
	return true;
}
 
Example 2
Project: AvoinApotti   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 3
Project: AvoinApotti   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
   	
	return true;
}
 
Example 4
Project: AvoinApotti   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private boolean checkAssessmentRecordingLevel()
{
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
  		if(recordingLevel == null)
  			recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
  		if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getCurrentCareContext() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.PATIENT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getPatientShort() == null)
  				return false;
  		}
	return true;
}
 
Example 6
Project: openMAXIMS   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 7
Project: openMAXIMS   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
   	
	return true;
}
 
Example 8
Project: openMAXIMS   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 9
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private boolean checkAssessmentRecordingLevel()
{
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
  		if(recordingLevel == null)
  			recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
  		if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getCurrentCareContext() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.PATIENT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getPatientShort() == null)
  				return false;
  		}
	return true;
}
 
Example 10
Project: openMAXIMS   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 11
Project: openMAXIMS   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
   	
	return true;
}
 
Example 12
Project: openMAXIMS   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 13
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private boolean checkAssessmentRecordingLevel()
{
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
  		if(recordingLevel == null)
  			recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
  		if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getCurrentCareContext() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
  				return false;
  		}
  		else if(AssessmentRecordingLevel.PATIENT.equals(recordingLevel))
  		{
  			if(form.getGlobalContext().Core.getPatientShort() == null)
  				return false;
  		}
	return true;
}
 
Example 14
Project: openmaxims-linux   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 15
Project: openmaxims-linux   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
   	
	return true;
}
 
Example 16
Project: openmaxims-linux   File: AccessLogic.java   View source code 6 votes vote down vote up
public boolean isAccessible()
{
	if(!super.isAccessible())
		return false;

	//WDEV-11721 - starts here
	AssessmentRecordingLevel recordingLevel = InitConfig.getAssessmentRecordingLevel();
	
   	if(recordingLevel == null)
   		recordingLevel = AssessmentRecordingLevel.CARECONTEXT;
   			
   	if(AssessmentRecordingLevel.CARECONTEXT.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getCurrentCareContext() == null)
   			return false;
   	}
   	else if(AssessmentRecordingLevel.EPISODEOFCARE.equals(recordingLevel))
   	{
   		if(form.getGlobalContext().Core.getEpisodeofCareShort() == null)
   			return false;
   	}
   	//WDEV-11721 - ends here
	
	return true;
}
 
Example 17
Project: AvoinApotti   File: PatientSearchImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 18
Project: AvoinApotti   File: PatientSearchComponentImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 19
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getAssessmentForm()
{
	if (form.getLocalContext().getAssessmentForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getAssessmentContainerFormId());
		form.getLocalContext().setAssessmentForm(formVo);
	}
	return form.getLocalContext().getAssessmentForm();
}
 
Example 20
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getReportViewerForm()
{
	if (form.getLocalContext().getReportViewerForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getReportViewerFormId());
		form.getLocalContext().setReportViewerForm(formVo);
	}
	return form.getLocalContext().getReportViewerForm();
}
 
Example 21
Project: openMAXIMS   File: PatientSearchImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 22
Project: openMAXIMS   File: PatientSearchComponentImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 23
Project: openMAXIMS   File: PDSPatientSearchImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PDSPatientFilterSearchCriteriaVo filter, Boolean remote) throws DomainInterfaceException
{
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true, true);
	
	return new PatientShortCollection();
}
 
Example 24
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getAssessmentForm()
{
	if (form.getLocalContext().getAssessmentForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getAssessmentContainerFormId());
		form.getLocalContext().setAssessmentForm(formVo);
	}
	return form.getLocalContext().getAssessmentForm();
}
 
Example 25
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getReportViewerForm()
{
	if (form.getLocalContext().getReportViewerForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getReportViewerFormId());
		form.getLocalContext().setReportViewerForm(formVo);
	}
	return form.getLocalContext().getReportViewerForm();
}
 
Example 26
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getAssessmentForm()
{
	if (form.getLocalContext().getAssessmentForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getAssessmentContainerFormId());
		form.getLocalContext().setAssessmentForm(formVo);
	}
	return form.getLocalContext().getAssessmentForm();
}
 
Example 27
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getReportViewerForm()
{
	if (form.getLocalContext().getReportViewerForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getReportViewerFormId());
		form.getLocalContext().setReportViewerForm(formVo);
	}
	return form.getLocalContext().getReportViewerForm();
}
 
Example 28
Project: openMAXIMS   File: PatientSearchImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 29
Project: openMAXIMS   File: PatientSearchComponentImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 30
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getAssessmentForm()
{
	if (form.getLocalContext().getAssessmentForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getAssessmentContainerFormId());
		form.getLocalContext().setAssessmentForm(formVo);
	}
	return form.getLocalContext().getAssessmentForm();
}
 
Example 31
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getReportViewerForm()
{
	if (form.getLocalContext().getReportViewerForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getReportViewerFormId());
		form.getLocalContext().setReportViewerForm(formVo);
	}
	return form.getLocalContext().getReportViewerForm();
}
 
Example 32
Project: openmaxims-linux   File: PatientSearchImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 33
Project: openmaxims-linux   File: PatientSearchComponentImpl.java   View source code 5 votes vote down vote up
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{		
	if(InitConfig.getConfigType().equals("HIB")) 
		return searchPatientsLocal(filter,true);
	else if(InitConfig.getConfigType().equals("DTO"))
		return searchPatientsDTO(filter, remote);	
		
	return new PatientShortCollection();
}
 
Example 34
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getAssessmentForm()
{
	if (form.getLocalContext().getAssessmentForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getAssessmentContainerFormId());
		form.getLocalContext().setAssessmentForm(formVo);
	}
	return form.getLocalContext().getAssessmentForm();
}
 
Example 35
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private AppFormVo getReportViewerForm()
{
	if (form.getLocalContext().getReportViewerForm() == null)
	{
		AppFormVo formVo = domain.getAppForm(InitConfig.getReportViewerFormId());
		form.getLocalContext().setReportViewerForm(formVo);
	}
	return form.getLocalContext().getReportViewerForm();
}
 
Example 36
Project: AvoinApotti   File: CareSpellDialogImpl.java   View source code 4 votes vote down vote up
public boolean dtoOnly() 
{
	return InitConfig.getConfigType().equals("DTO");
}
 
Example 37
Project: AvoinApotti   File: DemographicsImpl.java   View source code 4 votes vote down vote up
public boolean dtoOnly()
{
	return InitConfig.getConfigType().equals("DTO");
}
 
Example 38
Project: AvoinApotti   File: PatientSearchImpl.java   View source code 4 votes vote down vote up
public boolean dtoOnly() 
{
	return InitConfig.getConfigType().equals("DTO");
}
 
Example 39
Project: AvoinApotti   File: BedInfoDialogImpl.java   View source code 4 votes vote down vote up
public boolean dtoOnly()
{
	return InitConfig.getConfigType().equals("DTO");
}
 
Example 40
Project: AvoinApotti   File: PatientSearchComponentImpl.java   View source code 4 votes vote down vote up
public boolean dtoOnly() 
{
	return InitConfig.getConfigType().equals("DTO");
}