private ChartResultVoCollection getResultsFromDFTOrderInvestigation(boolean isTabularView) { if(form.getLocalContext().getDFTOrderInvestigation() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails() == null) return null; OrderInvestigationChartVo oi = domain.getOrderInvestigation(form.getLocalContext().getDFTOrderInvestigation()); ChartResultVoCollection results = new ChartResultVoCollection(); for(PathologyResultDetailsForCumulateResultsVo pathResult : form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails()) { if(pathResult == null || pathResult.getResultComponents() == null) continue; for(ChartResultVo component : pathResult.getResultComponents()) { if(component == null) continue; if(ResultValueType.NM.equals(component.getResValType()) || (isTabularView && (ResultValueType.SN.equals(component.getResValType()) || ResultValueType.ST.equals(component.getResValType())))) { component.setInvestigationData(oi); component.setSpecimenComments(pathResult.getOrderSpecimen()); component.setPathologyResultId(pathResult.getID_PathResultDetails()); results.add(component); } } } return results; }
public OrderInvestigationChartVo getOrderInvestigation(OrderInvestigationRefVo orderInvestigationRef) { if(orderInvestigationRef == null) return null; return OrderInvestigationChartVoAssembler.create((OrderInvestigation)getDomainFactory().getDomainObject(orderInvestigationRef)); }