private void openPatientDiagnoses() { PatientDiagnosisListVoCollection voColl = domain.listCancerDiagnosisByPatient(form.getGlobalContext().Core.getPatientShort()); for (int i=0; i < voColl.size(); i++) { PatientDiagnosisListVo voDiagnosis = voColl.get(i); if (voDiagnosis.getDiagnosisIsNotNull() || voDiagnosis.getDiagnosisDescriptionIsNotNull()) { grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow(); row.setValue(voDiagnosis); row.setcolItems(voDiagnosis.getDiagnosisDescription()); row.setColumnSelect(false); } } }
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareForCancerDiagnosis(EpisodeOfCareRefVo episodeOfCareRefVo) { DomainFactory factory = getDomainFactory(); String hql = new String(); hql = " from PatientDiagnosis patdiag "; StringBuffer condStr = new StringBuffer(); ArrayList<String> markers = new ArrayList<String>(); ArrayList<Comparable> values = new ArrayList<Comparable>(); String andStr = " "; condStr.append(andStr + " patdiag.careContext.episodeOfCare.id = :episodeId"); markers.add("episodeId"); values.add(episodeOfCareRefVo.getID_EpisodeOfCare()); andStr = " and "; condStr.append(andStr + " patdiag.isCancerDiagnosis = :isCancerDiagnosis "); markers.add("isCancerDiagnosis"); values.add(Boolean.TRUE); hql += " where "; hql += condStr.toString(); return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort(); }
@Override protected void onFormOpen(Object[] args) throws PresentationLogicException { if (args!=null && args.length>1 && args[0]!=null && args[0] instanceof CareContextLiteVo && args[1]!=null && args[1] instanceof PatientListVo) { form.getLocalContext().setCurrentCareContext((CareContextLiteVo) args[0]); PatientDiagnosisListVoCollection colldiagnosis = domain.listDiagnosis(form.getLocalContext().getCurrentCareContext(),(PatientListVo)args[1]); populateGrid(colldiagnosis); updateControlState(); } }
private void populateGrid(PatientDiagnosisListVoCollection colldiagnosis) { if (colldiagnosis==null || colldiagnosis.size()==0) return; for (int i=0;i<colldiagnosis.size();i++) { addRowToGrid(colldiagnosis.get(i)); } }
private PatientDiagnosisListVoCollection populateDataFromScreen() { PatientDiagnosisListVoCollection collDiagnosisSelected = new PatientDiagnosisListVoCollection(); for (int i=0;i<form.grdDiagnosis().getRows().size();i++) { if (form.grdDiagnosis().getRows().get(i).getcolSelect()) collDiagnosisSelected.add(form.grdDiagnosis().getRows().get(i).getValue()); } return collDiagnosisSelected; }
private void populateDiagnosesGrid() { form.grdDiagnoses().getRows().clear(); PatientDiagnosisListVoCollection voCollDiags = domain.listDiagnosisComplicationsForReferral(form.getLocalContext().getCurrentCareContext()); if(voCollDiags != null) { for(int i=0;i<voCollDiags.size();i++) { grdDiagnosesRow row = form.grdDiagnoses().getRows().newRow(); if (voCollDiags.get(i).getDiagnosedDateIsNotNull()) row.setColDate(voCollDiags.get(i).getDiagnosedDate().toString()); if(voCollDiags.get(i).getDiagnosisDescriptionIsNotNull()) { row.setColDiag(voCollDiags.get(i).getDiagnosisDescription()); row.setTooltipForColDiag(voCollDiags.get(i).getDiagnosisDescription()); } if(voCollDiags.get(i).getDiagnosisDescriptionIsNotNull()) row.setColDiag(voCollDiags.get(i).getDiagnosisDescription()); row.setColPrimary(isPrimaryDiagnosisActive(voCollDiags.get(i)) ? form.getImages().Core.Pin : null); if (voCollDiags.get(i).getIsPMHIsNotNull() && voCollDiags.get(i).getIsPMH()) row.setColPMH(form.getImages().Core.Add); else row.setColPMH(null); row.setBackColor(Color.Orange); row.setValue(voCollDiags.get(i)); } } }
public void open() throws PresentationLogicException { clearGlobalContextVariables(); PatientDiagnosisListVoCollection voPatDiagColl = null; if (form.chkExcludeResolved().getValue()) { voPatDiagColl = domain.listDiagnosisComplicationsExcludeResolvedByPatient(form.getGlobalContext().Core.getPatientShort()); } else { voPatDiagColl = domain.listDiagnosisComplicationsByPatient(form.getGlobalContext().Core.getPatientShort()); } populateDiagnosisGrid(voPatDiagColl); clearInstanceControls(); form.ctnDetails().imbStatus().setTooltip("No history"); //wdev-17357 form.ctnDetails().setCollapsed(true); setFormMode(FormMode.VIEW); reselectSavedRecord(); //WDEV-14033 updateControlsState(); updateContextMenus(); }
private void populateDiagnosisGrid(PatientDiagnosisListVoCollection voPatDiagColl) { form.grdDiagnosis().getRows().clear(); if (voPatDiagColl != null) { for (int i = 0; i < voPatDiagColl.size(); i++) { GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow(); PatientDiagnosisListVo patientDiagnosisListVo = voPatDiagColl.get(i); setPatientDiagnosisRowData(row, patientDiagnosisListVo); } } }
private void populatePatientDiagnosis(DiagnosisListVoCollection rcColl, PatientDiagnosisListVoCollection collPatientDiagnosisListVo) { form.getLocalContext().setPatientDiagnosisListVoCollection(collPatientDiagnosisListVo); for (int i=0; i < rcColl.size(); i++) { populatePatientDiagnosisControls(rcColl.get(i), collPatientDiagnosisListVo); } }
private PatientDiagnosisVo searchExistingDiagnoses(grdChecklistRow row) { PatientDiagnosisListVoCollection collPatientDiagnosisListVo = form.getLocalContext().getPatientDiagnosisListVoCollection(); if(collPatientDiagnosisListVo!=null) for(int i=0; i < collPatientDiagnosisListVo.size(); i++) { //if was linked if(collPatientDiagnosisListVo.get(i).getDiagnosisIsNotNull() && collPatientDiagnosisListVo.get(i).getDiagnosis().getDiagnosisName().equals(row.getColDiagnosis()) && collPatientDiagnosisListVo.get(i).getClinicalContact().getID_ClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact())) { return new PatientDiagnosisVo(); } else { PatientDiagnosisVo diagnosisVo = domain.getDiagnosisVo(collPatientDiagnosisListVo.get(i)); if (collPatientDiagnosisListVo.get(i).getDiagnosisIsNotNull() && (!(collPatientDiagnosisListVo.get(i).getDiagnosisIsNotNull() && collPatientDiagnosisListVo.get(i).getDiagnosis().getDiagnosisName().equals(row.getColDiagnosis())) && row.getColDiagnosis().equals((diagnosisVo.getDiagnosis().getDiagnosisName())))) { return diagnosisVo; } else if (collPatientDiagnosisListVo.get(i).getDiagnosisIsNotNull() && ((collPatientDiagnosisListVo.get(i).getDiagnosisIsNotNull() && collPatientDiagnosisListVo.get(i).getDiagnosis().getDiagnosisName().equals(row.getColDiagnosis())) && row.getColDiagnosis().equals((diagnosisVo.getDiagnosis().getDiagnosisName())) && !collPatientDiagnosisListVo.get(i).getClinicalContact().getID_ClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact()))) { return diagnosisVo; } } } return new PatientDiagnosisVo(); }
private void populateDiagnosesGrid() { form.lyrTabs().tabInpatientCoding().grdDiagnoses().getRows().clear(); PatientDiagnosisListVoCollection voCollDiags = domain.listDiagnosisComplicationsForReferral(form.getLocalContext().getCurrentCareContext()); if (voCollDiags != null) { for (int i = 0; i < voCollDiags.size(); i++) { grdDiagnosesRow row = form.lyrTabs().tabInpatientCoding().grdDiagnoses().getRows().newRow(); if (voCollDiags.get(i).getDiagnosedDateIsNotNull()) row.setColDate(voCollDiags.get(i).getDiagnosedDate().toString()); if (voCollDiags.get(i).getDiagnosisDescriptionIsNotNull()) { row.setColDiag(voCollDiags.get(i).getDiagnosisDescription()); row.setTooltipForColDiag(voCollDiags.get(i).getDiagnosisDescription()); } if (voCollDiags.get(i).getDiagnosisDescriptionIsNotNull()) row.setColDiag(voCollDiags.get(i).getDiagnosisDescription()); row.setColPrimary(isPrimaryDiagnosisActive(voCollDiags.get(i)) ? form.getImages().Core.Pin : null); if (voCollDiags.get(i).getIsPMHIsNotNull() && voCollDiags.get(i).getIsPMH()) row.setColPMH(form.getImages().Core.Add); else row.setColPMH(null); row.setBackColor(Color.Orange); row.setValue(voCollDiags.get(i)); } } }
private void populateOutpatientDiagnosesGrid() { form.lyrTabs().tabOutpatientCoding().grdDiag().getRows().clear(); PatientDiagnosisListVoCollection voCollDiags = domain.listDiagnosisComplicationsForReferral(form.getLocalContext().getCurrentCareContext()); if (voCollDiags != null) { for (int i = 0; i < voCollDiags.size(); i++) { grdDiagRow row = form.lyrTabs().tabOutpatientCoding().grdDiag().getRows().newRow(); if (voCollDiags.get(i).getDiagnosedDateIsNotNull()) row.setColDate(voCollDiags.get(i).getDiagnosedDate().toString()); if (voCollDiags.get(i).getDiagnosisDescriptionIsNotNull()) { row.setColDiag(voCollDiags.get(i).getDiagnosisDescription()); row.setTooltipForColDiag(voCollDiags.get(i).getDiagnosisDescription()); } if (voCollDiags.get(i).getDiagnosisDescriptionIsNotNull()) row.setColDiag(voCollDiags.get(i).getDiagnosisDescription()); row.setColPrimary(isPrimaryDiagnosisActive(voCollDiags.get(i)) ? form.getImages().Core.Pin : null); if (voCollDiags.get(i).getIsPMHIsNotNull() && voCollDiags.get(i).getIsPMH()) row.setColPMH(form.getImages().Core.Add); else row.setColPMH(null); row.setBackColor(Color.Orange); row.setValue(voCollDiags.get(i)); } } }
public PatientDiagnosisListVoCollection listDiagnosisListVoByPatient(PatientRefVo patient) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listDiagnosisComplicationsByPatient(patient); }
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareAndUnresolved(EpisodeOfCareRefVo episodeOfCareRefVo, PatientRefVo patient) { List list = listDiagnComplicationEpisodeOfCareAndUnresolved(episodeOfCareRefVo, patient); return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort(); }
public PatientDiagnosisListVoCollection listDiagnosisComplicationsExcludeResolvedByPatient(PatientRefVo voPatRef) { return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, true)).sort(); }