*/
public MedicWs generateRemoteMedic(Medic medic) throws ExceptionDAO {
if (medic == null) {
return null;
}
MedicWs medicWs = new MedicWs();
medicWs.setName(medic.getName());
medicWs.setSurname(medic.getSurname());
medicWs.setCellphone(medic.getCellphone());
medicWs.setTelephone(medic.getTelephone());
medicWs.setAddress(medic.getAddress());
medicWs.setCity(medic.getCity());
medicWs.setEmail(medic.getEmail());
medicWs.setIdentityCard(this.convertToRemoteIdentityCard(medic.getIdentityCard()));
medicWs.setSex(medic.getSex() == null ? null : ("M".equals(medic.getSex()) || "m".equals(medic.getSex())));
medicWs.setBirthdate(this.dateToXMLGregorianCalendar(medic.getBirthdate()));
return medicWs;
}