|
|
|
|
@ -1,14 +1,19 @@
|
|
|
|
|
import 'dart:math';
|
|
|
|
|
|
|
|
|
|
import 'package:badges/badges.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/service/medical/vital_sign_service.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/medical_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/toDoCountProviderModel.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/MyAppointments.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_approval_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_card_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/patient_sick_leave_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/reports/monthly_reports.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/smart_watch_health_data/smart_watch_instructions.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/vaccine/my_vaccines_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescriptions_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/radiology/radiology_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/reports/report_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/services/authentication/auth_provider.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
@ -16,14 +21,24 @@ import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profil
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/time_line_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/sliver_app_bar_delegate.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_card_screen.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import '../../locator.dart';
|
|
|
|
|
import 'active_medications/ActiveMedicationsPage.dart';
|
|
|
|
|
import 'allergies_page.dart';
|
|
|
|
|
import 'ask_doctor/ask_doctor_home_page.dart';
|
|
|
|
|
import 'balance/my_balance_page.dart';
|
|
|
|
|
import 'doctor/doctor_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_update_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_approval_screen.dart';
|
|
|
|
|
import 'eye/EyeHomePage.dart';
|
|
|
|
|
import 'eye/EyeMeasurementsPage.dart';
|
|
|
|
|
import 'labs/labs_home_page.dart';
|
|
|
|
|
import 'my_trackers/my_trackers.dart';
|
|
|
|
|
|
|
|
|
|
class MedicalProfilePage extends StatefulWidget {
|
|
|
|
|
@override
|
|
|
|
|
@ -185,52 +200,48 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: DoctorHomePage(),
|
|
|
|
|
page: HomePrescriptionsPage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.myDoctor,
|
|
|
|
|
imagePath: 'doctor_icon.png',
|
|
|
|
|
.medicines,
|
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.myDoctorSubtitle,
|
|
|
|
|
.medicinesSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: HomePrescriptionsPage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignDetailsScreen(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.medicines,
|
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
|
.vitalSigns,
|
|
|
|
|
imagePath: 'vital_signs.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.medicinesSubtitle,
|
|
|
|
|
.vitalSignsSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InsuranceCard()));
|
|
|
|
|
},
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
FadePage(page: ActiveMedicationsPage())),
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.insurance,
|
|
|
|
|
imagePath: 'insurance_card_icon.png',
|
|
|
|
|
.myMedical,
|
|
|
|
|
imagePath: 'active_medications.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.insuranceSubtitle,
|
|
|
|
|
.myMedicalSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -241,14 +252,20 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
FadePage(page: AllergiesPage())),
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: DoctorHomePage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.allergies,
|
|
|
|
|
imagePath: 'my_allergies_icon.png',
|
|
|
|
|
.myDoctor,
|
|
|
|
|
imagePath: 'doctor_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.allergiesSubtitle,
|
|
|
|
|
.myDoctorSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -259,13 +276,13 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: PatientSickLeavePage()));
|
|
|
|
|
page: EyeMeasurementsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).sick,
|
|
|
|
|
imagePath: 'sick_leaves_icons.png',
|
|
|
|
|
title: TranslationBase.of(context).eye,
|
|
|
|
|
imagePath: 'eye_measurement_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.sickSubtitle,
|
|
|
|
|
.eyeSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -273,24 +290,83 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: InsuranceApproval()));
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InsuranceCard()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.insuranceApproval,
|
|
|
|
|
imagePath:
|
|
|
|
|
'insurance_approvals_icon.png',
|
|
|
|
|
.insurance,
|
|
|
|
|
imagePath: 'insurance_card_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.insuranceApprovalSubtitle,
|
|
|
|
|
.insuranceSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InsuranceUpdate()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.updateInsurance,
|
|
|
|
|
imagePath: 'insurance_update_icon_.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.updateInsuranceSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InsuranceApproval()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.insuranceApproval,
|
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.insuranceApprovalSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap:()=> Navigator.push(context, FadePage(page: AllergiesPage())) ,
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).allergies,
|
|
|
|
|
imagePath: 'my_allergies_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.allergiesSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: MyVaccines()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.myVaccines,
|
|
|
|
|
imagePath: 'my_vaccines_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.myVaccinesSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
@ -308,9 +384,153 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(),
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: MonthlyReportsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title:
|
|
|
|
|
TranslationBase.of(context).monthly,
|
|
|
|
|
imagePath: 'monthly_reports_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.monthlySubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: PatientSickLeavePage()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).sick,
|
|
|
|
|
imagePath: 'sick_leaves_icons.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.sickSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: MyBalancePage()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title:
|
|
|
|
|
TranslationBase.of(context).myBalance,
|
|
|
|
|
imagePath: 'check-in.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.myBalanceSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title:
|
|
|
|
|
TranslationBase.of(context).patientCall,
|
|
|
|
|
imagePath: 'medical_history_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.patientCallSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
//TODO
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, FadePage(page: SmartWatchInstructions()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.smartWatches,
|
|
|
|
|
imagePath: 'smartwatch_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.smartWatchesSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: MyTrackers()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.myTrackers,
|
|
|
|
|
imagePath: 'my_tracker_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.myTrackersSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: AskDoctorHomPage()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).askYour,
|
|
|
|
|
imagePath: 'ask_doctor_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.askYourSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
//TODO
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context, FadePage(page: DoctorHomePage()));
|
|
|
|
|
// },
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title:
|
|
|
|
|
TranslationBase.of(context).internet,
|
|
|
|
|
imagePath: 'insurance_card_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.internetSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context, FadePage(page: InsuranceApproval()));
|
|
|
|
|
// },
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title:
|
|
|
|
|
TranslationBase.of(context).chatbot,
|
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.chatbotSubtitle,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Container(),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
|