private EDischargeSummarySectionStatus getProcStatus(EDischargeSTHKSummaryForProcComponentVo summary) { if(summary == null || summary.getSummaryDetails() == null) return null; for(int i=0; i< summary.getSummaryDetails().size(); i++) { EDischargeSTHKSummaryDetailVo summaryDetails = summary.getSummaryDetails().get(i); if(summaryDetails == null) continue; if(EDischargeSummarySection.OPERATIONS_AND_PROCS.equals(summaryDetails.getSection())) { return summaryDetails.getProgressStatus(); } } return null; }
private EDischargeSTHKSummaryForProcComponentVo populateEDischargeSummary() { EDischargeSTHKSummaryForProcComponentVo summary = form.getLocalContext().getSTHKSummaryVo(); if(summary != null && summary.getSummaryDetails() != null) { for(int i=0; i<summary.getSummaryDetails().size(); i++) { EDischargeSTHKSummaryDetailVo summaryDetails = summary.getSummaryDetails().get(i); if(summaryDetails == null) continue; if(EDischargeSummarySection.OPERATIONS_AND_PROCS.equals(summaryDetails.getSection())) { summaryDetails.setProgressStatus(form.chkComplete().getValue() ? EDischargeSummarySectionStatus.COMPLETED : EDischargeSummarySectionStatus.IN_PROGRESS); } } } if(summary != null) //wdev-13375 summary.validate(); return summary; }
public void saveProcedures(PatientProcedureProcsComponentLiteVoCollection procedures, EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException { DomainFactory factory = getDomainFactory(); if (procedures != null) { for (int i = 0; i < procedures.size(); i++) factory.save(PatientProcedureProcsComponentLiteVoAssembler.extractPatientProcedure(factory, procedures.get(i))); } if(summary != null) //wdev-13375 saveEDischargeSummary(summary); //WDEV-13037 }
public EDischargeSTHKSummaryForProcComponentVo getEDischargeSummary(SummaryRefVo summary) { if(summary == null || summary.getID_Summary() == null) throw new CodingRuntimeException("Can not get EDischargeSummary on nul Id."); return EDischargeSTHKSummaryForProcComponentVoAssembler.create((Summary) getDomainFactory().getDomainObject(Summary.class, summary.getID_Summary())); }
public EDischargeSTHKSummaryForProcComponentVo saveEDischargeSummary(EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException { if(summary == null) throw new CodingRuntimeException("Cannot save a null EDischargeSTHKSummary."); if(!summary.isValidated()) throw new CodingRuntimeException("EDischargeSTHKSummary is not validated."); DomainFactory factory = getDomainFactory(); Summary doSummary = EDischargeSTHKSummaryForProcComponentVoAssembler.extractSummary(factory, summary); factory.save(doSummary); return EDischargeSTHKSummaryForProcComponentVoAssembler.create(doSummary); }