completed the symmtoms checker suggestions from infermedica

pull/327/head
faizatflutter 2 months ago
parent ce23c0302a
commit 1587dddda4

@ -82,8 +82,7 @@ class _TriagePageState extends State<TriagePage> {
// Case 3: Probability >= 70% OR // Case 3: Probability >= 70% OR
// Case 4: 30 or more questions answered // Case 4: 30 or more questions answered
// if (viewModel.shouldStopTriage || highestProbability >= 70.0 || viewModel.triageQuestionCount >= 30) { // if (viewModel.shouldStopTriage || highestProbability >= 70.0 || viewModel.triageQuestionCount >= 30) {
// todo: reset to 30 again if (highestProbability >= 70.0 || viewModel.triageQuestionCount >= 30 || viewModel.shouldStopTriage) {
if (highestProbability >= 70.0 || viewModel.triageQuestionCount >= 5 || viewModel.shouldStopTriage) {
// Navigate to results/possible conditions screen // Navigate to results/possible conditions screen
context.navigateWithName(AppRoutes.possibleConditionsPage); context.navigateWithName(AppRoutes.possibleConditionsPage);
return; return;

Loading…
Cancel
Save