extraFields.put("pacient_phones", getTelephones());
}
ArrayList<String> jobDates = new ArrayList<String>();
ArrayList<String> jobEnterprises = new ArrayList<String>();
DirectoryEnterpriseItem ent;
Date date;
String entData;
for (JobLocal job : getJobList()) {
ent = job.getEnterprise();
entData = "";
if (ent != null && ent.getID() != 0) {
entData += ent.getTitle();
Address ad = ent.getAddress();
if (address != null) {
entData += " " + ad.toStringShort();
}
}
jobEnterprises.add(entData);
date = job.getBegin();
jobDates.add(Converter.dateToString(date, "dd.MM.yy"));
}
extraFields.put("job_dates", jobDates);
extraFields.put("job_enterprises", jobEnterprises);
JobLocal jobLocal = getLastJob();
if (jobLocal != null) {
DirectoryEnterpriseItem enter = jobLocal.getEnterprise();
DirectoryProfessionItem prof = jobLocal.getProfession();
DirectoryAppointmentItem app = jobLocal.getAppointment();
extraFields.put("job_enterprise", enter != null && enter.getID() != 0 ? enter.getTitle() : "");
extraFields.put("job_profession", prof != null && prof.getID() != 0 ? prof.getTitle() : "");
extraFields.put("job_appointment", app != null && app.getID() != 0 ? app.getTitle() : "");
//todo поле иждивенец откуда брать?
}