You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/screens/home/home_screen.dart

507 lines
22 KiB
Dart

import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/model/patient_muse/PatientSearchRequestModel.dart';
import 'package:doctor_app_flutter/core/viewModel/authentication_view_model.dart';
import 'package:doctor_app_flutter/core/viewModel/dashboard_view_model.dart';
5 years ago
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
5 years ago
import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/screens/home/dashboard_slider-item-widget.dart';
import 'package:doctor_app_flutter/screens/home/dashboard_swipe_widget.dart';
import 'package:doctor_app_flutter/screens/home/home_patient_card.dart';
import 'package:doctor_app_flutter/screens/live_care/live_care_patient_screen.dart';
import 'package:doctor_app_flutter/screens/medicine/medicine_search_screen.dart';
import 'package:doctor_app_flutter/screens/patients/In_patient/in_patient_screen.dart';
5 years ago
import 'package:doctor_app_flutter/screens/patients/out_patient/out_patient_screen.dart';
import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_screen.dart';
5 years ago
import 'package:doctor_app_flutter/screens/patients/profile/referral/patient_referral_screen.dart';
import 'package:doctor_app_flutter/screens/patients/register_patient/RegisterPatientPage.dart';
5 years ago
import 'package:doctor_app_flutter/util/date-utils.dart';
import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
5 years ago
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/profile-welcome-widget.dart';
5 years ago
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
5 years ago
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/errors/error_message.dart';
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
import 'package:doctor_app_flutter/widgets/transitions/fade_page.dart';
5 years ago
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:sticky_headers/sticky_headers/widget.dart';
5 years ago
import '../../routes.dart';
import 'home_screen_header.dart';
4 years ago
import 'label.dart';
5 years ago
class HomeScreen extends StatefulWidget {
HomeScreen({Key? key, this.title}) : super(key: key);
5 years ago
final String? title;
5 years ago
final String iconURL = 'assets/images/dashboard_icon/';
@override
_HomeScreenState createState() => _HomeScreenState();
}
class _HomeScreenState extends State<HomeScreen> {
bool isLoading = false;
ProjectViewModel? projectsProvider;
DoctorProfileModel? profile;
5 years ago
bool isExpanded = false;
5 years ago
bool isInpatient = false;
5 years ago
int sliderActiveIndex = 0;
var clinicId;
late AuthenticationViewModel authenticationViewModel;
int colorIndex = 0;
4 years ago
final GlobalKey<ScaffoldState> scaffoldKey = new GlobalKey<ScaffoldState>();
5 years ago
@override
Widget build(BuildContext context) {
ProjectViewModel projectsProvider = Provider.of<ProjectViewModel>(context);
authenticationViewModel = Provider.of<AuthenticationViewModel>(context);
5 years ago
FocusScopeNode currentFocus = FocusScope.of(context);
if (!currentFocus.hasPrimaryFocus) {
currentFocus.unfocus();
}
return BaseView<DashboardViewModel>(
onModelReady: (model) async {
Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into flutter_vervion_2_by_elham  Conflicts:  lib/client/base_app_client.dart  lib/config/localized_values.dart  lib/config/size_config.dart  lib/core/model/Prescriptions/prescription_report.dart  lib/core/model/Prescriptions/prescription_report_enh.dart  lib/core/model/auth/activation_Code_req_model.dart  lib/core/model/auth/activation_code_for_verification_screen_model.dart  lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart  lib/core/model/auth/check_activation_code_request_model.dart  lib/core/model/labs/lab_result.dart  lib/core/model/patient_muse/PatientSearchRequestModel.dart  lib/core/model/procedure/get_ordered_procedure_request_model.dart  lib/core/model/referral/MyReferralPatientModel.dart  lib/core/model/sick_leave/sick_leave_patient_model.dart  lib/core/model/sick_leave/sick_leave_patient_request_model.dart  lib/core/service/VideoCallService.dart  lib/core/service/base/base_service.dart  lib/core/service/home/scan_qr_service.dart  lib/core/service/patient/LiveCarePatientServices.dart  lib/core/service/patient/MyReferralPatientService.dart  lib/core/service/patient/patient-doctor-referral-service.dart  lib/core/service/patient_medical_file/lab_order/labs_service.dart  lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart  lib/core/service/patient_medical_file/prescription/prescriptions_service.dart  lib/core/service/patient_medical_file/procedure/procedure_service.dart  lib/core/service/patient_medical_file/radiology/radiology_service.dart  lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart  lib/core/service/patient_medical_file/soap/SOAP_service.dart  lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart  lib/core/viewModel/PatientSearchViewModel.dart  lib/core/viewModel/SOAP_view_model.dart  lib/core/viewModel/authentication_view_model.dart  lib/core/viewModel/base_view_model.dart  lib/core/viewModel/dashboard_view_model.dart  lib/core/viewModel/doctor_replay_view_model.dart  lib/core/viewModel/labs_view_model.dart  lib/core/viewModel/patient-referral-viewmodel.dart  lib/core/viewModel/patient-ucaf-viewmodel.dart  lib/core/viewModel/prescription_view_model.dart  lib/core/viewModel/prescriptions_view_model.dart  lib/core/viewModel/procedure_View_model.dart  lib/core/viewModel/sick_leave_view_model.dart  lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart  lib/models/SOAP/GetPhysicalExamReqModel.dart  lib/models/SOAP/my_selected_allergy.dart  lib/models/SOAP/my_selected_assement.dart  lib/models/SOAP/my_selected_examination.dart  lib/models/SOAP/my_selected_history.dart  lib/models/SOAP/post_chief_complaint_request_model.dart  lib/models/SOAP/post_physical_exam_request_model.dart  lib/models/doctor/list_gt_my_patients_question_model.dart  lib/models/doctor/profile_req_Model.dart  lib/models/doctor/replay/request_doctor_reply.dart  lib/models/livecare/start_call_res.dart  lib/models/patient/patiant_info_model.dart  lib/models/patient/progress_note_request.dart  lib/models/patient/vital_sign/vital_sign_req_model.dart  lib/models/pharmacies/pharmacies_items_request_model.dart  lib/screens/auth/verification_methods_screen.dart  lib/screens/doctor/doctor_repaly_chat.dart  lib/screens/doctor/doctor_replay/doctor_reply_widget.dart  lib/screens/doctor/doctor_reply_screen.dart  lib/screens/doctor/my_referral_patient_screen.dart  lib/screens/home/dashboard_swipe_widget.dart  lib/screens/home/home_patient_card.dart  lib/screens/home/home_screen.dart  lib/screens/live_care/end_call_screen.dart  lib/screens/live_care/live_care_patient_screen.dart  lib/screens/live_care/video_call.dart  lib/screens/medical-file/health_summary_page.dart  lib/screens/medicine/medicine_search_screen.dart  lib/screens/patients/DischargedPatientPage.dart  lib/screens/patients/InPatientPage.dart  lib/screens/patients/PatientsInPatientScreen.dart  lib/screens/patients/insurance_approval_screen_patient.dart  lib/screens/patients/out_patient/out_patient_screen.dart  lib/screens/patients/patient_search/patient_search_header.dart  lib/screens/patients/patient_search/patient_search_result_screen.dart  lib/screens/patients/patient_search/patient_search_screen.dart  lib/screens/patients/profile/UCAF/UCAF-detail-screen.dart  lib/screens/patients/profile/UCAF/UCAF-input-screen.dart  lib/screens/patients/profile/UCAF/page-stepper-widget.dart  lib/screens/patients/profile/admission-request/admission-request-first-screen.dart  lib/screens/patients/profile/admission-request/admission-request-third-screen.dart  lib/screens/patients/profile/admission-request/admission-request_second-screen.dart  lib/screens/patients/profile/lab_result/FlowChartPage.dart  lib/screens/patients/profile/lab_result/LabResultWidget.dart  lib/screens/patients/profile/lab_result/laboratory_result_page.dart  lib/screens/patients/profile/lab_result/laboratory_result_widget.dart  lib/screens/patients/profile/lab_result/labs_home_page.dart  lib/screens/patients/profile/medical_report/AddVerifyMedicalReport.dart  lib/screens/patients/profile/medical_report/MedicalReportPage.dart  lib/screens/patients/profile/notes/note/progress_note_screen.dart  lib/screens/patients/profile/profile_screen/patient_profile_screen.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_InPatient.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_other.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_search.dart  lib/screens/patients/profile/radiology/radiology_details_page.dart  lib/screens/patients/profile/radiology/radiology_home_page.dart  lib/screens/patients/profile/referral/my-referral-detail-screen.dart  lib/screens/patients/profile/referral/my-referral-inpatient-screen.dart  lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart  lib/screens/patients/profile/referral/refer-patient-screen.dart  lib/screens/patients/profile/referral/referral_patient_detail_in-paint.dart  lib/screens/patients/profile/referral/referred-patient-screen.dart  lib/screens/patients/profile/referral/referred_patient_detail_in-paint.dart  lib/screens/patients/profile/soap_update/assessment/add_assessment_details.dart  lib/screens/patients/profile/soap_update/assessment/update_assessment_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_widget.dart  lib/screens/patients/profile/soap_update/objective/examination_item_card.dart  lib/screens/patients/profile/soap_update/objective/examinations_list_search_widget.dart  lib/screens/patients/profile/soap_update/objective/update_objective_page.dart  lib/screens/patients/profile/soap_update/plan/update_plan_page.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_open_items.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_step_header.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_title.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/expandable_SOAP_widget.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/steps_widget.dart  lib/screens/patients/profile/soap_update/subjective/allergies/add_allergies.dart  lib/screens/patients/profile/soap_update/subjective/allergies/update_allergies_widget.dart  lib/screens/patients/profile/soap_update/subjective/history/add_history_dialog.dart  lib/screens/patients/profile/soap_update/subjective/history/priority_bar.dart  lib/screens/patients/profile/soap_update/subjective/history/update_history_widget.dart  lib/screens/patients/profile/soap_update/subjective/medication/add_medication.dart  lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart  lib/screens/patients/profile/soap_update/update_soap_index.dart  lib/screens/patients/profile/vital_sign/vital_sign_details_screen.dart  lib/screens/prescription/add_prescription_form.dart  lib/screens/prescription/prescription_item_in_patient_page.dart  lib/screens/prescription/prescription_text_filed.dart  lib/screens/prescription/prescriptions_page.dart  lib/screens/procedures/ProcedureCard.dart  lib/screens/procedures/add-favourite-procedure.dart  lib/screens/procedures/procedure_checkout_screen.dart  lib/screens/procedures/procedure_screen.dart  lib/screens/reschedule-leaves/add-rescheduleleave.dart  lib/screens/reschedule-leaves/reschedule_leave.dart  lib/screens/sick-leave/add-sickleave.dart  lib/screens/sick-leave/show-sickleave.dart  lib/screens/sick-leave/sick_leave.dart  lib/util/VideoChannel.dart  lib/util/date-utils.dart  lib/util/translations_delegate_base.dart  lib/widgets/patients/patient-referral-item-widget.dart  lib/widgets/patients/patient_card/PatientCard.dart  lib/widgets/patients/profile/PatientProfileButton.dart  lib/widgets/patients/profile/patient-profile-app-bar.dart  lib/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart  lib/widgets/patients/profile/profile-welcome-widget.dart  lib/widgets/patients/profile/profile_medical_info_widget.dart  lib/widgets/patients/profile/profile_medical_info_widget_search.dart  lib/widgets/patients/profile/profile_status_info_widget.dart  lib/widgets/shared/app_texts_widget.dart  lib/widgets/shared/bottom_nav_bar.dart  lib/widgets/shared/bottom_navigation_item.dart  lib/widgets/shared/buttons/app_buttons_widget.dart  lib/widgets/shared/card_with_bg_widget.dart  lib/widgets/shared/dialogs/dailog-list-select.dart  lib/widgets/shared/dialogs/master_key_dailog.dart  lib/widgets/shared/doctor_card.dart  lib/widgets/shared/doctor_card_insurance.dart  lib/widgets/shared/master_key_checkbox_search_allergies_widget.dart  lib/widgets/shared/master_key_checkbox_search_widget.dart  lib/widgets/shared/rounded_container_widget.dart  lib/widgets/shared/text_fields/app-textfield-custom.dart  lib/widgets/shared/text_fields/text_fields_utils.dart  lib/widgets/shared/user-guid/custom_validation_error.dart  lib/widgets/transitions/fade_page.dart  lib/widgets/transitions/slide_up_page.dart  pubspec.lock  pubspec.yaml
4 years ago
model.startHomeScreenServices(projectsProvider, authenticationViewModel);
},
5 years ago
builder: (_, model, w) => AppScaffold(
baseViewModel: model,
isShowAppBar: true,
appBar: HomeScreenHeader(
model: model,
onOpenDrawer: () {
4 years ago
Scaffold.of(context).openDrawer();
},
),
5 years ago
body: ListView(children: [
5 years ago
Column(children: <Widget>[
StickyHeader(
header: Container(
color: Colors.grey[100],
padding: EdgeInsets.only(top: 10),
child: Stack(children: [
IconButton(
icon: Image.asset('assets/images/menu.png',
height: 50, width: 50),
iconSize: 18,
color: Colors.black,
onPressed: () => Scaffold.of(context).openDrawer(),
),
Column(children: <Widget>[
ProfileWelcomeWidget(
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Container(
width: MediaQuery.of(context).size.width * .6,
child: projectsProvider.doctorClinicsList.length >
0
? Stack(
children: [
DropdownButtonHideUnderline(
child: DropdownButton(
dropdownColor: Colors.white,
iconEnabledColor: Colors.black,
isExpanded: true,
value: clinicId == null
? projectsProvider
.doctorClinicsList[0].clinicID
: clinicId,
iconSize: 25,
elevation: 16,
selectedItemBuilder:
(BuildContext context) {
return projectsProvider
.doctorClinicsList
.map((item) {
return Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment:
MainAxisAlignment.end,
children: <Widget>[
Column(
mainAxisAlignment:
MainAxisAlignment
.center,
children: [
Container(
padding:
EdgeInsets.all(2),
margin:
EdgeInsets.all(2),
decoration:
new BoxDecoration(
color:
Colors.red[800],
borderRadius:
BorderRadius
.circular(
20),
),
constraints:
BoxConstraints(
minWidth: 20,
minHeight: 20,
),
child: Center(
child: AppText(
projectsProvider
.doctorClinicsList
.length
.toString(),
color:
Colors.white,
fontSize:
projectsProvider
.isArabic
? 10
: 11,
textAlign:
TextAlign
.center,
),
)),
],
),
5 years ago
AppText(item.clinicName,
fontSize: 12,
color: Colors.black,
fontWeight:
FontWeight.bold,
textAlign: TextAlign.end),
],
);
}).toList();
},
onChanged: (newValue) async {
5 years ago
clinicId = newValue;
GifLoaderDialogUtils.showMyDialog(
context);
await model.changeClinic(newValue,
authenticationViewModel);
GifLoaderDialogUtils.hideDialog(
context);
if (model.state ==
ViewState.ErrorLocal) {
DrAppToastMsg.showErrorToast(
model.error);
}
5 years ago
},
items: projectsProvider
.doctorClinicsList
.map((item) {
return DropdownMenuItem(
child: AppText(
item.clinicName,
textAlign: TextAlign.left,
5 years ago
),
value: item.clinicID,
);
5 years ago
}).toList(),
)),
],
)
: AppText(
TranslationBase.of(context).noClinic),
),
],
),
5 years ago
isClinic: true,
5 years ago
height: 50,
5 years ago
),
5 years ago
])
])),
content: Column(
children: [
if (model.state != ViewState.ErrorLocal)
Column(
mainAxisSize: MainAxisSize.min,
children: [
model.dashboardItemsList.length > 0
? DashboardSwipeWidget(
model.dashboardItemsList,
model,
(sliderIndex) {
setState(() {
sliderActiveIndex = sliderIndex;
});
},
)
: SizedBox(),
model.dashboardItemsList.length > 0
? FractionallySizedBox(
widthFactor: 0.90,
child: Container(
child: Column(
mainAxisAlignment:
MainAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 10,
),
sliderActiveIndex == 1
? DashboardSliderItemWidget(
model.dashboardItemsList[4])
: sliderActiveIndex == 0
? DashboardSliderItemWidget(
model.dashboardItemsList[3])
: DashboardSliderItemWidget(
model.dashboardItemsList[6]),
])))
: SizedBox(),
],
)
else
Container(
child: ErrorMessage(
error: model.error,
)),
5 years ago
FractionallySizedBox(
// widthFactor: 0.90,
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topRight: Radius.circular(50),
)),
padding: EdgeInsets.only(left: 20, top: 10, right: 20),
margin: EdgeInsets.only(top: 10),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
5 years ago
children: <Widget>[
5 years ago
SizedBox(
height: 10,
),
Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText(
TranslationBase.of(context).patients,
fontSize: 12,
fontWeight: FontWeight.bold,
fontHeight: .5,
),
AppText(
TranslationBase.of(context).services,
fontSize: 22,
fontWeight: FontWeight.bold,
),
5 years ago
],
)),
5 years ago
SizedBox(
height: 10,
),
Container(
5 years ago
height: 120,
child: ListView(
scrollDirection: Axis.horizontal,
children: [
...homePatientsCardsWidget(
model, projectsProvider),
])),
5 years ago
SizedBox(
height: 20,
5 years ago
),
],
),
5 years ago
),
5 years ago
),
5 years ago
],
5 years ago
),
5 years ago
)
]),
5 years ago
]),
),
);
}
List<Widget> homePatientsCardsWidget(
DashboardViewModel model, projectsProvider) {
colorIndex = 0;
List<Color> backgroundColors = [];
backgroundColors.add(Color(0xffD02127));
backgroundColors.add(Colors.grey[300]!);
backgroundColors.add(Color(0xff2B353E));
List<Color> backgroundIconColors = [];
backgroundIconColors.add(Colors.white12);
backgroundIconColors.add(Colors.white38);
backgroundIconColors.add(Colors.white10);
List<Color> textColors = [];
textColors.add(Colors.white);
textColors.add(Colors.black);
textColors.add(Colors.white);
List<HomePatientCard> patientCards = [];
if (model.hasVirtualClinic) {
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
cardIcon: DoctorApp.livecare,
textColor: textColors[colorIndex],
iconSize: 21,
text: "${TranslationBase.of(context).liveCare}\n${TranslationBase.of(context).patients}",
onTap: () {
// TODO MOSA TEST
// PatiantInformtion patient = PatiantInformtion(
// patientStatusType: 43,
// episodeNo: 0,
// vcId: 42342,
// fullName: "mosa test",
// dateofBirth: "2000-05-01 10:42:35.790004"
// );
// Navigator.of(context).pushNamed(PATIENTS_PROFILE, arguments: {
// "patient": patient,
// "patientType": "0",
// "isSearch": false,
// "isInpatient": false,
// "arrivalType": "0",
// "isSearchAndOut": false,
// "isFromLiveCare": true,
// });
Navigator.push(
context,
FadePage(
page: LiveCarePatientScreen(),
),
);
},
));
changeColorIndex();
}
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
cardIcon: DoctorApp.inpatient,
textColor: textColors[colorIndex],
text: TranslationBase.of(context).myInPatient!,
onTap: () {
Navigator.push(
context,
FadePage(
page: InPatientScreen(
specialClinic: model.getSpecialClinic(clinicId ?? projectsProvider!.doctorClinicsList[0]!.clinicID!)!,
),
),
);
},
));
changeColorIndex();
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
//TODO Elham* match the of the icon
cardIcon: DoctorApp.arrival_patients,
textColor: textColors[colorIndex],
text: TranslationBase.of(context).registerNewPatient!,
onTap: () {
Navigator.push(
context,
FadePage(
page: RegisterPatientPage(),
),
);
},
));
changeColorIndex();
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
cardIcon: DoctorApp.arrival_patients,
textColor: textColors[colorIndex],
text: TranslationBase.of(context).myOutPatient_2lines!,
onTap: () {
String date = AppDateUtils.convertDateToFormat(
DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day), 'yyyy-MM-dd');
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => OutPatientsScreen(
patientSearchRequestModel: PatientSearchRequestModel(
Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into flutter_vervion_2_by_elham  Conflicts:  lib/client/base_app_client.dart  lib/config/localized_values.dart  lib/config/size_config.dart  lib/core/model/Prescriptions/prescription_report.dart  lib/core/model/Prescriptions/prescription_report_enh.dart  lib/core/model/auth/activation_Code_req_model.dart  lib/core/model/auth/activation_code_for_verification_screen_model.dart  lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart  lib/core/model/auth/check_activation_code_request_model.dart  lib/core/model/labs/lab_result.dart  lib/core/model/patient_muse/PatientSearchRequestModel.dart  lib/core/model/procedure/get_ordered_procedure_request_model.dart  lib/core/model/referral/MyReferralPatientModel.dart  lib/core/model/sick_leave/sick_leave_patient_model.dart  lib/core/model/sick_leave/sick_leave_patient_request_model.dart  lib/core/service/VideoCallService.dart  lib/core/service/base/base_service.dart  lib/core/service/home/scan_qr_service.dart  lib/core/service/patient/LiveCarePatientServices.dart  lib/core/service/patient/MyReferralPatientService.dart  lib/core/service/patient/patient-doctor-referral-service.dart  lib/core/service/patient_medical_file/lab_order/labs_service.dart  lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart  lib/core/service/patient_medical_file/prescription/prescriptions_service.dart  lib/core/service/patient_medical_file/procedure/procedure_service.dart  lib/core/service/patient_medical_file/radiology/radiology_service.dart  lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart  lib/core/service/patient_medical_file/soap/SOAP_service.dart  lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart  lib/core/viewModel/PatientSearchViewModel.dart  lib/core/viewModel/SOAP_view_model.dart  lib/core/viewModel/authentication_view_model.dart  lib/core/viewModel/base_view_model.dart  lib/core/viewModel/dashboard_view_model.dart  lib/core/viewModel/doctor_replay_view_model.dart  lib/core/viewModel/labs_view_model.dart  lib/core/viewModel/patient-referral-viewmodel.dart  lib/core/viewModel/patient-ucaf-viewmodel.dart  lib/core/viewModel/prescription_view_model.dart  lib/core/viewModel/prescriptions_view_model.dart  lib/core/viewModel/procedure_View_model.dart  lib/core/viewModel/sick_leave_view_model.dart  lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart  lib/models/SOAP/GetPhysicalExamReqModel.dart  lib/models/SOAP/my_selected_allergy.dart  lib/models/SOAP/my_selected_assement.dart  lib/models/SOAP/my_selected_examination.dart  lib/models/SOAP/my_selected_history.dart  lib/models/SOAP/post_chief_complaint_request_model.dart  lib/models/SOAP/post_physical_exam_request_model.dart  lib/models/doctor/list_gt_my_patients_question_model.dart  lib/models/doctor/profile_req_Model.dart  lib/models/doctor/replay/request_doctor_reply.dart  lib/models/livecare/start_call_res.dart  lib/models/patient/patiant_info_model.dart  lib/models/patient/progress_note_request.dart  lib/models/patient/vital_sign/vital_sign_req_model.dart  lib/models/pharmacies/pharmacies_items_request_model.dart  lib/screens/auth/verification_methods_screen.dart  lib/screens/doctor/doctor_repaly_chat.dart  lib/screens/doctor/doctor_replay/doctor_reply_widget.dart  lib/screens/doctor/doctor_reply_screen.dart  lib/screens/doctor/my_referral_patient_screen.dart  lib/screens/home/dashboard_swipe_widget.dart  lib/screens/home/home_patient_card.dart  lib/screens/home/home_screen.dart  lib/screens/live_care/end_call_screen.dart  lib/screens/live_care/live_care_patient_screen.dart  lib/screens/live_care/video_call.dart  lib/screens/medical-file/health_summary_page.dart  lib/screens/medicine/medicine_search_screen.dart  lib/screens/patients/DischargedPatientPage.dart  lib/screens/patients/InPatientPage.dart  lib/screens/patients/PatientsInPatientScreen.dart  lib/screens/patients/insurance_approval_screen_patient.dart  lib/screens/patients/out_patient/out_patient_screen.dart  lib/screens/patients/patient_search/patient_search_header.dart  lib/screens/patients/patient_search/patient_search_result_screen.dart  lib/screens/patients/patient_search/patient_search_screen.dart  lib/screens/patients/profile/UCAF/UCAF-detail-screen.dart  lib/screens/patients/profile/UCAF/UCAF-input-screen.dart  lib/screens/patients/profile/UCAF/page-stepper-widget.dart  lib/screens/patients/profile/admission-request/admission-request-first-screen.dart  lib/screens/patients/profile/admission-request/admission-request-third-screen.dart  lib/screens/patients/profile/admission-request/admission-request_second-screen.dart  lib/screens/patients/profile/lab_result/FlowChartPage.dart  lib/screens/patients/profile/lab_result/LabResultWidget.dart  lib/screens/patients/profile/lab_result/laboratory_result_page.dart  lib/screens/patients/profile/lab_result/laboratory_result_widget.dart  lib/screens/patients/profile/lab_result/labs_home_page.dart  lib/screens/patients/profile/medical_report/AddVerifyMedicalReport.dart  lib/screens/patients/profile/medical_report/MedicalReportPage.dart  lib/screens/patients/profile/notes/note/progress_note_screen.dart  lib/screens/patients/profile/profile_screen/patient_profile_screen.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_InPatient.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_other.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_search.dart  lib/screens/patients/profile/radiology/radiology_details_page.dart  lib/screens/patients/profile/radiology/radiology_home_page.dart  lib/screens/patients/profile/referral/my-referral-detail-screen.dart  lib/screens/patients/profile/referral/my-referral-inpatient-screen.dart  lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart  lib/screens/patients/profile/referral/refer-patient-screen.dart  lib/screens/patients/profile/referral/referral_patient_detail_in-paint.dart  lib/screens/patients/profile/referral/referred-patient-screen.dart  lib/screens/patients/profile/referral/referred_patient_detail_in-paint.dart  lib/screens/patients/profile/soap_update/assessment/add_assessment_details.dart  lib/screens/patients/profile/soap_update/assessment/update_assessment_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_widget.dart  lib/screens/patients/profile/soap_update/objective/examination_item_card.dart  lib/screens/patients/profile/soap_update/objective/examinations_list_search_widget.dart  lib/screens/patients/profile/soap_update/objective/update_objective_page.dart  lib/screens/patients/profile/soap_update/plan/update_plan_page.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_open_items.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_step_header.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_title.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/expandable_SOAP_widget.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/steps_widget.dart  lib/screens/patients/profile/soap_update/subjective/allergies/add_allergies.dart  lib/screens/patients/profile/soap_update/subjective/allergies/update_allergies_widget.dart  lib/screens/patients/profile/soap_update/subjective/history/add_history_dialog.dart  lib/screens/patients/profile/soap_update/subjective/history/priority_bar.dart  lib/screens/patients/profile/soap_update/subjective/history/update_history_widget.dart  lib/screens/patients/profile/soap_update/subjective/medication/add_medication.dart  lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart  lib/screens/patients/profile/soap_update/update_soap_index.dart  lib/screens/patients/profile/vital_sign/vital_sign_details_screen.dart  lib/screens/prescription/add_prescription_form.dart  lib/screens/prescription/prescription_item_in_patient_page.dart  lib/screens/prescription/prescription_text_filed.dart  lib/screens/prescription/prescriptions_page.dart  lib/screens/procedures/ProcedureCard.dart  lib/screens/procedures/add-favourite-procedure.dart  lib/screens/procedures/procedure_checkout_screen.dart  lib/screens/procedures/procedure_screen.dart  lib/screens/reschedule-leaves/add-rescheduleleave.dart  lib/screens/reschedule-leaves/reschedule_leave.dart  lib/screens/sick-leave/add-sickleave.dart  lib/screens/sick-leave/show-sickleave.dart  lib/screens/sick-leave/sick_leave.dart  lib/util/VideoChannel.dart  lib/util/date-utils.dart  lib/util/translations_delegate_base.dart  lib/widgets/patients/patient-referral-item-widget.dart  lib/widgets/patients/patient_card/PatientCard.dart  lib/widgets/patients/profile/PatientProfileButton.dart  lib/widgets/patients/profile/patient-profile-app-bar.dart  lib/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart  lib/widgets/patients/profile/profile-welcome-widget.dart  lib/widgets/patients/profile/profile_medical_info_widget.dart  lib/widgets/patients/profile/profile_medical_info_widget_search.dart  lib/widgets/patients/profile/profile_status_info_widget.dart  lib/widgets/shared/app_texts_widget.dart  lib/widgets/shared/bottom_nav_bar.dart  lib/widgets/shared/bottom_navigation_item.dart  lib/widgets/shared/buttons/app_buttons_widget.dart  lib/widgets/shared/card_with_bg_widget.dart  lib/widgets/shared/dialogs/dailog-list-select.dart  lib/widgets/shared/dialogs/master_key_dailog.dart  lib/widgets/shared/doctor_card.dart  lib/widgets/shared/doctor_card_insurance.dart  lib/widgets/shared/master_key_checkbox_search_allergies_widget.dart  lib/widgets/shared/master_key_checkbox_search_widget.dart  lib/widgets/shared/rounded_container_widget.dart  lib/widgets/shared/text_fields/app-textfield-custom.dart  lib/widgets/shared/text_fields/text_fields_utils.dart  lib/widgets/shared/user-guid/custom_validation_error.dart  lib/widgets/transitions/fade_page.dart  lib/widgets/transitions/slide_up_page.dart  pubspec.lock  pubspec.yaml
4 years ago
from: date, to: date, doctorID: authenticationViewModel.doctorProfile!.doctorID),
),
settings: RouteSettings(name: 'OutPatientsScreen'),
));
},
));
changeColorIndex();
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
cardIcon: DoctorApp.referral_1,
textColor: textColors[colorIndex],
text: TranslationBase.of(context).myPatientsReferral!,
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PatientReferralScreen(),
settings: RouteSettings(name: 'PatientReferralScreen'),
),
);
},
));
changeColorIndex();
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
cardIcon: DoctorApp.search,
textColor: textColors[colorIndex],
text: TranslationBase.of(context).searchPatientDashBoard!,
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PatientSearchScreen(),
settings: RouteSettings(name: 'PatientSearchScreen'),
));
},
));
changeColorIndex();
patientCards.add(HomePatientCard(
backgroundColor: backgroundColors[colorIndex],
backgroundIconColor: backgroundIconColors[colorIndex],
cardIcon: DoctorApp.search_medicines,
textColor: textColors[colorIndex],
text: TranslationBase.of(context).searchMedicineDashboard!,
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => MedicineSearchScreen(),
settings: RouteSettings(name: 'MedicineSearchScreen'),
));
},
));
changeColorIndex();
return [...List.generate(patientCards.length, (index) => patientCards[index]).toList()];
}
changeColorIndex() {
colorIndex++;
if (colorIndex > 2) {
colorIndex = 0;
}
}
5 years ago
}