/** * get Clinicalinte */ public ims.core.vo.DischargeClinicalInformationSTHKVo getClinicalInfo(ims.core.admin.vo.CareContextRefVo careContextRefVo) { if (careContextRefVo == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if (careContextRefVo != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from DischargeClinicalInformation clininfo where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " clininfo.careContext.id = :careContextId"); markers.add("careContextId"); values.add(careContextRefVo.getID_CareContext()); andStr = " and "; List listNotes = factory.find(hql.toString(), markers, values); if (listNotes != null && listNotes.size() > 0) { DischargeClinicalInformationSTHKVoCollection voColl = DischargeClinicalInformationSTHKVoAssembler.createDischargeClinicalInformationSTHKVoCollectionFromDischargeClinicalInformation(listNotes); if (voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }