public String findPathnetStatus(String labId) { Hl7ObrDao dao = SpringUtils.getBean(Hl7ObrDao.class); for (Object[] o : dao.findMinResultStatusByMessageId(ConversionUtils.fromIntString(labId))) { return String.valueOf(o[0]); } return ""; }
public String findPathnetDisipline(String labId) { StringBuilder ret = new StringBuilder(); try { Hl7ObrDao dao = SpringUtils.getBean(Hl7ObrDao.class); boolean first = true; for (Object[] o : dao.findByMessageId(ConversionUtils.fromIntString(labId))) { Hl7Obr obr = (Hl7Obr) o[1]; if (!first) { ret.append("/"); } ret.append(obr.getDiagnosticServiceSectId()); first = false; } } catch (Exception e) { logger.error("exception in MDSResultsData", e); } return ret.toString(); }