Examples of HabitPatient


Examples of systole.domain.clinicalInformation.HabitPatient

        patientToLoad.setCity(formToLoad.getjEdtCity().getText());

        patientToLoad.setProfession((Profession) formToLoad.getjCmbProfession().getSelectedItem());

        if (patientToLoad.getHabitPatient() == null) {
            patientToLoad.setHabitPatient(new HabitPatient(patientToLoad));
        }

        patientToLoad.getHabitPatient().setAngryLevel(formToLoad.getCmbAngryLevel().getSelectedIndex());
        patientToLoad.getHabitPatient().setStressLevel(formToLoad.getCmbStressLevel().getSelectedIndex());
        patientToLoad.getHabitPatient().setAutomedication(formToLoad.getChkAutoMedication().isSelected());
View Full Code Here

Examples of systole.domain.clinicalInformation.HabitPatient

     */
    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;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.