public PatientDiagnosisShortVoCollection listEpisodeOfCareDiagnoses(EpisodeOfCareRefVo episodeOfCareRefVo) { DomainFactory factory = getDomainFactory(); String hql = new String(); hql = " from PatientDiagnosis patdiag "; StringBuffer condStr = new StringBuffer(); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); String andStr = " "; condStr.append(andStr + " patdiag.careContext.episodeOfCare.id = :episodeId"); markers.add("episodeId"); values.add(episodeOfCareRefVo.getID_EpisodeOfCare()); andStr = " and "; hql += " where "; hql += condStr.toString(); return PatientDiagnosisShortVoAssembler.createPatientDiagnosisShortVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort(); }
private void loadDiagnosis() { PatientDiagnosisShortVoCollection list = domain.listDiagnosis(form.getGlobalContext().Core.getPatientShort()); if(list != null) { for(int x = 0; x < list.size(); x++) { PatientDiagnosisShortVo patientDiagnosisShortVo = list.get(x); if(patientDiagnosisShortVo != null && patientDiagnosisShortVo.getDiagnosisDescriptionIsNotNull()) { if(!patientDiagnosisShortVo.equals(form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation())) { addNewItem(patientDiagnosisShortVo); } } } } }
private void loadComplications() { PatientDiagnosisShortVoCollection list = domain.listComplications(form.getGlobalContext().Core.getPatientShort()); if(list != null) { for(int x = 0; x < list.size(); x++) { if(list.get(x) != null && list.get(x).getDiagnosisDescriptionIsNotNull()) { if(!list.get(x).equals(form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation())) { addNewItem(list.get(x), true); } } } } }
private void getDiagnosisRecords() { PatientDiagnosisShortVoCollection voCollDiagnosis = domain.listEpisodeOfCareDiagnoses(form.getGlobalContext().Core.getEpisodeofCareShort()); if (voCollDiagnosis == null || voCollDiagnosis.size() == 0) { // engine.showMessage("No diagnosis found!"); return; } displayDiagnosisCollection(voCollDiagnosis); }
private void displayDiagnosisCollection(PatientDiagnosisShortVoCollection voCollDiagnosis) { if (voCollDiagnosis != null) { GenForm.grdDiagnosisRow dRow = null; for (int i = 0; i < voCollDiagnosis.size(); i++) { dRow = form.grdDiagnosis().getRows().newRow(); dRow.setColDiagnosis(voCollDiagnosis.get(i).getDiagnosisDescription()); dRow.setValue(voCollDiagnosis.get(i)); } } }
private PatientDiagnosisShortVoCollection listDiagnosesForPatient(PatientRefVo patrefvo, boolean boolDiagnosis, boolean boolComplication) { DomainFactory factory = getDomainFactory(); String hql = new String(); hql = " from PatientDiagnosis patdiag "; StringBuffer condStr = new StringBuffer(); String andStr = " "; ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); condStr.append(andStr + " patdiag.careContext.episodeOfCare.careSpell.patient.id = :patientId"); markers.add("patientId"); values.add(patrefvo.getID_Patient()); andStr = " and "; if ( (!boolComplication) && (boolDiagnosis) )//List all Diagnosis { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.FALSE); } else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.TRUE); } hql += " where "; hql += condStr.toString(); return PatientDiagnosisShortVoAssembler.createPatientDiagnosisShortVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort(); }
private PatientDiagnosisShortVoCollection listDiagnosesForContact(ClinicalContactRefVo clinicalcontactrefVo, boolean boolDiagnosis, boolean boolComplication) { DomainFactory factory = getDomainFactory(); String hql = new String(); hql = " from PatientDiagnosis patdiag "; StringBuffer condStr = new StringBuffer(); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); String andStr = " "; condStr.append(andStr + " patdiag.clinicalContact.id = :contactId"); markers.add("contactId"); values.add(clinicalcontactrefVo.getID_ClinicalContact()); andStr = " and "; if ( (!boolComplication) && (boolDiagnosis) )//List all Diagnosis { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.FALSE); } else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.TRUE); } hql += " where "; hql += condStr.toString(); return PatientDiagnosisShortVoAssembler.createPatientDiagnosisShortVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort(); }
private PatientDiagnosisShortVoCollection listDiagnosesForCareContext(CareContextRefVo clinicalcontactrefVo, boolean boolDiagnosis, boolean boolComplication) { DomainFactory factory = getDomainFactory(); String hql = new String(); hql = " from PatientDiagnosis patdiag "; StringBuffer condStr = new StringBuffer(); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); String andStr = " "; condStr.append(andStr + " patdiag.careContext.id = :carecontextId"); markers.add("carecontextId"); values.add(clinicalcontactrefVo.getID_CareContext()); andStr = " and "; if ( (!boolComplication) && (boolDiagnosis) )//List all Diagnosis { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.FALSE); } else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.TRUE); } hql += " where "; hql += condStr.toString(); return PatientDiagnosisShortVoAssembler.createPatientDiagnosisShortVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort(); }
private PatientDiagnosisShortVoCollection listDiagnosesForCareSpell(CareSpellRefVo careSpellRefVo, boolean boolDiagnosis, boolean boolComplication) { DomainFactory factory = getDomainFactory(); String hql = new String(); hql = " from PatientDiagnosis patdiag "; StringBuffer condStr = new StringBuffer(); ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); String andStr = " "; condStr.append(andStr + " patdiag.episodeOfCare.careSpell.id = :carespellId"); markers.add("carespellId"); values.add(careSpellRefVo.getID_CareSpell()); andStr = " and "; if ( (!boolComplication) && (boolDiagnosis) )//List all Diagnosis { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.FALSE); } else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications { condStr.append(andStr + " patdiag.isComplication = :complication"); markers.add("complication"); values.add(Boolean.TRUE); } hql += " where "; hql += condStr.toString(); return PatientDiagnosisShortVoAssembler.createPatientDiagnosisShortVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort(); }
private PatientNoDiagInfoForCCVo populatePatientNoDiagInfoForRie(CareContextShortVo careContext, EpisodeofCareShortVo episodeofCareShort, PatientShort patientShort) { if (careContext == null) return null; PatientDiagnosisShortVoCollection diagnoses = domain.listEpisodeOfCareDiagnoses(form.getGlobalContext().Core.getEpisodeofCareShort()); if (diagnoses != null && diagnoses.size() > 0) return null; PatientNoDiagInfoForCCVo patientNoDiagInfo = domain.getPatientNoDiagInfoForCareContext(form.getGlobalContext().Core.getCurrentCareContext()); if (patientNoDiagInfo != null) { AuthoringInformationVo authoringInformation = new AuthoringInformationVo(); authoringInformation.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser()); authoringInformation.setAuthoringDateTime(new DateTime()); patientNoDiagInfo.setAuthoringInformation(authoringInformation); patientNoDiagInfo.setCareContext(careContext); patientNoDiagInfo.setPatient(patientShort); patientNoDiagInfo.setDiagnosisStatus(PatientDiagnosisStatus.NOLONGERRELEVANT); } return patientNoDiagInfo; }
public PatientDiagnosisShortVoCollection listPatientDiagnoses(PatientRefVo patrefvo) { return listDiagnosesForPatient(patrefvo, true, false); }
public PatientDiagnosisShortVoCollection listDiagnosis(PatientRefVo patient) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listPatientDiagnoses(patient); }
private void initialiseClinicalData() { form.lyrDetails().tabRecipents().treCDI().clear(); //patient problems PatientProblemVoCollection listProblems = domain.listProblemsByPatient(form.getGlobalContext().Core.getPatientShort()); TreeNode parent = form.lyrDetails().tabRecipents().treCDI().getNodes().add(problemsString, problemsString); parent.setCollapsedImage(form.getImages().COE.BlueViolet); parent.setExpandedImage(form.getImages().COE.BlueViolet); parent.setExpanded(true); parent.setCheckBoxVisible(false); for (int i = 0; i < listProblems.size(); i++) { PatientProblemVo problem = listProblems.get(i); parent.getNodes().add(problem, problem.getPatientProblem()); } //patient diagnosis PatientDiagnosisShortVoCollection listDiagnosis = domain.listDiagnosisComplicationsByPatient(form.getGlobalContext().Core.getPatientShort()); parent = form.lyrDetails().tabRecipents().treCDI().getNodes().add(diagnosisString, diagnosisString); parent.setCollapsedImage(form.getImages().COE.Blue); parent.setExpandedImage(form.getImages().COE.Blue); parent.setExpanded(true); parent.setCheckBoxVisible(false); for (int i = 0; i < listDiagnosis.size(); i++) { PatientDiagnosisShortVo diagnosis = listDiagnosis.get(i); parent.getNodes().add(diagnosis, diagnosis.getDiagnosisDescription()); } //patient procedures PatientProcedureShortVoCollection listProcedures = domain.listProceduresByPatient(form.getGlobalContext().Core.getPatientShort()); parent = form.lyrDetails().tabServices().treProcedure().getNodes().add(proceduresString, proceduresString); parent.setCollapsedImage(form.getImages().COE.DarkCyan); parent.setExpandedImage(form.getImages().COE.DarkCyan); parent.setExpanded(true); parent.setCheckBoxVisible(false); for (int i = 0; i < listProcedures.size(); i++) { PatientProcedureShortVo procedure = listProcedures.get(i); parent.getNodes().add(procedure, procedure.getProcedureDescription()); } }
public PatientDiagnosisShortVoCollection listDiagnosisComplicationsCareContext(CareContextRefVo careContextRefVo) { PatientSummary intf = (PatientSummary) getDomainImpl(PatientSummaryImpl.class); return intf.listDiagnosisComplicationsCareContext(careContextRefVo); }
public PatientDiagnosisShortVoCollection listDiagnosisComplicationsByPatient(PatientRefVo patrefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listDiagnosisComplicationsPatient(patrefVo); }
public PatientDiagnosisShortVoCollection listDiagnosisComplicationsPatient(PatientRefVo patrefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listDiagnosisComplicationsPatient(patrefVo); }
public PatientDiagnosisShortVoCollection listPatientComplications(PatientRefVo patrefvo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listPatientComplications(patrefvo); }
public PatientDiagnosisShortVoCollection listPatientDiagnoses(PatientRefVo patrefvo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listPatientDiagnoses(patrefvo); }
public PatientDiagnosisShortVoCollection listContactComplications(ClinicalContactRefVo clinicalcontactrefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listContactComplications(clinicalcontactrefVo); }
public PatientDiagnosisShortVoCollection listContactDiagnoses(ClinicalContactRefVo clinicalcontactrefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listContactDiagnoses(clinicalcontactrefVo); }
public PatientDiagnosisShortVoCollection listDiagnosisComplicationsContact(ClinicalContactRefVo clinicalcontactrefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listDiagnosisComplicationsContact(clinicalcontactrefVo); }
public PatientDiagnosisShortVoCollection listCareContextComplications(CareContextRefVo careContextRefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listCareContextComplications(careContextRefVo); }
public PatientDiagnosisShortVoCollection listCareContextDiagnoses(CareContextRefVo careContextRefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listCareContextDiagnoses(careContextRefVo); }
public PatientDiagnosisShortVoCollection listEpisodeOfCareComplications(EpisodeOfCareRefVo episodeOfCareRefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listEpisodeOfCareComplications(episodeOfCareRefVo); }
public PatientDiagnosisShortVoCollection listEpisodeOfCareDiagnoses(EpisodeOfCareRefVo episodeOfCareRefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listEpisodeOfCareDiagnoses(episodeOfCareRefVo); }
public PatientDiagnosisShortVoCollection listDiagnosisComplicationsCareContext(CareContextRefVo careContextRefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listDiagnosisComplicationsCareContext(careContextRefVo); }
public PatientDiagnosisShortVoCollection listDiagnosisComplicationEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo) { DiagnosisComplications impl = (DiagnosisComplications) getDomainImpl(DiagnosisComplicationsImpl.class); return impl.listDiagnosisComplicationEpisodeOfCare(episodeOfCareRefVo); }