Pathology pathology = FacadeDB.getInstance().getPathologySyncBroker().getPathologyByRemoteId(patientPathologyWs.getPathologyId());
if (pathology == null) {
return null;
}
PathologyPatient pathologyPatient = new PathologyPatient();
PathologyPatientId id = new PathologyPatientId(pathology.getId(), patient.getId());
pathologyPatient.setId(id);
Integer difAges = patient.getAge() - patientPathologyWs.getAgeAtStart();
pathologyPatient.setAgeAtStartAsInteger(difAges);
pathologyPatient.setCurrently(patientPathologyWs.isCurrently());
pathologyPatient.setInherited(patientPathologyWs.isInherited());