public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) { if( careContextRef == null) return null; DomainFactory factory = getDomainFactory(); List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()}); if(result != null && result.size() > 0) { SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result); if( tempColl != null && tempColl.size() > 0) return tempColl.get(0); } return null; }