private void populateGrdDPP(PlanOfCareHistoryVoCollection list) { if (list != null) { NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list); helper.sortDesc(); ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdDPPRow row = null; for(int i=0; i< list.size(); i++) { PlanOfCareHistoryVo voHistoryItem = list.get(i); row = form.lyrPOC().tabPocDetails().grdDPP().getRows().newRow(); if (voHistoryItem.getAuthoringInformation().getAuthoringDateTimeIsNotNull()) row.setColDateTime(voHistoryItem.getAuthoringInformation().getAuthoringDateTime().toString()); if (voHistoryItem.getAuthoringInformation().getAuthoringHcpIsNotNull()) row.setColHcps(voHistoryItem.getAuthoringInformation().getAuthoringHcp().toString()); if (voHistoryItem.getAnswerTextIsNotNull()) row.setColDPP(voHistoryItem.getAnswerText()); row.setBackColor(voHistoryItem.getLevelOfIntervention()); row.setValue(voHistoryItem); } } }
public PlanOfCareHistoryVoCollection listDailyPatientProgressHistory(CareContextRefVo voCareContextRef, PlanOfCareRefVo record) { return PlanOfCareHistoryVoAssembler.createPlanOfCareHistoryVoCollectionFromPlanOfCareHistory( getDomainFactory().find("select answerHistory from PlanOfCare poc where poc.careContext.id = :careContext and poc.id = :pocID", new String[] {"careContext","pocID"}, new Object[] {voCareContextRef.getID_CareContext(), record.getID_PlanOfCare()})); }