|
|
|
@ -325,21 +325,22 @@ class _SearchBot extends State<BottomBarSearch> {
|
|
|
|
List<String> arrDistance = [];
|
|
|
|
List<String> arrDistance = [];
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
service
|
|
|
|
service
|
|
|
|
.getDoctorsList(clinicId, projectId, context, doctorId: doctorName)
|
|
|
|
.getDoctorsList(clinicId, projectId, context, doctorId: doctorId)
|
|
|
|
.then((res) {
|
|
|
|
.then((res) {
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
if (res['DoctorList'].length != 0) {
|
|
|
|
if (res['SearchDoctorsByTime_IsVoiceCommandList'].length != 0) {
|
|
|
|
doctorsList.clear();
|
|
|
|
doctorsList.clear();
|
|
|
|
|
|
|
|
res['SearchDoctorsByTime_IsVoiceCommandList'].forEach((v1) {
|
|
|
|
res['DoctorList'].forEach((v) {
|
|
|
|
v1['DoctorList'].forEach((v) {
|
|
|
|
doctorsList.add(new DoctorList.fromJson(v));
|
|
|
|
doctorsList.add(new DoctorList.fromJson(v));
|
|
|
|
arr.add(new DoctorList.fromJson(v).projectName);
|
|
|
|
arr.add(new DoctorList.fromJson(v).projectName);
|
|
|
|
arrDistance.add(new DoctorList.fromJson(v)
|
|
|
|
arrDistance.add(new DoctorList.fromJson(v)
|
|
|
|
.projectDistanceInKiloMeters
|
|
|
|
.projectDistanceInKiloMeters
|
|
|
|
.toString());
|
|
|
|
.toString());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (res['DoctorList'].length == 1) {
|
|
|
|
});
|
|
|
|
|
|
|
|
if (doctorsList.length == 1) {
|
|
|
|
getDoctorProfile(
|
|
|
|
getDoctorProfile(
|
|
|
|
projectId, clinicId, doctorId[0], context, doctorsList);
|
|
|
|
projectId, clinicId, doctorId[0], context, doctorsList);
|
|
|
|
|
|
|
|
|
|
|
|
|