try {
this.logger.logDebug("getting clinical info by remote id");
Session currentSession = FacadeDB.getInstance().getCurrentSession();
Criteria criteria = currentSession.createCriteria(
ClinicalInfoRemote.class).add(Restrictions.eq("remoteId", remoteId)).setMaxResults(1);
ClinicalInfoRemote clinicalInfoRemote = (ClinicalInfoRemote) criteria.uniqueResult();
this.logger.logDebug("get successfully");
return (clinicalInfoRemote != null ? clinicalInfoRemote.getClinicalInformation() : null);
} catch (HibernateException e) {
this.logger.logError("error on get clinical info by remote id, msg: " + e.getMessage());
throw new ExceptionDAO("No se pudieron obtener los informes clínicos", e.fillInStackTrace());
}
}