lundi 14 janvier 2019

Result from rule based generated not consistent

i'm develop a health apps to detect a possibility of heart disease condition based on symptoms that the user click. the apps should generate one result based on the rule based. Unfortunately, the result generated is not consistent even when click on the same symptom, sometimes it generated one result(like i wanted) but sometimes it generated 2, 3, or 4 result simultaneously. the symptoms in the apps collected from multiple activities and pass to RuleBasedActivity.java using shared preference. I'm using IF statement only because before this i have tried using if else statement but it wont read the else statement. Please help. Thank you in advance. Below are some of my rules condition.

SharedPreferences sharedPreferences = getSharedPreferences("symptom_list", Context.MODE_PRIVATE);

        //from other activity(first page)
        final Boolean radioMale = sharedPreferences.getBoolean("radioMale", false);
        final Boolean radioFemaleNotMonopause = sharedPreferences.getBoolean("radioFemaleNotMonopause", false);
        final Boolean radioFemaleMonopause = sharedPreferences.getBoolean("radioFemaleMonopause", false);

        //second page
        final Boolean BP = sharedPreferences.getBoolean("BP", false);
        final Boolean notActive = sharedPreferences.getBoolean("notActive", false);
        //from other activity 1(2nd last page)
        final Boolean condition1 = sharedPreferences.getBoolean("condition1", false);
        final Boolean condition2 = sharedPreferences.getBoolean("condition2", false);
        final Boolean condition3 = sharedPreferences.getBoolean("condition3", false);
        final Boolean condition4 = sharedPreferences.getBoolean("condition4", false);
        final Boolean condition5 = sharedPreferences.getBoolean("condition5", false);
        final Boolean condition6 = sharedPreferences.getBoolean("condition6", false);

        //from last page, duration
        final Boolean duration1 = sharedPreferences.getBoolean("duration1", false);
        final Boolean duration2 = sharedPreferences.getBoolean("duration2", false);
        final Boolean duration3 = sharedPreferences.getBoolean("duration3", false);
        final Boolean duration4 = sharedPreferences.getBoolean("duration4", false);

        //TwoDActivity1
        //checkbox from chest button
        final Boolean radioYes = sharedPreferences.getBoolean("radioYes", false);
        final Boolean radioNo = sharedPreferences.getBoolean("radioNo", false);
        //TwoDActivity2
        //checkbox from backNeck
        final Boolean backNeck = sharedPreferences.getBoolean("backNeck", false);

        //checkbox from skin
        final Boolean sweating = sharedPreferences.getBoolean("sweating", false);


        diagnose = (Button) findViewById(R.id.diagnose);

        diagnose.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                angina = false;
                unstableAngina = false;

                highRiskMaleNo = false;
                highRiskMonopauseNo = false;

                unlikely = false;
                indeterminate = false;

                //male, yes, condition1,2,3,4 and duration2
                if ((radioMale && radioYes && condition1 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }
                if ((radioMale && radioYes && condition2 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }
                if ((radioMale && radioYes && condition3 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }
                if ((radioMale && radioYes && condition4 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }

                if ((radioMale && radioNo && condition1 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition2 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition3 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition4 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }

                if ((radioFemaleMonopause && radioNo && condition1 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }
                if ((radioFemaleMonopause && radioNo && condition2 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }
                if ((radioFemaleMonopause && radioNo && condition3 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }
                if ((radioFemaleMonopause && radioNo && condition4 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }

                if ((radioFemaleNotMonopause && radioYes && condition1 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition2 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition3 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition4 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    angina = true;
                }

                if ((radioFemaleNotMonopause && radioNo && condition1 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioFemaleNotMonopause && radioNo && condition2 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioFemaleNotMonopause && radioNo && condition3 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioFemaleNotMonopause && radioNo && condition4 && duration2) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }

                ///unstable angina
                if ((radioMale && radioYes && condition1 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioMale && radioYes && condition2 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioMale && radioYes && condition3 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioMale && radioYes && condition4 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }

                if ((radioMale && radioYes && condition1 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioMale && radioYes && condition2 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioMale && radioYes && condition3 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioMale && radioYes && condition4 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }

                if ((radioMale && radioNo && condition1 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition2 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition3 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition4 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }

                if ((radioMale && radioNo && condition1 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition2 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioYes && condition3 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }
                if ((radioMale && radioNo && condition4 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMaleNo = true;
                }

                if ((radioFemaleMonopause && radioYes && condition1 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleMonopause && radioYes && condition2 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleMonopause && radioYes && condition3 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleMonopause && radioYes && condition4 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }

                if ((radioFemaleMonopause && radioYes && condition1 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleMonopause && radioYes && condition2 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleMonopause && radioYes && condition3 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleMonopause && radioYes && condition4 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }

                if ((radioFemaleMonopause && radioNo && condition1 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }
                if ((radioFemaleMonopause && radioNo && condition2 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }
                if ((radioFemaleMonopause && radioYes && condition3 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }
                if ((radioFemaleMonopause && radioNo && condition4 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    highRiskMonopauseNo = true;
                }

                if ((radioFemaleNotMonopause && radioYes && condition1 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition2 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition3 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition4 && duration3) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }

                if ((radioFemaleNotMonopause && radioYes && condition1 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition2 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition3 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }
                if ((radioFemaleNotMonopause && radioYes && condition4 && duration4) && (leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || sweating || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || BP || diabetic || notActive || smoke || overweight || NoneOther)) {
                    unstableAngina = true;
                }

Aucun commentaire:

Enregistrer un commentaire