public NurseEnabledInstructionsVo getNurseEnabledInstructions(CareContextRefVo careContextRef) { if(careContextRef == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if(careContextRef != null) { DomainFactory factory = getDomainFactory(); List list = factory.find("from NurseEnabledInstructions as n1_1 where (n1_1.careContext.id = :ID) " , new String[] {"ID"}, new Object[] {careContextRef.getID_CareContext()}); if(list != null && list.size() > 0) { NurseEnabledInstructionsVoCollection voColl = NurseEnabledInstructionsVoAssembler.createNurseEnabledInstructionsVoCollectionFromNurseEnabledInstructions(list); if(voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }