extraFields.put("pacient_pathron", getPathron().getTitle());
extraFields.put("pacient_sex", getSex().getID() == Sex.CLIENT_SEX_MALE ? 1 : 2);
extraFields.put("pacient_BD", BornToString());
Address address = getAddress();
if (address != null) {
extraFields.put("address_region", address.getRegionTitle());
extraFields.put("address_district", address.getMunicipalityTitle());
extraFields.put("address_city", address.getCityTitle());
extraFields.put("address_street", address.getStreetTitle());
extraFields.put("building_number", Converter.getBuildingNumber(address.getBuilding()));
extraFields.put("building_corps", Converter.getBuildingCorpus(address.getBuilding()));
extraFields.put("flat_number", address.getFlat() == null ? "" : address.getFlat());
}
if (getTelephones() != null) {
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"));