Skip to content

Added result page and book appointment page . #70

Merged
mdmohsin7 merged 13 commits intoAOSSIE-Org:mainfrom
Jk-karunadu:post-assessment
Mar 30, 2025
Merged

Added result page and book appointment page . #70
mdmohsin7 merged 13 commits intoAOSSIE-Org:mainfrom
Jk-karunadu:post-assessment

Conversation

@Jk-karunadu
Copy link
Contributor

@Jk-karunadu Jk-karunadu commented Mar 21, 2025

Closes #32

📝 Description

This PR adds result page of assessment that conducted and therapy goals screen and daily activity that should be followed , below that doctors list to get appointment .

📷 Screenshots or Visual Changes (if applicable)

are in issue #32

✅ Checklist

  • I have read the contributing guidelines.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary documentation (if applicable).
  • Any dependent changes have been merged and published in downstream modules.

import 'package:provider/provider.dart';
import 'package:patient/presentation/result/result.dart';
// final questions = [
// {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove comments like this


if (_formKey.currentState?.validate() ?? false) {

if (isAssessmentForChild) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls check these conditions code

setState(() => isLoading = true);

try {
await supabase.from("session").insert({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic should be in provider, pls check the rest of the codebase for reference

}

// Send responses to Groq API for analysis
Future<void> analyzeResponses() async {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the goal of this issue was only to design the ui and code it, not to add the logic, pls check again

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just thought of integrating llms to get daily tasks and therapy goals . should i need to remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@mdmohsin7 mdmohsin7 Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes pls remove it

Context:
Screenshot 2025-03-24 at 11 11 16 PM

@mdmohsin7
Copy link
Member

The UI still does not reflect the changes mentioned in #32 (comment), pls check again. Essentially the UI should show the user their percentage of being autistic (and this is not something to be happy about to congratulate, rather the text should be neutral) and a list of therapist with whom they can book a consultation. They should be able to see the details of the therapists upon clicking on any therapist card and also they should be able to select the date and time slot (of 30 mins)

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 since details about therapist consist only that much of details :

Screenshot from 2025-03-21 23-02-00

to increase the deatils about therapist need to add description about the therapist to therapist table , or using some static data to design UI
should i create table or use some static data ?

@mdmohsin7
Copy link
Member

Pls use static data for now (through provider)

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 okay

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 as you said i completed the task using static data , only concentrated on UI ,

Screencast.from.2025-03-22.01-08-28.webm

please review , the may look dull because of i am running it in chrome , but with android it may look good with perfect layout

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 Please review this

@mdmohsin7
Copy link
Member

@Jk-karunadu can you pls remove the your recommendations section. We won't really have to show it. Only the list of doctors/therapists has to be shown

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 could u please review now

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 i removed "your recomendation " section

}

// Send responses to Groq API for analysis
Future<void> analyzeResponses() async {
Copy link
Member

@mdmohsin7 mdmohsin7 Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes pls remove it

Context:
Screenshot 2025-03-24 at 11 11 16 PM

);
}

Widget _buildResultsView() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls move these sub widgets to widgets folder inside of the result folder. They shouldn't be placed in a single file like this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still there, pls check

}

// Placeholder screens (enhanced)
class TherapyGoalsScreen extends StatelessWidget {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this?

}
}

class DailyActivitiesScreen extends StatelessWidget {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This as well, I don't think it is needed

@mdmohsin7
Copy link
Member

@Vivekgupta008 if you are reviewing the PRs then pls make sure that the PR does what the issue mentions and follows good code practises. Otherwise it wouldn't be helpful for me as I'll have to review the PR completely again

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 please review , i just removes all the section and added only the result part and doctor recomendation list part .

@mdmohsin7
Copy link
Member

@Jk-karunadu pls check the review again, not all changes that I requested have been done

@Jk-karunadu
Copy link
Contributor Author

@mdmohsin7 I have checked this now PR consists of the code of result of assessments and doctors least , no extra is added , no llm is integrated, no therapy goals etc things . Only restricted to result of assessments and doctors least.

Copy link
Member

@mdmohsin7 mdmohsin7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls check, one change is still there that hasn't been done yet

);
}

Widget _buildResultsView() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still there, pls check

Copy link
Member

@mdmohsin7 mdmohsin7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remaining changes can be done in separate PRs, need this PR merged to continue with other flows

@mdmohsin7 mdmohsin7 merged commit c26fa43 into AOSSIE-Org:main Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design and code the post assessment flow for patient app

3 participants