Exemple #1
0
 private void populateDemoNo(String labId) {
   PatientLabRoutingDao dao = SpringUtils.getBean(PatientLabRoutingDao.class);
   for (PatientLabRouting r :
       dao.findByLabNoAndLabType(ConversionUtils.fromIntString(labId), "CML")) {
     String d = r.getDemographicNo().toString();
     if (!"0".equals(d)) {
       this.demographicNo = d;
     }
   }
 }
 public boolean isLabLinkedWithPatient(String labId) {
   PatientLabRoutingDao dao = SpringUtils.getBean(PatientLabRoutingDao.class);
   for (PatientLabRouting p :
       dao.findByLabNoAndLabType(ConversionUtils.fromIntString(labId), "BCP")) {
     String demo = "" + p.getDemographicNo();
     if (demo != null && !demo.trim().equals("0")) {
       return true;
     }
   }
   return false;
 }