collFuncList = new ArrayList<DCFI>();
SelectorEditableExceptional<DirectoryCollaboratorFunctionsItem> collFuncItems = dirCollFunc.getItems();
String clinicType = UserInfo.get().getCollaborator().getLpu().getClinicType().getExtKey().trim();
for (int i = 0; i < collFuncItems.size(); i++) {
DirectoryCollaboratorFunctionsItem item = collFuncItems.get(i);
if (item.getReceptionType().getExtKey() != null
&& !item.getReceptionType().getExtKey().trim().isEmpty()
&& item.getReceptionType().getExtKey().trim().startsWith(clinicType)
&& item.getCollaborator().getID() == coll.getID()) {
DCFI dCFI = new DCFI(item);
collFuncMap.put(item.getReceptionType().getExtKey().trim(), dCFI);
collFuncList.add(dCFI);
}
}
if (collFuncList.size() == 1) {
selectedCollFunc = collFuncList.get(0);