Dental updates

merge-update-with-lab-changes
haroon amjad 2 years ago
parent 0168f06bb9
commit 7850748ea2

@ -21,8 +21,8 @@ var PACKAGES_ORDERS = '/api/orders';
var PACKAGES_ORDER_HISTORY = '/api/orders/items'; var PACKAGES_ORDER_HISTORY = '/api/orders/items';
var PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara'; var PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara';
// var BASE_URL = 'http://10.50.100.198:4422/'; // var BASE_URL = 'http://10.50.100.198:4422/';
var BASE_URL = 'https://uat.hmgwebservices.com/'; // var BASE_URL = 'https://uat.hmgwebservices.com/';
// var BASE_URL = 'https://hmgwebservices.com/'; var BASE_URL = 'https://hmgwebservices.com/';
// var BASE_URL = 'http://10.20.200.111:1010/'; // var BASE_URL = 'http://10.20.200.111:1010/';
// var BASE_URL = 'https://uat.hmgwebservices.com/'; // var BASE_URL = 'https://uat.hmgwebservices.com/';
// var BASE_URL = 'https://hmgwebservices.com/'; // var BASE_URL = 'https://hmgwebservices.com/';

@ -118,6 +118,7 @@ class _DentalComplaintsState extends State<DentalComplaints> {
return DoctorView( return DoctorView(
doctor: doctor, doctor: doctor,
isLiveCareAppointment: false, isLiveCareAppointment: false,
isContinueDentalPlan: hasDentalPlan,
); );
}).toList(), }).toList(),
)), )),
@ -146,8 +147,8 @@ class _DentalComplaintsState extends State<DentalComplaints> {
confirmMessage: TranslationBase.of(context).continuePlan, confirmMessage: TranslationBase.of(context).continuePlan,
okText: TranslationBase.of(context).yes, okText: TranslationBase.of(context).yes,
cancelText: TranslationBase.of(context).no, cancelText: TranslationBase.of(context).no,
okFunction: () => {Navigator.of(context).pop(), continueDentalPlan()}, okFunction: () => {Navigator.of(context).pop(), continueDentalPlan(), hasDentalPlan = true},
cancelFunction: () => {getChiefComplaintsList()}); cancelFunction: () => {getChiefComplaintsList(), hasDentalPlan = false});
dialog.showAlertDialog(context); dialog.showAlertDialog(context);
} else { } else {
getChiefComplaintsList(); getChiefComplaintsList();
@ -260,8 +261,9 @@ class _DentalComplaintsState extends State<DentalComplaints> {
int languageID = projectViewModel.isArabic ? 1 : 2; int languageID = projectViewModel.isArabic ? 1 : 2;
GifLoaderDialogUtils.showMyDialog(context); GifLoaderDialogUtils.showMyDialog(context);
getLanguageID(); getLanguageID();
hasDentalPlan = false;
ClinicListService service = new ClinicListService(); ClinicListService service = new ClinicListService();
service.getChiefComplaintsList(widget.searchInfo.ClinicID, widget.searchInfo.ProjectID, languageID, context).then((res) { service.getChiefComplaintsList(widget.searchInfo.ClinicID, widget.searchInfo.ProjectID, languageID, false, context).then((res) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
if (res['MessageStatus'] == 1) { if (res['MessageStatus'] == 1) {
setState(() { setState(() {

@ -39,8 +39,9 @@ class DoctorProfile extends StatefulWidget {
final bool isOpenAppt; final bool isOpenAppt;
bool isLiveCareAppointment; bool isLiveCareAppointment;
bool isDoctorNameSearch; bool isDoctorNameSearch;
bool isContinueDentalPlan;
DoctorProfile({@required this.doctor, @required this.docProfileList, @required this.isLiveCareAppointment, this.isOpenAppt = false, this.isDoctorNameSearch = false}); DoctorProfile({@required this.doctor, @required this.docProfileList, @required this.isLiveCareAppointment, this.isOpenAppt = false, this.isDoctorNameSearch = false, this.isContinueDentalPlan = false});
AuthenticatedUser authUser; AuthenticatedUser authUser;
@ -203,6 +204,7 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
doctor: widget.doctor, doctor: widget.doctor,
isLiveCareAppointment: widget.isLiveCareAppointment, isLiveCareAppointment: widget.isLiveCareAppointment,
doctorSchedule: doctorSchedule, doctorSchedule: doctorSchedule,
isContinueDentalPlan: widget.isContinueDentalPlan,
), ),
], ],
controller: _tabController, controller: _tabController,

@ -27,10 +27,11 @@ class DocAvailableAppointments extends StatefulWidget {
static String selectedDate; static String selectedDate;
static String selectedTime; static String selectedTime;
bool isLiveCareAppointment; bool isLiveCareAppointment;
bool isContinueDentalPlan;
final dynamic doctorSchedule; final dynamic doctorSchedule;
static int initialSlotDuration; static int initialSlotDuration;
DocAvailableAppointments({@required this.doctor, this.doctorSchedule, @required this.isLiveCareAppointment}); DocAvailableAppointments({@required this.doctor, this.doctorSchedule, @required this.isLiveCareAppointment, this.isContinueDentalPlan = false});
@override @override
_DocAvailableAppointmentsState createState() => _DocAvailableAppointmentsState(); _DocAvailableAppointmentsState createState() => _DocAvailableAppointmentsState();
@ -320,7 +321,7 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
print(DocAvailableAppointments.initialSlotDuration); print(DocAvailableAppointments.initialSlotDuration);
GifLoaderDialogUtils.showMyDialog(context); GifLoaderDialogUtils.showMyDialog(context);
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
service.getDoctorFreeSlots(docObject.doctorID, docObject.clinicID, docObject.projectID, context, projectViewModel).then((res) { service.getDoctorFreeSlots(docObject.doctorID, docObject.clinicID, docObject.projectID, widget.isContinueDentalPlan, context, projectViewModel).then((res) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
if (res['MessageStatus'] == 1) { if (res['MessageStatus'] == 1) {
if (res['FreeTimeSlots'].length != 0) { if (res['FreeTimeSlots'].length != 0) {

@ -28,6 +28,7 @@ class DoctorView extends StatelessWidget {
bool isObGyneAppointment; bool isObGyneAppointment;
bool isShowFlag; bool isShowFlag;
bool isDoctorNameSearch; bool isDoctorNameSearch;
bool isContinueDentalPlan;
OBGyneProcedureListResponse obGyneProcedureListResponse; OBGyneProcedureListResponse obGyneProcedureListResponse;
final VoidCallback onTap; final VoidCallback onTap;
@ -36,6 +37,7 @@ class DoctorView extends StatelessWidget {
@required this.isLiveCareAppointment, @required this.isLiveCareAppointment,
this.isObGyneAppointment = false, this.isObGyneAppointment = false,
this.isDoctorNameSearch = false, this.isDoctorNameSearch = false,
this.isContinueDentalPlan = false,
this.isShowFlag = true, this.isShowFlag = true,
this.onTap, this.onTap,
this.obGyneProcedureListResponse}); this.obGyneProcedureListResponse});
@ -54,7 +56,7 @@ class DoctorView extends StatelessWidget {
// showDentalChiefComplaintsList(context); // showDentalChiefComplaintsList(context);
// } else // } else
if (isShowFlag) { if (isShowFlag) {
getDoctorsProfile(context, doctor, isAppo: true); getDoctorsProfile(context, doctor, isAppo: true, isContinueDentalPlan: isContinueDentalPlan);
} }
(onTap ?? () {})(); // For log analytics of doctor click from book appointment (onTap ?? () {})(); // For log analytics of doctor click from book appointment
} }
@ -182,7 +184,7 @@ class DoctorView extends StatelessWidget {
return docSpeciality; return docSpeciality;
} }
getDoctorsProfile(context, DoctorList docObject, {isAppo}) { getDoctorsProfile(context, DoctorList docObject, {isAppo, bool isContinueDentalPlan = false}) {
int languageID = projectViewModel.isArabic ? 1 : 2; int languageID = projectViewModel.isArabic ? 1 : 2;
GifLoaderDialogUtils.showMyDialog(context); GifLoaderDialogUtils.showMyDialog(context);
List<DoctorProfileList> docProfileList = []; List<DoctorProfileList> docProfileList = [];
@ -195,7 +197,7 @@ class DoctorView extends StatelessWidget {
docProfileList.add(new DoctorProfileList.fromJson(v)); docProfileList.add(new DoctorProfileList.fromJson(v));
}); });
} else {} } else {}
navigateToDoctorProfile(context, docObject, docProfileList[0], isAppo: isAppo); navigateToDoctorProfile(context, docObject, docProfileList[0], isAppo: isAppo, isContinueDentalPlan: isContinueDentalPlan);
} else { } else {
AppToast.showErrorToast(message: res['ErrorEndUserMessage']); AppToast.showErrorToast(message: res['ErrorEndUserMessage']);
} }
@ -234,7 +236,7 @@ class DoctorView extends StatelessWidget {
FadePage(page: ObGyneTimeSlots(projectID: doctor.projectID, selectedClinicID: doctor.clinicID, selectedDoctorID: doctor.doctorID, obGyneProcedureListResponse: obGyneProcedureListResponse))); FadePage(page: ObGyneTimeSlots(projectID: doctor.projectID, selectedClinicID: doctor.clinicID, selectedDoctorID: doctor.doctorID, obGyneProcedureListResponse: obGyneProcedureListResponse)));
} }
Future navigateToDoctorProfile(context, docObject, docProfile, {isAppo}) async { Future navigateToDoctorProfile(context, docObject, docProfile, {isAppo, bool isContinueDentalPlan = false}) async {
Navigator.push( Navigator.push(
context, context,
FadePage( FadePage(
@ -244,6 +246,7 @@ class DoctorView extends StatelessWidget {
docProfileList: docProfile, docProfileList: docProfile,
isOpenAppt: isAppo, isOpenAppt: isAppo,
isDoctorNameSearch: isDoctorNameSearch, isDoctorNameSearch: isDoctorNameSearch,
isContinueDentalPlan: isContinueDentalPlan,
), ),
), ),
); );

@ -466,7 +466,7 @@ class _CovidTimeSlotsState extends State<ObGyneTimeSlots> with TickerProviderSta
getCovidFreeSlots(BuildContext context, int projectID) { getCovidFreeSlots(BuildContext context, int projectID) {
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
GifLoaderDialogUtils.showMyDialog(context); GifLoaderDialogUtils.showMyDialog(context);
service.getDoctorFreeSlots(widget.selectedDoctorID, widget.selectedClinicID, widget.projectID, context).then((res) { service.getDoctorFreeSlots(widget.selectedDoctorID, widget.selectedClinicID, widget.projectID, false, context).then((res) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
if (res['MessageStatus'] == 1) { if (res['MessageStatus'] == 1) {
if (res['FreeTimeSlots'].length != 0) { if (res['FreeTimeSlots'].length != 0) {

@ -257,7 +257,7 @@ class DoctorsListService extends BaseService {
return Future.value(localRes); return Future.value(localRes);
} }
Future<Map> getDoctorFreeSlots(int docID, int clinicID, int projectID, BuildContext context, [ProjectViewModel projectViewModel]) async { Future<Map> getDoctorFreeSlots(int docID, int clinicID, int projectID, bool isContinueDentalPlan, BuildContext context, [ProjectViewModel projectViewModel]) async {
Map<String, dynamic> request; Map<String, dynamic> request;
Request req = appGlobal.getPublicRequest(); Request req = appGlobal.getPublicRequest();
@ -277,7 +277,8 @@ class DoctorsListService extends BaseService {
"SessionID": null, "SessionID": null,
"isDentalAllowedBackend": false, "isDentalAllowedBackend": false,
"LanguageID": 1, "LanguageID": 1,
"DeviceTypeID": 1 "DeviceTypeID": 1,
"ContinueDentalPlan": isContinueDentalPlan,
}; };
if (clinicID == 253) { if (clinicID == 253) {

@ -61,7 +61,7 @@ class ClinicListService extends BaseService {
return Future.value(localRes); return Future.value(localRes);
} }
Future<Map> getChiefComplaintsList(int clinicID, int projectID, int languageID, BuildContext context, {doctorId}) async { Future<Map> getChiefComplaintsList(int clinicID, int projectID, int languageID, bool isContinueDentalPlan, BuildContext context, {doctorId}) async {
//Utils.showProgressDialog(context); //Utils.showProgressDialog(context);
Map<String, dynamic> request; Map<String, dynamic> request;
@ -86,8 +86,8 @@ class ClinicListService extends BaseService {
"SessionID": null, "SessionID": null,
"isDentalAllowedBackend": true, "isDentalAllowedBackend": true,
"DeviceTypeID": 1, "DeviceTypeID": 1,
"PatientID": 1, // "PatientID": 1,
"ContinueDentalPlan": true, "ContinueDentalPlan": isContinueDentalPlan,
"IsSearchAppointmnetByClinicID": false, "IsSearchAppointmnetByClinicID": false,
"DateofBirth": authUser.dateofBirth "DateofBirth": authUser.dateofBirth
}; };

Loading…
Cancel
Save