private void loadPatientIdentifiers() { List<IdentifierType> types = PatientManager.getAllIdentifierTypes(getHSession()); identiers = new ArrayList<PatientIdentifier>(); typeLoop: for (IdentifierType type : types) { if (type.isVoided()) continue; for (PatientIdentifier identifier : localPatient.getPatientIdentifiers()) { if (identifier.getType().getId() == type.getId()) { identifier.setValueEdit(identifier.getValue()); identiers.add(identifier); continue typeLoop; } } // create new identifier if the patient doesn't already have on for this type PatientIdentifier identifier = new PatientIdentifier(); identifier.setType(type); identifier.setValueEdit(EMPTY); identifier.setPatient(localPatient); identiers.add(identifier); } tblViewer.setInput(identiers); }