public SurgicalOperationSummaryVo getSurgicalOperationSUmmary(CareContextRefVo careContextRef) { if( careContextRef == null ) return null; DomainFactory factory = getDomainFactory(); List surgicalOpSummary = factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC) )", new String[]{"idCC" }, new Object[]{ careContextRef.getID_CareContext()}); if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 ) { SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary); if( tempColl != null && tempColl.size() > 0 ) return tempColl.get(0); } return null; }
public SurgicalOperationSummaryVo getSurgicalOperationSummary(CareContextRefVo careContextRef) { if( careContextRef == null ) return null; DomainFactory factory = getDomainFactory(); List surgicalOpSummary = factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC) )", new String[]{"idCC" }, new Object[]{ careContextRef.getID_CareContext()}); if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 ) { SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary); if( tempColl != null && tempColl.size() > 0 ) return tempColl.get(0); } return null; }