}
if (disp != 4) {
diagDown = null;
}
Followup followup = new Followup();
followup.setDateup(diagUp.getDate());
followup.setDatedown(diagDown == null ? null : diagDown.getDate());
followup.setCollaboratorUp(diagUp.getServiceRender().getDisease().getCollaborator());
followup.setCollaboratorDown(diagDown == null ? null : diagDown.getServiceRender().getDisease().getCollaborator());
followup.setUpReason(upReason);
FollowDownReason fd = fdmap.get(dispSn);
if (fd == null) {
fd = downReason;
}
followup.setDownReason(diagDown == null ? null : fd);
followup.setValue(null);
followup.setSerrenUp(diagUp.getServiceRender());
followup.setSerrenDown(diagDown == null ? null : diagDown.getServiceRender());
followup.setDiagnosisUp(diagUp);
manager.persist(followup);
for (Diagnosis diagnosis : diagList) {
FollowupEvent followupEvent = new FollowupEvent();
followupEvent.setFollup(followup);
followupEvent.setDate(diagnosis.getDate());