Java Code Examples for ims.correspondence.vo.CorrespondencePatientListsVoCollection

The following are top voted examples for showing how to use ims.correspondence.vo.CorrespondencePatientListsVoCollection. 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: CorrespondenceOutpatientListImpl.java   View source code 6 votes vote down vote up
private CorrespondencePatientListsVoCollection createOutPatientListVoCollection(List list) {
	
	CorrespondencePatientListsVoCollection collOutPatientListVo = new CorrespondencePatientListsVoCollection();
	
	for (int i = 0; i<list.size(); i++)
	{
		Object obj[] = (Object[]) list.get(i);
		CorrespondencePatientListsVo voOutPatientList = new CorrespondencePatientListsVo();
		
		if(obj[0]==null)
			;
		else	
			voOutPatientList.setOutpatientAttendanceVo(OutPatientAttendanceVoAssembler.create((OutpatientAttendance) obj[0]));
		if(obj[1]==null)
			;
		else	
			voOutPatientList.setPASEventVo(PasEventVoAssembler.create((PASEvent) obj[1]));
		
		collOutPatientListVo.add(voOutPatientList);
	}
	
	return collOutPatientListVo;
}
 
Example 2
Project: openMAXIMS   File: CorrespondenceOutpatientListImpl.java   View source code 6 votes vote down vote up
private CorrespondencePatientListsVoCollection createOutPatientListVoCollection(List list) {
	
	CorrespondencePatientListsVoCollection collOutPatientListVo = new CorrespondencePatientListsVoCollection();
	
	for (int i = 0; i<list.size(); i++)
	{
		Object obj[] = (Object[]) list.get(i);
		CorrespondencePatientListsVo voOutPatientList = new CorrespondencePatientListsVo();
		
		if(obj[0]==null)
			;
		else	
			voOutPatientList.setOutpatientAttendanceVo(OutPatientAttendanceVoAssembler.create((OutpatientAttendance) obj[0]));
		if(obj[1]==null)
			;
		else	
			voOutPatientList.setPASEventVo(PasEventVoAssembler.create((PASEvent) obj[1]));
		
		collOutPatientListVo.add(voOutPatientList);
	}
	
	return collOutPatientListVo;
}
 
Example 3
Project: openMAXIMS   File: CorrespondenceOutpatientListImpl.java   View source code 6 votes vote down vote up
private CorrespondencePatientListsVoCollection createOutPatientListVoCollection(List list) {
	
	CorrespondencePatientListsVoCollection collOutPatientListVo = new CorrespondencePatientListsVoCollection();
	
	for (int i = 0; i<list.size(); i++)
	{
		Object obj[] = (Object[]) list.get(i);
		CorrespondencePatientListsVo voOutPatientList = new CorrespondencePatientListsVo();
		
		if(obj[0]==null)
			;
		else	
			voOutPatientList.setOutpatientAttendanceVo(OutPatientAttendanceVoAssembler.create((OutpatientAttendance) obj[0]));
		if(obj[1]==null)
			;
		else	
			voOutPatientList.setPASEventVo(PasEventVoAssembler.create((PASEvent) obj[1]));
		
		collOutPatientListVo.add(voOutPatientList);
	}
	
	return collOutPatientListVo;
}
 
Example 4
Project: openmaxims-linux   File: CorrespondenceOutpatientListImpl.java   View source code 6 votes vote down vote up
private CorrespondencePatientListsVoCollection createOutPatientListVoCollection(List list) {
	
	CorrespondencePatientListsVoCollection collOutPatientListVo = new CorrespondencePatientListsVoCollection();
	
	for (int i = 0; i<list.size(); i++)
	{
		Object obj[] = (Object[]) list.get(i);
		CorrespondencePatientListsVo voOutPatientList = new CorrespondencePatientListsVo();
		
		if(obj[0]==null)
			;
		else	
			voOutPatientList.setOutpatientAttendanceVo(OutPatientAttendanceVoAssembler.create((OutpatientAttendance) obj[0]));
		if(obj[1]==null)
			;
		else	
			voOutPatientList.setPASEventVo(PasEventVoAssembler.create((PASEvent) obj[1]));
		
		collOutPatientListVo.add(voOutPatientList);
	}
	
	return collOutPatientListVo;
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
private void populateOutPatientList(CorrespondencePatientListsVoCollection voOutPatColl)
{
	if (voOutPatColl != null)
	{
		if (voOutPatColl.size() == 0)
		{
			engine.showMessage("No matching patients found.");
			return;
		}
		storeSearchCriteria();
		GenForm.grdOutPatientRow row = null;
		for (int i = 0; i < voOutPatColl.size(); i++)
		{
			OutPatientAttendanceVo voOutPatient = voOutPatColl.get(i).getOutpatientAttendanceVo();
			if(form.cmbConsultant().getValue()==null && form.getLocalContext().getUserAccessVoIsNotNull()){
				boolean bIsUserAccessConsultant = false;
				UserAccessVo voUserAccess = form.getLocalContext().getUserAccessVo();
				ConsultantAccessVoCollection  collConsultantAccessVo = voUserAccess.getConsultantAccess();
				MedicLiteVo med = null;
				
				if (collConsultantAccessVo != null)
				{
					for (int j = 0; j < collConsultantAccessVo.size(); j++)
					{
						med = collConsultantAccessVo.get(j).getConsultant();
						if(med.getID_Hcp().equals(voOutPatient.getPasEvent().getConsultant().getID_Hcp()))
							bIsUserAccessConsultant=true;
					}
				}
				if(!bIsUserAccessConsultant)
					continue;
			}
			if (voOutPatient != null && voOutPatient.getPasEventIsNotNull() && voOutPatient.getPasEvent().getPatientIsNotNull())
			{
				row = form.grdOutPatient().getRows().newRow();
				if (voOutPatient.getPasEvent().getPatient().getNameIsNotNull())
				{
					row.setcolForename(voOutPatient.getPasEvent().getPatient().getName().getForename());
					row.setcolSurname(voOutPatient.getPasEvent().getPatient().getName().getSurname());
				}

				ims.core.vo.PatientId voPatId = voOutPatient.getPasEvent().getPatient().getDisplayId();
				if (voPatId != null)
					row.setcolHospnum(voPatId.getValue());

				if (voOutPatient.getPasEvent().getPatient().getDobIsNotNull())
					row.setcolDob(voOutPatient.getPasEvent().getPatient().getDob().toString());

				if (voOutPatient.getPasEvent().getPatient().getAgeIsNotNull())
					row.setColAge(voOutPatient.getPasEvent().getPatient().getAge().toString());
				else
					row.setColAge(voOutPatient.getPasEvent().getPatient().calculateAge().toString());

				if (voOutPatient.getPasEvent().getPatient().getSexIsNotNull())
					row.setcolSex(voOutPatient.getPasEvent().getPatient().getSex().getText());

				if (voOutPatient.getClinicIsNotNull())
					row.setcolClinic(voOutPatient.getClinic().getClinicName());

				if (voOutPatient.getPasEvent() != null && voOutPatient.getPasEvent().getSpecialty() != null)
					row.setcolSpecialty(voOutPatient.getPasEvent().getSpecialty().getText());

				if (voOutPatient.getAppointmentDateTimeIsNotNull())
					row.setcolClinicDate(voOutPatient.getAppointmentDateTime().toString());

				if (voOutPatient.getPasEvent().getPatient().getIsDead() != null && voOutPatient.getPasEvent().getPatient().getIsDead().booleanValue())
					row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());

				if(voOutPatient.getPasEvent().getCspDocumentStatusIsNotNull()){
					row.setcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getImage());
					row.setTooltipForcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getText());
				}
				
				row.setValue(voOutPatient);
			}

		}
	}

}
 
Example 6
Project: AvoinApotti   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listInPatients(ims.core.vo.PatientListsFilterVo filter, Boolean listByReqAndNotReqStatus)
{
	CorrespondenceInpatientList inpatientList = (CorrespondenceInpatientList)getDomainImpl(CorrespondenceInpatientListImpl.class);
	return inpatientList.listInPatients(filter, listByReqAndNotReqStatus, false);
}
 
Example 7
Project: AvoinApotti   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listOutpatients(OutPatientListSearchCriteriaVo filter, Boolean listByReqAndNotReqStatus) {
	CorrespondenceOutpatientList outpatientList = (CorrespondenceOutpatientList)getDomainImpl(CorrespondenceOutpatientListImpl.class);
	return outpatientList.listOutpatients(filter, listByReqAndNotReqStatus);
}
 
Example 8
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private void populateOutPatientList(CorrespondencePatientListsVoCollection voOutPatColl)
{
	if (voOutPatColl != null)
	{
		if (voOutPatColl.size() == 0)
		{
			engine.showMessage("No matching patients found.");
			return;
		}
		storeSearchCriteria();
		GenForm.grdOutPatientRow row = null;
		for (int i = 0; i < voOutPatColl.size(); i++)
		{
			OutPatientAttendanceVo voOutPatient = voOutPatColl.get(i).getOutpatientAttendanceVo();
			if(form.cmbConsultant().getValue()==null && form.getLocalContext().getUserAccessVoIsNotNull()){
				boolean bIsUserAccessConsultant = false;
				UserAccessVo voUserAccess = form.getLocalContext().getUserAccessVo();
				ConsultantAccessVoCollection  collConsultantAccessVo = voUserAccess.getConsultantAccess();
				MedicLiteVo med = null;
				
				if (collConsultantAccessVo != null)
				{
					for (int j = 0; j < collConsultantAccessVo.size(); j++)
					{
						med = collConsultantAccessVo.get(j).getConsultant();
						if(med.getID_Hcp().equals(voOutPatient.getPasEvent().getConsultant().getID_Hcp()))
							bIsUserAccessConsultant=true;
					}
				}
				if(!bIsUserAccessConsultant)
					continue;
			}
			if (voOutPatient != null && voOutPatient.getPasEventIsNotNull() && voOutPatient.getPasEvent().getPatientIsNotNull())
			{
				row = form.grdOutPatient().getRows().newRow();
				if (voOutPatient.getPasEvent().getPatient().getNameIsNotNull())
				{
					row.setcolForename(voOutPatient.getPasEvent().getPatient().getName().getForename());
					row.setcolSurname(voOutPatient.getPasEvent().getPatient().getName().getSurname());
				}

				ims.core.vo.PatientId voPatId = voOutPatient.getPasEvent().getPatient().getDisplayId();
				if (voPatId != null)
					row.setcolHospnum(voPatId.getValue());

				if (voOutPatient.getPasEvent().getPatient().getDobIsNotNull())
					row.setcolDob(voOutPatient.getPasEvent().getPatient().getDob().toString());

				if (voOutPatient.getPasEvent().getPatient().getAgeIsNotNull())
					row.setColAge(voOutPatient.getPasEvent().getPatient().getAge().toString());
				else
					row.setColAge(voOutPatient.getPasEvent().getPatient().calculateAge().toString());

				if (voOutPatient.getPasEvent().getPatient().getSexIsNotNull())
					row.setcolSex(voOutPatient.getPasEvent().getPatient().getSex().getText());

				if (voOutPatient.getClinicIsNotNull())
					row.setcolClinic(voOutPatient.getClinic().getClinicName());

				if (voOutPatient.getPasEvent() != null && voOutPatient.getPasEvent().getSpecialty() != null)
					row.setcolSpecialty(voOutPatient.getPasEvent().getSpecialty().getText());

				if (voOutPatient.getAppointmentDateTimeIsNotNull())
					row.setcolClinicDate(voOutPatient.getAppointmentDateTime().toString());

				if (voOutPatient.getPasEvent().getPatient().getIsDead() != null && voOutPatient.getPasEvent().getPatient().getIsDead().booleanValue())
					row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());

				if(voOutPatient.getPasEvent().getCspDocumentStatusIsNotNull()){
					row.setcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getImage());
					row.setTooltipForcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getText());
				}
				
				row.setValue(voOutPatient);
			}

		}
	}

}
 
Example 9
Project: openMAXIMS   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listInPatients(ims.core.vo.PatientListsFilterVo filter, Boolean listByReqAndNotReqStatus)
{
	CorrespondenceInpatientList inpatientList = (CorrespondenceInpatientList)getDomainImpl(CorrespondenceInpatientListImpl.class);
	return inpatientList.listInPatients(filter, listByReqAndNotReqStatus, false);
}
 
Example 10
Project: openMAXIMS   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listOutpatients(OutPatientListSearchCriteriaVo filter, Boolean listByReqAndNotReqStatus) {
	CorrespondenceOutpatientList outpatientList = (CorrespondenceOutpatientList)getDomainImpl(CorrespondenceOutpatientListImpl.class);
	return outpatientList.listOutpatients(filter, listByReqAndNotReqStatus);
}
 
Example 11
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private void populateOutPatientList(CorrespondencePatientListsVoCollection voOutPatColl)
{
	if (voOutPatColl != null)
	{
		if (voOutPatColl.size() == 0)
		{
			engine.showMessage("No matching patients found.");
			return;
		}
		storeSearchCriteria();
		GenForm.grdOutPatientRow row = null;
		for (int i = 0; i < voOutPatColl.size(); i++)
		{
			OutPatientAttendanceVo voOutPatient = voOutPatColl.get(i).getOutpatientAttendanceVo();
			if(form.cmbConsultant().getValue()==null && form.getLocalContext().getUserAccessVoIsNotNull()){
				boolean bIsUserAccessConsultant = false;
				UserAccessVo voUserAccess = form.getLocalContext().getUserAccessVo();
				ConsultantAccessVoCollection  collConsultantAccessVo = voUserAccess.getConsultantAccess();
				MedicLiteVo med = null;
				
				if (collConsultantAccessVo != null)
				{
					for (int j = 0; j < collConsultantAccessVo.size(); j++)
					{
						med = collConsultantAccessVo.get(j).getConsultant();
						if(med.getID_Hcp().equals(voOutPatient.getPasEvent().getConsultant().getID_Hcp()))
							bIsUserAccessConsultant=true;
					}
				}
				if(!bIsUserAccessConsultant)
					continue;
			}
			if (voOutPatient != null && voOutPatient.getPasEventIsNotNull() && voOutPatient.getPasEvent().getPatientIsNotNull())
			{
				row = form.grdOutPatient().getRows().newRow();
				if (voOutPatient.getPasEvent().getPatient().getNameIsNotNull())
				{
					row.setcolForename(voOutPatient.getPasEvent().getPatient().getName().getForename());
					row.setcolSurname(voOutPatient.getPasEvent().getPatient().getName().getSurname());
				}

				ims.core.vo.PatientId voPatId = voOutPatient.getPasEvent().getPatient().getDisplayId();
				if (voPatId != null)
					row.setcolHospnum(voPatId.getValue());

				if (voOutPatient.getPasEvent().getPatient().getDobIsNotNull())
					row.setcolDob(voOutPatient.getPasEvent().getPatient().getDob().toString());

				if (voOutPatient.getPasEvent().getPatient().getAgeIsNotNull())
					row.setColAge(voOutPatient.getPasEvent().getPatient().getAge().toString());
				else
					row.setColAge(voOutPatient.getPasEvent().getPatient().calculateAge().toString());

				if (voOutPatient.getPasEvent().getPatient().getSexIsNotNull())
					row.setcolSex(voOutPatient.getPasEvent().getPatient().getSex().getText());

				if (voOutPatient.getClinicIsNotNull())
					row.setcolClinic(voOutPatient.getClinic().getClinicName());

				if (voOutPatient.getPasEvent() != null && voOutPatient.getPasEvent().getSpecialty() != null)
					row.setcolSpecialty(voOutPatient.getPasEvent().getSpecialty().getText());

				if (voOutPatient.getAppointmentDateTimeIsNotNull())
					row.setcolClinicDate(voOutPatient.getAppointmentDateTime().toString());

				if (voOutPatient.getPasEvent().getPatient().getIsDead() != null && voOutPatient.getPasEvent().getPatient().getIsDead().booleanValue())
					row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());

				if(voOutPatient.getPasEvent().getCspDocumentStatusIsNotNull()){
					row.setcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getImage());
					row.setTooltipForcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getText());
				}
				
				row.setValue(voOutPatient);
			}

		}
	}

}
 
Example 12
Project: openMAXIMS   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listInPatients(ims.core.vo.PatientListsFilterVo filter, Boolean listByReqAndNotReqStatus)
{
	CorrespondenceInpatientList inpatientList = (CorrespondenceInpatientList)getDomainImpl(CorrespondenceInpatientListImpl.class);
	return inpatientList.listInPatients(filter, listByReqAndNotReqStatus, false);
}
 
Example 13
Project: openMAXIMS   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listOutpatients(OutPatientListSearchCriteriaVo filter, Boolean listByReqAndNotReqStatus) {
	CorrespondenceOutpatientList outpatientList = (CorrespondenceOutpatientList)getDomainImpl(CorrespondenceOutpatientListImpl.class);
	return outpatientList.listOutpatients(filter, listByReqAndNotReqStatus);
}
 
Example 14
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
private void populateOutPatientList(CorrespondencePatientListsVoCollection voOutPatColl)
{
	if (voOutPatColl != null)
	{
		if (voOutPatColl.size() == 0)
		{
			engine.showMessage("No matching patients found.");
			return;
		}
		storeSearchCriteria();
		GenForm.grdOutPatientRow row = null;
		for (int i = 0; i < voOutPatColl.size(); i++)
		{
			OutPatientAttendanceVo voOutPatient = voOutPatColl.get(i).getOutpatientAttendanceVo();
			if(form.cmbConsultant().getValue()==null && form.getLocalContext().getUserAccessVoIsNotNull()){
				boolean bIsUserAccessConsultant = false;
				UserAccessVo voUserAccess = form.getLocalContext().getUserAccessVo();
				ConsultantAccessVoCollection  collConsultantAccessVo = voUserAccess.getConsultantAccess();
				MedicLiteVo med = null;
				
				if (collConsultantAccessVo != null)
				{
					for (int j = 0; j < collConsultantAccessVo.size(); j++)
					{
						med = collConsultantAccessVo.get(j).getConsultant();
						if(med.getID_Hcp().equals(voOutPatient.getPasEvent().getConsultant().getID_Hcp()))
							bIsUserAccessConsultant=true;
					}
				}
				if(!bIsUserAccessConsultant)
					continue;
			}
			if (voOutPatient != null && voOutPatient.getPasEventIsNotNull() && voOutPatient.getPasEvent().getPatientIsNotNull())
			{
				row = form.grdOutPatient().getRows().newRow();
				if (voOutPatient.getPasEvent().getPatient().getNameIsNotNull())
				{
					row.setcolForename(voOutPatient.getPasEvent().getPatient().getName().getForename());
					row.setcolSurname(voOutPatient.getPasEvent().getPatient().getName().getSurname());
				}

				ims.core.vo.PatientId voPatId = voOutPatient.getPasEvent().getPatient().getDisplayId();
				if (voPatId != null)
					row.setcolHospnum(voPatId.getValue());

				if (voOutPatient.getPasEvent().getPatient().getDobIsNotNull())
					row.setcolDob(voOutPatient.getPasEvent().getPatient().getDob().toString());

				if (voOutPatient.getPasEvent().getPatient().getAgeIsNotNull())
					row.setColAge(voOutPatient.getPasEvent().getPatient().getAge().toString());
				else
					row.setColAge(voOutPatient.getPasEvent().getPatient().calculateAge().toString());

				if (voOutPatient.getPasEvent().getPatient().getSexIsNotNull())
					row.setcolSex(voOutPatient.getPasEvent().getPatient().getSex().getText());

				if (voOutPatient.getClinicIsNotNull())
					row.setcolClinic(voOutPatient.getClinic().getClinicName());

				if (voOutPatient.getPasEvent() != null && voOutPatient.getPasEvent().getSpecialty() != null)
					row.setcolSpecialty(voOutPatient.getPasEvent().getSpecialty().getText());

				if (voOutPatient.getAppointmentDateTimeIsNotNull())
					row.setcolClinicDate(voOutPatient.getAppointmentDateTime().toString());

				if (voOutPatient.getPasEvent().getPatient().getIsDead() != null && voOutPatient.getPasEvent().getPatient().getIsDead().booleanValue())
					row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());

				if(voOutPatient.getPasEvent().getCspDocumentStatusIsNotNull()){
					row.setcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getImage());
					row.setTooltipForcolDocStatus(voOutPatient.getPasEvent().getCspDocumentStatus().getText());
				}
				
				row.setValue(voOutPatient);
			}

		}
	}

}
 
Example 15
Project: openmaxims-linux   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listInPatients(ims.core.vo.PatientListsFilterVo filter, Boolean listByReqAndNotReqStatus)
{
	CorrespondenceInpatientList inpatientList = (CorrespondenceInpatientList)getDomainImpl(CorrespondenceInpatientListImpl.class);
	return inpatientList.listInPatients(filter, listByReqAndNotReqStatus, false);
}
 
Example 16
Project: openmaxims-linux   File: BatchUpdatePatientListsImpl.java   View source code 4 votes vote down vote up
public CorrespondencePatientListsVoCollection listOutpatients(OutPatientListSearchCriteriaVo filter, Boolean listByReqAndNotReqStatus) {
	CorrespondenceOutpatientList outpatientList = (CorrespondenceOutpatientList)getDomainImpl(CorrespondenceOutpatientListImpl.class);
	return outpatientList.listOutpatients(filter, listByReqAndNotReqStatus);
}