data.put("service_dates", serDates);
data.put("service_titles", serTitles);
data.put("service_UKL", serUKLs);
data.put("service_uet", serUets);
DiagnosisLocal preliminary = getDiagsByType(serrensInTap, DiagnosisType.DIAGNOSIS_TYPE_PRELIMINARY);
if (preliminary != null) {
data.put("diagnosis_presumptive_code", preliminary.getMkb().getDiseaseCode());
data.put("diagnosis_presumptive_date", Converter.dateToString(preliminary.getDate(), "dd.MM.yy"));
}
DiagnosisLocal specDiag = getSpecificDiagnosis();
if (specDiag != null) { //&& finalD.getSerrenLocal().getCollaboratorFunctions().getID() == collab.getID()) {
data.put("diagnosis_final_code", specDiag.getMkb().getDiseaseCode());
data.put("diagnosis_final_date", Converter.dateToString(specDiag.getDate(), "dd.MM.yy"));
data.put("diagnosis_final_encounter", specDiag.getEncounter().getID());
data.put("followup_final", printInfo.mainFollowStage);
data.put("followup_down_final", printInfo.mainFollowDownReason);
if ((specDiag.getTrauma()!=null
&& specDiag.getTrauma().getExtKey() != null)
&& !specDiag.getTrauma().getExtKey().isEmpty()){
data.put("trauma_type", specDiag.getTrauma().getID());
}
data.put("diagnosis_associated_code_0", mKB10.getItemFromID(printInfo.attendant0DiagnosisMkbID).getDiseaseCode());
data.put("diagnosis_associated_encounter_0", printInfo.attendant0DiagnosisEncounter);
data.put("followup_associated_0", printInfo.attendant0FollowStage);
data.put("followup_down_associated_0", printInfo.attendant0FollowDownReason);
data.put("diagnosis_associated_code_1", mKB10.getItemFromID(printInfo.attendant1DiagnosisMkbID).getDiseaseCode());
data.put("diagnosis_associated_encounter_1", printInfo.attendant1DiagnosisEncounter);
data.put("followup_associated_1", printInfo.attendant1FollowStage);
data.put("followup_down_associated_1", printInfo.attendant1FollowDownReason);
DirectoryMKB10Item compl = specDiag.getComplication();
if (compl != null && compl.getID() != 0) {
data.put("diagnosis_complication_code", compl.getDiseaseCode());
data.put("diagnosis_complication_encounter", client.getDiagnosisCharacter(compl, specDiag.getDate()));
}
}
SicklistLocal sicklist = getSickListState(serrensInTap);
if (sicklist != null) {