/** * gets patients without names * * @return */ public List<Patient> getPatientsWithoutNames() { List<Patient> patientsWithoutNames = new ArrayList<Patient>(); DataQualityService dqs = ((DataQualityService) Context.getService(DataQualityService.class)); List<Integer> patientIds = dqs.getPatientsWithoutNames(); for (Integer patientId : patientIds) { patientsWithoutNames.add(getPatientById(patientId)); } return patientsWithoutNames; }