import 'package:diplomaticquarterapp/config/config.dart';
import 'package:diplomaticquarterapp/core/service/base_service.dart';

class PrescriptionDeliveryService extends BaseService {
  Future insertDeliveryOrder(
      {int lineItemNo,
      double latitude,
      double longitude,
      int appointmentNo,
      int createdBy,
      int dischargeID}) async {
    hasError = false;
    Map<String, dynamic> body = Map();
    body['LineItemNo'] = lineItemNo;
    body['Latitude'] = latitude;
    body['Longitude'] = longitude;
    body['AppointmentNo'] = appointmentNo;
    body['CreatedBy'] = createdBy;
    body['DischargeID'] = dischargeID;
    await baseAppClient.post(INSERT_ER_INERT_PRES_ORDER,
        onSuccess: (dynamic response, int statusCode) {
      var asd="";
        },
        onFailure: (String error, int statusCode) {
      hasError = true;
      print(error);
      super.error = error;
    }, body: body);
  }
}
