// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: taihe_outpatient.proto

package com.ywt.gapi.taihe.outpaitent;

/**
 * <pre>
 *太和门诊服务类    // 对应 taihe-service 项目的 TaiheOutpatientServiceImpl 类
 * </pre>
 *
 * Protobuf service {@code com.ywt.gapi.taihe.outpaitent.TaiheOutpatientService}
 */
public  abstract class TaiheOutpatientService
    implements com.google.protobuf.Service {
  protected TaiheOutpatientService() {}

  public interface Interface {
    /**
     * <pre>
     *生成门诊缴费单
     * </pre>
     *
     * <code>rpc createOutpatient(.com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest) returns (.com.ywt.gapi.taihe.outpaitent.CreateOutpatientResponse);</code>
     */
    public abstract void createOutpatient(
        com.google.protobuf.RpcController controller,
        CreateOutpatientRequest request,
        com.google.protobuf.RpcCallback<CreateOutpatientResponse> done);

    /**
     * <pre>
     *订单支付成功通知
     * </pre>
     *
     * <code>rpc payCallback(.com.ywt.gapi.taihe.outpaitent.PayCallbackRequest) returns (.com.ywt.gapi.taihe.outpaitent.PayCallbackResponse);</code>
     */
    public abstract void payCallback(
        com.google.protobuf.RpcController controller,
        PayCallbackRequest request,
        com.google.protobuf.RpcCallback<PayCallbackResponse> done);

    /**
     * <pre>
     *获取门诊缴费单二维码
     * </pre>
     *
     * <code>rpc getOutpatientQrcode(.com.ywt.gapi.taihe.outpaitent.GetOutpatientQrcodeRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientQrcodeResponse);</code>
     */
    public abstract void getOutpatientQrcode(
        com.google.protobuf.RpcController controller,
        GetOutpatientQrcodeRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientQrcodeResponse> done);

    /**
     * <pre>
     *获取门诊缴费单详情
     * </pre>
     *
     * <code>rpc getOutpatientDetail(.com.ywt.gapi.taihe.outpaitent.GetOutpatientDetailRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientDetailResponse);</code>
     */
    public abstract void getOutpatientDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientDetailRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientDetailResponse> done);

    /**
     * <pre>
     *更新门诊单信息
     * </pre>
     *
     * <code>rpc updateOutpatient(.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest) returns (.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientResponse);</code>
     */
    public abstract void updateOutpatient(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientRequest request,
        com.google.protobuf.RpcCallback<UpdateOutpatientResponse> done);

    /**
     * <pre>
     *门诊缴费订单退款回调
     * </pre>
     *
     * <code>rpc refundOutpatientCallback(.com.ywt.gapi.taihe.outpaitent.RefundOutpatientCallbackRequest) returns (.com.ywt.gapi.taihe.outpaitent.RefundOutpatientCallbackResponse);</code>
     */
    public abstract void refundOutpatientCallback(
        com.google.protobuf.RpcController controller,
        RefundOutpatientCallbackRequest request,
        com.google.protobuf.RpcCallback<RefundOutpatientCallbackResponse> done);

    /**
     * <pre>
     *获取门诊缴费单列表
     * </pre>
     *
     * <code>rpc getOutpatientList(.com.ywt.gapi.taihe.outpaitent.GetOutpatientListRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientListResponse);</code>
     */
    public abstract void getOutpatientList(
        com.google.protobuf.RpcController controller,
        GetOutpatientListRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientListResponse> done);

    /**
     * <pre>
     * 根据 his_patient_id 获取诊疗卡信息
     * </pre>
     *
     * <code>rpc getMedicalCardInfoByPatientId(.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse);</code>
     */
    public abstract void getMedicalCardInfoByPatientId(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByPatientIdRequest request,
        com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done);

    /**
     * <pre>
     * 根据 his_order_no 获取门诊订单信息
     * </pre>
     *
     * <code>rpc getOutpatientOrderByHisOrderNo(.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse);</code>
     */
    public abstract void getOutpatientOrderByHisOrderNo(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderByHisOrderNoRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientOrderByHisOrderNoResponse> done);

    /**
     * <pre>
     * 保存门诊缴费订单明细
     * </pre>
     *
     * <code>rpc saveOutpatientOrderDetails(.com.ywt.gapi.taihe.outpaitent.SaveOutpatientOrderDetailsRequest) returns (.com.ywt.gapi.taihe.outpaitent.BaseResult);</code>
     */
    public abstract void saveOutpatientOrderDetails(
        com.google.protobuf.RpcController controller,
        SaveOutpatientOrderDetailsRequest request,
        com.google.protobuf.RpcCallback<BaseResult> done);

    /**
     * <pre>
     * 获取门诊缴费订单明细
     * </pre>
     *
     * <code>rpc getOutpatientOrderDetail(.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderDetailRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderDetailResponse);</code>
     */
    public abstract void getOutpatientOrderDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderDetailRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientOrderDetailResponse> done);

    /**
     * <pre>
     * 根据 medical_id 获取诊疗卡信息
     * </pre>
     *
     * <code>rpc getMedicalCardInfoById(.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByIdRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse);</code>
     */
    public abstract void getMedicalCardInfoById(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByIdRequest request,
        com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done);

    /**
     * <pre>
     * 更新 outpatient order
     * </pre>
     *
     * <code>rpc updateOutpatientOrder(.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientOrderRequest) returns (.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientOrderResponse);</code>
     */
    public abstract void updateOutpatientOrder(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientOrderRequest request,
        com.google.protobuf.RpcCallback<UpdateOutpatientOrderResponse> done);

    /**
     * <pre>
     * 获取最近一次门诊缴费
     * </pre>
     *
     * <code>rpc getLatestOutpatientOrder(.com.ywt.gapi.taihe.outpaitent.GetLatestOutpatientOrderRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetLatestOutpatientOrderResponse);</code>
     */
    public abstract void getLatestOutpatientOrder(
        com.google.protobuf.RpcController controller,
        GetLatestOutpatientOrderRequest request,
        com.google.protobuf.RpcCallback<GetLatestOutpatientOrderResponse> done);

    /**
     * <code>rpc getOutpatientConfigs(.com.ywt.gapi.taihe.outpaitent.GetOutPatientConfigRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutPatientConfigResponse);</code>
     */
    public abstract void getOutpatientConfigs(
        com.google.protobuf.RpcController controller,
        GetOutPatientConfigRequest request,
        com.google.protobuf.RpcCallback<GetOutPatientConfigResponse> done);

  }

  public static com.google.protobuf.Service newReflectiveService(
      final Interface impl) {
    return new TaiheOutpatientService() {
      @Override
      public  void createOutpatient(
          com.google.protobuf.RpcController controller,
          CreateOutpatientRequest request,
          com.google.protobuf.RpcCallback<CreateOutpatientResponse> done) {
        impl.createOutpatient(controller, request, done);
      }

      @Override
      public  void payCallback(
          com.google.protobuf.RpcController controller,
          PayCallbackRequest request,
          com.google.protobuf.RpcCallback<PayCallbackResponse> done) {
        impl.payCallback(controller, request, done);
      }

      @Override
      public  void getOutpatientQrcode(
          com.google.protobuf.RpcController controller,
          GetOutpatientQrcodeRequest request,
          com.google.protobuf.RpcCallback<GetOutpatientQrcodeResponse> done) {
        impl.getOutpatientQrcode(controller, request, done);
      }

      @Override
      public  void getOutpatientDetail(
          com.google.protobuf.RpcController controller,
          GetOutpatientDetailRequest request,
          com.google.protobuf.RpcCallback<GetOutpatientDetailResponse> done) {
        impl.getOutpatientDetail(controller, request, done);
      }

      @Override
      public  void updateOutpatient(
          com.google.protobuf.RpcController controller,
          UpdateOutpatientRequest request,
          com.google.protobuf.RpcCallback<UpdateOutpatientResponse> done) {
        impl.updateOutpatient(controller, request, done);
      }

      @Override
      public  void refundOutpatientCallback(
          com.google.protobuf.RpcController controller,
          RefundOutpatientCallbackRequest request,
          com.google.protobuf.RpcCallback<RefundOutpatientCallbackResponse> done) {
        impl.refundOutpatientCallback(controller, request, done);
      }

      @Override
      public  void getOutpatientList(
          com.google.protobuf.RpcController controller,
          GetOutpatientListRequest request,
          com.google.protobuf.RpcCallback<GetOutpatientListResponse> done) {
        impl.getOutpatientList(controller, request, done);
      }

      @Override
      public  void getMedicalCardInfoByPatientId(
          com.google.protobuf.RpcController controller,
          GetMedicalCardInfoByPatientIdRequest request,
          com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done) {
        impl.getMedicalCardInfoByPatientId(controller, request, done);
      }

      @Override
      public  void getOutpatientOrderByHisOrderNo(
          com.google.protobuf.RpcController controller,
          GetOutpatientOrderByHisOrderNoRequest request,
          com.google.protobuf.RpcCallback<GetOutpatientOrderByHisOrderNoResponse> done) {
        impl.getOutpatientOrderByHisOrderNo(controller, request, done);
      }

      @Override
      public  void saveOutpatientOrderDetails(
          com.google.protobuf.RpcController controller,
          SaveOutpatientOrderDetailsRequest request,
          com.google.protobuf.RpcCallback<BaseResult> done) {
        impl.saveOutpatientOrderDetails(controller, request, done);
      }

      @Override
      public  void getOutpatientOrderDetail(
          com.google.protobuf.RpcController controller,
          GetOutpatientOrderDetailRequest request,
          com.google.protobuf.RpcCallback<GetOutpatientOrderDetailResponse> done) {
        impl.getOutpatientOrderDetail(controller, request, done);
      }

      @Override
      public  void getMedicalCardInfoById(
          com.google.protobuf.RpcController controller,
          GetMedicalCardInfoByIdRequest request,
          com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done) {
        impl.getMedicalCardInfoById(controller, request, done);
      }

      @Override
      public  void updateOutpatientOrder(
          com.google.protobuf.RpcController controller,
          UpdateOutpatientOrderRequest request,
          com.google.protobuf.RpcCallback<UpdateOutpatientOrderResponse> done) {
        impl.updateOutpatientOrder(controller, request, done);
      }

      @Override
      public  void getLatestOutpatientOrder(
          com.google.protobuf.RpcController controller,
          GetLatestOutpatientOrderRequest request,
          com.google.protobuf.RpcCallback<GetLatestOutpatientOrderResponse> done) {
        impl.getLatestOutpatientOrder(controller, request, done);
      }

      @Override
      public  void getOutpatientConfigs(
          com.google.protobuf.RpcController controller,
          GetOutPatientConfigRequest request,
          com.google.protobuf.RpcCallback<GetOutPatientConfigResponse> done) {
        impl.getOutpatientConfigs(controller, request, done);
      }

    };
  }

  public static com.google.protobuf.BlockingService
      newReflectiveBlockingService(final BlockingInterface impl) {
    return new com.google.protobuf.BlockingService() {
      public final com.google.protobuf.Descriptors.ServiceDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }

      public final com.google.protobuf.Message callBlockingMethod(
          com.google.protobuf.Descriptors.MethodDescriptor method,
          com.google.protobuf.RpcController controller,
          com.google.protobuf.Message request)
          throws com.google.protobuf.ServiceException {
        if (method.getService() != getDescriptor()) {
          throw new IllegalArgumentException(
            "Service.callBlockingMethod() given method descriptor for " +
            "wrong service type.");
        }
        switch(method.getIndex()) {
          case 0:
            return impl.createOutpatient(controller, (CreateOutpatientRequest)request);
          case 1:
            return impl.payCallback(controller, (PayCallbackRequest)request);
          case 2:
            return impl.getOutpatientQrcode(controller, (GetOutpatientQrcodeRequest)request);
          case 3:
            return impl.getOutpatientDetail(controller, (GetOutpatientDetailRequest)request);
          case 4:
            return impl.updateOutpatient(controller, (UpdateOutpatientRequest)request);
          case 5:
            return impl.refundOutpatientCallback(controller, (RefundOutpatientCallbackRequest)request);
          case 6:
            return impl.getOutpatientList(controller, (GetOutpatientListRequest)request);
          case 7:
            return impl.getMedicalCardInfoByPatientId(controller, (GetMedicalCardInfoByPatientIdRequest)request);
          case 8:
            return impl.getOutpatientOrderByHisOrderNo(controller, (GetOutpatientOrderByHisOrderNoRequest)request);
          case 9:
            return impl.saveOutpatientOrderDetails(controller, (SaveOutpatientOrderDetailsRequest)request);
          case 10:
            return impl.getOutpatientOrderDetail(controller, (GetOutpatientOrderDetailRequest)request);
          case 11:
            return impl.getMedicalCardInfoById(controller, (GetMedicalCardInfoByIdRequest)request);
          case 12:
            return impl.updateOutpatientOrder(controller, (UpdateOutpatientOrderRequest)request);
          case 13:
            return impl.getLatestOutpatientOrder(controller, (GetLatestOutpatientOrderRequest)request);
          case 14:
            return impl.getOutpatientConfigs(controller, (GetOutPatientConfigRequest)request);
          default:
            throw new AssertionError("Can't get here.");
        }
      }

      public final com.google.protobuf.Message
          getRequestPrototype(
          com.google.protobuf.Descriptors.MethodDescriptor method) {
        if (method.getService() != getDescriptor()) {
          throw new IllegalArgumentException(
            "Service.getRequestPrototype() given method " +
            "descriptor for wrong service type.");
        }
        switch(method.getIndex()) {
          case 0:
            return CreateOutpatientRequest.getDefaultInstance();
          case 1:
            return PayCallbackRequest.getDefaultInstance();
          case 2:
            return GetOutpatientQrcodeRequest.getDefaultInstance();
          case 3:
            return GetOutpatientDetailRequest.getDefaultInstance();
          case 4:
            return UpdateOutpatientRequest.getDefaultInstance();
          case 5:
            return RefundOutpatientCallbackRequest.getDefaultInstance();
          case 6:
            return GetOutpatientListRequest.getDefaultInstance();
          case 7:
            return GetMedicalCardInfoByPatientIdRequest.getDefaultInstance();
          case 8:
            return GetOutpatientOrderByHisOrderNoRequest.getDefaultInstance();
          case 9:
            return SaveOutpatientOrderDetailsRequest.getDefaultInstance();
          case 10:
            return GetOutpatientOrderDetailRequest.getDefaultInstance();
          case 11:
            return GetMedicalCardInfoByIdRequest.getDefaultInstance();
          case 12:
            return UpdateOutpatientOrderRequest.getDefaultInstance();
          case 13:
            return GetLatestOutpatientOrderRequest.getDefaultInstance();
          case 14:
            return GetOutPatientConfigRequest.getDefaultInstance();
          default:
            throw new AssertionError("Can't get here.");
        }
      }

      public final com.google.protobuf.Message
          getResponsePrototype(
          com.google.protobuf.Descriptors.MethodDescriptor method) {
        if (method.getService() != getDescriptor()) {
          throw new IllegalArgumentException(
            "Service.getResponsePrototype() given method " +
            "descriptor for wrong service type.");
        }
        switch(method.getIndex()) {
          case 0:
            return CreateOutpatientResponse.getDefaultInstance();
          case 1:
            return PayCallbackResponse.getDefaultInstance();
          case 2:
            return GetOutpatientQrcodeResponse.getDefaultInstance();
          case 3:
            return GetOutpatientDetailResponse.getDefaultInstance();
          case 4:
            return UpdateOutpatientResponse.getDefaultInstance();
          case 5:
            return RefundOutpatientCallbackResponse.getDefaultInstance();
          case 6:
            return GetOutpatientListResponse.getDefaultInstance();
          case 7:
            return GetMedicalCardInfoByPatientIdResponse.getDefaultInstance();
          case 8:
            return GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance();
          case 9:
            return BaseResult.getDefaultInstance();
          case 10:
            return GetOutpatientOrderDetailResponse.getDefaultInstance();
          case 11:
            return GetMedicalCardInfoByPatientIdResponse.getDefaultInstance();
          case 12:
            return UpdateOutpatientOrderResponse.getDefaultInstance();
          case 13:
            return GetLatestOutpatientOrderResponse.getDefaultInstance();
          case 14:
            return GetOutPatientConfigResponse.getDefaultInstance();
          default:
            throw new AssertionError("Can't get here.");
        }
      }

    };
  }

  /**
   * <pre>
   *生成门诊缴费单
   * </pre>
   *
   * <code>rpc createOutpatient(.com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest) returns (.com.ywt.gapi.taihe.outpaitent.CreateOutpatientResponse);</code>
   */
  public abstract void createOutpatient(
      com.google.protobuf.RpcController controller,
      CreateOutpatientRequest request,
      com.google.protobuf.RpcCallback<CreateOutpatientResponse> done);

  /**
   * <pre>
   *订单支付成功通知
   * </pre>
   *
   * <code>rpc payCallback(.com.ywt.gapi.taihe.outpaitent.PayCallbackRequest) returns (.com.ywt.gapi.taihe.outpaitent.PayCallbackResponse);</code>
   */
  public abstract void payCallback(
      com.google.protobuf.RpcController controller,
      PayCallbackRequest request,
      com.google.protobuf.RpcCallback<PayCallbackResponse> done);

  /**
   * <pre>
   *获取门诊缴费单二维码
   * </pre>
   *
   * <code>rpc getOutpatientQrcode(.com.ywt.gapi.taihe.outpaitent.GetOutpatientQrcodeRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientQrcodeResponse);</code>
   */
  public abstract void getOutpatientQrcode(
      com.google.protobuf.RpcController controller,
      GetOutpatientQrcodeRequest request,
      com.google.protobuf.RpcCallback<GetOutpatientQrcodeResponse> done);

  /**
   * <pre>
   *获取门诊缴费单详情
   * </pre>
   *
   * <code>rpc getOutpatientDetail(.com.ywt.gapi.taihe.outpaitent.GetOutpatientDetailRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientDetailResponse);</code>
   */
  public abstract void getOutpatientDetail(
      com.google.protobuf.RpcController controller,
      GetOutpatientDetailRequest request,
      com.google.protobuf.RpcCallback<GetOutpatientDetailResponse> done);

  /**
   * <pre>
   *更新门诊单信息
   * </pre>
   *
   * <code>rpc updateOutpatient(.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest) returns (.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientResponse);</code>
   */
  public abstract void updateOutpatient(
      com.google.protobuf.RpcController controller,
      UpdateOutpatientRequest request,
      com.google.protobuf.RpcCallback<UpdateOutpatientResponse> done);

  /**
   * <pre>
   *门诊缴费订单退款回调
   * </pre>
   *
   * <code>rpc refundOutpatientCallback(.com.ywt.gapi.taihe.outpaitent.RefundOutpatientCallbackRequest) returns (.com.ywt.gapi.taihe.outpaitent.RefundOutpatientCallbackResponse);</code>
   */
  public abstract void refundOutpatientCallback(
      com.google.protobuf.RpcController controller,
      RefundOutpatientCallbackRequest request,
      com.google.protobuf.RpcCallback<RefundOutpatientCallbackResponse> done);

  /**
   * <pre>
   *获取门诊缴费单列表
   * </pre>
   *
   * <code>rpc getOutpatientList(.com.ywt.gapi.taihe.outpaitent.GetOutpatientListRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientListResponse);</code>
   */
  public abstract void getOutpatientList(
      com.google.protobuf.RpcController controller,
      GetOutpatientListRequest request,
      com.google.protobuf.RpcCallback<GetOutpatientListResponse> done);

  /**
   * <pre>
   * 根据 his_patient_id 获取诊疗卡信息
   * </pre>
   *
   * <code>rpc getMedicalCardInfoByPatientId(.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse);</code>
   */
  public abstract void getMedicalCardInfoByPatientId(
      com.google.protobuf.RpcController controller,
      GetMedicalCardInfoByPatientIdRequest request,
      com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done);

  /**
   * <pre>
   * 根据 his_order_no 获取门诊订单信息
   * </pre>
   *
   * <code>rpc getOutpatientOrderByHisOrderNo(.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse);</code>
   */
  public abstract void getOutpatientOrderByHisOrderNo(
      com.google.protobuf.RpcController controller,
      GetOutpatientOrderByHisOrderNoRequest request,
      com.google.protobuf.RpcCallback<GetOutpatientOrderByHisOrderNoResponse> done);

  /**
   * <pre>
   * 保存门诊缴费订单明细
   * </pre>
   *
   * <code>rpc saveOutpatientOrderDetails(.com.ywt.gapi.taihe.outpaitent.SaveOutpatientOrderDetailsRequest) returns (.com.ywt.gapi.taihe.outpaitent.BaseResult);</code>
   */
  public abstract void saveOutpatientOrderDetails(
      com.google.protobuf.RpcController controller,
      SaveOutpatientOrderDetailsRequest request,
      com.google.protobuf.RpcCallback<BaseResult> done);

  /**
   * <pre>
   * 获取门诊缴费订单明细
   * </pre>
   *
   * <code>rpc getOutpatientOrderDetail(.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderDetailRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderDetailResponse);</code>
   */
  public abstract void getOutpatientOrderDetail(
      com.google.protobuf.RpcController controller,
      GetOutpatientOrderDetailRequest request,
      com.google.protobuf.RpcCallback<GetOutpatientOrderDetailResponse> done);

  /**
   * <pre>
   * 根据 medical_id 获取诊疗卡信息
   * </pre>
   *
   * <code>rpc getMedicalCardInfoById(.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByIdRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse);</code>
   */
  public abstract void getMedicalCardInfoById(
      com.google.protobuf.RpcController controller,
      GetMedicalCardInfoByIdRequest request,
      com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done);

  /**
   * <pre>
   * 更新 outpatient order
   * </pre>
   *
   * <code>rpc updateOutpatientOrder(.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientOrderRequest) returns (.com.ywt.gapi.taihe.outpaitent.UpdateOutpatientOrderResponse);</code>
   */
  public abstract void updateOutpatientOrder(
      com.google.protobuf.RpcController controller,
      UpdateOutpatientOrderRequest request,
      com.google.protobuf.RpcCallback<UpdateOutpatientOrderResponse> done);

  /**
   * <pre>
   * 获取最近一次门诊缴费
   * </pre>
   *
   * <code>rpc getLatestOutpatientOrder(.com.ywt.gapi.taihe.outpaitent.GetLatestOutpatientOrderRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetLatestOutpatientOrderResponse);</code>
   */
  public abstract void getLatestOutpatientOrder(
      com.google.protobuf.RpcController controller,
      GetLatestOutpatientOrderRequest request,
      com.google.protobuf.RpcCallback<GetLatestOutpatientOrderResponse> done);

  /**
   * <code>rpc getOutpatientConfigs(.com.ywt.gapi.taihe.outpaitent.GetOutPatientConfigRequest) returns (.com.ywt.gapi.taihe.outpaitent.GetOutPatientConfigResponse);</code>
   */
  public abstract void getOutpatientConfigs(
      com.google.protobuf.RpcController controller,
      GetOutPatientConfigRequest request,
      com.google.protobuf.RpcCallback<GetOutPatientConfigResponse> done);

  public static final
      com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptor() {
    return TaiheOutpatient.getDescriptor().getServices().get(0);
  }
  public final com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptorForType() {
    return getDescriptor();
  }

  public final void callMethod(
      com.google.protobuf.Descriptors.MethodDescriptor method,
      com.google.protobuf.RpcController controller,
      com.google.protobuf.Message request,
      com.google.protobuf.RpcCallback<
        com.google.protobuf.Message> done) {
    if (method.getService() != getDescriptor()) {
      throw new IllegalArgumentException(
        "Service.callMethod() given method descriptor for wrong " +
        "service type.");
    }
    switch(method.getIndex()) {
      case 0:
        this.createOutpatient(controller, (CreateOutpatientRequest)request,
          com.google.protobuf.RpcUtil.<CreateOutpatientResponse>specializeCallback(
            done));
        return;
      case 1:
        this.payCallback(controller, (PayCallbackRequest)request,
          com.google.protobuf.RpcUtil.<PayCallbackResponse>specializeCallback(
            done));
        return;
      case 2:
        this.getOutpatientQrcode(controller, (GetOutpatientQrcodeRequest)request,
          com.google.protobuf.RpcUtil.<GetOutpatientQrcodeResponse>specializeCallback(
            done));
        return;
      case 3:
        this.getOutpatientDetail(controller, (GetOutpatientDetailRequest)request,
          com.google.protobuf.RpcUtil.<GetOutpatientDetailResponse>specializeCallback(
            done));
        return;
      case 4:
        this.updateOutpatient(controller, (UpdateOutpatientRequest)request,
          com.google.protobuf.RpcUtil.<UpdateOutpatientResponse>specializeCallback(
            done));
        return;
      case 5:
        this.refundOutpatientCallback(controller, (RefundOutpatientCallbackRequest)request,
          com.google.protobuf.RpcUtil.<RefundOutpatientCallbackResponse>specializeCallback(
            done));
        return;
      case 6:
        this.getOutpatientList(controller, (GetOutpatientListRequest)request,
          com.google.protobuf.RpcUtil.<GetOutpatientListResponse>specializeCallback(
            done));
        return;
      case 7:
        this.getMedicalCardInfoByPatientId(controller, (GetMedicalCardInfoByPatientIdRequest)request,
          com.google.protobuf.RpcUtil.<GetMedicalCardInfoByPatientIdResponse>specializeCallback(
            done));
        return;
      case 8:
        this.getOutpatientOrderByHisOrderNo(controller, (GetOutpatientOrderByHisOrderNoRequest)request,
          com.google.protobuf.RpcUtil.<GetOutpatientOrderByHisOrderNoResponse>specializeCallback(
            done));
        return;
      case 9:
        this.saveOutpatientOrderDetails(controller, (SaveOutpatientOrderDetailsRequest)request,
          com.google.protobuf.RpcUtil.<BaseResult>specializeCallback(
            done));
        return;
      case 10:
        this.getOutpatientOrderDetail(controller, (GetOutpatientOrderDetailRequest)request,
          com.google.protobuf.RpcUtil.<GetOutpatientOrderDetailResponse>specializeCallback(
            done));
        return;
      case 11:
        this.getMedicalCardInfoById(controller, (GetMedicalCardInfoByIdRequest)request,
          com.google.protobuf.RpcUtil.<GetMedicalCardInfoByPatientIdResponse>specializeCallback(
            done));
        return;
      case 12:
        this.updateOutpatientOrder(controller, (UpdateOutpatientOrderRequest)request,
          com.google.protobuf.RpcUtil.<UpdateOutpatientOrderResponse>specializeCallback(
            done));
        return;
      case 13:
        this.getLatestOutpatientOrder(controller, (GetLatestOutpatientOrderRequest)request,
          com.google.protobuf.RpcUtil.<GetLatestOutpatientOrderResponse>specializeCallback(
            done));
        return;
      case 14:
        this.getOutpatientConfigs(controller, (GetOutPatientConfigRequest)request,
          com.google.protobuf.RpcUtil.<GetOutPatientConfigResponse>specializeCallback(
            done));
        return;
      default:
        throw new AssertionError("Can't get here.");
    }
  }

  public final com.google.protobuf.Message
      getRequestPrototype(
      com.google.protobuf.Descriptors.MethodDescriptor method) {
    if (method.getService() != getDescriptor()) {
      throw new IllegalArgumentException(
        "Service.getRequestPrototype() given method " +
        "descriptor for wrong service type.");
    }
    switch(method.getIndex()) {
      case 0:
        return CreateOutpatientRequest.getDefaultInstance();
      case 1:
        return PayCallbackRequest.getDefaultInstance();
      case 2:
        return GetOutpatientQrcodeRequest.getDefaultInstance();
      case 3:
        return GetOutpatientDetailRequest.getDefaultInstance();
      case 4:
        return UpdateOutpatientRequest.getDefaultInstance();
      case 5:
        return RefundOutpatientCallbackRequest.getDefaultInstance();
      case 6:
        return GetOutpatientListRequest.getDefaultInstance();
      case 7:
        return GetMedicalCardInfoByPatientIdRequest.getDefaultInstance();
      case 8:
        return GetOutpatientOrderByHisOrderNoRequest.getDefaultInstance();
      case 9:
        return SaveOutpatientOrderDetailsRequest.getDefaultInstance();
      case 10:
        return GetOutpatientOrderDetailRequest.getDefaultInstance();
      case 11:
        return GetMedicalCardInfoByIdRequest.getDefaultInstance();
      case 12:
        return UpdateOutpatientOrderRequest.getDefaultInstance();
      case 13:
        return GetLatestOutpatientOrderRequest.getDefaultInstance();
      case 14:
        return GetOutPatientConfigRequest.getDefaultInstance();
      default:
        throw new AssertionError("Can't get here.");
    }
  }

  public final com.google.protobuf.Message
      getResponsePrototype(
      com.google.protobuf.Descriptors.MethodDescriptor method) {
    if (method.getService() != getDescriptor()) {
      throw new IllegalArgumentException(
        "Service.getResponsePrototype() given method " +
        "descriptor for wrong service type.");
    }
    switch(method.getIndex()) {
      case 0:
        return CreateOutpatientResponse.getDefaultInstance();
      case 1:
        return PayCallbackResponse.getDefaultInstance();
      case 2:
        return GetOutpatientQrcodeResponse.getDefaultInstance();
      case 3:
        return GetOutpatientDetailResponse.getDefaultInstance();
      case 4:
        return UpdateOutpatientResponse.getDefaultInstance();
      case 5:
        return RefundOutpatientCallbackResponse.getDefaultInstance();
      case 6:
        return GetOutpatientListResponse.getDefaultInstance();
      case 7:
        return GetMedicalCardInfoByPatientIdResponse.getDefaultInstance();
      case 8:
        return GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance();
      case 9:
        return BaseResult.getDefaultInstance();
      case 10:
        return GetOutpatientOrderDetailResponse.getDefaultInstance();
      case 11:
        return GetMedicalCardInfoByPatientIdResponse.getDefaultInstance();
      case 12:
        return UpdateOutpatientOrderResponse.getDefaultInstance();
      case 13:
        return GetLatestOutpatientOrderResponse.getDefaultInstance();
      case 14:
        return GetOutPatientConfigResponse.getDefaultInstance();
      default:
        throw new AssertionError("Can't get here.");
    }
  }

  public static Stub newStub(
      com.google.protobuf.RpcChannel channel) {
    return new Stub(channel);
  }

  public static final class Stub extends TaiheOutpatientService implements Interface {
    private Stub(com.google.protobuf.RpcChannel channel) {
      this.channel = channel;
    }

    private final com.google.protobuf.RpcChannel channel;

    public com.google.protobuf.RpcChannel getChannel() {
      return channel;
    }

    public  void createOutpatient(
        com.google.protobuf.RpcController controller,
        CreateOutpatientRequest request,
        com.google.protobuf.RpcCallback<CreateOutpatientResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        CreateOutpatientResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          CreateOutpatientResponse.class,
          CreateOutpatientResponse.getDefaultInstance()));
    }

    public  void payCallback(
        com.google.protobuf.RpcController controller,
        PayCallbackRequest request,
        com.google.protobuf.RpcCallback<PayCallbackResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        PayCallbackResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          PayCallbackResponse.class,
          PayCallbackResponse.getDefaultInstance()));
    }

    public  void getOutpatientQrcode(
        com.google.protobuf.RpcController controller,
        GetOutpatientQrcodeRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientQrcodeResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        GetOutpatientQrcodeResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetOutpatientQrcodeResponse.class,
          GetOutpatientQrcodeResponse.getDefaultInstance()));
    }

    public  void getOutpatientDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientDetailRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientDetailResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        GetOutpatientDetailResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetOutpatientDetailResponse.class,
          GetOutpatientDetailResponse.getDefaultInstance()));
    }

    public  void updateOutpatient(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientRequest request,
        com.google.protobuf.RpcCallback<UpdateOutpatientResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        UpdateOutpatientResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          UpdateOutpatientResponse.class,
          UpdateOutpatientResponse.getDefaultInstance()));
    }

    public  void refundOutpatientCallback(
        com.google.protobuf.RpcController controller,
        RefundOutpatientCallbackRequest request,
        com.google.protobuf.RpcCallback<RefundOutpatientCallbackResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        RefundOutpatientCallbackResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          RefundOutpatientCallbackResponse.class,
          RefundOutpatientCallbackResponse.getDefaultInstance()));
    }

    public  void getOutpatientList(
        com.google.protobuf.RpcController controller,
        GetOutpatientListRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientListResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        GetOutpatientListResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetOutpatientListResponse.class,
          GetOutpatientListResponse.getDefaultInstance()));
    }

    public  void getMedicalCardInfoByPatientId(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByPatientIdRequest request,
        com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(7),
        controller,
        request,
        GetMedicalCardInfoByPatientIdResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetMedicalCardInfoByPatientIdResponse.class,
          GetMedicalCardInfoByPatientIdResponse.getDefaultInstance()));
    }

    public  void getOutpatientOrderByHisOrderNo(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderByHisOrderNoRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientOrderByHisOrderNoResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(8),
        controller,
        request,
        GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetOutpatientOrderByHisOrderNoResponse.class,
          GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance()));
    }

    public  void saveOutpatientOrderDetails(
        com.google.protobuf.RpcController controller,
        SaveOutpatientOrderDetailsRequest request,
        com.google.protobuf.RpcCallback<BaseResult> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(9),
        controller,
        request,
        BaseResult.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          BaseResult.class,
          BaseResult.getDefaultInstance()));
    }

    public  void getOutpatientOrderDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderDetailRequest request,
        com.google.protobuf.RpcCallback<GetOutpatientOrderDetailResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(10),
        controller,
        request,
        GetOutpatientOrderDetailResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetOutpatientOrderDetailResponse.class,
          GetOutpatientOrderDetailResponse.getDefaultInstance()));
    }

    public  void getMedicalCardInfoById(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByIdRequest request,
        com.google.protobuf.RpcCallback<GetMedicalCardInfoByPatientIdResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(11),
        controller,
        request,
        GetMedicalCardInfoByPatientIdResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetMedicalCardInfoByPatientIdResponse.class,
          GetMedicalCardInfoByPatientIdResponse.getDefaultInstance()));
    }

    public  void updateOutpatientOrder(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientOrderRequest request,
        com.google.protobuf.RpcCallback<UpdateOutpatientOrderResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(12),
        controller,
        request,
        UpdateOutpatientOrderResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          UpdateOutpatientOrderResponse.class,
          UpdateOutpatientOrderResponse.getDefaultInstance()));
    }

    public  void getLatestOutpatientOrder(
        com.google.protobuf.RpcController controller,
        GetLatestOutpatientOrderRequest request,
        com.google.protobuf.RpcCallback<GetLatestOutpatientOrderResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(13),
        controller,
        request,
        GetLatestOutpatientOrderResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetLatestOutpatientOrderResponse.class,
          GetLatestOutpatientOrderResponse.getDefaultInstance()));
    }

    public  void getOutpatientConfigs(
        com.google.protobuf.RpcController controller,
        GetOutPatientConfigRequest request,
        com.google.protobuf.RpcCallback<GetOutPatientConfigResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(14),
        controller,
        request,
        GetOutPatientConfigResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          GetOutPatientConfigResponse.class,
          GetOutPatientConfigResponse.getDefaultInstance()));
    }
  }

  public static BlockingInterface newBlockingStub(
      com.google.protobuf.BlockingRpcChannel channel) {
    return new BlockingStub(channel);
  }

  public interface BlockingInterface {
    public CreateOutpatientResponse createOutpatient(
        com.google.protobuf.RpcController controller,
        CreateOutpatientRequest request)
        throws com.google.protobuf.ServiceException;

    public PayCallbackResponse payCallback(
        com.google.protobuf.RpcController controller,
        PayCallbackRequest request)
        throws com.google.protobuf.ServiceException;

    public GetOutpatientQrcodeResponse getOutpatientQrcode(
        com.google.protobuf.RpcController controller,
        GetOutpatientQrcodeRequest request)
        throws com.google.protobuf.ServiceException;

    public GetOutpatientDetailResponse getOutpatientDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientDetailRequest request)
        throws com.google.protobuf.ServiceException;

    public UpdateOutpatientResponse updateOutpatient(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientRequest request)
        throws com.google.protobuf.ServiceException;

    public RefundOutpatientCallbackResponse refundOutpatientCallback(
        com.google.protobuf.RpcController controller,
        RefundOutpatientCallbackRequest request)
        throws com.google.protobuf.ServiceException;

    public GetOutpatientListResponse getOutpatientList(
        com.google.protobuf.RpcController controller,
        GetOutpatientListRequest request)
        throws com.google.protobuf.ServiceException;

    public GetMedicalCardInfoByPatientIdResponse getMedicalCardInfoByPatientId(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByPatientIdRequest request)
        throws com.google.protobuf.ServiceException;

    public GetOutpatientOrderByHisOrderNoResponse getOutpatientOrderByHisOrderNo(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderByHisOrderNoRequest request)
        throws com.google.protobuf.ServiceException;

    public BaseResult saveOutpatientOrderDetails(
        com.google.protobuf.RpcController controller,
        SaveOutpatientOrderDetailsRequest request)
        throws com.google.protobuf.ServiceException;

    public GetOutpatientOrderDetailResponse getOutpatientOrderDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderDetailRequest request)
        throws com.google.protobuf.ServiceException;

    public GetMedicalCardInfoByPatientIdResponse getMedicalCardInfoById(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByIdRequest request)
        throws com.google.protobuf.ServiceException;

    public UpdateOutpatientOrderResponse updateOutpatientOrder(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientOrderRequest request)
        throws com.google.protobuf.ServiceException;

    public GetLatestOutpatientOrderResponse getLatestOutpatientOrder(
        com.google.protobuf.RpcController controller,
        GetLatestOutpatientOrderRequest request)
        throws com.google.protobuf.ServiceException;

    public GetOutPatientConfigResponse getOutpatientConfigs(
        com.google.protobuf.RpcController controller,
        GetOutPatientConfigRequest request)
        throws com.google.protobuf.ServiceException;
  }

  private static final class BlockingStub implements BlockingInterface {
    private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
      this.channel = channel;
    }

    private final com.google.protobuf.BlockingRpcChannel channel;

    public CreateOutpatientResponse createOutpatient(
        com.google.protobuf.RpcController controller,
        CreateOutpatientRequest request)
        throws com.google.protobuf.ServiceException {
      return (CreateOutpatientResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        CreateOutpatientResponse.getDefaultInstance());
    }


    public PayCallbackResponse payCallback(
        com.google.protobuf.RpcController controller,
        PayCallbackRequest request)
        throws com.google.protobuf.ServiceException {
      return (PayCallbackResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        PayCallbackResponse.getDefaultInstance());
    }


    public GetOutpatientQrcodeResponse getOutpatientQrcode(
        com.google.protobuf.RpcController controller,
        GetOutpatientQrcodeRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetOutpatientQrcodeResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        GetOutpatientQrcodeResponse.getDefaultInstance());
    }


    public GetOutpatientDetailResponse getOutpatientDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientDetailRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetOutpatientDetailResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        GetOutpatientDetailResponse.getDefaultInstance());
    }


    public UpdateOutpatientResponse updateOutpatient(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientRequest request)
        throws com.google.protobuf.ServiceException {
      return (UpdateOutpatientResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        UpdateOutpatientResponse.getDefaultInstance());
    }


    public RefundOutpatientCallbackResponse refundOutpatientCallback(
        com.google.protobuf.RpcController controller,
        RefundOutpatientCallbackRequest request)
        throws com.google.protobuf.ServiceException {
      return (RefundOutpatientCallbackResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        RefundOutpatientCallbackResponse.getDefaultInstance());
    }


    public GetOutpatientListResponse getOutpatientList(
        com.google.protobuf.RpcController controller,
        GetOutpatientListRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetOutpatientListResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        GetOutpatientListResponse.getDefaultInstance());
    }


    public GetMedicalCardInfoByPatientIdResponse getMedicalCardInfoByPatientId(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByPatientIdRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetMedicalCardInfoByPatientIdResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(7),
        controller,
        request,
        GetMedicalCardInfoByPatientIdResponse.getDefaultInstance());
    }


    public GetOutpatientOrderByHisOrderNoResponse getOutpatientOrderByHisOrderNo(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderByHisOrderNoRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetOutpatientOrderByHisOrderNoResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(8),
        controller,
        request,
        GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance());
    }


    public BaseResult saveOutpatientOrderDetails(
        com.google.protobuf.RpcController controller,
        SaveOutpatientOrderDetailsRequest request)
        throws com.google.protobuf.ServiceException {
      return (BaseResult) channel.callBlockingMethod(
        getDescriptor().getMethods().get(9),
        controller,
        request,
        BaseResult.getDefaultInstance());
    }


    public GetOutpatientOrderDetailResponse getOutpatientOrderDetail(
        com.google.protobuf.RpcController controller,
        GetOutpatientOrderDetailRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetOutpatientOrderDetailResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(10),
        controller,
        request,
        GetOutpatientOrderDetailResponse.getDefaultInstance());
    }


    public GetMedicalCardInfoByPatientIdResponse getMedicalCardInfoById(
        com.google.protobuf.RpcController controller,
        GetMedicalCardInfoByIdRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetMedicalCardInfoByPatientIdResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(11),
        controller,
        request,
        GetMedicalCardInfoByPatientIdResponse.getDefaultInstance());
    }


    public UpdateOutpatientOrderResponse updateOutpatientOrder(
        com.google.protobuf.RpcController controller,
        UpdateOutpatientOrderRequest request)
        throws com.google.protobuf.ServiceException {
      return (UpdateOutpatientOrderResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(12),
        controller,
        request,
        UpdateOutpatientOrderResponse.getDefaultInstance());
    }


    public GetLatestOutpatientOrderResponse getLatestOutpatientOrder(
        com.google.protobuf.RpcController controller,
        GetLatestOutpatientOrderRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetLatestOutpatientOrderResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(13),
        controller,
        request,
        GetLatestOutpatientOrderResponse.getDefaultInstance());
    }


    public GetOutPatientConfigResponse getOutpatientConfigs(
        com.google.protobuf.RpcController controller,
        GetOutPatientConfigRequest request)
        throws com.google.protobuf.ServiceException {
      return (GetOutPatientConfigResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(14),
        controller,
        request,
        GetOutPatientConfigResponse.getDefaultInstance());
    }

  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.taihe.outpaitent.TaiheOutpatientService)
}

