Java 类ims.core.vo.PatientListsFilterVo 实例源码
项目:openmaxims-linux
文件:Logic.java
private void populatePatientGrid()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null)
return;
PatientListsFilterVo voSearchCriteria = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voSearchCriteria.getInPatientSearchIsNotNull())
{
if (voSearchCriteria.getInPatientSearch().equals(Boolean.TRUE))
populateInpatientGrid(voSearchCriteria, listIPPasContactColl(voSearchCriteria));
else
populateOutPatientGrid(voSearchCriteria, listOPPasContactColl(voSearchCriteria));
}
}
项目:AvoinApotti
文件:Logic.java
private void displayPatientSearchCriteria()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null || form.getGlobalContext().Correspondence.getPatientListSearchCriteria().getInPatientSearch() == null)
return;
PatientListsFilterVo voFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voFilter.getInPatientSearch().booleanValue() == true)
{
displayInpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabInpatientList();
form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
}
else
{
displayOutpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabOutpatientList();
form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
}
}
项目:AvoinApotti
文件:Logic.java
private void displayOutpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getClinicsIsNotNull() && voFilter.getClinics().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPClinic().setValue(voFilter.getClinics().get(0));
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabOutpatientList().dteOPClinicDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabOutpatientList().cmbOPDocumentStatus().setValue(voFilter.getDocumentStatus());
}
项目:AvoinApotti
文件:Logic.java
private void displayInpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabInpatientList().qmbIPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabInpatientList().cmbIPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getWardIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbWard().setValue(voFilter.getWard());
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabInpatientList().dteIPDischDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbIPDocStatus().setValue(voFilter.getDocumentStatus());
}
项目:AvoinApotti
文件:Logic.java
private void populatePatientGrid()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null)
return;
PatientListsFilterVo voSearchCriteria = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voSearchCriteria.getInPatientSearchIsNotNull())
{
if (voSearchCriteria.getInPatientSearch().equals(Boolean.TRUE))
populateInpatientGrid(voSearchCriteria, listIPPasContactColl(voSearchCriteria));
else
populateOutPatientGrid(voSearchCriteria, listOPPasContactColl(voSearchCriteria));
}
}
项目:AvoinApotti
文件:Logic.java
private PasContactVoCollection listIPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
voPasContactColl = domain.listInPatients(voSearchCriteria);
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
return voPasContactColl;
}
项目:AvoinApotti
文件:Logic.java
private PasContactVoCollection listOPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
// WDEV-2773
voPasContactColl = domain.listOutPatients(voSearchCriteria.getDate(), (voSearchCriteria.getDateEndIsNotNull() ? voSearchCriteria.getDateEnd() : null), voSearchCriteria.getClinics(), voSearchCriteria.getConsultants(), voSearchCriteria.getSpecialties(), voSearchCriteria.getDocumentStatus());
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
catch (DomainRuntimeException dre)
{
engine.showMessage(dre.getCause().getMessage().toString());
return null;
}
return voPasContactColl;
}
项目:AvoinApotti
文件:Logic.java
private void displayInpatientSearchCriteria(ims.core.vo.PatientListsFilterVo voFilter)
{
if (voFilter.getConsultantIsNotNull())
form.qmbConsultants().setValue(voFilter.getConsultant());
if (voFilter.getHospitalIsNotNull())
{
form.cmbHospital().setValue(voFilter.getHospital());
if (voFilter.getWardIsNotNull())
{
form.cmbWard().setEnabled(true);
populateWardCombo();
form.cmbWard().setValue(voFilter.getWard());
}
}
search();
}
项目:AvoinApotti
文件:Logic.java
private ims.core.vo.PatientListsFilterVo populateSearchCriteria()
{
if (form.dteDischargeDateFrom().getValue() != null && form.dteDichargeDateTo().getValue() != null && (form.dteDichargeDateTo().getValue().getDate().before(form.dteDischargeDateFrom().getValue().getDate()) || form.dteDichargeDateTo().getValue().getDate().equals(form.dteDischargeDateFrom().getValue().getDate())))
{
engine.showMessage("'Discharge Date To' must be later than 'Discharge Date From'.");
return null;
}
ims.core.vo.PatientListsFilterVo voFilter = new ims.core.vo.PatientListsFilterVo();
voFilter.setHospital(form.cmbHospital().getValue());
voFilter.setWard(form.cmbWard().getValue());
if (form.getLocalContext().getUserAccessVoIsNotNull())
voFilter.setConsultant(form.cmbConsultant().getValue());
else
voFilter.setConsultant(form.qmbConsultants().getValue());
voFilter.setDictatedBy(form.qmbDictatedBy().getValue());
voFilter.setDocumentStatus(form.cmbStatusOfLetter().getValue());
voFilter.setDischargeDateFrom(form.dteDischargeDateFrom().getValue());
voFilter.setDischargeDateTo(form.dteDichargeDateTo().getValue());
return voFilter;
}
项目:AvoinApotti
文件:Logic.java
private void initialise() {
PatientListsFilterVo voPatientListsFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
OutPatientListSearchCriteriaVo voOutPatientList = form.getGlobalContext().Core.getOutPatientSearchCriteria();
DocumentStatus newDocumentStatus = form.getGlobalContext().Correspondence.getPatientListsBatchUpdateType();
if(newDocumentStatus == DocumentStatus.DICTATED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Dictated'");
else if(newDocumentStatus == DocumentStatus.NOLETTERREQUIRED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'No Letter Required'");
else if(newDocumentStatus == DocumentStatus.SIGNED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Signed'");
if(voPatientListsFilter!=null)
populateListControl(domain.listInPatients(voPatientListsFilter,(newDocumentStatus==DocumentStatus.DICTATED)));
else if(voOutPatientList!=null)
populateListControl(domain.listOutpatients(voOutPatientList, (newDocumentStatus==DocumentStatus.DICTATED)));
}
项目:openMAXIMS
文件:Logic.java
private void displayPatientSearchCriteria()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null || form.getGlobalContext().Correspondence.getPatientListSearchCriteria().getInPatientSearch() == null)
return;
PatientListsFilterVo voFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voFilter.getInPatientSearch().booleanValue() == true)
{
displayInpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabInpatientList();
form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
}
else
{
displayOutpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabOutpatientList();
form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
}
}
项目:openMAXIMS
文件:Logic.java
private void displayOutpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getClinicsIsNotNull() && voFilter.getClinics().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPClinic().setValue(voFilter.getClinics().get(0));
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabOutpatientList().dteOPClinicDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabOutpatientList().cmbOPDocumentStatus().setValue(voFilter.getDocumentStatus());
}
项目:openMAXIMS
文件:Logic.java
private void displayInpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabInpatientList().qmbIPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabInpatientList().cmbIPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getWardIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbWard().setValue(voFilter.getWard());
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabInpatientList().dteIPDischDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbIPDocStatus().setValue(voFilter.getDocumentStatus());
}
项目:openMAXIMS
文件:Logic.java
private void populatePatientGrid()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null)
return;
PatientListsFilterVo voSearchCriteria = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voSearchCriteria.getInPatientSearchIsNotNull())
{
if (voSearchCriteria.getInPatientSearch().equals(Boolean.TRUE))
populateInpatientGrid(voSearchCriteria, listIPPasContactColl(voSearchCriteria));
else
populateOutPatientGrid(voSearchCriteria, listOPPasContactColl(voSearchCriteria));
}
}
项目:openMAXIMS
文件:Logic.java
private PasContactVoCollection listIPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
voPasContactColl = domain.listInPatients(voSearchCriteria);
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
return voPasContactColl;
}
项目:openMAXIMS
文件:Logic.java
private PasContactVoCollection listOPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
// WDEV-2773
voPasContactColl = domain.listOutPatients(voSearchCriteria.getDate(), (voSearchCriteria.getDateEndIsNotNull() ? voSearchCriteria.getDateEnd() : null), voSearchCriteria.getClinics(), voSearchCriteria.getConsultants(), voSearchCriteria.getSpecialties(), voSearchCriteria.getDocumentStatus());
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
catch (DomainRuntimeException dre)
{
engine.showMessage(dre.getCause().getMessage().toString());
return null;
}
return voPasContactColl;
}
项目:openMAXIMS
文件:Logic.java
private ims.core.vo.PatientListsFilterVo populateSearchCriteria()
{
if (form.dteDischargeDateFrom().getValue() != null && form.dteDichargeDateTo().getValue() != null && (form.dteDichargeDateTo().getValue().getDate().before(form.dteDischargeDateFrom().getValue().getDate()) || form.dteDichargeDateTo().getValue().getDate().equals(form.dteDischargeDateFrom().getValue().getDate())))
{
engine.showMessage("'Discharge Date To' must be later than 'Discharge Date From'.");
return null;
}
ims.core.vo.PatientListsFilterVo voFilter = new ims.core.vo.PatientListsFilterVo();
voFilter.setHospital(form.cmbHospital().getValue());
voFilter.setWard(form.cmbWard().getValue());
if (form.getLocalContext().getUserAccessVoIsNotNull())
voFilter.setConsultant(form.cmbConsultant().getValue());
else
voFilter.setConsultant(form.qmbConsultants().getValue());
voFilter.setDictatedBy(form.qmbDictatedBy().getValue());
voFilter.setDocumentStatus(form.cmbStatusOfLetter().getValue());
voFilter.setDischargeDateFrom(form.dteDischargeDateFrom().getValue());
voFilter.setDischargeDateTo(form.dteDichargeDateTo().getValue());
voFilter.setInPatientSearch(Boolean.TRUE.equals(form.chkCurrentOnly().getValue()) ? true : false);//WDEV-19389
return voFilter;
}
项目:openMAXIMS
文件:Logic.java
private void initialise() {
PatientListsFilterVo voPatientListsFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
OutPatientListSearchCriteriaVo voOutPatientList = form.getGlobalContext().Core.getOutPatientSearchCriteria();
DocumentStatus newDocumentStatus = form.getGlobalContext().Correspondence.getPatientListsBatchUpdateType();
if(newDocumentStatus == DocumentStatus.DICTATED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Dictated'");
else if(newDocumentStatus == DocumentStatus.NOLETTERREQUIRED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'No Letter Required'");
else if(newDocumentStatus == DocumentStatus.SIGNED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Signed'");
if(voPatientListsFilter!=null)
populateListControl(domain.listInPatients(voPatientListsFilter,(newDocumentStatus==DocumentStatus.DICTATED)));
else if(voOutPatientList!=null)
populateListControl(domain.listOutpatients(voOutPatientList, (newDocumentStatus==DocumentStatus.DICTATED)));
}
项目:openMAXIMS
文件:Logic.java
private void displayPatientSearchCriteria()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null || form.getGlobalContext().Correspondence.getPatientListSearchCriteria().getInPatientSearch() == null)
return;
PatientListsFilterVo voFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voFilter.getInPatientSearch().booleanValue() == true)
{
displayInpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabInpatientList();
form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
}
else
{
displayOutpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabOutpatientList();
form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
}
}
项目:openMAXIMS
文件:Logic.java
private void displayOutpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getClinicsIsNotNull() && voFilter.getClinics().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPClinic().setValue(voFilter.getClinics().get(0));
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabOutpatientList().dteOPClinicDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabOutpatientList().cmbOPDocumentStatus().setValue(voFilter.getDocumentStatus());
}
项目:openMAXIMS
文件:Logic.java
private void displayInpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabInpatientList().qmbIPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabInpatientList().cmbIPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getWardIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbWard().setValue(voFilter.getWard());
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabInpatientList().dteIPDischDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbIPDocStatus().setValue(voFilter.getDocumentStatus());
}
项目:openMAXIMS
文件:Logic.java
private void populatePatientGrid()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null)
return;
PatientListsFilterVo voSearchCriteria = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voSearchCriteria.getInPatientSearchIsNotNull())
{
if (voSearchCriteria.getInPatientSearch().equals(Boolean.TRUE))
populateInpatientGrid(voSearchCriteria, listIPPasContactColl(voSearchCriteria));
else
populateOutPatientGrid(voSearchCriteria, listOPPasContactColl(voSearchCriteria));
}
}
项目:openMAXIMS
文件:Logic.java
private PasContactVoCollection listIPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
voPasContactColl = domain.listInPatients(voSearchCriteria);
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
return voPasContactColl;
}
项目:openMAXIMS
文件:Logic.java
private PasContactVoCollection listOPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
// WDEV-2773
voPasContactColl = domain.listOutPatients(voSearchCriteria.getDate(), (voSearchCriteria.getDateEndIsNotNull() ? voSearchCriteria.getDateEnd() : null), voSearchCriteria.getClinics(), voSearchCriteria.getConsultants(), voSearchCriteria.getSpecialties(), voSearchCriteria.getDocumentStatus());
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
catch (DomainRuntimeException dre)
{
engine.showMessage(dre.getCause().getMessage().toString());
return null;
}
return voPasContactColl;
}
项目:openMAXIMS
文件:Logic.java
private void displayInpatientSearchCriteria(ims.core.vo.PatientListsFilterVo voFilter)
{
if (voFilter.getConsultantIsNotNull())
form.qmbConsultants().setValue(voFilter.getConsultant());
if (voFilter.getHospitalIsNotNull())
{
form.cmbHospital().setValue(voFilter.getHospital());
if (voFilter.getWardIsNotNull())
{
form.cmbWard().setEnabled(true);
populateWardCombo();
form.cmbWard().setValue(voFilter.getWard());
}
}
search();
}
项目:openMAXIMS
文件:Logic.java
private ims.core.vo.PatientListsFilterVo populateSearchCriteria()
{
if (form.dteDischargeDateFrom().getValue() != null && form.dteDichargeDateTo().getValue() != null && (form.dteDichargeDateTo().getValue().getDate().before(form.dteDischargeDateFrom().getValue().getDate()) || form.dteDichargeDateTo().getValue().getDate().equals(form.dteDischargeDateFrom().getValue().getDate())))
{
engine.showMessage("'Discharge Date To' must be later than 'Discharge Date From'.");
return null;
}
ims.core.vo.PatientListsFilterVo voFilter = new ims.core.vo.PatientListsFilterVo();
voFilter.setHospital(form.cmbHospital().getValue());
voFilter.setWard(form.cmbWard().getValue());
if (form.getLocalContext().getUserAccessVoIsNotNull())
voFilter.setConsultant(form.cmbConsultant().getValue());
else
voFilter.setConsultant(form.qmbConsultants().getValue());
voFilter.setDictatedBy(form.qmbDictatedBy().getValue());
voFilter.setDocumentStatus(form.cmbStatusOfLetter().getValue());
voFilter.setDischargeDateFrom(form.dteDischargeDateFrom().getValue());
voFilter.setDischargeDateTo(form.dteDichargeDateTo().getValue());
return voFilter;
}
项目:openMAXIMS
文件:Logic.java
private void initialise() {
PatientListsFilterVo voPatientListsFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
OutPatientListSearchCriteriaVo voOutPatientList = form.getGlobalContext().Core.getOutPatientSearchCriteria();
DocumentStatus newDocumentStatus = form.getGlobalContext().Correspondence.getPatientListsBatchUpdateType();
if(newDocumentStatus == DocumentStatus.DICTATED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Dictated'");
else if(newDocumentStatus == DocumentStatus.NOLETTERREQUIRED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'No Letter Required'");
else if(newDocumentStatus == DocumentStatus.SIGNED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Signed'");
if(voPatientListsFilter!=null)
populateListControl(domain.listInPatients(voPatientListsFilter,(newDocumentStatus==DocumentStatus.DICTATED)));
else if(voOutPatientList!=null)
populateListControl(domain.listOutpatients(voOutPatientList, (newDocumentStatus==DocumentStatus.DICTATED)));
}
项目:openmaxims-linux
文件:Logic.java
private void displayPatientSearchCriteria()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null || form.getGlobalContext().Correspondence.getPatientListSearchCriteria().getInPatientSearch() == null)
return;
PatientListsFilterVo voFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
if (voFilter.getInPatientSearch().booleanValue() == true)
{
displayInpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabInpatientList();
form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
}
else
{
displayOutpatientSearchCriteria(voFilter);
form.lyrPatientLists().showtabOutpatientList();
form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
}
}
项目:openmaxims-linux
文件:Logic.java
private void displayOutpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getClinicsIsNotNull() && voFilter.getClinics().size() == 1)
form.lyrPatientLists().tabOutpatientList().cmbOPClinic().setValue(voFilter.getClinics().get(0));
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabOutpatientList().dteOPClinicDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabOutpatientList().cmbOPDocumentStatus().setValue(voFilter.getDocumentStatus());
}
项目:openmaxims-linux
文件:Logic.java
private void displayInpatientSearchCriteria(PatientListsFilterVo voFilter)
{
form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
if (voFilter.getConsultantsIsNotNull() && voFilter.getConsultants().size() == 1)
form.lyrPatientLists().tabInpatientList().qmbIPConsultant().setValue(voFilter.getConsultants().get(0));
if (voFilter.getSpecialtiesIsNotNull() && voFilter.getSpecialties().size() == 1)
form.lyrPatientLists().tabInpatientList().cmbIPSpecialty().setValue(voFilter.getSpecialties().get(0));
if (voFilter.getWardIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbWard().setValue(voFilter.getWard());
if (voFilter.getDateIsNotNull())
form.lyrPatientLists().tabInpatientList().dteIPDischDate().setValue(voFilter.getDate());
if (voFilter.getDocumentStatusIsNotNull())
form.lyrPatientLists().tabInpatientList().cmbIPDocStatus().setValue(voFilter.getDocumentStatus());
}
项目:openmaxims-linux
文件:Logic.java
private PasContactVoCollection listOPPasContactColl(PatientListsFilterVo voSearchCriteria)
{
PasContactVoCollection voPasContactColl;
try
{
// WDEV-2773
voPasContactColl = domain.listOutPatients(voSearchCriteria.getDate(), (voSearchCriteria.getDateEndIsNotNull() ? voSearchCriteria.getDateEnd() : null), voSearchCriteria.getClinics(), voSearchCriteria.getConsultants(), voSearchCriteria.getSpecialties(), voSearchCriteria.getDocumentStatus());
}
catch (DomainInterfaceException e)
{
engine.showMessage(e.toString());
return null;
}
catch (DomainRuntimeException dre)
{
engine.showMessage(dre.getCause().getMessage().toString());
return null;
}
return voPasContactColl;
}
项目:openmaxims-linux
文件:Logic.java
private void displayInpatientSearchCriteria(ims.core.vo.PatientListsFilterVo voFilter)
{
if (voFilter.getConsultantIsNotNull())
form.qmbConsultants().setValue(voFilter.getConsultant());
if (voFilter.getHospitalIsNotNull())
{
form.cmbHospital().setValue(voFilter.getHospital());
if (voFilter.getWardIsNotNull())
{
form.cmbWard().setEnabled(true);
populateWardCombo();
form.cmbWard().setValue(voFilter.getWard());
}
}
search();
}
项目:openmaxims-linux
文件:Logic.java
private ims.core.vo.PatientListsFilterVo populateSearchCriteria()
{
if (form.dteDischargeDateFrom().getValue() != null && form.dteDichargeDateTo().getValue() != null && (form.dteDichargeDateTo().getValue().getDate().before(form.dteDischargeDateFrom().getValue().getDate()) || form.dteDichargeDateTo().getValue().getDate().equals(form.dteDischargeDateFrom().getValue().getDate())))
{
engine.showMessage("'Discharge Date To' must be later than 'Discharge Date From'.");
return null;
}
ims.core.vo.PatientListsFilterVo voFilter = new ims.core.vo.PatientListsFilterVo();
voFilter.setHospital(form.cmbHospital().getValue());
voFilter.setWard(form.cmbWard().getValue());
if (form.getLocalContext().getUserAccessVoIsNotNull())
voFilter.setConsultant(form.cmbConsultant().getValue());
else
voFilter.setConsultant(form.qmbConsultants().getValue());
voFilter.setDictatedBy(form.qmbDictatedBy().getValue());
voFilter.setDocumentStatus(form.cmbStatusOfLetter().getValue());
voFilter.setDischargeDateFrom(form.dteDischargeDateFrom().getValue());
voFilter.setDischargeDateTo(form.dteDichargeDateTo().getValue());
return voFilter;
}
项目:openmaxims-linux
文件:Logic.java
private void initialise() {
PatientListsFilterVo voPatientListsFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
OutPatientListSearchCriteriaVo voOutPatientList = form.getGlobalContext().Core.getOutPatientSearchCriteria();
DocumentStatus newDocumentStatus = form.getGlobalContext().Correspondence.getPatientListsBatchUpdateType();
if(newDocumentStatus == DocumentStatus.DICTATED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Dictated'");
else if(newDocumentStatus == DocumentStatus.NOLETTERREQUIRED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'No Letter Required'");
else if(newDocumentStatus == DocumentStatus.SIGNED)
form.pnlBatchUpdate().setValue("Batch Update Of Status To 'Signed'");
if(voPatientListsFilter!=null)
populateListControl(domain.listInPatients(voPatientListsFilter,(newDocumentStatus==DocumentStatus.DICTATED)));
else if(voOutPatientList!=null)
populateListControl(domain.listOutpatients(voOutPatientList, (newDocumentStatus==DocumentStatus.DICTATED)));
}
项目:AvoinApotti
文件:Logic.java
private void showHideNext(PatientListsFilterVo voFilter)
{
PatientListsFilterVo filter = updateNextFilter(voFilter);
PasContactVoCollection voColl = listIPPasContactColl(filter);
if (voColl != null)
{
if (form.getLocalContext().getpreviousScreensIsNotNull() && form.getLocalContext().getpreviousScreens() > 0)
showHideButtons(true, true, false, form.lyrPatientLists().tabInpatientList().btn1(), form.lyrPatientLists().tabInpatientList().btn2());
else
showHideButtons(true, false, false, form.lyrPatientLists().tabInpatientList().btn1(), form.lyrPatientLists().tabInpatientList().btn2());
}
}
项目:AvoinApotti
文件:Logic.java
private PatientListsFilterVo updatePreviousFilter(PatientListsFilterVo voFilter)
{
int i = -1;
PatientListRowVo e = null;
PatientListRowVo s = null;
if (form.getLocalContext().getpreviousScreensIsNotNull())
{
i = form.getLocalContext().getpreviousScreens();
}
// First screen
if (i == 0)
{
s = form.getLocalContext().getfirstRecordFromGrid().get(0);
e = form.getLocalContext().getlastRecordFromGrid().get(0);
}
else
{
s = form.getLocalContext().getfirstRecordFromGrid().get(i);
e = form.getLocalContext().getlastRecordFromGrid().get(i);
}
voFilter.setDate(e.getPasContact().getDischargeDateTime().getDate());
voFilter.setDateEnd(s.getPasContact().getDischargeDateTime().getDate().addDay(1));
if (form.getLocalContext().getpreviousScreens() == 0)
voFilter.setDate(form.lyrPatientLists().tabInpatientList().dteIPDischDate().getValue());
return voFilter;
}
项目:AvoinApotti
文件:Logic.java
protected void onImbIPSearchClick() throws PresentationLogicException
{
form.getContextMenus().Correspondence.hideAllCorrespondenceDetailsMenuItems();
form.getGlobalContext().Correspondence.setPatientListSearchCriteria(null);
form.getLocalContext().setpreviousScreens(0);
int maxContacts = maxContactSearch();
form.getLocalContext().setpreviousScreens(0);
form.getLocalContext().setfirstRecordFromGrid(null);
form.getLocalContext().setlastRecordFromGrid(null);
PatientListsFilterVo voFilter = populateIPSearchCriteria();
if (voFilter != null)
{
PasContactVoCollection voColl = listIPPasContactColl(voFilter);
populateInpatientGrid(voFilter, voColl);
if ((voColl != null) && (voColl.size() != 0))
saveFirstAndLastRecords(TABIP);
if ((voColl != null) && (voColl.size() == maxContacts))
{
showHideNext(voFilter);
}
else
{
showHideButtons(false, false, true, form.lyrPatientLists().tabInpatientList().btn1(), form.lyrPatientLists().tabInpatientList().btn2());
}
}
}
项目:AvoinApotti
文件:Logic.java
protected void onImbOPSearchClick() throws PresentationLogicException
{
form.getGlobalContext().Correspondence.setPatientListSearchCriteria(null);
form.getLocalContext().setpreviousScreens(0);
int maxContacts = maxContactSearch();
form.getLocalContext().setpreviousScreens(0);
form.getLocalContext().setfirstRecordFromGrid(null);
form.getLocalContext().setlastRecordFromGrid(null);
PatientListsFilterVo voFilter = populateOPSearchCriteria();
if (voFilter != null)
{
PasContactVoCollection voColl = listOPPasContactColl(voFilter);
populateOutPatientGrid(voFilter, voColl);
if ((voColl != null) && (voColl.size() != 0))
saveFirstAndLastRecords(TABOP);
if ((voColl != null) && (voColl.size() == maxContacts))
{
showHideNext(voFilter);
}
else
{
showHideButtons(false, false, true, form.lyrPatientLists().tabOutpatientList().btn3(), form.lyrPatientLists().tabOutpatientList().btn4());
}
}
}
项目:AvoinApotti
文件:Logic.java
private void displayPatientSearchCriteria()
{
if (form.getGlobalContext().Correspondence.getPatientListSearchCriteria() == null)
return;
ims.core.vo.PatientListsFilterVo voFilter = form.getGlobalContext().Correspondence.getPatientListSearchCriteria();
displayInpatientSearchCriteria(voFilter);
}
项目:AvoinApotti
文件:Logic.java
private void batchUpdateOfStatusToDictated()
{
PatientListsFilterVo voPatientListsFilter = populateSearchCriteria();
voPatientListsFilter.setDocumentStatus(DocumentStatus.NOLETTERREQUIRED);
form.getGlobalContext().Correspondence.setPatientListSearchCriteria(voPatientListsFilter);
form.getGlobalContext().Core.setOutPatientSearchCriteria(null);
form.getGlobalContext().Correspondence.setPatientListsBatchUpdateType(DocumentStatus.DICTATED);
engine.setCaption(form.getForms().Correspondence.BatchUpdatePatientLists, "Batch Update Of Status To 'Dictated'");
engine.open(form.getForms().Correspondence.BatchUpdatePatientLists);
}