本文将介绍ims.clinical.vo.TTAMedicationAndPharmacyShortVo的实例源码的详细情况,特别是关于开源的im源码的相关信息。我们将通过案例分析、数据研究等多种方式
本文将介绍ims.clinical.vo.TTAMedicationAndPharmacyShortVo的实例源码的详细情况,特别是关于开源的im源码的相关信息。我们将通过案例分析、数据研究等多种方式,帮助您更全面地了解这个主题,同时也将涉及一些关于ims.clinical.vo.AdmissionMedicationChangesVo的实例源码、ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码、ims.clinical.vo.ClinicalProblemShortVo的实例源码、ims.clinical.vo.DischargeMedicationDetailsVoCollection的实例源码的知识。
本文目录一览:- ims.clinical.vo.TTAMedicationAndPharmacyShortVo的实例源码(开源的im源码)
- ims.clinical.vo.AdmissionMedicationChangesVo的实例源码
- ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码
- ims.clinical.vo.ClinicalProblemShortVo的实例源码
- ims.clinical.vo.DischargeMedicationDetailsVoCollection的实例源码
ims.clinical.vo.TTAMedicationAndPharmacyShortVo的实例源码(开源的im源码)
private void populateResultsToScreen(TTAMedicationAndPharmacyShortVoCollection results) { // Clear results grid form.GrdWorklist().getRows().clear(); // Terminate function if the results collection is null if (results == null) return; // Add each result to grid for (TTAMedicationAndPharmacyShortVo result : results) { if (result == null) continue; populateResultRow(result,form.GrdWorklist().getRows().newRow()); } }
private void populateResultRow(TTAMedicationAndPharmacyShortVo result,GrdWorklistRow row) { if (row == null) throw new CodingRuntimeException("Expected row can not be null"); if (result == null) throw new CodingRuntimeException("Expected value can not be null"); // Check patient (mandatory field - must not be null) if (!result.getPatientIsNotNull()) throw new CodingRuntimeException("Expected patient can not be null"); // Set column values row.setColHospNumber(result.getPatient().getHospnum() != null ? result.getPatient().getHospnum().getValue() : ""); row.setColPatientName(result.getPatient().getName().toString()); row.setColdob(result.getPatient().getdob()); row.setColSex(result.getPatient().getSexIsNotNull() ? result.getPatient().getSex().getText() : ""); row.setColLocWard(result.getCareContext().getPasEventIsNotNull() && result.getCareContext().getPasEvent().getLocationIsNotNull() ? result.getCareContext().getPasEvent().getLocation().getName() : ""); row.setColExpDateOfdisch(result.getCareContext().getEstimateddischargeDate()); row.setColDateSubmitt(result.getDateSubmittedToPharmacy()); row.setColPharmacyStatus(result.getCurrentTTAStatusIsNotNull() && result.getCurrentTTAStatus().getStatusIsNotNull() ? result.getCurrentTTAStatus().getStatus().getText() : ""); // Set row value row.setValue(result); }
public int compare(TTAMedicationAndPharmacyShortVo o1,TTAMedicationAndPharmacyShortVo o2) { if (o1 == null || o2 == null) return 0; if (!o1.getPatientIsNotNull() || !o2.getPatientIsNotNull()) return 0; if (o1.getPatient().getdobIsNotNull()) return direction * o1.getPatient().getdob().compareto(o2.getPatient().getdob()); if (o2.getPatient().getdobIsNotNull()) return (-1) * direction; return 0; }
private void populateResultsToScreen(TTAMedicationAndPharmacyShortVoCollection results) { // Clear results grid form.GrdWorklist().getRows().clear(); // Terminate function if the results collection is null if (results == null) return; // Add each result to grid for (TTAMedicationAndPharmacyShortVo result : results) { if (result == null) continue; populateResultRow(result,form.GrdWorklist().getRows().newRow()); } }
private void populateResultRow(TTAMedicationAndPharmacyShortVo result,GrdWorklistRow row) { if (row == null) throw new CodingRuntimeException("Expected row can not be null"); if (result == null) throw new CodingRuntimeException("Expected value can not be null"); // Check patient (mandatory field - must not be null) if (!result.getPatientIsNotNull()) throw new CodingRuntimeException("Expected patient can not be null"); // Set column values row.setColHospNumber(result.getPatient().getHospnum() != null ? result.getPatient().getHospnum().getValue() : ""); row.setColPatientName(result.getPatient().getName().toString()); row.setColdob(result.getPatient().getdob()); row.setColSex(result.getPatient().getSexIsNotNull() ? result.getPatient().getSex().getText() : ""); row.setColLocWard(result.getCareContext().getPasEventIsNotNull() && result.getCareContext().getPasEvent().getLocationIsNotNull() ? result.getCareContext().getPasEvent().getLocation().getName() : ""); row.setColExpDateOfdisch(result.getCareContext().getEstimateddischargeDate()); row.setColDateSubmitt(result.getDateSubmittedToPharmacy()); row.setColPharmacyStatus(result.getCurrentTTAStatusIsNotNull() && result.getCurrentTTAStatus().getStatusIsNotNull() ? result.getCurrentTTAStatus().getStatus().getText() : ""); // Set row value row.setValue(result); }
public int compare(TTAMedicationAndPharmacyShortVo o1,TTAMedicationAndPharmacyShortVo o2) { if (o1 == null || o2 == null) return 0; if (!o1.getPatientIsNotNull() || !o2.getPatientIsNotNull()) return 0; if (o1.getPatient().getdobIsNotNull()) return direction * o1.getPatient().getdob().compareto(o2.getPatient().getdob()); if (o2.getPatient().getdobIsNotNull()) return (-1) * direction; return 0; }
private void populateResultsToScreen(TTAMedicationAndPharmacyShortVoCollection results) { // Clear results grid form.GrdWorklist().getRows().clear(); // Terminate function if the results collection is null if (results == null) return; // Add each result to grid for (TTAMedicationAndPharmacyShortVo result : results) { if (result == null) continue; populateResultRow(result,form.GrdWorklist().getRows().newRow()); } }
private void populateResultRow(TTAMedicationAndPharmacyShortVo result,GrdWorklistRow row) { if (row == null) throw new CodingRuntimeException("Expected row can not be null"); if (result == null) throw new CodingRuntimeException("Expected value can not be null"); // Check patient (mandatory field - must not be null) if (!result.getPatientIsNotNull()) throw new CodingRuntimeException("Expected patient can not be null"); // Set column values row.setColHospNumber(result.getPatient().getHospnum() != null ? result.getPatient().getHospnum().getValue() : ""); row.setColPatientName(result.getPatient().getName().toString()); row.setColdob(result.getPatient().getdob()); row.setColSex(result.getPatient().getSexIsNotNull() ? result.getPatient().getSex().getText() : ""); row.setColLocWard(result.getCareContext().getPasEventIsNotNull() && result.getCareContext().getPasEvent().getLocationIsNotNull() ? result.getCareContext().getPasEvent().getLocation().getName() : ""); row.setColExpDateOfdisch(result.getCareContext().getEstimateddischargeDate()); row.setColDateSubmitt(result.getDateSubmittedToPharmacy()); row.setColPharmacyStatus(result.getCurrentTTAStatusIsNotNull() && result.getCurrentTTAStatus().getStatusIsNotNull() ? result.getCurrentTTAStatus().getStatus().getText() : ""); // Set row value row.setValue(result); }
public int compare(TTAMedicationAndPharmacyShortVo o1,TTAMedicationAndPharmacyShortVo o2) { if (o1 == null || o2 == null) return 0; if (!o1.getPatientIsNotNull() || !o2.getPatientIsNotNull()) return 0; if (o1.getPatient().getdobIsNotNull()) return direction * o1.getPatient().getdob().compareto(o2.getPatient().getdob()); if (o2.getPatient().getdobIsNotNull()) return (-1) * direction; return 0; }
@Override protected void onGrdWorklistGridHeaderClicked(int column) throws PresentationLogicException { switch (column) { case COL_dob: // Set sort order if (!SortOrder.ASCENDING.equals(form.getLocalContext().getColumndobSortOrder())) form.getLocalContext().setColumndobSortOrder(SortOrder.ASCENDING); else form.getLocalContext().setColumndobSortOrder(SortOrder.DESCENDING); // Get values TTAMedicationAndPharmacyShortVoCollection list = form.GrdWorklist().getValues(); // Save selected value TTAMedicationAndPharmacyShortVo selected = form.GrdWorklist().getValue(); // Sort values populateResultsToScreen(list.sort(new dobComparator(form.getLocalContext().getColumndobSortOrder()))); // Re-select the saved value form.GrdWorklist().setValue(selected); break; } // Update controls state updateControlsstate(); }
@Override protected void onTimer(Timer timer) throws PresentationLogicException { TTAMedicationAndPharmacyShortVo selected = form.GrdWorklist().getValue(); search(false); form.GrdWorklist().setValue(selected); updateControlsstate(); }
@Override protected void onGrdWorklistGridHeaderClicked(int column) throws PresentationLogicException { switch (column) { case COL_dob: // Set sort order if (!SortOrder.ASCENDING.equals(form.getLocalContext().getColumndobSortOrder())) form.getLocalContext().setColumndobSortOrder(SortOrder.ASCENDING); else form.getLocalContext().setColumndobSortOrder(SortOrder.DESCENDING); // Get values TTAMedicationAndPharmacyShortVoCollection list = form.GrdWorklist().getValues(); // Save selected value TTAMedicationAndPharmacyShortVo selected = form.GrdWorklist().getValue(); // Sort values populateResultsToScreen(list.sort(new dobComparator(form.getLocalContext().getColumndobSortOrder()))); // Re-select the saved value form.GrdWorklist().setValue(selected); break; } // Update controls state updateControlsstate(); }
@Override protected void onTimer(Timer timer) throws PresentationLogicException { TTAMedicationAndPharmacyShortVo selected = form.GrdWorklist().getValue(); search(false); form.GrdWorklist().setValue(selected); updateControlsstate(); }
@Override protected void onGrdWorklistGridHeaderClicked(int column) throws PresentationLogicException { switch (column) { case COL_dob: // Set sort order if (!SortOrder.ASCENDING.equals(form.getLocalContext().getColumndobSortOrder())) form.getLocalContext().setColumndobSortOrder(SortOrder.ASCENDING); else form.getLocalContext().setColumndobSortOrder(SortOrder.DESCENDING); // Get values TTAMedicationAndPharmacyShortVoCollection list = form.GrdWorklist().getValues(); // Save selected value TTAMedicationAndPharmacyShortVo selected = form.GrdWorklist().getValue(); // Sort values populateResultsToScreen(list.sort(new dobComparator(form.getLocalContext().getColumndobSortOrder()))); // Re-select the saved value form.GrdWorklist().setValue(selected); break; } // Update controls state updateControlsstate(); }
@Override protected void onTimer(Timer timer) throws PresentationLogicException { TTAMedicationAndPharmacyShortVo selected = form.GrdWorklist().getValue(); search(false); form.GrdWorklist().setValue(selected); updateControlsstate(); }
ims.clinical.vo.AdmissionMedicationChangesVo的实例源码
private String getMedicationName(T med) { if (med instanceof TTAMedicationVo) { TTAMedicationVo ttamed = (TTAMedicationVo) med; return ttamed.getMedicationIsNotNull()?ttamed.getMedication():""; } if (med instanceof AdmissionMedicationChangesVo) { AdmissionMedicationChangesVo amc = (AdmissionMedicationChangesVo) med; return amc.getMedicationIsNotNull()?amc.getMedication():""; } return ""; }
private String getMedicationName(T med) { if (med instanceof TTAMedicationVo) { TTAMedicationVo ttamed = (TTAMedicationVo) med; return ttamed.getMedicationIsNotNull()?ttamed.getMedication():""; } if (med instanceof AdmissionMedicationChangesVo) { AdmissionMedicationChangesVo amc = (AdmissionMedicationChangesVo) med; return amc.getMedicationIsNotNull()?amc.getMedication():""; } return ""; }
private String getMedicationName(T med) { if (med instanceof TTAMedicationVo) { TTAMedicationVo ttamed = (TTAMedicationVo) med; return ttamed.getMedicationIsNotNull()?ttamed.getMedication():""; } if (med instanceof AdmissionMedicationChangesVo) { AdmissionMedicationChangesVo amc = (AdmissionMedicationChangesVo) med; return amc.getMedicationIsNotNull()?amc.getMedication():""; } return ""; }
private void populateScreenFromData(dischargeMedicationDetailsVo voMeds) { clearInstanceControls(); //WDEV-8183 form.GrdMedication().getRows().clear(); //Should clear even if the new value is null form.GrdJAC().getRows().clear(); if (voMeds == null) return; form.cmbrequired().setValue(voMeds.getTTArequired()); //----------------------------------------------------- if (form.getMode().equals(FormMode.EDIT)) form.btnorderTTO().setVisible(TTOrequired.required.equals(form.cmbrequired().getValue())?true:false); //-------------------------------------------------------- if (voMeds.getTTAsIsNotNull() ) { // WDEV-9537 TTAMedicationVoCollection ttas = voMeds.getTTAs(); ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() ); for ( int i = 0 ; i < ttas.size() ; i++) { TTAMedicationVo vottA = ttas.get(i); GrdJACRow row = form.GrdJAC().getRows().newRow(); row.setColMedication(vottA.getMedication()); //------------------ row.setTooltipForColMedication(vottA.getMedication()); //------------------ row.setColDose(vottA.getDoseAmount().toString() + " " + (vottA.getDoseUnitIsNotNull() ? vottA.getDoseUnit().toString() : "")); //------------ row.setTooltipForColDose(vottA.getDoseAmount().toString() + " " + (vottA.getDoseUnitIsNotNull() ? vottA.getDoseUnit().toString() : "")); //------------- row.setColRoute(vottA.getRouteIsNotNull() ? vottA.getRoute().toString() : null); row.setTooltipForColRoute(vottA.getRouteIsNotNull() ? vottA.getRoute().toString() : ""); row.setColUFreq(vottA.getFrequency()); row.setTooltipForColUFreq(vottA.getFrequency()); row.setColDays(vottA.getDaysSupply().toString()); //------ row.setTooltipForColDays(vottA.getDaysSupply().toString()); //---------- row.setColGpCont(vottA.getGpToContinueIsNotNull() ? vottA.getGpToContinue().toString() : null); //--------------- row.setTooltipForColGpCont(vottA.getGpToContinueIsNotNull() ? vottA.getGpToContinue().toString() : ""); //--------- row.setValue(vottA); form.lblRefreshDateTime().setValue(vottA.getSysInfoIsNotNull() ? vottA.getSysInfo().getCreationDateTime().toString() : ""); } } //form.GrdJAC().sort(0); if (voMeds.getAdmissionMedicationChangesIsNotNull()) { // WDEV-9537 AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges(); admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>()); for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++) { AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i); GrdMedicationRow rowMeds = form.GrdMedication().getRows().newRow(); rowMeds.setcolAdm(voChanges.getMedication()); rowMeds.setcolChange(voChanges.getMedicationChanges()); rowMeds.setValue(voChanges); } //form.GrdMedication().sort(0); } form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations()); }
private void populateScreenFromData(dischargeMedicationDetailsVo voMeds) { clearInstanceControls(); //WDEV-8183 form.GrdMedication().getRows().clear(); //Should clear even if the new value is null if (voMeds == null) return; form.cmbrequired().setValue(voMeds.getTTArequired()); //----------------------------------------------------- if (form.getMode().equals(FormMode.EDIT)) form.btnorderTTO().setVisible(TTOrequired.required.equals(form.cmbrequired().getValue())?true:false); //-------------------------------------------------------- if (voMeds.getTTAsIsNotNull()) { // WDEV-9537 TTAMedicationVoCollection ttas = voMeds.getTTAs(); //ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() ); populateTTAsFromData(ttas.sort()); //WDEV-19289 //WDEV-19789 } //form.GrdJAC().sort(0); if (voMeds.getAdmissionMedicationChangesIsNotNull()) { // WDEV-9537 AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges(); admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>()); for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++) { AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i); GrdMedicationRow rowMeds = form.GrdMedication().getRows().newRow(); rowMeds.setcolAdm(voChanges.getMedication()); rowMeds.setcolChange(voChanges.getMedicationChanges()); rowMeds.setValue(voChanges); } //form.GrdMedication().sort(0); } form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations()); }
private void populateScreenFromData(dischargeMedicationDetailsVo voMeds) { clearInstanceControls(); //WDEV-8183 form.GrdMedication().getRows().clear(); //Should clear even if the new value is null form.GrdJAC().getRows().clear(); if (voMeds == null) return; form.cmbrequired().setValue(voMeds.getTTArequired()); //----------------------------------------------------- if (form.getMode().equals(FormMode.EDIT)) form.btnorderTTO().setVisible(TTOrequired.required.equals(form.cmbrequired().getValue())?true:false); //-------------------------------------------------------- if (voMeds.getTTAsIsNotNull() ) { // WDEV-9537 TTAMedicationVoCollection ttas = voMeds.getTTAs(); ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() ); for ( int i = 0 ; i < ttas.size() ; i++) { TTAMedicationVo vottA = ttas.get(i); GrdJACRow row = form.GrdJAC().getRows().newRow(); row.setColMedication(vottA.getMedication()); //------------------ row.setTooltipForColMedication(vottA.getMedication()); //------------------ row.setColDose(vottA.getDoseAmount().toString() + " " + (vottA.getDoseUnitIsNotNull() ? vottA.getDoseUnit().toString() : "")); //------------ row.setTooltipForColDose(vottA.getDoseAmount().toString() + " " + (vottA.getDoseUnitIsNotNull() ? vottA.getDoseUnit().toString() : "")); //------------- row.setColRoute(vottA.getRouteIsNotNull() ? vottA.getRoute().toString() : null); row.setTooltipForColRoute(vottA.getRouteIsNotNull() ? vottA.getRoute().toString() : ""); row.setColUFreq(vottA.getFrequency()); row.setTooltipForColUFreq(vottA.getFrequency()); row.setColDays(vottA.getDaysSupply().toString()); //------ row.setTooltipForColDays(vottA.getDaysSupply().toString()); //---------- row.setColGpCont(vottA.getGpToContinueIsNotNull() ? vottA.getGpToContinue().toString() : null); //--------------- row.setTooltipForColGpCont(vottA.getGpToContinueIsNotNull() ? vottA.getGpToContinue().toString() : ""); //--------- row.setValue(vottA); form.lblRefreshDateTime().setValue(vottA.getSysInfoIsNotNull() ? vottA.getSysInfo().getCreationDateTime().toString() : ""); } } //form.GrdJAC().sort(0); if (voMeds.getAdmissionMedicationChangesIsNotNull()) { // WDEV-9537 AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges(); admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>()); for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++) { AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i); GrdMedicationRow rowMeds = form.GrdMedication().getRows().newRow(); rowMeds.setcolAdm(voChanges.getMedication()); rowMeds.setcolChange(voChanges.getMedicationChanges()); rowMeds.setValue(voChanges); } //form.GrdMedication().sort(0); } form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations()); }
private void populateScreenFromData(dischargeMedicationDetailsVo voMeds) { clearInstanceControls(); //WDEV-8183 form.GrdMedication().getRows().clear(); //Should clear even if the new value is null form.GrdJAC().getRows().clear(); if (voMeds == null) return; form.cmbrequired().setValue(voMeds.getTTArequired()); //----------------------------------------------------- if (form.getMode().equals(FormMode.EDIT)) form.btnorderTTO().setVisible(TTOrequired.required.equals(form.cmbrequired().getValue())?true:false); //-------------------------------------------------------- if (voMeds.getTTAsIsNotNull() ) { // WDEV-9537 TTAMedicationVoCollection ttas = voMeds.getTTAs(); ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() ); for ( int i = 0 ; i < ttas.size() ; i++) { TTAMedicationVo vottA = ttas.get(i); GrdJACRow row = form.GrdJAC().getRows().newRow(); row.setColMedication(vottA.getMedication()); //------------------ row.setTooltipForColMedication(vottA.getMedication()); //------------------ row.setColDose(vottA.getDoseAmount().toString() + " " + (vottA.getDoseUnitIsNotNull() ? vottA.getDoseUnit().toString() : "")); //------------ row.setTooltipForColDose(vottA.getDoseAmount().toString() + " " + (vottA.getDoseUnitIsNotNull() ? vottA.getDoseUnit().toString() : "")); //------------- row.setColRoute(vottA.getRouteIsNotNull() ? vottA.getRoute().toString() : null); row.setTooltipForColRoute(vottA.getRouteIsNotNull() ? vottA.getRoute().toString() : ""); row.setColUFreq(vottA.getFrequency()); row.setTooltipForColUFreq(vottA.getFrequency()); row.setColDays(vottA.getDaysSupply().toString()); //------ row.setTooltipForColDays(vottA.getDaysSupply().toString()); //---------- row.setColGpCont(vottA.getGpToContinueIsNotNull() ? vottA.getGpToContinue().toString() : null); //--------------- row.setTooltipForColGpCont(vottA.getGpToContinueIsNotNull() ? vottA.getGpToContinue().toString() : ""); //--------- row.setValue(vottA); form.lblRefreshDateTime().setValue(vottA.getSysInfoIsNotNull() ? vottA.getSysInfo().getCreationDateTime().toString() : ""); } } //form.GrdJAC().sort(0); if (voMeds.getAdmissionMedicationChangesIsNotNull()) { // WDEV-9537 AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges(); admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>()); for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++) { AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i); GrdMedicationRow rowMeds = form.GrdMedication().getRows().newRow(); rowMeds.setcolAdm(voChanges.getMedication()); rowMeds.setcolChange(voChanges.getMedicationChanges()); rowMeds.setValue(voChanges); } //form.GrdMedication().sort(0); } form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations()); }
ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码
private ClinicalProblemShortVoCollection filterExistingProblems(ClinicalProblemShortVoCollection coll) { ClinicalProblemShortVoCollection existingColl = form.getGlobalContext().Clinical.getSelectedProblems(); if(existingColl == null || (existingColl != null && existingColl.size() == 0)) return coll; ClinicalProblemShortVoCollection newProblemColl = new ClinicalProblemShortVoCollection(); existingColl.sort(SortOrder.ASCENDING); coll.sort(SortOrder.ASCENDING); for (int i = 0; i < coll.size() ; i++) { if(existingColl.contains(coll.get(i))== false) { newProblemColl.add(coll.get(i)); } } //form.getGlobalContext().Clinical.setSelectedProblems(null); return newProblemColl; }
private void doSearch() { if (form.txtProblemSearch().getValue() == null || form.txtProblemSearch().getValue() != null && form.txtProblemSearch().getValue().length() < 3) //WDEV-15859 { engine.showMessage("Please enter a search string of at least 3 characters !"); return; } ClinicalProblemShortVoCollection collProblems = domain.listProblems(form.txtProblemSearch().getValue()); // form.getLocalContext().setselectedClinicianNote(null);// ----------- if (collProblems == null || collProblems.size() == 0) { engine.showMessage("No Problems found !"); return; } ClinicalProblemShortVoCollection filteredCollProblems = filterExistingProblems(collProblems); populateGridProblems(filteredCollProblems); }
private ClinicalProblemShortVoCollection filterExistingProblems(ClinicalProblemShortVoCollection collProblems) { ClinicalProblemShortVoCollection existingColl = form.getGlobalContext().Emergency.getSelectedProblems(); if (existingColl == null || (existingColl != null && existingColl.size() == 0)) return collProblems; ClinicalProblemShortVoCollection newProblemColl = new ClinicalProblemShortVoCollection(); existingColl.sort(SortOrder.ASCENDING); collProblems.sort(SortOrder.ASCENDING); for (int i = 0; i < collProblems.size(); i++) { if (existingColl.contains(collProblems.get(i)) == false) { newProblemColl.add(collProblems.get(i)); } } return newProblemColl; }
private void populateGridProblems(ClinicalProblemShortVoCollection collProblems) { if (collProblems == null) return; for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo problem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(problem.getPCName()); row.setcolSelect(false); row.setValue(problem); } }
@Override protected void onBtnOkClick() throws PresentationLogicException { if (form.GrdSelectedProblems().getRows().size() == 0) //WDEV-15859 { engine.showMessage("No items were selected."); return; } ClinicalProblemShortVoCollection collSelectedProblems = form.getGlobalContext().Emergency.getSelectedProblems(); for (int i = 0; i < form.GrdSelectedProblems().getRows().size(); i++) { GrdSelectedProblemsRow selRow = form.GrdSelectedProblems().getRows().get(i); if (selRow.getcolSelect()) { collSelectedProblems.add(form.GrdSelectedProblems().getRows().get(i).getValue()); } } form.getGlobalContext().Emergency.setSelectedProblems(collSelectedProblems); engine.close(DialogResult.OK); }
private void listPresentingProblems(String problemText) //WDEV-17647 { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } }
protected void populateProblems(ClinicalProblemShortVoCollection problems) //WDEV-17640 { // Clear problem query combo-Box form.qmbProblem().clear(); // Check problem collection if (problems == null) { form.qmbProblem().showOpened(); return; } for (ClinicalProblemShortVo problem : problems) { form.qmbProblem().newRow(problem,problem.getPCName()); } }
private void listPresentingProblems(String problemText) { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } form.qmbPresentingProblem().showOpened(); }
private void populateProblemsGrid(ClinicalProblemShortVoCollection collProblems) { form.GrdProblems().getRows().clear(); if (collProblems == null) return; collProblems.sort(new ProblemsNameComparator(SortOrder.ASCENDING)); for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo clinicalProblem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(clinicalProblem.getPCName()); row.setValue(clinicalProblem); } }
public ClinicalProblemShortVoCollection listClinicalProblems(String searchText) { if(searchText == null) return null; searchText = searchText.trim().toupperCase(); if(searchText == null || searchText.length() == 0) return null; DomainFactory factory = getDomainFactory(); String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (upper(cp.pCName) like :ClinicalProblemSearchText or upper(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc"; List<?> clinicalProblemsList = factory.find(query,new String[] {"ClinicalProblemSearchText"},new Object[] {searchText + "%"}); return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(clinicalProblemsList); }
public ClinicalProblemShortVoCollection listProblems(String name) { // Use StringBuilder to build the HQL query StringBuilder hqlQuery = new StringBuilder(); hqlQuery.append("SELECT problem "); hqlQuery.append(" FROM ClinicalProblem AS problem LEFT JOIN problem.keywords AS keyw "); ArrayList<String> paramNames = new ArrayList<String>(); ArrayList<Object> paramValues = new ArrayList<Object>(); // Create parameters string if (name != null && name.length() > 0) { hqlQuery.append(" WHERE (UPPER(problem.pCName) LIKE :NAME"); hqlQuery.append(" OR UPPER(keyw.keyword) LIKE :NAME) AND problem.isActive = 1 "); paramNames.add("NAME"); paramValues.add("%" + name.toupperCase() + "%"); } // Set order mode hqlQuery.append(" ORDER BY UPPER(problem.pCName) ASC"); return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(getDomainFactory().find(hqlQuery.toString(),paramNames,paramValues)); }
private void addProblemsnotinstantiated() { Specialty lkpSpecialty = form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()?form.getGlobalContext().Core.getCurrentClinicalContact().getSpecialty():null; if (lkpSpecialty == null) lkpSpecialty = form.getGlobalContext().Core.getEpisodeofCareShortIsNotNull()?form.getGlobalContext().Core.getEpisodeofCareShort().getSpecialty():null; ClinicalProblemShortVoCollection voCollPresentingProblems = domain.listPresentingProblems(lkpSpecialty); if (voCollPresentingProblems != null) { for (int i = 0; i < voCollPresentingProblems.size(); i++) { GenForm.GrdProblemsRow row = findPatientProblemRow(voCollPresentingProblems.get(i)); if (row == null) { row = form.GrdProblems().getRows().newRow(); row.setcolProblems(voCollPresentingProblems.get(i)); // row.setcolProblemName(voCollPresentingProblems.get(i).getPCName()); row.setValue(voCollPresentingProblems.get(i)); setGridUIForAbsent(row); } } } }
private ClinicalProblemShortVoCollection filterExistingProblems(ClinicalProblemShortVoCollection coll) { ClinicalProblemShortVoCollection existingColl = form.getGlobalContext().Clinical.getSelectedProblems(); if(existingColl == null || (existingColl != null && existingColl.size() == 0)) return coll; ClinicalProblemShortVoCollection newProblemColl = new ClinicalProblemShortVoCollection(); existingColl.sort(SortOrder.ASCENDING); coll.sort(SortOrder.ASCENDING); for (int i = 0; i < coll.size() ; i++) { if(existingColl.contains(coll.get(i))== false) { newProblemColl.add(coll.get(i)); } } //form.getGlobalContext().Clinical.setSelectedProblems(null); return newProblemColl; }
private void doSearch() { if (form.txtProblemSearch().getValue() == null || form.txtProblemSearch().getValue() != null && form.txtProblemSearch().getValue().length() < 3) //WDEV-15859 { engine.showMessage("Please enter a search string of at least 3 characters !"); return; } ClinicalProblemShortVoCollection collProblems = domain.listProblems(form.txtProblemSearch().getValue()); // form.getLocalContext().setselectedClinicianNote(null);// ----------- if (collProblems == null || collProblems.size() == 0) { engine.showMessage("No Problems found !"); return; } ClinicalProblemShortVoCollection filteredCollProblems = filterExistingProblems(collProblems); populateGridProblems(filteredCollProblems); }
private ClinicalProblemShortVoCollection filterExistingProblems(ClinicalProblemShortVoCollection collProblems) { ClinicalProblemShortVoCollection existingColl = form.getGlobalContext().Emergency.getSelectedProblems(); if (existingColl == null || (existingColl != null && existingColl.size() == 0)) return collProblems; ClinicalProblemShortVoCollection newProblemColl = new ClinicalProblemShortVoCollection(); existingColl.sort(SortOrder.ASCENDING); collProblems.sort(SortOrder.ASCENDING); for (int i = 0; i < collProblems.size(); i++) { if (existingColl.contains(collProblems.get(i)) == false) { newProblemColl.add(collProblems.get(i)); } } return newProblemColl; }
private void populateGridProblems(ClinicalProblemShortVoCollection collProblems) { if (collProblems == null) return; for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo problem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(problem.getPCName()); row.setcolSelect(false); row.setValue(problem); } }
@Override protected void onBtnOkClick() throws PresentationLogicException { if (form.GrdSelectedProblems().getRows().size() == 0) //WDEV-15859 { engine.showMessage("No items were selected."); return; } ClinicalProblemShortVoCollection collSelectedProblems = form.getGlobalContext().Emergency.getSelectedProblems(); for (int i = 0; i < form.GrdSelectedProblems().getRows().size(); i++) { GrdSelectedProblemsRow selRow = form.GrdSelectedProblems().getRows().get(i); if (selRow.getcolSelect()) { collSelectedProblems.add(form.GrdSelectedProblems().getRows().get(i).getValue()); } } form.getGlobalContext().Emergency.setSelectedProblems(collSelectedProblems); engine.close(DialogResult.OK); }
private void listPresentingProblems(String problemText) //WDEV-17647 { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } }
protected void populateProblems(ClinicalProblemShortVoCollection problems) //WDEV-17640 { // Clear problem query combo-Box form.qmbProblem().clear(); // Check problem collection if (problems == null) { form.qmbProblem().showOpened(); return; } for (ClinicalProblemShortVo problem : problems) { form.qmbProblem().newRow(problem,problem.getPCName()); } }
private void listPresentingProblems(String problemText) { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } form.qmbPresentingProblem().showOpened(); }
private void populateProblemsGrid(ClinicalProblemShortVoCollection collProblems) { form.GrdProblems().getRows().clear(); if (collProblems == null) return; collProblems.sort(new ProblemsNameComparator(SortOrder.ASCENDING)); for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo clinicalProblem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(clinicalProblem.getPCName()); row.setValue(clinicalProblem); } }
public ClinicalProblemShortVoCollection listClinicalProblems(String searchText) { if(searchText == null) return null; searchText = searchText.trim().toupperCase(); if(searchText == null || searchText.length() == 0) return null; DomainFactory factory = getDomainFactory(); String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (upper(cp.pCName) like :ClinicalProblemSearchText or upper(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc"; List<?> clinicalProblemsList = factory.find(query,new Object[] {searchText + "%"}); return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(clinicalProblemsList); }
@Override public ClinicalProblemShortVoCollection listProblems(String problemName) { DomainFactory factory = getDomainFactory(); ArrayList<String> markers = new ArrayList<String>(); ArrayList<Object> values = new ArrayList<Object>(); if (problemName == null || (problemName != null && problemName.trim().length() == 0)) throw new DomainRuntimeException("String for search is null."); String probNameLite = problemName != null ? problemName.toupperCase() + "%" : "%%"; StringBuffer hql = new StringBuffer(); hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1"); hql.append(" order by UPPER(probl.pCName) asc"); markers.add("ClinicalProblemSearchText"); values.add(probNameLite); return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(factory.find(hql.toString(),markers,values)); }
public ClinicalProblemShortVoCollection listProblems(String name) { // Use StringBuilder to build the HQL query StringBuilder hqlQuery = new StringBuilder(); hqlQuery.append("SELECT problem "); hqlQuery.append(" FROM ClinicalProblem AS problem LEFT JOIN problem.keywords AS keyw "); ArrayList<String> paramNames = new ArrayList<String>(); ArrayList<Object> paramValues = new ArrayList<Object>(); // Create parameters string if (name != null && name.length() > 0) { hqlQuery.append(" WHERE (UPPER(problem.pCName) LIKE :NAME"); hqlQuery.append(" OR UPPER(keyw.keyword) LIKE :NAME) AND problem.isActive = 1 "); paramNames.add("NAME"); paramValues.add("%" + name.toupperCase() + "%"); } // Set order mode hqlQuery.append(" ORDER BY UPPER(problem.pCName) ASC"); return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(getDomainFactory().find(hqlQuery.toString(),paramValues)); }
private void addProblemsnotinstantiated() { Specialty lkpSpecialty = form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()?form.getGlobalContext().Core.getCurrentClinicalContact().getSpecialty():null; if (lkpSpecialty == null) lkpSpecialty = form.getGlobalContext().Core.getEpisodeofCareShortIsNotNull()?form.getGlobalContext().Core.getEpisodeofCareShort().getSpecialty():null; ClinicalProblemShortVoCollection voCollPresentingProblems = domain.listPresentingProblems(lkpSpecialty); if (voCollPresentingProblems != null) { for (int i = 0; i < voCollPresentingProblems.size(); i++) { GenForm.GrdProblemsRow row = findPatientProblemRow(voCollPresentingProblems.get(i)); if (row == null) { row = form.GrdProblems().getRows().newRow(); row.setcolProblems(voCollPresentingProblems.get(i)); // row.setcolProblemName(voCollPresentingProblems.get(i).getPCName()); row.setValue(voCollPresentingProblems.get(i)); setGridUIForAbsent(row); } } } }
private ClinicalProblemShortVoCollection filterExistingProblems(ClinicalProblemShortVoCollection coll) { ClinicalProblemShortVoCollection existingColl = form.getGlobalContext().Clinical.getSelectedProblems(); if(existingColl == null || (existingColl != null && existingColl.size() == 0)) return coll; ClinicalProblemShortVoCollection newProblemColl = new ClinicalProblemShortVoCollection(); existingColl.sort(SortOrder.ASCENDING); coll.sort(SortOrder.ASCENDING); for (int i = 0; i < coll.size() ; i++) { if(existingColl.contains(coll.get(i))== false) { newProblemColl.add(coll.get(i)); } } //form.getGlobalContext().Clinical.setSelectedProblems(null); return newProblemColl; }
private void doSearch() { if (form.txtProblemSearch().getValue() == null || form.txtProblemSearch().getValue() != null && form.txtProblemSearch().getValue().length() < 3) //WDEV-15859 { engine.showMessage("Please enter a search string of at least 3 characters !"); return; } ClinicalProblemShortVoCollection collProblems = domain.listProblems(form.txtProblemSearch().getValue()); // form.getLocalContext().setselectedClinicianNote(null);// ----------- if (collProblems == null || collProblems.size() == 0) { engine.showMessage("No Problems found !"); return; } ClinicalProblemShortVoCollection filteredCollProblems = filterExistingProblems(collProblems); populateGridProblems(filteredCollProblems); }
private ClinicalProblemShortVoCollection filterExistingProblems(ClinicalProblemShortVoCollection collProblems) { ClinicalProblemShortVoCollection existingColl = form.getGlobalContext().Emergency.getSelectedProblems(); if (existingColl == null || (existingColl != null && existingColl.size() == 0)) return collProblems; ClinicalProblemShortVoCollection newProblemColl = new ClinicalProblemShortVoCollection(); existingColl.sort(SortOrder.ASCENDING); collProblems.sort(SortOrder.ASCENDING); for (int i = 0; i < collProblems.size(); i++) { if (existingColl.contains(collProblems.get(i)) == false) { newProblemColl.add(collProblems.get(i)); } } return newProblemColl; }
ims.clinical.vo.ClinicalProblemShortVo的实例源码
@Override protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { //Only allow one PTP for a Clinical Problem if (form.getLocalContext().getSelectedProblemProtocolAssessment() == null) { if(domain.checkForConfiguredClinicalProblem((ClinicalProblemShortVo)form.GrdList().getSelectedRow().getcolProblem().getValue()) == true) { engine.showMessage("There is already a saved protocol record for this Clinical Problem. Your record will not be saved."); return; } if(domain.checkForConfiguredAssessment((UserAssessmentShortVo) form.GrdList().getSelectedRow().getcolAssessment().getValue()) == true) { engine.showMessage("There is already a saved protocol record for this Assessment. Your record will not be saved."); return; } } if(save()) { form.setMode(FormMode.VIEW); open(); } }
private void populateItemFromrow(PatientProblemVo item,GrdProblemsRow childRow) { if(item == null) return; item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); item.setIsActive(Boolean.TRUE); item.setIsPresentingProblem(Boolean.TRUE); item.setonset(childRow.getcolOnset()); item.setPatientProblem(((ClinicalProblemShortVo)childRow.getValue()).getPCName()); item.setProblem((ClinicalProblemShortVo) childRow.getValue()); item.setProblemNote(childRow.getcolNotes()); item.setSpecialty((Specialty) childRow.getParentRow().getValue()); if(item.getAuthoringinformation() == null) { item.setAuthoringinformation(getAuthoringInfo()); } }
private void populateGridProblems(ClinicalProblemShortVoCollection collProblems) { if (collProblems == null) return; for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo problem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(problem.getPCName()); row.setcolSelect(false); row.setValue(problem); } }
private void listPresentingProblems(String problemText) //WDEV-17647 { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } }
protected void populateProblems(ClinicalProblemShortVoCollection problems) //WDEV-17640 { // Clear problem query combo-Box form.qmbProblem().clear(); // Check problem collection if (problems == null) { form.qmbProblem().showOpened(); return; } for (ClinicalProblemShortVo problem : problems) { form.qmbProblem().newRow(problem,problem.getPCName()); } }
private void listPresentingProblems(String problemText) { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } form.qmbPresentingProblem().showOpened(); }
private void populateProblemsGrid(ClinicalProblemShortVoCollection collProblems) { form.GrdProblems().getRows().clear(); if (collProblems == null) return; collProblems.sort(new ProblemsNameComparator(SortOrder.ASCENDING)); for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo clinicalProblem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(clinicalProblem.getPCName()); row.setValue(clinicalProblem); } }
public int compare(Object ob1,Object ob2) { String p1Name = null; String p2Name = null; if(ob1 instanceof ClinicalProblemShortVo ) { ClinicalProblemShortVo problem1Name = (ClinicalProblemShortVo)ob1; p1Name = problem1Name != null ? problem1Name.getPCName():null; } if(ob2 instanceof ClinicalProblemShortVo ) { ClinicalProblemShortVo problem2Name = (ClinicalProblemShortVo)ob2; p2Name = problem2Name != null ? problem2Name.getPCName():null; } if(p1Name != null ) return p1Name.toupperCase().compareto(p2Name.toupperCase())*direction; if(p2Name != null) return (-1)*direction; return 0; }
private void populateItemFromrow(PatientProblemVo item,GrdProblemsRow childRow) { if(item == null) return; item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); item.setIsActive(Boolean.TRUE); item.setIsPresentingProblem(Boolean.TRUE); item.setonset(childRow.getcolOnset()); item.setPatientProblem(((ClinicalProblemShortVo)childRow.getValue()).getPCName()); item.setProblem((ClinicalProblemShortVo) childRow.getValue()); item.setProblemNote(childRow.getcolNotes()); item.setSpecialty((Specialty) childRow.getParentRow().getValue()); if(item.getAuthoringinformation() == null) { item.setAuthoringinformation(getAuthoringInfo()); } }
private void populateGridProblems(ClinicalProblemShortVoCollection collProblems) { if (collProblems == null) return; for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo problem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(problem.getPCName()); row.setcolSelect(false); row.setValue(problem); } }
private void listPresentingProblems(String problemText) //WDEV-17647 { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } }
protected void populateProblems(ClinicalProblemShortVoCollection problems) //WDEV-17640 { // Clear problem query combo-Box form.qmbProblem().clear(); // Check problem collection if (problems == null) { form.qmbProblem().showOpened(); return; } for (ClinicalProblemShortVo problem : problems) { form.qmbProblem().newRow(problem,problem.getPCName()); } }
private void listPresentingProblems(String problemText) { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } form.qmbPresentingProblem().showOpened(); }
private void populateProblemsGrid(ClinicalProblemShortVoCollection collProblems) { form.GrdProblems().getRows().clear(); if (collProblems == null) return; collProblems.sort(new ProblemsNameComparator(SortOrder.ASCENDING)); for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo clinicalProblem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(clinicalProblem.getPCName()); row.setValue(clinicalProblem); } }
public int compare(Object ob1,Object ob2) { String p1Name = null; String p2Name = null; if(ob1 instanceof ClinicalProblemShortVo ) { ClinicalProblemShortVo problem1Name = (ClinicalProblemShortVo)ob1; p1Name = problem1Name != null ? problem1Name.getPCName():null; } if(ob2 instanceof ClinicalProblemShortVo ) { ClinicalProblemShortVo problem2Name = (ClinicalProblemShortVo)ob2; p2Name = problem2Name != null ? problem2Name.getPCName():null; } if(p1Name != null ) return p1Name.toupperCase().compareto(p2Name.toupperCase())*direction; if(p2Name != null) return (-1)*direction; return 0; }
@Override protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { //Only allow one PTP for a Clinical Problem if (form.getLocalContext().getSelectedProblemProtocolAssessment() == null) { if(domain.checkForConfiguredClinicalProblem((ClinicalProblemShortVo)form.GrdList().getSelectedRow().getcolProblem().getValue()) == true) { engine.showMessage("There is already a saved protocol record for this Clinical Problem. Your record will not be saved."); return; } if(domain.checkForConfiguredAssessment((UserAssessmentShortVo) form.GrdList().getSelectedRow().getcolAssessment().getValue()) == true) { engine.showMessage("There is already a saved protocol record for this Assessment. Your record will not be saved."); return; } } if(save()) { form.setMode(FormMode.VIEW); open(); } }
@Override protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { //Only allow one PTP for a Clinical Problem if (form.getLocalContext().getSelectedProblemProtocolAssessment() == null) { if(domain.checkForConfiguredClinicalProblem((ClinicalProblemShortVo)form.GrdList().getSelectedRow().getcolProblem().getValue()) == true) { engine.showMessage("There is already a saved protocol record for this Clinical Problem. Your record will not be saved."); return; } if(domain.checkForConfiguredAssessment((UserAssessmentShortVo) form.GrdList().getSelectedRow().getcolAssessment().getValue()) == true) { engine.showMessage("There is already a saved protocol record for this Assessment. Your record will not be saved."); return; } } if(save()) { form.setMode(FormMode.VIEW); open(); } }
private void populateItemFromrow(PatientProblemVo item,GrdProblemsRow childRow) { if(item == null) return; item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); item.setIsActive(Boolean.TRUE); item.setIsPresentingProblem(Boolean.TRUE); item.setonset(childRow.getcolOnset()); item.setPatientProblem(((ClinicalProblemShortVo)childRow.getValue()).getPCName()); item.setProblem((ClinicalProblemShortVo) childRow.getValue()); item.setProblemNote(childRow.getcolNotes()); item.setSpecialty((Specialty) childRow.getParentRow().getValue()); if(item.getAuthoringinformation() == null) { item.setAuthoringinformation(getAuthoringInfo()); } }
private void populateGridProblems(ClinicalProblemShortVoCollection collProblems) { if (collProblems == null) return; for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo problem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(problem.getPCName()); row.setcolSelect(false); row.setValue(problem); } }
private void listPresentingProblems(String problemText) //WDEV-17647 { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } }
protected void populateProblems(ClinicalProblemShortVoCollection problems) //WDEV-17640 { // Clear problem query combo-Box form.qmbProblem().clear(); // Check problem collection if (problems == null) { form.qmbProblem().showOpened(); return; } for (ClinicalProblemShortVo problem : problems) { form.qmbProblem().newRow(problem,problem.getPCName()); } }
private void listPresentingProblems(String problemText) { form.qmbPresentingProblem().clear(); ClinicalProblemShortVoCollection problems = domain.listClinicalProblems(problemText); if(problems == null || problems.size() == 0) return; for(ClinicalProblemShortVo problem : problems) { if(problem == null) continue; form.qmbPresentingProblem().newRow(problem,problem.getPCName()); } form.qmbPresentingProblem().showOpened(); }
private void populateProblemsGrid(ClinicalProblemShortVoCollection collProblems) { form.GrdProblems().getRows().clear(); if (collProblems == null) return; collProblems.sort(new ProblemsNameComparator(SortOrder.ASCENDING)); for (int i = 0; i < collProblems.size(); i++) { ClinicalProblemShortVo clinicalProblem = collProblems.get(i); GrdProblemsRow row = form.GrdProblems().getRows().newRow(); row.setcolProblem(clinicalProblem.getPCName()); row.setValue(clinicalProblem); } }
public int compare(Object ob1,Object ob2) { String p1Name = null; String p2Name = null; if(ob1 instanceof ClinicalProblemShortVo ) { ClinicalProblemShortVo problem1Name = (ClinicalProblemShortVo)ob1; p1Name = problem1Name != null ? problem1Name.getPCName():null; } if(ob2 instanceof ClinicalProblemShortVo ) { ClinicalProblemShortVo problem2Name = (ClinicalProblemShortVo)ob2; p2Name = problem2Name != null ? problem2Name.getPCName():null; } if(p1Name != null ) return p1Name.toupperCase().compareto(p2Name.toupperCase())*direction; if(p2Name != null) return (-1)*direction; return 0; }
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException { if(form.GrdSelectedItems().getRows().size() == 0) { engine.showMessage("No items were selected."); return; } ProcedureLiteVoCollection procColl = new ProcedureLiteVoCollection(); DiagLiteVoCollection diagColl = new DiagLiteVoCollection(); ClinicalProblemShortVoCollection probColl = new ClinicalProblemShortVoCollection(); VaccineLiteVoCollection vaccColl = new VaccineLiteVoCollection(); for (int j = 0; j < form.GrdSelectedItems().getRows().size(); j++) { GrdSelectedItemsRow selRow = form.GrdSelectedItems().getRows().get(j); if(selRow.getValue() instanceof ProcedureLiteVo) procColl.add((ProcedureLiteVo)selRow.getValue()); else if(selRow.getValue() instanceof DiagLiteVo) diagColl.add((DiagLiteVo)selRow.getValue()); else if(selRow.getValue() instanceof ClinicalProblemShortVo) probColl.add((ClinicalProblemShortVo)selRow.getValue()); else if(selRow.getValue() instanceof VaccineLiteVo) vaccColl.add((VaccineLiteVo) selRow.getValue()); } if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P")) form.getGlobalContext().Clinical.setSelectedProcedures(procColl); else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D")) form.getGlobalContext().Clinical.setSelectedDiagnosis(diagColl); else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR")) form.getGlobalContext().Clinical.setSelectedProblems(probColl); else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE")) form.getGlobalContext().Clinical.CCISearch.setSelectedVaccines(vaccColl); engine.close(DialogResult.OK); }
public ClinicalProblemShortVoCollection listProblems(String filter) throws DomainInterfaceException { ClinicalProblemShortVoCollection coll = new ClinicalProblemShortVoCollection(); IGenericItem[] items = listIGenericItems(filter,CciType.PROBLEM,true); if (items != null) { for ( int i = 0; i < items.length; i++) { coll.add((ClinicalProblemShortVo)items[i]); } return coll; } return null; }
private int getProblemIndex(ClinicalProblemShortVo problem,Specialty specialty,PatientProblemVoCollection list) { if(list == null) return -1; for (int i = 0; i < list.size(); i++) { if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProblemIsNotNull() && list.get(i).getProblem().getID_ClinicalProblem().equals(problem.getID_ClinicalProblem())) return i; } return -1; }
private void populateOtherDetails(PatientForTriageVo patient) { populateOtherProblems(); form.ccAllergy().refresh(); form.ccAlert().refresh(); populateAttendanceHistory(patient); form.imgTriagePriority().setValue(getPriorityImageByTriagePriority()); form.lblPresentingComplaint().setValue((form.getLocalContext().getSelectedTriagePatient() != null && form.getLocalContext().getSelectedTriagePatient().getEpisode().getPresentingComplaint() != null) ? form.getLocalContext().getSelectedTriagePatient().getEpisode().getPresentingComplaint().getText() : ""); form.qmbPresentingProblem().clear(); if(form.getLocalContext().getSelectedTriagePatient() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getMainPresentingProblem() != null) { ClinicalProblemShortVo problem = form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getMainPresentingProblem().getProblem(); if(problem != null) { form.qmbPresentingProblem().newRow(problem,problem.getPCName()); form.qmbPresentingProblem().setValue(problem); } } form.lbldiscriminator().setValue((form.getLocalContext().getSelectedTriagePatient() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment().getdiscriminator() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment().getdiscriminator().getdiscriminator() != null) ? form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment().getdiscriminator().getdiscriminator().getdiscriminatorName() : ""); populateAttendanceTimes(); }
private void updateControlsstate() { form.ccReportTemplateSearch().setEnabled(FormMode.VIEW.equals(form.getMode())); form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.ccReportTemplateSearch().getSelectedTemplate() instanceof TemplateForReportTemplateSearchVo); //form.btnAdd().setVisible(FormMode.EDIT.equals(form.getMode())); //form.btnRemove().setVisible(FormMode.EDIT.equals(form.getMode()) && form.GrdProblems().getValue() instanceof ClinicalProblemShortVo); form.btnAdd().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue()); form.btnRemove().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue() && form.GrdProblems().getValue() instanceof ClinicalProblemShortVo); form.GrdProblems().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue()); form.chkTemplateAvailable().setEnabled(FormMode.EDIT.equals(form.getMode())); }
private void listProblemSearch(String value) { ClinicalProblemShortVoCollection coll = null; coll = domain.listProblems(value); form.qmbProblemSearch().setValue(null); form.qmbProblemSearch().clear(); if (coll != null) { for (int i = 0; i < coll.size(); i++) { ClinicalProblemShortVo vo = coll.get(i); form.qmbProblemSearch().newRow(vo,vo.getPCName()); } if (coll.size() == 1) { form.qmbProblemSearch().setValue(coll.get(0)); } if (coll.size() > 1) { form.qmbProblemSearch().showOpened(); } } }
private void listProblemdiscriminator(String value) { ClinicalProblemShortVoCollection coll = null; coll = domain.listProblems(value); form.qmbProblem().setValue(null); form.qmbProblem().clear(); if (coll != null) { for (int i = 0; i < coll.size(); i++) { ClinicalProblemShortVo vo = coll.get(i); form.qmbProblem().newRow(vo,vo.getPCName()); } } if (coll.size() == 1) { form.qmbProblem().setValue(coll.get(0)); } if (coll.size() > 1) { form.qmbProblem().showOpened(); } }
/** * Function used to populate ICP Problems * * @param problemsCollection */ private void populateICPProblems(ClinicalProblemShortVoCollection problemsCollection) { // Clear problems form.ctnConfiguration().lyrICPTabs().ICP().qmbICPProblem().clear(); // Terminate function if the list is null if (problemsCollection == null) return; for (ClinicalProblemShortVo problem : problemsCollection) { // Skip null problems if (problem == null) continue; form.ctnConfiguration().lyrICPTabs().ICP().qmbICPProblem().newRow(problem,problem.getPCName()); } if (problemsCollection.size() == 1) { form.ctnConfiguration().lyrICPTabs().ICP().qmbICPProblem().setValue(problemsCollection.get(0)); } else { form.ctnConfiguration().lyrICPTabs().ICP().qmbICPProblem().showOpened(); } }
private ClinicalProblemShortVo getProblem(ValueObject voItem) { ClinicalProblemShortVo voProblem = null; if (voItem instanceof ProblemHotlistItemVo) { ProblemHotlistItemVo hotlistItem = (ProblemHotlistItemVo)voItem; voProblem = hotlistItem.getProblem(); } else if (voItem instanceof ClinicalProblemShortVo) voProblem = ((ClinicalProblemShortVo)voItem); return voProblem; }
ims.clinical.vo.DischargeMedicationDetailsVoCollection的实例源码
public dischargeMedicationDetailsVo getMedication(CareContextRefVo careContextRefvo) { //Todo Put following two lines back in when the MEDS Componetn for STHK is implemented. // EdischargeMedicationComponent impl = (EdischargeMedicationComponent)getDomainImpl(EdischargeMedicationComponentImpl.class); // return impl.getMedication(careContextRefvo); if(careContextRefvo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRefvo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from MedicationDetails md where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " md.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefvo.getID_CareContext()); andStr = " and "; List list = factory.find(hql.toString(),markers,values); if(list != null && list.size() > 0) { dischargeMedicationDetailsVoCollection voColl = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }
public ims.clinical.vo.dischargeMedicationDetailsVo getMedication(ims.core.admin.vo.CareContextRefVo careContextRefvo) { if(careContextRefvo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRefvo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from MedicationDetails md where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " md.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefvo.getID_CareContext()); andStr = " and "; List list = factory.find(hql.toString(),values); if(list != null && list.size() > 0) { dischargeMedicationDetailsVoCollection voColl = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }
public dischargeMedicationDetailsVo getdischargeMedicationDetailsForCareContext(CareContextRefVo careContext) { if(careContext == null || careContext.getID_CareContext() == null) throw new CodingRuntimeException("CareContext is null or id not provided for getdischargeDetailsForCareContext"); DomainFactory factory = getDomainFactory(); List dischargeMedication = factory.find("select md from MedicationDetails as md left join md.careContext as cc where cc.id = :idCareContext",new String[]{"idCareContext"},new Object[]{careContext.getID_CareContext()}); dischargeMedicationDetailsVoCollection medication = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(dischargeMedication); return medication != null && medication.size() > 0 ? (medication.get(0) != null ? medication.get(0) : null) : null; }
public dischargeMedicationDetailsVo getMedication(CareContextRefVo careContextRefvo) { //Todo Put following two lines back in when the MEDS Componetn for STHK is implemented. // EdischargeMedicationComponent impl = (EdischargeMedicationComponent)getDomainImpl(EdischargeMedicationComponentImpl.class); // return impl.getMedication(careContextRefvo); if(careContextRefvo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRefvo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from MedicationDetails md where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " md.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefvo.getID_CareContext()); andStr = " and "; List list = factory.find(hql.toString(),values); if(list != null && list.size() > 0) { dischargeMedicationDetailsVoCollection voColl = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }
public ims.clinical.vo.dischargeMedicationDetailsVo getMedication(ims.core.admin.vo.CareContextRefVo careContextRefvo) { if(careContextRefvo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRefvo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from MedicationDetails md where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " md.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefvo.getID_CareContext()); andStr = " and "; List list = factory.find(hql.toString(),values); if(list != null && list.size() > 0) { dischargeMedicationDetailsVoCollection voColl = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }
public dischargeMedicationDetailsVo getdischargeMedicationDetailsForCareContext(CareContextRefVo careContext) { if(careContext == null || careContext.getID_CareContext() == null) throw new CodingRuntimeException("CareContext is null or id not provided for getdischargeDetailsForCareContext"); DomainFactory factory = getDomainFactory(); List dischargeMedication = factory.find("select md from MedicationDetails as md left join md.careContext as cc where cc.id = :idCareContext",new Object[]{careContext.getID_CareContext()}); dischargeMedicationDetailsVoCollection medication = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(dischargeMedication); return medication != null && medication.size() > 0 ? (medication.get(0) != null ? medication.get(0) : null) : null; }
public dischargeMedicationDetailsVo getMedication(CareContextRefVo careContextRefvo) { //Todo Put following two lines back in when the MEDS Componetn for STHK is implemented. // EdischargeMedicationComponent impl = (EdischargeMedicationComponent)getDomainImpl(EdischargeMedicationComponentImpl.class); // return impl.getMedication(careContextRefvo); if(careContextRefvo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRefvo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from MedicationDetails md where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " md.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefvo.getID_CareContext()); andStr = " and "; List list = factory.find(hql.toString(),values); if(list != null && list.size() > 0) { dischargeMedicationDetailsVoCollection voColl = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }
public ims.clinical.vo.dischargeMedicationDetailsVo getMedication(ims.core.admin.vo.CareContextRefVo careContextRefvo) { if(careContextRefvo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRefvo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from MedicationDetails md where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " md.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefvo.getID_CareContext()); andStr = " and "; List list = factory.find(hql.toString(),values); if(list != null && list.size() > 0) { dischargeMedicationDetailsVoCollection voColl = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }
public dischargeMedicationDetailsVo getdischargeMedicationDetailsForCareContext(CareContextRefVo careContext) { if(careContext == null || careContext.getID_CareContext() == null) throw new CodingRuntimeException("CareContext is null or id not provided for getdischargeDetailsForCareContext"); DomainFactory factory = getDomainFactory(); List dischargeMedication = factory.find("select md from MedicationDetails as md left join md.careContext as cc where cc.id = :idCareContext",new Object[]{careContext.getID_CareContext()}); dischargeMedicationDetailsVoCollection medication = dischargeMedicationDetailsVoAssembler.createdischargeMedicationDetailsVoCollectionFromMedicationDetails(dischargeMedication); return medication != null && medication.size() > 0 ? (medication.get(0) != null ? medication.get(0) : null) : null; }
今天的关于ims.clinical.vo.TTAMedicationAndPharmacyShortVo的实例源码和开源的im源码的分享已经结束,谢谢您的关注,如果想了解更多关于ims.clinical.vo.AdmissionMedicationChangesVo的实例源码、ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码、ims.clinical.vo.ClinicalProblemShortVo的实例源码、ims.clinical.vo.DischargeMedicationDetailsVoCollection的实例源码的相关知识,请在本站进行查询。
本文标签: