想了解ims.clinical.vo.TTAMedicationAndPharmacyShortVoCollection的实例源码的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于trinit
想了解ims.clinical.vo.TTAMedicationAndPharmacyShortVoCollection的实例源码的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于trinitycore源码分析的相关问题,此外,我们还将为您介绍关于ims.clinical.vo.AdmissionMedicationChangesVoCollection的实例源码、ims.clinical.vo.AMPVoCollection的实例源码、ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码、ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码的新知识。
本文目录一览:- ims.clinical.vo.TTAMedicationAndPharmacyShortVoCollection的实例源码(trinitycore源码分析)
- ims.clinical.vo.AdmissionMedicationChangesVoCollection的实例源码
- ims.clinical.vo.AMPVoCollection的实例源码
- ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码
- ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码
ims.clinical.vo.TTAMedicationAndPharmacyShortVoCollection的实例源码(trinitycore源码分析)
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 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 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()); } }
@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(); }
private void search(boolean manual) throws PresentationLogicException { if (manual) // Get data from screen only when manual searching { // Validate data from screen String errors[] = validateUIRules(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } // Get data into global context form.getGlobalContext().Clinical.setPharmacyApprovalSearchCriteria(populateSearchFilterFromScreen()); } // Clear results form.GrdWorklist().getRows().clear(); // Retrieve data from domain TTAMedicationAndPharmacyShortVoCollection results = domain.listTTAMedicationAndPharmacy(form.getGlobalContext().Clinical.getPharmacyApprovalSearchCriteria()); // If no results were found display message and exit the function if (results == null || results.size() == 0) { // display this message only when manual searching if (manual) engine.showMessage("No results matching search criteria were found."); return; } // display data to screen populateResultsToScreen(results); }
@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(); }
private void search(boolean manual) throws PresentationLogicException { if (manual) // Get data from screen only when manual searching { // Validate data from screen String errors[] = validateUIRules(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } // Get data into global context form.getGlobalContext().Clinical.setPharmacyApprovalSearchCriteria(populateSearchFilterFromScreen()); } // Clear results form.GrdWorklist().getRows().clear(); // Retrieve data from domain TTAMedicationAndPharmacyShortVoCollection results = domain.listTTAMedicationAndPharmacy(form.getGlobalContext().Clinical.getPharmacyApprovalSearchCriteria()); // If no results were found display message and exit the function if (results == null || results.size() == 0) { // display this message only when manual searching if (manual) engine.showMessage("No results matching search criteria were found."); return; } // display data to screen populateResultsToScreen(results); }
@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(); }
private void search(boolean manual) throws PresentationLogicException { if (manual) // Get data from screen only when manual searching { // Validate data from screen String errors[] = validateUIRules(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } // Get data into global context form.getGlobalContext().Clinical.setPharmacyApprovalSearchCriteria(populateSearchFilterFromScreen()); } // Clear results form.GrdWorklist().getRows().clear(); // Retrieve data from domain TTAMedicationAndPharmacyShortVoCollection results = domain.listTTAMedicationAndPharmacy(form.getGlobalContext().Clinical.getPharmacyApprovalSearchCriteria()); // If no results were found display message and exit the function if (results == null || results.size() == 0) { // display this message only when manual searching if (manual) engine.showMessage("No results matching search criteria were found."); return; } // display data to screen populateResultsToScreen(results); }
ims.clinical.vo.AdmissionMedicationChangesVoCollection的实例源码
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.AMPVoCollection的实例源码
private void searchAMP() { try { AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue()); form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(),DMDType.AMP); } catch (DomainInterfaceException e) { engine.showMessage(e.getMessage(),"Error",MessageButtons.OK,MessageIcon.ERROR); } }
/** * Search for AMP * */ public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException { if(name == null || name.trim().length() == 0) return null; return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'")); }
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException { if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP) throw new DomainInterfaceException("Invalid VMP reference"); AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId())); if(result != null) return result.toIDMDValueArray(); return new IDMDValue[] {}; }
private void searchAMP() { try { AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue()); form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(),MessageIcon.ERROR); } }
/** * Search for AMP * */ public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException { if(name == null || name.trim().length() == 0) return null; return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'")); }
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException { if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP) throw new DomainInterfaceException("Invalid VMP reference"); AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId())); if(result != null) return result.toIDMDValueArray(); return new IDMDValue[] {}; }
public AMPVo getAMP(String ampProductId) throws DomainInterfaceException { if(ampProductId == null) throw new DomainInterfaceException("Invalid AMP reference"); AMPVoCollection ampCol = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP amp WHERE amp.productIdentifier = '" + ampProductId + "'")); if (ampCol != null && ampCol.size() > 0) return ampCol.get(0); else return null; }
private void searchAMP() { try { AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue()); form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(),MessageIcon.ERROR); } }
/** * Search for AMP * */ public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException { if(name == null || name.trim().length() == 0) return null; return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'")); }
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException { if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP) throw new DomainInterfaceException("Invalid VMP reference"); AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId())); if(result != null) return result.toIDMDValueArray(); return new IDMDValue[] {}; }
ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码
private void displayProcAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; if (form.ctnSummary().GrdProcedure().getValue() != null) { String headerTooltip = ""; String association = ""; if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue()); if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo) { association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue())); headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip(); } } markGridAssociations(voCollDiAsociations,Boolean.FALSE,association,headerTooltip); } }
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation) { if (voDIAssociation != null) { String[] errors = voDIAssociation.validate(); if (errors != null) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(voDIAssociation); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } } return true; }
private void setPrimaryDiagnosis(ClinicalDIAssociationVoCollection voDIAssociation) { PatientDiagnosisVo voPatientDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo(); for (int i = 0; voPatientDiagnosis != null && voDIAssociation != null && i < voDIAssociation.size(); i++) { if (voDIAssociation.get(i).getPrimDiagnosis() == null || voDIAssociation.get(i).getPrimDiagnosis().getID_PatientDiagnosis() == null) voDIAssociation.get(i).setPrimDiagnosis(voPatientDiagnosis); } }
private void displayProcAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; if (form.ctnSummary().GrdProcedure().getValue() != null) { String headerTooltip = ""; String association = ""; if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue()); if(form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo) { association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue())); headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip(); } } markGridAssociations(voCollDiAsociations,headerTooltip); } }
private boolean save() { ClinicalDIAssociationVoCollection data = populateData(); data = removeUnsavedInactiveRecordsFromCache(data); String[] errors = data.validate(); if(errors != null && errors.length > 0) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(data); } catch (StaleObjectException e) { //WDEV-3112 form.getGlobalContext().Core.setYesNoDialogMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); engine.open(form.getForms().Core.OkDialog,"Data Warning"); return false; } return true; }
private void addOrUpdateAssociationRecord(ClinicalDIAssociationVoCollection newResult,ClinicalDIAssociationVoCollection result,ValueObject value,CDIAssociationDescription relationship) { if(value != null) { boolean found = false; for(int y = 0; y < result.size(); y++) { ClinicalDIAssociationVo record = result.get(y); ValueObject assocRec = null; if(record.getAssocDiagnosisIsNotNull()) assocRec = record.getAssocDiagnosis(); else if(record.getAssocProcedureIsNotNull()) assocRec = record.getAssocProcedure(); else if(record.getAssocProblemIsNotNull()) assocRec = record.getAssocProblem(); if(assocRec != null && assocRec.equals(value)) { //When relationship is removed we inactivate the record if(relationship == null) record.setIsActive(new Boolean(false)); else record.setIsActive(new Boolean(true)); record.setAssociationDescription(relationship); found = true; break; } } if(!found && relationship != null) { ClinicalDIAssociationVo newRecord = getNewAssociationRecord(value,relationship); newResult.add(newRecord); } } }
private ClinicalDIAssociationVoCollection removeUnsavedInactiveRecordsFromCache(ClinicalDIAssociationVoCollection data) { boolean removed = true; while(removed) { removed = false; for (int i = 0; data != null && i < data.size(); i++) { boolean activeRecord = data.get(i).getIsActive() == null || data.get(i).getIsActive().booleanValue() == false; boolean recordSaved = data.get(i).getID_ClinicalcdiassociationsIsNotNull(); if(activeRecord && recordSaved == false) { data.remove(i); removed = true; break; } } } return data; }
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation) { if(voDIAssociation != null) { String[] errors = voDIAssociation.validate(); if(errors != null) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(voDIAssociation); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } } return true; }
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException { if(list == null) throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection"); if(!list.isValidated()) throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated."); DomainFactory factory = getDomainFactory(); ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection(); for(int x = 0; x < list.size(); x++) { if(list.get(x) != null) { factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x))); } } return result; }
private void displayProcAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; if (form.ctnSummary().GrdProcedure().getValue() != null) { String headerTooltip = ""; String association = ""; if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue()); if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo) { association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue())); headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip(); } } markGridAssociations(voCollDiAsociations,headerTooltip); } }
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation) { if (voDIAssociation != null) { String[] errors = voDIAssociation.validate(); if (errors != null) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(voDIAssociation); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } } return true; }
private void displayProcAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; if (form.ctnSummary().GrdProcedure().getValue() != null) { String headerTooltip = ""; String association = ""; if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue()); if(form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo) { association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue())); headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip(); } } markGridAssociations(voCollDiAsociations,headerTooltip); } }
private boolean save() { ClinicalDIAssociationVoCollection data = populateData(); data = removeUnsavedInactiveRecordsFromCache(data); String[] errors = data.validate(); if(errors != null && errors.length > 0) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(data); } catch (StaleObjectException e) { //WDEV-3112 form.getGlobalContext().Core.setYesNoDialogMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); engine.open(form.getForms().Core.OkDialog,"Data Warning"); return false; } return true; }
private ClinicalDIAssociationVoCollection removeUnsavedInactiveRecordsFromCache(ClinicalDIAssociationVoCollection data) { boolean removed = true; while(removed) { removed = false; for (int i = 0; data != null && i < data.size(); i++) { boolean activeRecord = data.get(i).getIsActive() == null || data.get(i).getIsActive().booleanValue() == false; boolean recordSaved = data.get(i).getID_ClinicalcdiassociationsIsNotNull(); if(activeRecord && recordSaved == false) { data.remove(i); removed = true; break; } } } return data; }
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation) { if(voDIAssociation != null) { String[] errors = voDIAssociation.validate(); if(errors != null) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(voDIAssociation); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } } return true; }
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException { if(list == null) throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection"); if(!list.isValidated()) throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated."); DomainFactory factory = getDomainFactory(); ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection(); for(int x = 0; x < list.size(); x++) { if(list.get(x) != null) { factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x))); } } return result; }
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation) { if(voDIAssociation != null) { String[] errors = voDIAssociation.validate(); if(errors != null) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(voDIAssociation); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } } return true; }
private void displayProcAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; if (form.ctnSummary().GrdProcedure().getValue() != null) { String headerTooltip = ""; String association = ""; if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue()); if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo) { association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue())); headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip(); } } markGridAssociations(voCollDiAsociations,headerTooltip); } }
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation) { if (voDIAssociation != null) { String[] errors = voDIAssociation.validate(); if (errors != null) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(voDIAssociation); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } } return true; }
private void displayProcAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; if (form.ctnSummary().GrdProcedure().getValue() != null) { String headerTooltip = ""; String association = ""; if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue()); if(form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo) { association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue())); headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip(); } } markGridAssociations(voCollDiAsociations,headerTooltip); } }
private boolean save() { ClinicalDIAssociationVoCollection data = populateData(); data = removeUnsavedInactiveRecordsFromCache(data); String[] errors = data.validate(); if(errors != null && errors.length > 0) { engine.showErrors(errors); return false; } try { domain.saveClinicalDiAssociation(data); } catch (StaleObjectException e) { //WDEV-3112 form.getGlobalContext().Core.setYesNoDialogMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); engine.open(form.getForms().Core.OkDialog,"Data Warning"); return false; } return true; }
private ClinicalDIAssociationVoCollection removeUnsavedInactiveRecordsFromCache(ClinicalDIAssociationVoCollection data) { boolean removed = true; while(removed) { removed = false; for (int i = 0; data != null && i < data.size(); i++) { boolean activeRecord = data.get(i).getIsActive() == null || data.get(i).getIsActive().booleanValue() == false; boolean recordSaved = data.get(i).getID_ClinicalcdiassociationsIsNotNull(); if(activeRecord && recordSaved == false) { data.remove(i); removed = true; break; } } } return data; }
private void displayDiagCompAssociationsOnSummary() { ClinicalDIAssociationVoCollection voCollDiAsociations = null; ValueObject value = form.ctnSummary().GrdDiagnosis().getValue(); if (value != null) { String headerToolTip = ""; String association = ""; if (value instanceof PatientProblemRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientProblem((PatientProblemRefVo) value); if (value instanceof PatientProblemVo) { association = ((PatientProblemVo) value).getPatientProblem(); headerToolTip = ((PatientProblemVo) value).getDiAssociationTooltip(); } } else if (value instanceof PatientDiagnosisRefVo) { voCollDiAsociations = domain.listClinicalDiAssociationByPatientDiagnosis((PatientDiagnosisRefVo) value); if (value instanceof PatientDiagnosisShortVo) { association = getDiagnosisText((PatientDiagnosisShortVo) value); headerToolTip = ((PatientDiagnosisShortVo) value).getTooltipForDiAssociation(); } } markGridAssociations(voCollDiAsociations,Boolean.TRUE,headerToolTip); } }
private void saveCDIAssociations() { ClinicalDIAssociationVoCollection voDIAssociation = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection(); if (voDIAssociation != null && voDIAssociation.size() > 0) { setPrimaryDiagnosis(voDIAssociation); saveDIAssociations(voDIAssociation); } }
private boolean isAtLeastOneComplication() { ClinicalDIAssociationVoCollection voColl = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection(); for (int i = 0; voColl != null && i < voColl.size(); i++) { if (voColl.get(i).getAssociationDescription() != null && voColl.get(i).getAssociationDescription().equals(CDIAssociationDescription.ISACOMPLICATIONOF)) return true; } return false; }
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { if (save() == false) return; ClinicalDIAssociationVoCollection voDIAssociation = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection(); if (voDIAssociation != null && voDIAssociation.size() > 0) { setPrimaryProcedure(voDIAssociation); saveDIAssociations(voDIAssociation); } open(); form.setMode(FormMode.VIEW); }
private void setPrimaryProcedure(ClinicalDIAssociationVoCollection voDIAssociation) { PatientProcedureVo voPatientProcedure = form.getLocalContext().getPatientProcedureVo(); for (int i = 0; voPatientProcedure != null && voDIAssociation != null && i < voDIAssociation.size(); i++) { if (voDIAssociation.get(i).getPrimProcedure() == null || voDIAssociation.get(i).getPrimProcedure().getID_PatientProcedure() == null) voDIAssociation.get(i).setPrimProcedure(voPatientProcedure); } }
private ClinicalDIAssociationVoCollection getCachedClinicalDIAssociations() { ClinicalDIAssociationVoCollection cachedRecords = form.getLocalContext().getRecords(); //When the cache (initially the listed records) are empty and the dialog is not opened from //Patient Summary then return the records from the context boolean isCacheEmpty = cachedRecords == null || cachedRecords.size() == 0; if(!isDialogopenedFromPatientSummary() && isCacheEmpty) return form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection(); return cachedRecords; }
private void setChangedRecordIntoCache(IControlComparable control) { if(form.getMode().equals(FormMode.EDIT)) { ClinicalDIAssociationVoCollection voColl = populateData(control); if(voColl != null) form.getLocalContext().setRecords(voColl); } }
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { if(save()) { ClinicalDIAssociationVoCollection voDIAssociation = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection(); if(voDIAssociation != null && voDIAssociation.size() > 0) { setPrimaryProblem(voDIAssociation); saveDIAssociations(voDIAssociation); } open(); } }
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.TTAMedicationAndPharmacyShortVoCollection的实例源码和trinitycore源码分析的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于ims.clinical.vo.AdmissionMedicationChangesVoCollection的实例源码、ims.clinical.vo.AMPVoCollection的实例源码、ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码、ims.clinical.vo.ClinicalProblemShortVoCollection的实例源码的相关信息,请在本站寻找。
本文标签: