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

package com.ywt.gapi.taihe.outpaitent;

/**
 * <pre>
 *门诊缴费单
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.OutpatientOrder}
 */
public final class OutpatientOrder extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.outpaitent.OutpatientOrder)
    OutpatientOrderOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OutpatientOrder.newBuilder() to construct.
  private OutpatientOrder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private OutpatientOrder() {
    orderNo_ = "";
    hospitalName_ = "";
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    hisPatientId_ = "";
    payName_ = "";
    patientName_ = "";
    hisOrderNo_ = "";
    statusName_ = "";
    invoiceNo_ = "";
    selfPay_ = "";
    insurance_ = "";
    insDetail_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new OutpatientOrder();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OutpatientOrder(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            orderId_ = input.readInt32();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            orderNo_ = s;
            break;
          }
          case 24: {

            createTime_ = input.readInt64();
            break;
          }
          case 32: {

            hospitalId_ = input.readInt32();
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            hospitalName_ = s;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            deptCode_ = s;
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            deptName_ = s;
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            doctorCode_ = s;
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            doctorName_ = s;
            break;
          }
          case 80: {

            total_ = input.readInt32();
            break;
          }
          case 88: {

            reimbursement_ = input.readInt32();
            break;
          }
          case 96: {

            individual_ = input.readInt32();
            break;
          }
          case 104: {

            paymentStatus_ = input.readInt32();
            break;
          }
          case 112: {

            outpatientStatus_ = input.readInt32();
            break;
          }
          case 120: {

            userId_ = input.readInt32();
            break;
          }
          case 130: {
            java.lang.String s = input.readStringRequireUtf8();

            hisPatientId_ = s;
            break;
          }
          case 138: {
            java.lang.String s = input.readStringRequireUtf8();

            payName_ = s;
            break;
          }
          case 146: {
            java.lang.String s = input.readStringRequireUtf8();

            patientName_ = s;
            break;
          }
          case 152: {

            patientAge_ = input.readInt32();
            break;
          }
          case 160: {

            patientSex_ = input.readInt32();
            break;
          }
          case 168: {

            prescriptionDate_ = input.readInt64();
            break;
          }
          case 178: {
            java.lang.String s = input.readStringRequireUtf8();

            hisOrderNo_ = s;
            break;
          }
          case 186: {
            java.lang.String s = input.readStringRequireUtf8();

            statusName_ = s;
            break;
          }
          case 194: {
            java.lang.String s = input.readStringRequireUtf8();

            invoiceNo_ = s;
            break;
          }
          case 202: {
            java.lang.String s = input.readStringRequireUtf8();

            selfPay_ = s;
            break;
          }
          case 210: {
            java.lang.String s = input.readStringRequireUtf8();

            insurance_ = s;
            break;
          }
          case 218: {
            java.lang.String s = input.readStringRequireUtf8();

            insDetail_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_OutpatientOrder_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_OutpatientOrder_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.outpaitent.OutpatientOrder.class, com.ywt.gapi.taihe.outpaitent.OutpatientOrder.Builder.class);
  }

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <code>int32 orderId = 1;</code>
   * @return The orderId.
   */
  @java.lang.Override
  public int getOrderId() {
    return orderId_;
  }

  public static final int ORDERNO_FIELD_NUMBER = 2;
  private volatile java.lang.Object orderNo_;
  /**
   * <code>string orderNo = 2;</code>
   * @return The orderNo.
   */
  @java.lang.Override
  public java.lang.String getOrderNo() {
    java.lang.Object ref = orderNo_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      orderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string orderNo = 2;</code>
   * @return The bytes for orderNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOrderNoBytes() {
    java.lang.Object ref = orderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATETIME_FIELD_NUMBER = 3;
  private long createTime_;
  /**
   * <code>int64 createTime = 3;</code>
   * @return The createTime.
   */
  @java.lang.Override
  public long getCreateTime() {
    return createTime_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 4;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int HOSPITALNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object hospitalName_;
  /**
   * <code>string hospitalName = 5;</code>
   * @return The hospitalName.
   */
  @java.lang.Override
  public java.lang.String getHospitalName() {
    java.lang.Object ref = hospitalName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      hospitalName_ = s;
      return s;
    }
  }
  /**
   * <code>string hospitalName = 5;</code>
   * @return The bytes for hospitalName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHospitalNameBytes() {
    java.lang.Object ref = hospitalName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hospitalName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTCODE_FIELD_NUMBER = 6;
  private volatile java.lang.Object deptCode_;
  /**
   * <code>string deptCode = 6;</code>
   * @return The deptCode.
   */
  @java.lang.Override
  public java.lang.String getDeptCode() {
    java.lang.Object ref = deptCode_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      deptCode_ = s;
      return s;
    }
  }
  /**
   * <code>string deptCode = 6;</code>
   * @return The bytes for deptCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptCodeBytes() {
    java.lang.Object ref = deptCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 7;</code>
   * @return The deptName.
   */
  @java.lang.Override
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <code>string deptName = 7;</code>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORCODE_FIELD_NUMBER = 8;
  private volatile java.lang.Object doctorCode_;
  /**
   * <code>string doctorCode = 8;</code>
   * @return The doctorCode.
   */
  @java.lang.Override
  public java.lang.String getDoctorCode() {
    java.lang.Object ref = doctorCode_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      doctorCode_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorCode = 8;</code>
   * @return The bytes for doctorCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorCodeBytes() {
    java.lang.Object ref = doctorCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 9;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 9;</code>
   * @return The doctorName.
   */
  @java.lang.Override
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorName = 9;</code>
   * @return The bytes for doctorName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTAL_FIELD_NUMBER = 10;
  private int total_;
  /**
   * <code>int32 total = 10;</code>
   * @return The total.
   */
  @java.lang.Override
  public int getTotal() {
    return total_;
  }

  public static final int REIMBURSEMENT_FIELD_NUMBER = 11;
  private int reimbursement_;
  /**
   * <code>int32 reimbursement = 11;</code>
   * @return The reimbursement.
   */
  @java.lang.Override
  public int getReimbursement() {
    return reimbursement_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 12;
  private int individual_;
  /**
   * <code>int32 individual = 12;</code>
   * @return The individual.
   */
  @java.lang.Override
  public int getIndividual() {
    return individual_;
  }

  public static final int PAYMENTSTATUS_FIELD_NUMBER = 13;
  private int paymentStatus_;
  /**
   * <code>int32 paymentStatus = 13;</code>
   * @return The paymentStatus.
   */
  @java.lang.Override
  public int getPaymentStatus() {
    return paymentStatus_;
  }

  public static final int OUTPATIENTSTATUS_FIELD_NUMBER = 14;
  private int outpatientStatus_;
  /**
   * <code>int32 outpatientStatus = 14;</code>
   * @return The outpatientStatus.
   */
  @java.lang.Override
  public int getOutpatientStatus() {
    return outpatientStatus_;
  }

  public static final int USERID_FIELD_NUMBER = 15;
  private int userId_;
  /**
   * <code>int32 userId = 15;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int HISPATIENTID_FIELD_NUMBER = 16;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 16;</code>
   * @return The hisPatientId.
   */
  @java.lang.Override
  public java.lang.String getHisPatientId() {
    java.lang.Object ref = hisPatientId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      hisPatientId_ = s;
      return s;
    }
  }
  /**
   * <code>string hisPatientId = 16;</code>
   * @return The bytes for hisPatientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisPatientIdBytes() {
    java.lang.Object ref = hisPatientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisPatientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYNAME_FIELD_NUMBER = 17;
  private volatile java.lang.Object payName_;
  /**
   * <code>string payName = 17;</code>
   * @return The payName.
   */
  @java.lang.Override
  public java.lang.String getPayName() {
    java.lang.Object ref = payName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      payName_ = s;
      return s;
    }
  }
  /**
   * <code>string payName = 17;</code>
   * @return The bytes for payName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPayNameBytes() {
    java.lang.Object ref = payName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 18;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 18;</code>
   * @return The patientName.
   */
  @java.lang.Override
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 18;</code>
   * @return The bytes for patientName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTAGE_FIELD_NUMBER = 19;
  private int patientAge_;
  /**
   * <code>int32 patientAge = 19;</code>
   * @return The patientAge.
   */
  @java.lang.Override
  public int getPatientAge() {
    return patientAge_;
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 20;
  private int patientSex_;
  /**
   * <code>int32 patientSex = 20;</code>
   * @return The patientSex.
   */
  @java.lang.Override
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int PRESCRIPTIONDATE_FIELD_NUMBER = 21;
  private long prescriptionDate_;
  /**
   * <code>int64 prescriptionDate = 21;</code>
   * @return The prescriptionDate.
   */
  @java.lang.Override
  public long getPrescriptionDate() {
    return prescriptionDate_;
  }

  public static final int HISORDERNO_FIELD_NUMBER = 22;
  private volatile java.lang.Object hisOrderNo_;
  /**
   * <code>string hisOrderNo = 22;</code>
   * @return The hisOrderNo.
   */
  @java.lang.Override
  public java.lang.String getHisOrderNo() {
    java.lang.Object ref = hisOrderNo_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      hisOrderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string hisOrderNo = 22;</code>
   * @return The bytes for hisOrderNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisOrderNoBytes() {
    java.lang.Object ref = hisOrderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUSNAME_FIELD_NUMBER = 23;
  private volatile java.lang.Object statusName_;
  /**
   * <code>string statusName = 23;</code>
   * @return The statusName.
   */
  @java.lang.Override
  public java.lang.String getStatusName() {
    java.lang.Object ref = statusName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      statusName_ = s;
      return s;
    }
  }
  /**
   * <code>string statusName = 23;</code>
   * @return The bytes for statusName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStatusNameBytes() {
    java.lang.Object ref = statusName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICENO_FIELD_NUMBER = 24;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <code>string invoiceNo = 24;</code>
   * @return The invoiceNo.
   */
  @java.lang.Override
  public java.lang.String getInvoiceNo() {
    java.lang.Object ref = invoiceNo_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      invoiceNo_ = s;
      return s;
    }
  }
  /**
   * <code>string invoiceNo = 24;</code>
   * @return The bytes for invoiceNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInvoiceNoBytes() {
    java.lang.Object ref = invoiceNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SELFPAY_FIELD_NUMBER = 25;
  private volatile java.lang.Object selfPay_;
  /**
   * <code>string selfPay = 25;</code>
   * @return The selfPay.
   */
  @java.lang.Override
  public java.lang.String getSelfPay() {
    java.lang.Object ref = selfPay_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      selfPay_ = s;
      return s;
    }
  }
  /**
   * <code>string selfPay = 25;</code>
   * @return The bytes for selfPay.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSelfPayBytes() {
    java.lang.Object ref = selfPay_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      selfPay_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSURANCE_FIELD_NUMBER = 26;
  private volatile java.lang.Object insurance_;
  /**
   * <code>string insurance = 26;</code>
   * @return The insurance.
   */
  @java.lang.Override
  public java.lang.String getInsurance() {
    java.lang.Object ref = insurance_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      insurance_ = s;
      return s;
    }
  }
  /**
   * <code>string insurance = 26;</code>
   * @return The bytes for insurance.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsuranceBytes() {
    java.lang.Object ref = insurance_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insurance_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSDETAIL_FIELD_NUMBER = 27;
  private volatile java.lang.Object insDetail_;
  /**
   * <code>string insDetail = 27;</code>
   * @return The insDetail.
   */
  @java.lang.Override
  public java.lang.String getInsDetail() {
    java.lang.Object ref = insDetail_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      insDetail_ = s;
      return s;
    }
  }
  /**
   * <code>string insDetail = 27;</code>
   * @return The bytes for insDetail.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsDetailBytes() {
    java.lang.Object ref = insDetail_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insDetail_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (orderId_ != 0) {
      output.writeInt32(1, orderId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderNo_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(3, createTime_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, doctorName_);
    }
    if (total_ != 0) {
      output.writeInt32(10, total_);
    }
    if (reimbursement_ != 0) {
      output.writeInt32(11, reimbursement_);
    }
    if (individual_ != 0) {
      output.writeInt32(12, individual_);
    }
    if (paymentStatus_ != 0) {
      output.writeInt32(13, paymentStatus_);
    }
    if (outpatientStatus_ != 0) {
      output.writeInt32(14, outpatientStatus_);
    }
    if (userId_ != 0) {
      output.writeInt32(15, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, hisPatientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, payName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, patientName_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(19, patientAge_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(20, patientSex_);
    }
    if (prescriptionDate_ != 0L) {
      output.writeInt64(21, prescriptionDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrderNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, hisOrderNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, statusName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfPay_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 25, selfPay_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insurance_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 26, insurance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insDetail_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 27, insDetail_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, orderId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderNo_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, createTime_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, doctorName_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, total_);
    }
    if (reimbursement_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, reimbursement_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, individual_);
    }
    if (paymentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, paymentStatus_);
    }
    if (outpatientStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, outpatientStatus_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, hisPatientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, payName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, patientName_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, patientAge_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(20, patientSex_);
    }
    if (prescriptionDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(21, prescriptionDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrderNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, hisOrderNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, statusName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfPay_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, selfPay_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insurance_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, insurance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insDetail_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, insDetail_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.taihe.outpaitent.OutpatientOrder)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.outpaitent.OutpatientOrder other = (com.ywt.gapi.taihe.outpaitent.OutpatientOrder) obj;

    if (getOrderId()
        != other.getOrderId()) return false;
    if (!getOrderNo()
        .equals(other.getOrderNo())) return false;
    if (getCreateTime()
        != other.getCreateTime()) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getHospitalName()
        .equals(other.getHospitalName())) return false;
    if (!getDeptCode()
        .equals(other.getDeptCode())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (!getDoctorCode()
        .equals(other.getDoctorCode())) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (getTotal()
        != other.getTotal()) return false;
    if (getReimbursement()
        != other.getReimbursement()) return false;
    if (getIndividual()
        != other.getIndividual()) return false;
    if (getPaymentStatus()
        != other.getPaymentStatus()) return false;
    if (getOutpatientStatus()
        != other.getOutpatientStatus()) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (!getHisPatientId()
        .equals(other.getHisPatientId())) return false;
    if (!getPayName()
        .equals(other.getPayName())) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (getPatientAge()
        != other.getPatientAge()) return false;
    if (getPatientSex()
        != other.getPatientSex()) return false;
    if (getPrescriptionDate()
        != other.getPrescriptionDate()) return false;
    if (!getHisOrderNo()
        .equals(other.getHisOrderNo())) return false;
    if (!getStatusName()
        .equals(other.getStatusName())) return false;
    if (!getInvoiceNo()
        .equals(other.getInvoiceNo())) return false;
    if (!getSelfPay()
        .equals(other.getSelfPay())) return false;
    if (!getInsurance()
        .equals(other.getInsurance())) return false;
    if (!getInsDetail()
        .equals(other.getInsDetail())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (37 * hash) + REIMBURSEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getReimbursement();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + PAYMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatus();
    hash = (37 * hash) + OUTPATIENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getOutpatientStatus();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + PAYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPayName().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex();
    hash = (37 * hash) + PRESCRIPTIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPrescriptionDate());
    hash = (37 * hash) + HISORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrderNo().hashCode();
    hash = (37 * hash) + STATUSNAME_FIELD_NUMBER;
    hash = (53 * hash) + getStatusName().hashCode();
    hash = (37 * hash) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (37 * hash) + SELFPAY_FIELD_NUMBER;
    hash = (53 * hash) + getSelfPay().hashCode();
    hash = (37 * hash) + INSURANCE_FIELD_NUMBER;
    hash = (53 * hash) + getInsurance().hashCode();
    hash = (37 * hash) + INSDETAIL_FIELD_NUMBER;
    hash = (53 * hash) + getInsDetail().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.taihe.outpaitent.OutpatientOrder prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *门诊缴费单
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.OutpatientOrder}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.outpaitent.OutpatientOrder)
      com.ywt.gapi.taihe.outpaitent.OutpatientOrderOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_OutpatientOrder_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_OutpatientOrder_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.outpaitent.OutpatientOrder.class, com.ywt.gapi.taihe.outpaitent.OutpatientOrder.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.outpaitent.OutpatientOrder.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      orderId_ = 0;

      orderNo_ = "";

      createTime_ = 0L;

      hospitalId_ = 0;

      hospitalName_ = "";

      deptCode_ = "";

      deptName_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      total_ = 0;

      reimbursement_ = 0;

      individual_ = 0;

      paymentStatus_ = 0;

      outpatientStatus_ = 0;

      userId_ = 0;

      hisPatientId_ = "";

      payName_ = "";

      patientName_ = "";

      patientAge_ = 0;

      patientSex_ = 0;

      prescriptionDate_ = 0L;

      hisOrderNo_ = "";

      statusName_ = "";

      invoiceNo_ = "";

      selfPay_ = "";

      insurance_ = "";

      insDetail_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_OutpatientOrder_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.outpaitent.OutpatientOrder getDefaultInstanceForType() {
      return com.ywt.gapi.taihe.outpaitent.OutpatientOrder.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.outpaitent.OutpatientOrder build() {
      com.ywt.gapi.taihe.outpaitent.OutpatientOrder result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.outpaitent.OutpatientOrder buildPartial() {
      com.ywt.gapi.taihe.outpaitent.OutpatientOrder result = new com.ywt.gapi.taihe.outpaitent.OutpatientOrder(this);
      result.orderId_ = orderId_;
      result.orderNo_ = orderNo_;
      result.createTime_ = createTime_;
      result.hospitalId_ = hospitalId_;
      result.hospitalName_ = hospitalName_;
      result.deptCode_ = deptCode_;
      result.deptName_ = deptName_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.total_ = total_;
      result.reimbursement_ = reimbursement_;
      result.individual_ = individual_;
      result.paymentStatus_ = paymentStatus_;
      result.outpatientStatus_ = outpatientStatus_;
      result.userId_ = userId_;
      result.hisPatientId_ = hisPatientId_;
      result.payName_ = payName_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.prescriptionDate_ = prescriptionDate_;
      result.hisOrderNo_ = hisOrderNo_;
      result.statusName_ = statusName_;
      result.invoiceNo_ = invoiceNo_;
      result.selfPay_ = selfPay_;
      result.insurance_ = insurance_;
      result.insDetail_ = insDetail_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.taihe.outpaitent.OutpatientOrder) {
        return mergeFrom((com.ywt.gapi.taihe.outpaitent.OutpatientOrder)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.taihe.outpaitent.OutpatientOrder other) {
      if (other == com.ywt.gapi.taihe.outpaitent.OutpatientOrder.getDefaultInstance()) return this;
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      if (other.getReimbursement() != 0) {
        setReimbursement(other.getReimbursement());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getPaymentStatus() != 0) {
        setPaymentStatus(other.getPaymentStatus());
      }
      if (other.getOutpatientStatus() != 0) {
        setOutpatientStatus(other.getOutpatientStatus());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getPayName().isEmpty()) {
        payName_ = other.payName_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getPatientAge() != 0) {
        setPatientAge(other.getPatientAge());
      }
      if (other.getPatientSex() != 0) {
        setPatientSex(other.getPatientSex());
      }
      if (other.getPrescriptionDate() != 0L) {
        setPrescriptionDate(other.getPrescriptionDate());
      }
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (!other.getStatusName().isEmpty()) {
        statusName_ = other.statusName_;
        onChanged();
      }
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      if (!other.getSelfPay().isEmpty()) {
        selfPay_ = other.selfPay_;
        onChanged();
      }
      if (!other.getInsurance().isEmpty()) {
        insurance_ = other.insurance_;
        onChanged();
      }
      if (!other.getInsDetail().isEmpty()) {
        insDetail_ = other.insDetail_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.taihe.outpaitent.OutpatientOrder parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.outpaitent.OutpatientOrder) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int orderId_ ;
    /**
     * <code>int32 orderId = 1;</code>
     * @return The orderId.
     */
    @java.lang.Override
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 1;</code>
     * @param value The orderId to set.
     * @return This builder for chaining.
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orderNo_ = "";
    /**
     * <code>string orderNo = 2;</code>
     * @return The orderNo.
     */
    public java.lang.String getOrderNo() {
      java.lang.Object ref = orderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderNo = 2;</code>
     * @return The bytes for orderNo.
     */
    public com.google.protobuf.ByteString
        getOrderNoBytes() {
      java.lang.Object ref = orderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderNo = 2;</code>
     * @param value The orderNo to set.
     * @return This builder for chaining.
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     * @param value The bytes for orderNo to set.
     * @return This builder for chaining.
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 3;</code>
     * @return The createTime.
     */
    @java.lang.Override
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 3;</code>
     * @param value The createTime to set.
     * @return This builder for chaining.
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <code>string hospitalName = 5;</code>
     * @return The hospitalName.
     */
    public java.lang.String getHospitalName() {
      java.lang.Object ref = hospitalName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hospitalName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hospitalName = 5;</code>
     * @return The bytes for hospitalName.
     */
    public com.google.protobuf.ByteString
        getHospitalNameBytes() {
      java.lang.Object ref = hospitalName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hospitalName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hospitalName = 5;</code>
     * @param value The hospitalName to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 5;</code>
     * @param value The bytes for hospitalName to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hospitalName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptCode_ = "";
    /**
     * <code>string deptCode = 6;</code>
     * @return The deptCode.
     */
    public java.lang.String getDeptCode() {
      java.lang.Object ref = deptCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptCode = 6;</code>
     * @return The bytes for deptCode.
     */
    public com.google.protobuf.ByteString
        getDeptCodeBytes() {
      java.lang.Object ref = deptCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptCode = 6;</code>
     * @param value The deptCode to set.
     * @return This builder for chaining.
     */
    public Builder setDeptCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 6;</code>
     * @param value The bytes for deptCode to set.
     * @return This builder for chaining.
     */
    public Builder setDeptCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 7;</code>
     * @return The deptName.
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptName = 7;</code>
     * @return The bytes for deptName.
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptName = 7;</code>
     * @param value The deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 7;</code>
     * @param value The bytes for deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 8;</code>
     * @return The doctorCode.
     */
    public java.lang.String getDoctorCode() {
      java.lang.Object ref = doctorCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorCode = 8;</code>
     * @return The bytes for doctorCode.
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      java.lang.Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorCode = 8;</code>
     * @param value The doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 8;</code>
     * @param value The bytes for doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 9;</code>
     * @return The doctorName.
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorName = 9;</code>
     * @return The bytes for doctorName.
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 9;</code>
     * @param value The doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 9;</code>
     * @param value The bytes for doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private int total_ ;
    /**
     * <code>int32 total = 10;</code>
     * @return The total.
     */
    @java.lang.Override
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 10;</code>
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int reimbursement_ ;
    /**
     * <code>int32 reimbursement = 11;</code>
     * @return The reimbursement.
     */
    @java.lang.Override
    public int getReimbursement() {
      return reimbursement_;
    }
    /**
     * <code>int32 reimbursement = 11;</code>
     * @param value The reimbursement to set.
     * @return This builder for chaining.
     */
    public Builder setReimbursement(int value) {
      
      reimbursement_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 reimbursement = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearReimbursement() {
      
      reimbursement_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <code>int32 individual = 12;</code>
     * @return The individual.
     */
    @java.lang.Override
    public int getIndividual() {
      return individual_;
    }
    /**
     * <code>int32 individual = 12;</code>
     * @param value The individual to set.
     * @return This builder for chaining.
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 individual = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

    private int paymentStatus_ ;
    /**
     * <code>int32 paymentStatus = 13;</code>
     * @return The paymentStatus.
     */
    @java.lang.Override
    public int getPaymentStatus() {
      return paymentStatus_;
    }
    /**
     * <code>int32 paymentStatus = 13;</code>
     * @param value The paymentStatus to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentStatus(int value) {
      
      paymentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentStatus = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearPaymentStatus() {
      
      paymentStatus_ = 0;
      onChanged();
      return this;
    }

    private int outpatientStatus_ ;
    /**
     * <code>int32 outpatientStatus = 14;</code>
     * @return The outpatientStatus.
     */
    @java.lang.Override
    public int getOutpatientStatus() {
      return outpatientStatus_;
    }
    /**
     * <code>int32 outpatientStatus = 14;</code>
     * @param value The outpatientStatus to set.
     * @return This builder for chaining.
     */
    public Builder setOutpatientStatus(int value) {
      
      outpatientStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 outpatientStatus = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearOutpatientStatus() {
      
      outpatientStatus_ = 0;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 15;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 15;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 16;</code>
     * @return The hisPatientId.
     */
    public java.lang.String getHisPatientId() {
      java.lang.Object ref = hisPatientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisPatientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisPatientId = 16;</code>
     * @return The bytes for hisPatientId.
     */
    public com.google.protobuf.ByteString
        getHisPatientIdBytes() {
      java.lang.Object ref = hisPatientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisPatientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisPatientId = 16;</code>
     * @param value The hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 16;</code>
     * @param value The bytes for hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object payName_ = "";
    /**
     * <code>string payName = 17;</code>
     * @return The payName.
     */
    public java.lang.String getPayName() {
      java.lang.Object ref = payName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string payName = 17;</code>
     * @return The bytes for payName.
     */
    public com.google.protobuf.ByteString
        getPayNameBytes() {
      java.lang.Object ref = payName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payName = 17;</code>
     * @param value The payName to set.
     * @return This builder for chaining.
     */
    public Builder setPayName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payName = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayName() {
      
      payName_ = getDefaultInstance().getPayName();
      onChanged();
      return this;
    }
    /**
     * <code>string payName = 17;</code>
     * @param value The bytes for payName to set.
     * @return This builder for chaining.
     */
    public Builder setPayNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 18;</code>
     * @return The patientName.
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientName = 18;</code>
     * @return The bytes for patientName.
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 18;</code>
     * @param value The patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 18;</code>
     * @param value The bytes for patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private int patientAge_ ;
    /**
     * <code>int32 patientAge = 19;</code>
     * @return The patientAge.
     */
    @java.lang.Override
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 19;</code>
     * @param value The patientAge to set.
     * @return This builder for chaining.
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

    private int patientSex_ ;
    /**
     * <code>int32 patientSex = 20;</code>
     * @return The patientSex.
     */
    @java.lang.Override
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <code>int32 patientSex = 20;</code>
     * @param value The patientSex to set.
     * @return This builder for chaining.
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSex = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private long prescriptionDate_ ;
    /**
     * <code>int64 prescriptionDate = 21;</code>
     * @return The prescriptionDate.
     */
    @java.lang.Override
    public long getPrescriptionDate() {
      return prescriptionDate_;
    }
    /**
     * <code>int64 prescriptionDate = 21;</code>
     * @param value The prescriptionDate to set.
     * @return This builder for chaining.
     */
    public Builder setPrescriptionDate(long value) {
      
      prescriptionDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 prescriptionDate = 21;</code>
     * @return This builder for chaining.
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object hisOrderNo_ = "";
    /**
     * <code>string hisOrderNo = 22;</code>
     * @return The hisOrderNo.
     */
    public java.lang.String getHisOrderNo() {
      java.lang.Object ref = hisOrderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOrderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     * @return The bytes for hisOrderNo.
     */
    public com.google.protobuf.ByteString
        getHisOrderNoBytes() {
      java.lang.Object ref = hisOrderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOrderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     * @param value The hisOrderNo to set.
     * @return This builder for chaining.
     */
    public Builder setHisOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisOrderNo() {
      
      hisOrderNo_ = getDefaultInstance().getHisOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     * @param value The bytes for hisOrderNo to set.
     * @return This builder for chaining.
     */
    public Builder setHisOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrderNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object statusName_ = "";
    /**
     * <code>string statusName = 23;</code>
     * @return The statusName.
     */
    public java.lang.String getStatusName() {
      java.lang.Object ref = statusName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string statusName = 23;</code>
     * @return The bytes for statusName.
     */
    public com.google.protobuf.ByteString
        getStatusNameBytes() {
      java.lang.Object ref = statusName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string statusName = 23;</code>
     * @param value The statusName to set.
     * @return This builder for chaining.
     */
    public Builder setStatusName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string statusName = 23;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatusName() {
      
      statusName_ = getDefaultInstance().getStatusName();
      onChanged();
      return this;
    }
    /**
     * <code>string statusName = 23;</code>
     * @param value The bytes for statusName to set.
     * @return This builder for chaining.
     */
    public Builder setStatusNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <code>string invoiceNo = 24;</code>
     * @return The invoiceNo.
     */
    public java.lang.String getInvoiceNo() {
      java.lang.Object ref = invoiceNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string invoiceNo = 24;</code>
     * @return The bytes for invoiceNo.
     */
    public com.google.protobuf.ByteString
        getInvoiceNoBytes() {
      java.lang.Object ref = invoiceNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string invoiceNo = 24;</code>
     * @param value The invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 24;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 24;</code>
     * @param value The bytes for invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object selfPay_ = "";
    /**
     * <code>string selfPay = 25;</code>
     * @return The selfPay.
     */
    public java.lang.String getSelfPay() {
      java.lang.Object ref = selfPay_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        selfPay_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string selfPay = 25;</code>
     * @return The bytes for selfPay.
     */
    public com.google.protobuf.ByteString
        getSelfPayBytes() {
      java.lang.Object ref = selfPay_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selfPay_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string selfPay = 25;</code>
     * @param value The selfPay to set.
     * @return This builder for chaining.
     */
    public Builder setSelfPay(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      selfPay_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string selfPay = 25;</code>
     * @return This builder for chaining.
     */
    public Builder clearSelfPay() {
      
      selfPay_ = getDefaultInstance().getSelfPay();
      onChanged();
      return this;
    }
    /**
     * <code>string selfPay = 25;</code>
     * @param value The bytes for selfPay to set.
     * @return This builder for chaining.
     */
    public Builder setSelfPayBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      selfPay_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insurance_ = "";
    /**
     * <code>string insurance = 26;</code>
     * @return The insurance.
     */
    public java.lang.String getInsurance() {
      java.lang.Object ref = insurance_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insurance_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insurance = 26;</code>
     * @return The bytes for insurance.
     */
    public com.google.protobuf.ByteString
        getInsuranceBytes() {
      java.lang.Object ref = insurance_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insurance_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insurance = 26;</code>
     * @param value The insurance to set.
     * @return This builder for chaining.
     */
    public Builder setInsurance(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insurance_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insurance = 26;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsurance() {
      
      insurance_ = getDefaultInstance().getInsurance();
      onChanged();
      return this;
    }
    /**
     * <code>string insurance = 26;</code>
     * @param value The bytes for insurance to set.
     * @return This builder for chaining.
     */
    public Builder setInsuranceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insurance_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insDetail_ = "";
    /**
     * <code>string insDetail = 27;</code>
     * @return The insDetail.
     */
    public java.lang.String getInsDetail() {
      java.lang.Object ref = insDetail_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insDetail_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insDetail = 27;</code>
     * @return The bytes for insDetail.
     */
    public com.google.protobuf.ByteString
        getInsDetailBytes() {
      java.lang.Object ref = insDetail_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insDetail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insDetail = 27;</code>
     * @param value The insDetail to set.
     * @return This builder for chaining.
     */
    public Builder setInsDetail(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insDetail_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insDetail = 27;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsDetail() {
      
      insDetail_ = getDefaultInstance().getInsDetail();
      onChanged();
      return this;
    }
    /**
     * <code>string insDetail = 27;</code>
     * @param value The bytes for insDetail to set.
     * @return This builder for chaining.
     */
    public Builder setInsDetailBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insDetail_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.outpaitent.OutpatientOrder)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.taihe.outpaitent.OutpatientOrder)
  private static final com.ywt.gapi.taihe.outpaitent.OutpatientOrder DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.taihe.outpaitent.OutpatientOrder();
  }

  public static com.ywt.gapi.taihe.outpaitent.OutpatientOrder getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<OutpatientOrder>
      PARSER = new com.google.protobuf.AbstractParser<OutpatientOrder>() {
    @java.lang.Override
    public OutpatientOrder parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new OutpatientOrder(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<OutpatientOrder> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<OutpatientOrder> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.ywt.gapi.taihe.outpaitent.OutpatientOrder getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

