data.put("diagnosis_complication_code", compl.getDiseaseCode());
data.put("diagnosis_complication_encounter", client.getDiagnosisCharacter(compl, specDiag.getDate()));
}
}
SicklistLocal sicklist = getSickListState(serrensInTap);
if (sicklist != null) {
DirectoryDisabilityTypeItem ddti = sicklist.getDisability();
if (ddti != null && ddti.getID() != 0) {
data.put("sicklist_reason", sicklist.getDisability().getExternalKey());
}
int state = 0;
if (sicklist.isClosed()) {
state = CONST_3;
data.put("sicklist_close_date", Converter.dateToString(sicklist.getTill().getTime(), "dd.MM.yy"));
}
// else {
if (sicklist.getProlongationCount() > 1) {
if (state != CONST_3){
state = CONST_2;
}
}
else {
if (state != CONST_3){
state = CONST_1;
}
data.put("sicklist_open_date", Converter.dateToString(sicklist.getDateOpen().getTime(), "dd.MM.yy"));
}
// }
data.put("sicklist_open_type", state);
if (ddti.isDiseatedSupport()){
data.put("sicklist_care_sex", client.getSex().getID());