|
|
|
@ -66,7 +66,8 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
// "Latitude": 0,
|
|
|
|
|
// "Longitude": 0,
|
|
|
|
|
// "License": true,
|
|
|
|
|
"IsVoiceCommand": doctorId != null && doctorId.length > 0 ? true : false,
|
|
|
|
|
"SearchForVoiceCommand":
|
|
|
|
|
doctorId != null && doctorId.length > 0 ? true : false,
|
|
|
|
|
"DoctorIDsList": doctorId,
|
|
|
|
|
"Latitude": lat != null ? lat.toString() : 0,
|
|
|
|
|
"Longitude": long != null ? long.toString() : 0,
|
|
|
|
@ -212,8 +213,8 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<Map> getDoctorScheduledFreeSlots(
|
|
|
|
|
int docID, int clinicID, int projectID, int serviceID, BuildContext context) async {
|
|
|
|
|
Future<Map> getDoctorScheduledFreeSlots(int docID, int clinicID,
|
|
|
|
|
int projectID, int serviceID, BuildContext context) async {
|
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
|
var languageID = await sharedPref.getString(APP_LANGUAGE);
|
|
|
|
|
Request req = appGlobal.getPublicRequest();
|
|
|
|
@ -241,10 +242,10 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(GET_LIVECARE_SCHEDULE_DOCTOR_TIME_SLOTS,
|
|
|
|
|
onSuccess: (response, statusCode) async {
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -301,8 +302,14 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<Map> insertLiveCareScheduleAppointment(int docID, int clinicID, int projectID, int serviceID,
|
|
|
|
|
String selectedTime, String selectedDate, BuildContext context) async {
|
|
|
|
|
Future<Map> insertLiveCareScheduleAppointment(
|
|
|
|
|
int docID,
|
|
|
|
|
int clinicID,
|
|
|
|
|
int projectID,
|
|
|
|
|
int serviceID,
|
|
|
|
|
String selectedTime,
|
|
|
|
|
String selectedDate,
|
|
|
|
|
BuildContext context) async {
|
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
|
|
|
|
|
|
if (await this.sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
@ -348,10 +355,10 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(INSERT_LIVECARE_SCHEDULE_APPOINTMENT,
|
|
|
|
|
onSuccess: (response, statusCode) async {
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -437,10 +444,10 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(GET_PATIENT_SHARE_LIVECARE,
|
|
|
|
|
onSuccess: (response, statusCode) async {
|
|
|
|
|
localRes = response['OnlineCheckInAppointments'][0];
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
localRes = response['OnlineCheckInAppointments'][0];
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -519,8 +526,8 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<Map> confirmAppointment(
|
|
|
|
|
int appoNo, int clinicID, int projectID, bool isLiveCare, BuildContext context) async {
|
|
|
|
|
Future<Map> confirmAppointment(int appoNo, int clinicID, int projectID,
|
|
|
|
|
bool isLiveCare, BuildContext context) async {
|
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
|
|
|
|
|
|
if (await this.sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
@ -564,9 +571,8 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<Map> insertVIDARequest(
|
|
|
|
|
int appoNo, int clinicID, int projectID, int serviceID, int docID, BuildContext context) async {
|
|
|
|
|
Future<Map> insertVIDARequest(int appoNo, int clinicID, int projectID,
|
|
|
|
|
int serviceID, int docID, BuildContext context) async {
|
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
|
|
|
|
|
|
if (await this.sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
@ -613,10 +619,10 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(INSERT_VIDA_REQUEST,
|
|
|
|
|
onSuccess: (response, statusCode) async {
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
throw error;
|
|
|
|
|
}, body: request);
|
|
|
|
|
return Future.value(localRes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|