diff --git a/lib/core/viewModel/patient-referral-viewmodel.dart b/lib/core/viewModel/patient-referral-viewmodel.dart index 85ecfbae..3f757606 100644 --- a/lib/core/viewModel/patient-referral-viewmodel.dart +++ b/lib/core/viewModel/patient-referral-viewmodel.dart @@ -41,6 +41,8 @@ class PatientReferralViewModel extends BaseViewModel { List doctorsList = []; + List priority = ['One', 'Two', 'Free', 'Four']; + List get clinicDoctorsList => _referralPatientService.doctorsList; diff --git a/lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart b/lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart index a8bcbc5b..53ecff07 100644 --- a/lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart +++ b/lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart @@ -8,6 +8,7 @@ import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart'; import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_dialog_button.dart'; +import 'package:doctor_app_flutter/utils/date-utils.dart'; import 'package:doctor_app_flutter/utils/dr_app_toast_msg.dart'; import 'package:doctor_app_flutter/utils/tab_utils.dart'; import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart'; @@ -44,6 +45,7 @@ class _PatientMakeInPatientReferralScreenState extends State _priorityList = List(); + _priorityList.add( + priority1,); + _priorityList.add( + priority2,); + _priorityList.add( + priority3,); + + final routeArgs = ModalRoute.of(context).settings.arguments as Map; patient = routeArgs['patient']; bool isInpatient = routeArgs['isInpatient']; @@ -408,22 +433,39 @@ class _PatientMakeInPatientReferralScreenState extends State _priorities = [ - // TranslationBase.of(context).veryUrgent.toUpperCase(), - // TranslationBase.of(context).urgent.toUpperCase(), - // TranslationBase.of(context).routine.toUpperCase(), - // ]; - // return Container( - // height: screenSize.height * 0.070, - // width: screenSize.width * 0.95, - // decoration: - // containerBorderDecoration(Color(0Xffffffff), Color(0xFFCCCCCC)), - // child: Row( - // mainAxisSize: MainAxisSize.max, - // crossAxisAlignment: CrossAxisAlignment.center, - // children: _priorities.map((item) { - // bool _isActive = _priorities[_activePriority] == item ? true : false; - // return Expanded( - // child: InkWell( - // child: Center( - // child: Container( - // height: screenSize.height * 0.070, - // decoration: containerBorderDecoration( - // _isActive ? Color(0XFFB8382B) : Colors.white, - // _isActive ? Color(0XFFB8382B) : Colors.white), - // child: Center( - // child: Text( - // item, - // style: TextStyle( - // fontSize: 12, - // color: _isActive ? Colors.white : Colors.black, - // //Colors.black, - // fontWeight: FontWeight.bold, - // ), - // ), - // )), - // ), - // onTap: () { - // print(_priorities.indexOf(item)); - // setState(() { - // _activePriority = _priorities.indexOf(item); - // }); - // }, - // ), - // ); - // }).toList(), - // ), - // ); } String getPriority() { @@ -729,11 +725,11 @@ class _PatientMakeInPatientReferralScreenState extends State