|
|
|
|
@ -22,12 +22,13 @@ class HospitalService extends BaseService {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getHospitals() async {
|
|
|
|
|
Future getHospitals({bool isResBasedOnLoc = true}) async {
|
|
|
|
|
if(isResBasedOnLoc)
|
|
|
|
|
await _getCurrentLocation();
|
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
body['Latitude'] = _latitude;
|
|
|
|
|
body['Longitude'] = _longitude;
|
|
|
|
|
body['IsOnlineCheckIn'] = true;
|
|
|
|
|
body['Latitude'] = isResBasedOnLoc?_latitude:0;
|
|
|
|
|
body['Longitude'] = isResBasedOnLoc?_longitude:0;
|
|
|
|
|
body['IsOnlineCheckIn'] = isResBasedOnLoc;
|
|
|
|
|
body['PatientOutSA'] = 0;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(GET_PROJECT,
|
|
|
|
|
|