*/
private HabitPatient convertToLocalHabitPatient(PatientHabitsWs habitsWs, Patient patient) {
if (habitsWs == null) {
return null;
}
HabitPatient habitPatient = new HabitPatient(patient);
habitPatient.setAngryLevel(habitsWs.getAngryLevel());
habitPatient.setStressLevel(habitsWs.getStressLevel());
habitPatient.setAutomedication(habitsWs.isAutomedication());
habitPatient.setConsummingAlcohol(habitsWs.isConsummingAlcohol());
habitPatient.setSedentary(habitsWs.isSedentary());
habitPatient.setSmoked(habitsWs.isSmoked());
habitPatient.setSmoking(habitsWs.isSmoking());
habitPatient.setWorkPlace(habitsWs.getWorkPlace());
habitPatient.setYearsOldAtFinish(habitsWs.getAgeAtEnd());
habitPatient.setYearsOldAtStart(habitsWs.getAgeAtStart());
habitPatient.setCigarettesPerDay(habitsWs.getCigarettesPerDay());
habitPatient.setBlocksWalkedPerDay(habitsWs.getBlocksWalkedPerDay());
return habitPatient;
}