public void search() { String[] errors = validateSearchCriteria(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } PathologyResultListShortVoCollection pathologyResults = domain.listPathology(form.getGlobalContext().Core.getPatientShort(), form.dteFrom().getValue(), form.dteTo().getValue()); RadiologyResultListVoCollection clinicalImagingResults = domain.listClinicalImaging(form.getGlobalContext().Core.getPatientShort(), form.dteFrom().getValue(), form.dteTo().getValue()); if ((pathologyResults == null || pathologyResults.size() == 0) && (clinicalImagingResults == null || clinicalImagingResults.size() == 0)) { engine.showMessage("No results found."); } populatePathologyResults(pathologyResults); populateClinicalImagingResults(clinicalImagingResults); }
@Override protected void onFormOpen(Object[] args) throws PresentationLogicException { initializeDynamicGrid(); //WDEV-16115 form.ccPrinter().initialize(domain.getCurrentLocation(), PrinterScope.NEWRESULT); if (form.ccPrinter().getSelectedPrinter() == null) { form.ccPrinter().initialize(domain.getCurrentLocation(), PrinterScope.OCSORDER); } PathologyResultListShortVoCollection results = form.getGlobalContext().OCRR.getResultsForPrint(); if (results == null) return; Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue()); Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue()); for (int x = 0; x < results.size(); x++) { addResult(results.get(x), dateUnseen); } }
public boolean search() { String[] errors = validateSearchCriteria(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return false; } PathologyResultListShortVoCollection pathologyResults = domain.listPathology(form.getGlobalContext().Core.getPatientShort(), form.dteFrom().getValue(), form.dteTo().getValue()); RadiologyResultListVoCollection clinicalImagingResults = domain.listClinicalImaging(form.getGlobalContext().Core.getPatientShort(), form.dteFrom().getValue(), form.dteTo().getValue()); if ((pathologyResults == null || pathologyResults.size() == 0) && (clinicalImagingResults == null || clinicalImagingResults.size() == 0)) { engine.showMessage("No results found."); } populatePathologyResults(pathologyResults); populateClinicalImagingResults(clinicalImagingResults); return true; }
public void search() { String[] errors = validateSearchCriteria(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } PathologyResultListShortVoCollection pathologyResults = domain.listPathology(form.getGlobalContext().Core.getPatientShort(), form.dteFrom().getValue(), form.dteTo().getValue(), form.grdDiscipline().getValues()); RadiologyResultListVoCollection clinicalImagingResults = domain.listClinicalImaging(form.getGlobalContext().Core.getPatientShort(), form.dteFrom().getValue(), form.dteTo().getValue(), form.grdDiscipline().getValues()); if ((pathologyResults == null || pathologyResults.size() == 0) && (clinicalImagingResults == null || clinicalImagingResults.size() == 0)) { engine.showMessage("No results found."); } populatePathologyResults(pathologyResults); populateClinicalImagingResults(clinicalImagingResults); }
private void search() { form.lyrMain().tabSearch().grdResults().getRows().clear(); PathologyResultListShortVoCollection results; try { results = domain.listResults(form.getGlobalContext().Core.getPatientShort(), form.lyrMain().tabSearch().dteFrom().getValue(), form.lyrMain().tabSearch().dteTo().getValue(), form.lyrMain().tabSearch().qmbInvestigationType().getValue(), form.lyrMain().tabSearch().cmbDiscipline().getValue(), form.lyrMain().tabSearch().qmbClinician().getValue(), new Boolean(form.lyrMain().tabSearch().GroupFilterResults().getValue() == GenForm.lyrMainLayer.tabSearchContainer.GroupFilterResultsEnumeration.rdoResultsOnly)); } catch (DomainInterfaceException e) { updateTotal(0); engine.showMessage(e.getMessage()); return; } form.getGlobalContext().OCRR.setResultsForPrint(results); if (results == null) { updateTotal(0); return; } //WDEV-18295 String specimenIds = ""; //get all Specimen Worklist Items ids for NON-DFT results for (int i = 0; i < results.size(); i++) { if (results.get(i) != null && results.get(i).getSpecimen() != null) { for (int j = 0; j < results.get(i).getSpecimen().size(); j++) { if (results.get(i).getSpecimen().get(j) != null) { if (specimenIds != "") specimenIds = specimenIds + ", "; specimenIds = specimenIds + results.get(i).getSpecimen().get(j).getID_OrderSpecimen().toString(); } } } } //from the list of Ids, get the specimens with DateToCollectPopulated. if (specimenIds != "") { form.getLocalContext().setWorklistItemsWithDateToCollect(domain.getSpecimensWithDateToCollect(specimenIds)); } Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue()); Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue()); form.getLocalContext().setHasResults(false); for (int x = 0; x < results.size(); x++) { addResult(results.get(x), dateUnseen); } cleanUpResultGrid(); updateTotal(results.size()); if(form.lyrMain().tabSearch().grdResults().getRows().size() == 0) { engine.showMessage("No records match your search criteria."); } form.btnPrint().setEnabled(Boolean.TRUE.equals(form.getLocalContext().getHasResults())); }
private void search() { form.lyrMain().tabSearch().grdResults().getRows().clear(); PathologyResultListShortVoCollection results; try { results = domain.listResults(form.getGlobalContext().Core.getPatientShort(), form.lyrMain().tabSearch().dteFrom().getValue(), form.lyrMain().tabSearch().dteTo().getValue(), form.lyrMain().tabSearch().qmbInvestigationType().getValue(), form.lyrMain().tabSearch().cmbDiscipline().getValue(), form.lyrMain().tabSearch().qmbClinician().getValue(), getInpatientOutpatientSearchType(), new Boolean(form.lyrMain().tabSearch().GroupFilterResults().getValue() == GenForm.lyrMainLayer.tabSearchContainer.GroupFilterResultsEnumeration.rdoResultsOnly), form.lyrMain().tabSearch().chkChecked().getValue(), form.lyrMain().tabSearch().chkUnchecked().getValue()); } catch (DomainInterfaceException e) { updateTotal(0); engine.showMessage(e.getMessage()); return; } form.getGlobalContext().OCRR.setResultsForPrint(results); if (results == null) { updateTotal(0); return; } //WDEV-18295 String specimenIds = ""; //get all Specimen Worklist Items ids for NON-DFT results for (int i = 0; i < results.size(); i++) { if (results.get(i) != null && results.get(i).getSpecimen() != null) { for (int j = 0; j < results.get(i).getSpecimen().size(); j++) { if (results.get(i).getSpecimen().get(j) != null) { if (specimenIds != "") specimenIds = specimenIds + ", "; specimenIds = specimenIds + results.get(i).getSpecimen().get(j).getID_OrderSpecimen().toString(); } } } } //from the list of Ids, get the specimens with DateToCollectPopulated. if (specimenIds != "") { form.getLocalContext().setWorklistItemsWithDateToCollect(domain.getSpecimensWithDateToCollect(specimenIds)); } Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue()); Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue()); form.getLocalContext().setHasResults(false); for (int x = 0; x < results.size(); x++) { addResult(results.get(x), dateUnseen); } cleanUpResultGrid(); updateTotal(results.size()); if(form.lyrMain().tabSearch().grdResults().getRows().size() == 0) { engine.showMessage("No records match your search criteria."); } form.btnPrint().setEnabled(Boolean.TRUE.equals(form.getLocalContext().getHasResults())); }