Я не знаю, как это решить.Я исключил условия, чтобы сообщить о возможности заболевания на основе выбора симптомов, но, к сожалению, он показывает все результаты.Я уже установил условие результата по умолчанию по умолчанию.
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && duration2 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ angina = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && duration2 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ highRiskMaleNo = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && !NoneOther1) &&
(duration3 || duration4) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ highRiskMaleYes = true;//unstable angina
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && !NoneOther1) &&
(duration3 || duration4) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ highRiskMaleNo = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && duration1 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && duration1 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && !NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) &&
(condition5 || condition6 || condition7 || condition8) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && !NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) &&
(condition5 || condition6 || condition7 || condition8) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ indeterminate = true;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) &&
(condition5 || condition6 || condition7 || condition8) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ indeterminate = true;
}
Это мой логический параметр по умолчанию
angina = false;
unstableAngina = false;
highRiskMaleNo = false;
highRiskMonopauseNo = false;
unlikely = false;
indeterminate = false;
Мой друг сказал добавить все остальные ложные значения после истинного значения длявсе условия, это работает, он показывает только один результат, но для всех условий, показ результатов только неопределенный.Например
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && duration2 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ angina = true;
highRiskMaleNo = false;
highRiskMonopauseYes = false;//unstable angina
unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && duration2 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ highRiskMaleNo = true;
angina = false;
highRiskMaleYes = false; //unstable angina
//highRiskMaleNo = false;
unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && !NoneOther1) &&
(duration3 || duration4) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ highRiskMaleYes = true;//unstable angina
angina = false;
//highRiskMaleYes = false; //unstable angina
highRiskMaleNo = false;
unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && !NoneOther1) &&
(duration3 || duration4) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ highRiskMaleNo = true;
angina = false;
highRiskMaleYes = false; //unstable angina
//highRiskMaleNo = false;
indeterminate = false;
unlikely = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && duration1 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
highRiskMaleNo = false;
highRiskMonopauseYes = false;//unstable angina
//unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && duration1 && !NoneOther1) &&
(condition1 || condition2 || condition3 || condition4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
angina = false;
highRiskMaleYes = false; //unstable angina
highRiskMaleNo = false;
//unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && !NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) &&
(condition5 || condition6 || condition7 || condition8) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
highRiskMaleNo = false;
highRiskMonopauseYes = false;//unstable angina
//unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && !NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) &&
(condition5 || condition6 || condition7 || condition8) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ unlikely = true;
angina = false;
highRiskMaleYes = false; //unstable angina
highRiskMaleNo = false;
//unlikely = false;
indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioYes && NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ indeterminate = true;
highRiskMaleNo = false;
highRiskMonopauseYes = false;//unstable angina
unlikely = false;
//indeterminate = false;
}
if ((radioMale || radioFemaleMonopause || radioFemaleNotMonopause) &&
(radioNo && NoneOther1) &&
(duration1 || duration2 || duration3 || duration4) &&
(condition5 || condition6 || condition7 || condition8) ||
(leftArm || bothArms || leftShoulder || bothShoulder || throatOrNeck || jaw || dizziness || shortnessOfBreath || stress || nausea || pulse || sweating || BP || notActive || diabetic || smoke || familyHistory || hadHeartAttackBefore || backNeck || fatigue || sleepDisturbance || NoneHead || overweight || NoneOther))
{ indeterminate = true;
angina = false;
highRiskMaleYes = false; //unstable angina
highRiskMaleNo = false;
unlikely = false;
//indeterminate = false;
}