protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { form.grdEpisodeOfCareHistory().getRows().clear(); EpisodeOfCareSmallVo tempVo = form.getGlobalContext().Clinical.getEpisodeOfCareWithHistory(); if(tempVo != null && tempVo.getEpisodeOfCareHistoryIsNotNull() && tempVo.getEpisodeOfCareHistory().size() > 0) { EpisodeOfCareHistVoCollection tempColl = tempVo.getEpisodeOfCareHistory(); tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING)); for(int i = 0;i < tempColl.size();i++) { EpisodeOfCareHistVo voHist = tempColl.get(i); if(voHist != null) populateChildGrid(voHist); } } }
public EpisodeOfCareSmallVo getEpisodeOfCareWithHistory(EpisodeOfCareRefVo refVo) { if (refVo == null) return null; DomainFactory factory = getDomainFactory(); return EpisodeOfCareSmallVoAssembler.create((EpisodeOfCare) factory.getDomainObject(EpisodeOfCare.class, refVo.getID_EpisodeOfCare())); }
public EpisodeOfCareSmallVo getEpisodeOfCareWithHistory(EpisodeOfCareRefVo refVo) { if(refVo == null) return null; DomainFactory factory = getDomainFactory(); return EpisodeOfCareSmallVoAssembler.create((EpisodeOfCare)factory.getDomainObject(EpisodeOfCare.class, refVo.getID_EpisodeOfCare())); }