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

package com.ywt.gapi.drug;

/**
 * <pre>
 *处方信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.drug.PrescriptionInfo}
 */
public  final class PrescriptionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.PrescriptionInfo)
    PrescriptionInfoOrBuilder {
  // Use PrescriptionInfo.newBuilder() to construct.
  private PrescriptionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PrescriptionInfo() {
    no3Th_ = "";
    doctorName_ = "";
    patientName_ = "";
    patientAge_ = "";
    patientSex_ = "";
    patientNo_ = "";
    diagnose_ = "";
    dept_ = "";
    source_ = 0;
    hosptialCode_ = "";
    hosptialId_ = 0;
    orgCode3Th_ = "";
    drugs_ = java.util.Collections.emptyList();
    totalPrice_ = 0;
    status_ = 0;
    statusStr_ = "";
    createOn_ = 0L;
    payStatus_ = 0;
    createOnStr_ = "";
    patientMobile_ = "";
    description_ = "";
    allergicHistory_ = "";
    doctorSignId_ = 0;
    prescriptionId_ = 0;
    bizNo_ = "";
    userId_ = 0;
    hisOrderNo_ = "";
    addressId_ = 0;
    deliveryMethod_ = 0;
    sendNo_ = "";
    qrCodeUrl_ = "";
    pharmacyAddress_ = "";
    pharmacyName_ = "";
    finshTime_ = 0L;
    doctorId_ = 0;
    individual_ = 0;
    extStatus_ = 0;
    needPrintStatus_ = 0;
    freight_ = 0;
    idCardNo_ = "";
    pharmacyId_ = 0;
    prescriptionDate_ = "";
    timeStandard_ = "";
    orderNo_ = "";
    orderId_ = 0;
    refundNo_ = "";
    refundStatus_ = 0;
    payTime_ = 0L;
    invoiceEndTime_ = "";
    terminal_ = 0;
    hisOeoriOrderId_ = "";
    hisPatientId_ = "";
    hisClinicCode_ = "";
    cancelStatus_ = 0;
    cancelRemark_ = "";
    patientAgeInt_ = 0;
    patientSexInt_ = 0;
    icdCodes_ = "";
    patientAddress_ = "";
    remarks_ = "";
    addressModified_ = false;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private PrescriptionInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    int mutable_bitField1_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

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

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

            dept_ = s;
            break;
          }
          case 80: {

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

            hosptialCode_ = s;
            break;
          }
          case 96: {

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

            orgCode3Th_ = s;
            break;
          }
          case 114: {
            if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
              drugs_ = new java.util.ArrayList<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo>();
              mutable_bitField0_ |= 0x00001000;
            }
            drugs_.add(
                input.readMessage(com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.parser(), extensionRegistry));
            break;
          }
          case 120: {

            totalPrice_ = input.readInt32();
            break;
          }
          case 128: {

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

            statusStr_ = s;
            break;
          }
          case 144: {

            createOn_ = input.readInt64();
            break;
          }
          case 152: {

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

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

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

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

            allergicHistory_ = s;
            break;
          }
          case 192: {

            doctorSignId_ = input.readInt32();
            break;
          }
          case 200: {

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

            bizNo_ = s;
            break;
          }
          case 216: {

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

            hisOrderNo_ = s;
            break;
          }
          case 232: {

            addressId_ = input.readInt32();
            break;
          }
          case 240: {

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

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

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

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

            pharmacyName_ = s;
            break;
          }
          case 280: {

            finshTime_ = input.readInt64();
            break;
          }
          case 288: {

            doctorId_ = input.readInt32();
            break;
          }
          case 296: {

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

            extStatus_ = input.readInt32();
            break;
          }
          case 312: {

            needPrintStatus_ = input.readInt32();
            break;
          }
          case 320: {

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

            idCardNo_ = s;
            break;
          }
          case 336: {

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

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

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

            orderNo_ = s;
            break;
          }
          case 368: {

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

            refundNo_ = s;
            break;
          }
          case 384: {

            refundStatus_ = input.readInt32();
            break;
          }
          case 392: {

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

            invoiceEndTime_ = s;
            break;
          }
          case 408: {

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

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

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

            hisClinicCode_ = s;
            break;
          }
          case 440: {

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

            cancelRemark_ = s;
            break;
          }
          case 456: {

            patientAgeInt_ = input.readInt32();
            break;
          }
          case 464: {

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

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

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

            remarks_ = s;
            break;
          }
          case 496: {

            addressModified_ = input.readBool();
            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 {
      if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
        drugs_ = java.util.Collections.unmodifiableList(drugs_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.drug.PrescriptionInfo.class, com.ywt.gapi.drug.PrescriptionInfo.Builder.class);
  }

  public interface PrescriptionDrugInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string drugCode = 1;</code>
     */
    java.lang.String getDrugCode();
    /**
     * <code>string drugCode = 1;</code>
     */
    com.google.protobuf.ByteString
        getDrugCodeBytes();

    /**
     * <code>string drugCode3th = 2;</code>
     */
    java.lang.String getDrugCode3Th();
    /**
     * <code>string drugCode3th = 2;</code>
     */
    com.google.protobuf.ByteString
        getDrugCode3ThBytes();

    /**
     * <code>double oneDosage = 3;</code>
     */
    double getOneDosage();

    /**
     * <code>string oneDosageUnit = 4;</code>
     */
    java.lang.String getOneDosageUnit();
    /**
     * <code>string oneDosageUnit = 4;</code>
     */
    com.google.protobuf.ByteString
        getOneDosageUnitBytes();

    /**
     * <code>int32 amount = 5;</code>
     */
    int getAmount();

    /**
     * <code>string units = 6;</code>
     */
    java.lang.String getUnits();
    /**
     * <code>string units = 6;</code>
     */
    com.google.protobuf.ByteString
        getUnitsBytes();

    /**
     * <code>string frequencyCode = 7;</code>
     */
    java.lang.String getFrequencyCode();
    /**
     * <code>string frequencyCode = 7;</code>
     */
    com.google.protobuf.ByteString
        getFrequencyCodeBytes();

    /**
     * <code>string frequency = 8;</code>
     */
    java.lang.String getFrequency();
    /**
     * <code>string frequency = 8;</code>
     */
    com.google.protobuf.ByteString
        getFrequencyBytes();

    /**
     * <code>int32 frequencyQty = 9;</code>
     */
    int getFrequencyQty();

    /**
     * <code>string usageCode = 10;</code>
     */
    java.lang.String getUsageCode();
    /**
     * <code>string usageCode = 10;</code>
     */
    com.google.protobuf.ByteString
        getUsageCodeBytes();

    /**
     * <code>string usage = 11;</code>
     */
    java.lang.String getUsage();
    /**
     * <code>string usage = 11;</code>
     */
    com.google.protobuf.ByteString
        getUsageBytes();

    /**
     * <code>int32 price = 12;</code>
     */
    int getPrice();

    /**
     * <code>string drugName = 13;</code>
     */
    java.lang.String getDrugName();
    /**
     * <code>string drugName = 13;</code>
     */
    com.google.protobuf.ByteString
        getDrugNameBytes();

    /**
     * <code>string drugSpec = 14;</code>
     */
    java.lang.String getDrugSpec();
    /**
     * <code>string drugSpec = 14;</code>
     */
    com.google.protobuf.ByteString
        getDrugSpecBytes();

    /**
     * <code>int32 quantity = 15;</code>
     */
    int getQuantity();

    /**
     * <code>int32 total = 16;</code>
     */
    int getTotal();

    /**
     * <pre>
     *疗程，单位：天
     * </pre>
     *
     * <code>int32 course = 17;</code>
     */
    int getCourse();

    /**
     * <pre>
     *组号，组号相同表示它们为同组药
     * </pre>
     *
     * <code>int32 group = 18;</code>
     */
    int getGroup();

    /**
     * <pre>
     *序号
     * </pre>
     *
     * <code>int32 orderIndex = 19;</code>
     */
    int getOrderIndex();

    /**
     * <pre>
     *是否为同组药(1-是，0-否)
     * </pre>
     *
     * <code>int32 combination = 20;</code>
     */
    int getCombination();

    /**
     * <pre>
     *备注
     * </pre>
     *
     * <code>string remark = 21;</code>
     */
    java.lang.String getRemark();
    /**
     * <pre>
     *备注
     * </pre>
     *
     * <code>string remark = 21;</code>
     */
    com.google.protobuf.ByteString
        getRemarkBytes();

    /**
     * <pre>
     *开始执行日期（医嘱）
     * </pre>
     *
     * <code>string executeDate = 22;</code>
     */
    java.lang.String getExecuteDate();
    /**
     * <pre>
     *开始执行日期（医嘱）
     * </pre>
     *
     * <code>string executeDate = 22;</code>
     */
    com.google.protobuf.ByteString
        getExecuteDateBytes();

    /**
     * <pre>
     *注射次数（医嘱）
     * </pre>
     *
     * <code>int32 injections = 23;</code>
     */
    int getInjections();

    /**
     * <pre>
     *药品打包说明
     * </pre>
     *
     * <code>string packDetail = 24;</code>
     */
    java.lang.String getPackDetail();
    /**
     * <pre>
     *药品打包说明
     * </pre>
     *
     * <code>string packDetail = 24;</code>
     */
    com.google.protobuf.ByteString
        getPackDetailBytes();

    /**
     * <pre>
     *每次剂量说明(例：每次2片)
     * </pre>
     *
     * <code>string oneDosageDetail = 25;</code>
     */
    java.lang.String getOneDosageDetail();
    /**
     * <pre>
     *每次剂量说明(例：每次2片)
     * </pre>
     *
     * <code>string oneDosageDetail = 25;</code>
     */
    com.google.protobuf.ByteString
        getOneDosageDetailBytes();

    /**
     * <pre>
     *用药医生说明(例：宜饭前服用)
     * </pre>
     *
     * <code>string usageRemarks = 26;</code>
     */
    java.lang.String getUsageRemarks();
    /**
     * <pre>
     *用药医生说明(例：宜饭前服用)
     * </pre>
     *
     * <code>string usageRemarks = 26;</code>
     */
    com.google.protobuf.ByteString
        getUsageRemarksBytes();

    /**
     * <pre>
     *药品打印名称
     * </pre>
     *
     * <code>string drugPrintName = 27;</code>
     */
    java.lang.String getDrugPrintName();
    /**
     * <pre>
     *药品打印名称
     * </pre>
     *
     * <code>string drugPrintName = 27;</code>
     */
    com.google.protobuf.ByteString
        getDrugPrintNameBytes();

    /**
     * <pre>
     *药品是否冷藏(0或空不冷藏，1是冷藏)
     * </pre>
     *
     * <code>string drugRefrigeration = 28;</code>
     */
    java.lang.String getDrugRefrigeration();
    /**
     * <pre>
     *药品是否冷藏(0或空不冷藏，1是冷藏)
     * </pre>
     *
     * <code>string drugRefrigeration = 28;</code>
     */
    com.google.protobuf.ByteString
        getDrugRefrigerationBytes();

    /**
     * <code>int32 drugId = 29;</code>
     */
    int getDrugId();

    /**
     * <code>string producer = 30;</code>
     */
    java.lang.String getProducer();
    /**
     * <code>string producer = 30;</code>
     */
    com.google.protobuf.ByteString
        getProducerBytes();

    /**
     * <code>double specDosage = 31;</code>
     */
    double getSpecDosage();
  }
  /**
   * <pre>
   *处方药品信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo}
   */
  public  static final class PrescriptionDrugInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)
      PrescriptionDrugInfoOrBuilder {
    // Use PrescriptionDrugInfo.newBuilder() to construct.
    private PrescriptionDrugInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PrescriptionDrugInfo() {
      drugCode_ = "";
      drugCode3Th_ = "";
      oneDosage_ = 0D;
      oneDosageUnit_ = "";
      amount_ = 0;
      units_ = "";
      frequencyCode_ = "";
      frequency_ = "";
      frequencyQty_ = 0;
      usageCode_ = "";
      usage_ = "";
      price_ = 0;
      drugName_ = "";
      drugSpec_ = "";
      quantity_ = 0;
      total_ = 0;
      course_ = 0;
      group_ = 0;
      orderIndex_ = 0;
      combination_ = 0;
      remark_ = "";
      executeDate_ = "";
      injections_ = 0;
      packDetail_ = "";
      oneDosageDetail_ = "";
      usageRemarks_ = "";
      drugPrintName_ = "";
      drugRefrigeration_ = "";
      drugId_ = 0;
      producer_ = "";
      specDosage_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private PrescriptionDrugInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

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

              drugCode3Th_ = s;
              break;
            }
            case 25: {

              oneDosage_ = input.readDouble();
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              oneDosageUnit_ = s;
              break;
            }
            case 40: {

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

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

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

              frequency_ = s;
              break;
            }
            case 72: {

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

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

              usage_ = s;
              break;
            }
            case 96: {

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

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

              drugSpec_ = s;
              break;
            }
            case 120: {

              quantity_ = input.readInt32();
              break;
            }
            case 128: {

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

              course_ = input.readInt32();
              break;
            }
            case 144: {

              group_ = input.readInt32();
              break;
            }
            case 152: {

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

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

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

              executeDate_ = s;
              break;
            }
            case 184: {

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

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

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

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

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

              drugRefrigeration_ = s;
              break;
            }
            case 232: {

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

              producer_ = s;
              break;
            }
            case 249: {

              specDosage_ = input.readDouble();
              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 {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_PrescriptionDrugInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_PrescriptionDrugInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.class, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder.class);
    }

    public static final int DRUGCODE_FIELD_NUMBER = 1;
    private volatile java.lang.Object drugCode_;
    /**
     * <code>string drugCode = 1;</code>
     */
    public java.lang.String getDrugCode() {
      java.lang.Object ref = drugCode_;
      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();
        drugCode_ = s;
        return s;
      }
    }
    /**
     * <code>string drugCode = 1;</code>
     */
    public com.google.protobuf.ByteString
        getDrugCodeBytes() {
      java.lang.Object ref = drugCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DRUGCODE3TH_FIELD_NUMBER = 2;
    private volatile java.lang.Object drugCode3Th_;
    /**
     * <code>string drugCode3th = 2;</code>
     */
    public java.lang.String getDrugCode3Th() {
      java.lang.Object ref = drugCode3Th_;
      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();
        drugCode3Th_ = s;
        return s;
      }
    }
    /**
     * <code>string drugCode3th = 2;</code>
     */
    public com.google.protobuf.ByteString
        getDrugCode3ThBytes() {
      java.lang.Object ref = drugCode3Th_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugCode3Th_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ONEDOSAGE_FIELD_NUMBER = 3;
    private double oneDosage_;
    /**
     * <code>double oneDosage = 3;</code>
     */
    public double getOneDosage() {
      return oneDosage_;
    }

    public static final int ONEDOSAGEUNIT_FIELD_NUMBER = 4;
    private volatile java.lang.Object oneDosageUnit_;
    /**
     * <code>string oneDosageUnit = 4;</code>
     */
    public java.lang.String getOneDosageUnit() {
      java.lang.Object ref = oneDosageUnit_;
      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();
        oneDosageUnit_ = s;
        return s;
      }
    }
    /**
     * <code>string oneDosageUnit = 4;</code>
     */
    public com.google.protobuf.ByteString
        getOneDosageUnitBytes() {
      java.lang.Object ref = oneDosageUnit_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        oneDosageUnit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int AMOUNT_FIELD_NUMBER = 5;
    private int amount_;
    /**
     * <code>int32 amount = 5;</code>
     */
    public int getAmount() {
      return amount_;
    }

    public static final int UNITS_FIELD_NUMBER = 6;
    private volatile java.lang.Object units_;
    /**
     * <code>string units = 6;</code>
     */
    public java.lang.String getUnits() {
      java.lang.Object ref = units_;
      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();
        units_ = s;
        return s;
      }
    }
    /**
     * <code>string units = 6;</code>
     */
    public com.google.protobuf.ByteString
        getUnitsBytes() {
      java.lang.Object ref = units_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        units_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FREQUENCYCODE_FIELD_NUMBER = 7;
    private volatile java.lang.Object frequencyCode_;
    /**
     * <code>string frequencyCode = 7;</code>
     */
    public java.lang.String getFrequencyCode() {
      java.lang.Object ref = frequencyCode_;
      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();
        frequencyCode_ = s;
        return s;
      }
    }
    /**
     * <code>string frequencyCode = 7;</code>
     */
    public com.google.protobuf.ByteString
        getFrequencyCodeBytes() {
      java.lang.Object ref = frequencyCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        frequencyCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FREQUENCY_FIELD_NUMBER = 8;
    private volatile java.lang.Object frequency_;
    /**
     * <code>string frequency = 8;</code>
     */
    public java.lang.String getFrequency() {
      java.lang.Object ref = frequency_;
      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();
        frequency_ = s;
        return s;
      }
    }
    /**
     * <code>string frequency = 8;</code>
     */
    public com.google.protobuf.ByteString
        getFrequencyBytes() {
      java.lang.Object ref = frequency_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        frequency_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FREQUENCYQTY_FIELD_NUMBER = 9;
    private int frequencyQty_;
    /**
     * <code>int32 frequencyQty = 9;</code>
     */
    public int getFrequencyQty() {
      return frequencyQty_;
    }

    public static final int USAGECODE_FIELD_NUMBER = 10;
    private volatile java.lang.Object usageCode_;
    /**
     * <code>string usageCode = 10;</code>
     */
    public java.lang.String getUsageCode() {
      java.lang.Object ref = usageCode_;
      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();
        usageCode_ = s;
        return s;
      }
    }
    /**
     * <code>string usageCode = 10;</code>
     */
    public com.google.protobuf.ByteString
        getUsageCodeBytes() {
      java.lang.Object ref = usageCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        usageCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int USAGE_FIELD_NUMBER = 11;
    private volatile java.lang.Object usage_;
    /**
     * <code>string usage = 11;</code>
     */
    public java.lang.String getUsage() {
      java.lang.Object ref = usage_;
      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();
        usage_ = s;
        return s;
      }
    }
    /**
     * <code>string usage = 11;</code>
     */
    public com.google.protobuf.ByteString
        getUsageBytes() {
      java.lang.Object ref = usage_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        usage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PRICE_FIELD_NUMBER = 12;
    private int price_;
    /**
     * <code>int32 price = 12;</code>
     */
    public int getPrice() {
      return price_;
    }

    public static final int DRUGNAME_FIELD_NUMBER = 13;
    private volatile java.lang.Object drugName_;
    /**
     * <code>string drugName = 13;</code>
     */
    public java.lang.String getDrugName() {
      java.lang.Object ref = drugName_;
      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();
        drugName_ = s;
        return s;
      }
    }
    /**
     * <code>string drugName = 13;</code>
     */
    public com.google.protobuf.ByteString
        getDrugNameBytes() {
      java.lang.Object ref = drugName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DRUGSPEC_FIELD_NUMBER = 14;
    private volatile java.lang.Object drugSpec_;
    /**
     * <code>string drugSpec = 14;</code>
     */
    public java.lang.String getDrugSpec() {
      java.lang.Object ref = drugSpec_;
      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();
        drugSpec_ = s;
        return s;
      }
    }
    /**
     * <code>string drugSpec = 14;</code>
     */
    public com.google.protobuf.ByteString
        getDrugSpecBytes() {
      java.lang.Object ref = drugSpec_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugSpec_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int QUANTITY_FIELD_NUMBER = 15;
    private int quantity_;
    /**
     * <code>int32 quantity = 15;</code>
     */
    public int getQuantity() {
      return quantity_;
    }

    public static final int TOTAL_FIELD_NUMBER = 16;
    private int total_;
    /**
     * <code>int32 total = 16;</code>
     */
    public int getTotal() {
      return total_;
    }

    public static final int COURSE_FIELD_NUMBER = 17;
    private int course_;
    /**
     * <pre>
     *疗程，单位：天
     * </pre>
     *
     * <code>int32 course = 17;</code>
     */
    public int getCourse() {
      return course_;
    }

    public static final int GROUP_FIELD_NUMBER = 18;
    private int group_;
    /**
     * <pre>
     *组号，组号相同表示它们为同组药
     * </pre>
     *
     * <code>int32 group = 18;</code>
     */
    public int getGroup() {
      return group_;
    }

    public static final int ORDERINDEX_FIELD_NUMBER = 19;
    private int orderIndex_;
    /**
     * <pre>
     *序号
     * </pre>
     *
     * <code>int32 orderIndex = 19;</code>
     */
    public int getOrderIndex() {
      return orderIndex_;
    }

    public static final int COMBINATION_FIELD_NUMBER = 20;
    private int combination_;
    /**
     * <pre>
     *是否为同组药(1-是，0-否)
     * </pre>
     *
     * <code>int32 combination = 20;</code>
     */
    public int getCombination() {
      return combination_;
    }

    public static final int REMARK_FIELD_NUMBER = 21;
    private volatile java.lang.Object remark_;
    /**
     * <pre>
     *备注
     * </pre>
     *
     * <code>string remark = 21;</code>
     */
    public java.lang.String getRemark() {
      java.lang.Object ref = remark_;
      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();
        remark_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *备注
     * </pre>
     *
     * <code>string remark = 21;</code>
     */
    public com.google.protobuf.ByteString
        getRemarkBytes() {
      java.lang.Object ref = remark_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        remark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EXECUTEDATE_FIELD_NUMBER = 22;
    private volatile java.lang.Object executeDate_;
    /**
     * <pre>
     *开始执行日期（医嘱）
     * </pre>
     *
     * <code>string executeDate = 22;</code>
     */
    public java.lang.String getExecuteDate() {
      java.lang.Object ref = executeDate_;
      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();
        executeDate_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *开始执行日期（医嘱）
     * </pre>
     *
     * <code>string executeDate = 22;</code>
     */
    public com.google.protobuf.ByteString
        getExecuteDateBytes() {
      java.lang.Object ref = executeDate_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        executeDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int INJECTIONS_FIELD_NUMBER = 23;
    private int injections_;
    /**
     * <pre>
     *注射次数（医嘱）
     * </pre>
     *
     * <code>int32 injections = 23;</code>
     */
    public int getInjections() {
      return injections_;
    }

    public static final int PACKDETAIL_FIELD_NUMBER = 24;
    private volatile java.lang.Object packDetail_;
    /**
     * <pre>
     *药品打包说明
     * </pre>
     *
     * <code>string packDetail = 24;</code>
     */
    public java.lang.String getPackDetail() {
      java.lang.Object ref = packDetail_;
      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();
        packDetail_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *药品打包说明
     * </pre>
     *
     * <code>string packDetail = 24;</code>
     */
    public com.google.protobuf.ByteString
        getPackDetailBytes() {
      java.lang.Object ref = packDetail_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        packDetail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ONEDOSAGEDETAIL_FIELD_NUMBER = 25;
    private volatile java.lang.Object oneDosageDetail_;
    /**
     * <pre>
     *每次剂量说明(例：每次2片)
     * </pre>
     *
     * <code>string oneDosageDetail = 25;</code>
     */
    public java.lang.String getOneDosageDetail() {
      java.lang.Object ref = oneDosageDetail_;
      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();
        oneDosageDetail_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *每次剂量说明(例：每次2片)
     * </pre>
     *
     * <code>string oneDosageDetail = 25;</code>
     */
    public com.google.protobuf.ByteString
        getOneDosageDetailBytes() {
      java.lang.Object ref = oneDosageDetail_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        oneDosageDetail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int USAGEREMARKS_FIELD_NUMBER = 26;
    private volatile java.lang.Object usageRemarks_;
    /**
     * <pre>
     *用药医生说明(例：宜饭前服用)
     * </pre>
     *
     * <code>string usageRemarks = 26;</code>
     */
    public java.lang.String getUsageRemarks() {
      java.lang.Object ref = usageRemarks_;
      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();
        usageRemarks_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *用药医生说明(例：宜饭前服用)
     * </pre>
     *
     * <code>string usageRemarks = 26;</code>
     */
    public com.google.protobuf.ByteString
        getUsageRemarksBytes() {
      java.lang.Object ref = usageRemarks_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        usageRemarks_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DRUGPRINTNAME_FIELD_NUMBER = 27;
    private volatile java.lang.Object drugPrintName_;
    /**
     * <pre>
     *药品打印名称
     * </pre>
     *
     * <code>string drugPrintName = 27;</code>
     */
    public java.lang.String getDrugPrintName() {
      java.lang.Object ref = drugPrintName_;
      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();
        drugPrintName_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *药品打印名称
     * </pre>
     *
     * <code>string drugPrintName = 27;</code>
     */
    public com.google.protobuf.ByteString
        getDrugPrintNameBytes() {
      java.lang.Object ref = drugPrintName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugPrintName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DRUGREFRIGERATION_FIELD_NUMBER = 28;
    private volatile java.lang.Object drugRefrigeration_;
    /**
     * <pre>
     *药品是否冷藏(0或空不冷藏，1是冷藏)
     * </pre>
     *
     * <code>string drugRefrigeration = 28;</code>
     */
    public java.lang.String getDrugRefrigeration() {
      java.lang.Object ref = drugRefrigeration_;
      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();
        drugRefrigeration_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *药品是否冷藏(0或空不冷藏，1是冷藏)
     * </pre>
     *
     * <code>string drugRefrigeration = 28;</code>
     */
    public com.google.protobuf.ByteString
        getDrugRefrigerationBytes() {
      java.lang.Object ref = drugRefrigeration_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugRefrigeration_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DRUGID_FIELD_NUMBER = 29;
    private int drugId_;
    /**
     * <code>int32 drugId = 29;</code>
     */
    public int getDrugId() {
      return drugId_;
    }

    public static final int PRODUCER_FIELD_NUMBER = 30;
    private volatile java.lang.Object producer_;
    /**
     * <code>string producer = 30;</code>
     */
    public java.lang.String getProducer() {
      java.lang.Object ref = producer_;
      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();
        producer_ = s;
        return s;
      }
    }
    /**
     * <code>string producer = 30;</code>
     */
    public com.google.protobuf.ByteString
        getProducerBytes() {
      java.lang.Object ref = producer_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        producer_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SPECDOSAGE_FIELD_NUMBER = 31;
    private double specDosage_;
    /**
     * <code>double specDosage = 31;</code>
     */
    public double getSpecDosage() {
      return specDosage_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getDrugCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, drugCode_);
      }
      if (!getDrugCode3ThBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, drugCode3Th_);
      }
      if (oneDosage_ != 0D) {
        output.writeDouble(3, oneDosage_);
      }
      if (!getOneDosageUnitBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oneDosageUnit_);
      }
      if (amount_ != 0) {
        output.writeInt32(5, amount_);
      }
      if (!getUnitsBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, units_);
      }
      if (!getFrequencyCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, frequencyCode_);
      }
      if (!getFrequencyBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 8, frequency_);
      }
      if (frequencyQty_ != 0) {
        output.writeInt32(9, frequencyQty_);
      }
      if (!getUsageCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 10, usageCode_);
      }
      if (!getUsageBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 11, usage_);
      }
      if (price_ != 0) {
        output.writeInt32(12, price_);
      }
      if (!getDrugNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 13, drugName_);
      }
      if (!getDrugSpecBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 14, drugSpec_);
      }
      if (quantity_ != 0) {
        output.writeInt32(15, quantity_);
      }
      if (total_ != 0) {
        output.writeInt32(16, total_);
      }
      if (course_ != 0) {
        output.writeInt32(17, course_);
      }
      if (group_ != 0) {
        output.writeInt32(18, group_);
      }
      if (orderIndex_ != 0) {
        output.writeInt32(19, orderIndex_);
      }
      if (combination_ != 0) {
        output.writeInt32(20, combination_);
      }
      if (!getRemarkBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 21, remark_);
      }
      if (!getExecuteDateBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 22, executeDate_);
      }
      if (injections_ != 0) {
        output.writeInt32(23, injections_);
      }
      if (!getPackDetailBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 24, packDetail_);
      }
      if (!getOneDosageDetailBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 25, oneDosageDetail_);
      }
      if (!getUsageRemarksBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 26, usageRemarks_);
      }
      if (!getDrugPrintNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 27, drugPrintName_);
      }
      if (!getDrugRefrigerationBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 28, drugRefrigeration_);
      }
      if (drugId_ != 0) {
        output.writeInt32(29, drugId_);
      }
      if (!getProducerBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 30, producer_);
      }
      if (specDosage_ != 0D) {
        output.writeDouble(31, specDosage_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getDrugCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, drugCode_);
      }
      if (!getDrugCode3ThBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, drugCode3Th_);
      }
      if (oneDosage_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(3, oneDosage_);
      }
      if (!getOneDosageUnitBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oneDosageUnit_);
      }
      if (amount_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(5, amount_);
      }
      if (!getUnitsBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, units_);
      }
      if (!getFrequencyCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, frequencyCode_);
      }
      if (!getFrequencyBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, frequency_);
      }
      if (frequencyQty_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(9, frequencyQty_);
      }
      if (!getUsageCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, usageCode_);
      }
      if (!getUsageBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, usage_);
      }
      if (price_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(12, price_);
      }
      if (!getDrugNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, drugName_);
      }
      if (!getDrugSpecBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, drugSpec_);
      }
      if (quantity_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(15, quantity_);
      }
      if (total_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(16, total_);
      }
      if (course_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(17, course_);
      }
      if (group_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(18, group_);
      }
      if (orderIndex_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(19, orderIndex_);
      }
      if (combination_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(20, combination_);
      }
      if (!getRemarkBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, remark_);
      }
      if (!getExecuteDateBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, executeDate_);
      }
      if (injections_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(23, injections_);
      }
      if (!getPackDetailBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, packDetail_);
      }
      if (!getOneDosageDetailBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, oneDosageDetail_);
      }
      if (!getUsageRemarksBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, usageRemarks_);
      }
      if (!getDrugPrintNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, drugPrintName_);
      }
      if (!getDrugRefrigerationBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, drugRefrigeration_);
      }
      if (drugId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(29, drugId_);
      }
      if (!getProducerBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, producer_);
      }
      if (specDosage_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(31, specDosage_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)) {
        return super.equals(obj);
      }
      com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo other = (com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo) obj;

      boolean result = true;
      result = result && getDrugCode()
          .equals(other.getDrugCode());
      result = result && getDrugCode3Th()
          .equals(other.getDrugCode3Th());
      result = result && (
          java.lang.Double.doubleToLongBits(getOneDosage())
          == java.lang.Double.doubleToLongBits(
              other.getOneDosage()));
      result = result && getOneDosageUnit()
          .equals(other.getOneDosageUnit());
      result = result && (getAmount()
          == other.getAmount());
      result = result && getUnits()
          .equals(other.getUnits());
      result = result && getFrequencyCode()
          .equals(other.getFrequencyCode());
      result = result && getFrequency()
          .equals(other.getFrequency());
      result = result && (getFrequencyQty()
          == other.getFrequencyQty());
      result = result && getUsageCode()
          .equals(other.getUsageCode());
      result = result && getUsage()
          .equals(other.getUsage());
      result = result && (getPrice()
          == other.getPrice());
      result = result && getDrugName()
          .equals(other.getDrugName());
      result = result && getDrugSpec()
          .equals(other.getDrugSpec());
      result = result && (getQuantity()
          == other.getQuantity());
      result = result && (getTotal()
          == other.getTotal());
      result = result && (getCourse()
          == other.getCourse());
      result = result && (getGroup()
          == other.getGroup());
      result = result && (getOrderIndex()
          == other.getOrderIndex());
      result = result && (getCombination()
          == other.getCombination());
      result = result && getRemark()
          .equals(other.getRemark());
      result = result && getExecuteDate()
          .equals(other.getExecuteDate());
      result = result && (getInjections()
          == other.getInjections());
      result = result && getPackDetail()
          .equals(other.getPackDetail());
      result = result && getOneDosageDetail()
          .equals(other.getOneDosageDetail());
      result = result && getUsageRemarks()
          .equals(other.getUsageRemarks());
      result = result && getDrugPrintName()
          .equals(other.getDrugPrintName());
      result = result && getDrugRefrigeration()
          .equals(other.getDrugRefrigeration());
      result = result && (getDrugId()
          == other.getDrugId());
      result = result && getProducer()
          .equals(other.getProducer());
      result = result && (
          java.lang.Double.doubleToLongBits(getSpecDosage())
          == java.lang.Double.doubleToLongBits(
              other.getSpecDosage()));
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + DRUGCODE_FIELD_NUMBER;
      hash = (53 * hash) + getDrugCode().hashCode();
      hash = (37 * hash) + DRUGCODE3TH_FIELD_NUMBER;
      hash = (53 * hash) + getDrugCode3Th().hashCode();
      hash = (37 * hash) + ONEDOSAGE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getOneDosage()));
      hash = (37 * hash) + ONEDOSAGEUNIT_FIELD_NUMBER;
      hash = (53 * hash) + getOneDosageUnit().hashCode();
      hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
      hash = (53 * hash) + getAmount();
      hash = (37 * hash) + UNITS_FIELD_NUMBER;
      hash = (53 * hash) + getUnits().hashCode();
      hash = (37 * hash) + FREQUENCYCODE_FIELD_NUMBER;
      hash = (53 * hash) + getFrequencyCode().hashCode();
      hash = (37 * hash) + FREQUENCY_FIELD_NUMBER;
      hash = (53 * hash) + getFrequency().hashCode();
      hash = (37 * hash) + FREQUENCYQTY_FIELD_NUMBER;
      hash = (53 * hash) + getFrequencyQty();
      hash = (37 * hash) + USAGECODE_FIELD_NUMBER;
      hash = (53 * hash) + getUsageCode().hashCode();
      hash = (37 * hash) + USAGE_FIELD_NUMBER;
      hash = (53 * hash) + getUsage().hashCode();
      hash = (37 * hash) + PRICE_FIELD_NUMBER;
      hash = (53 * hash) + getPrice();
      hash = (37 * hash) + DRUGNAME_FIELD_NUMBER;
      hash = (53 * hash) + getDrugName().hashCode();
      hash = (37 * hash) + DRUGSPEC_FIELD_NUMBER;
      hash = (53 * hash) + getDrugSpec().hashCode();
      hash = (37 * hash) + QUANTITY_FIELD_NUMBER;
      hash = (53 * hash) + getQuantity();
      hash = (37 * hash) + TOTAL_FIELD_NUMBER;
      hash = (53 * hash) + getTotal();
      hash = (37 * hash) + COURSE_FIELD_NUMBER;
      hash = (53 * hash) + getCourse();
      hash = (37 * hash) + GROUP_FIELD_NUMBER;
      hash = (53 * hash) + getGroup();
      hash = (37 * hash) + ORDERINDEX_FIELD_NUMBER;
      hash = (53 * hash) + getOrderIndex();
      hash = (37 * hash) + COMBINATION_FIELD_NUMBER;
      hash = (53 * hash) + getCombination();
      hash = (37 * hash) + REMARK_FIELD_NUMBER;
      hash = (53 * hash) + getRemark().hashCode();
      hash = (37 * hash) + EXECUTEDATE_FIELD_NUMBER;
      hash = (53 * hash) + getExecuteDate().hashCode();
      hash = (37 * hash) + INJECTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getInjections();
      hash = (37 * hash) + PACKDETAIL_FIELD_NUMBER;
      hash = (53 * hash) + getPackDetail().hashCode();
      hash = (37 * hash) + ONEDOSAGEDETAIL_FIELD_NUMBER;
      hash = (53 * hash) + getOneDosageDetail().hashCode();
      hash = (37 * hash) + USAGEREMARKS_FIELD_NUMBER;
      hash = (53 * hash) + getUsageRemarks().hashCode();
      hash = (37 * hash) + DRUGPRINTNAME_FIELD_NUMBER;
      hash = (53 * hash) + getDrugPrintName().hashCode();
      hash = (37 * hash) + DRUGREFRIGERATION_FIELD_NUMBER;
      hash = (53 * hash) + getDrugRefrigeration().hashCode();
      hash = (37 * hash) + DRUGID_FIELD_NUMBER;
      hash = (53 * hash) + getDrugId();
      hash = (37 * hash) + PRODUCER_FIELD_NUMBER;
      hash = (53 * hash) + getProducer().hashCode();
      hash = (37 * hash) + SPECDOSAGE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getSpecDosage()));
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo 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.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo 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.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo 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.drug.PrescriptionInfo.PrescriptionDrugInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo 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.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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.drug.PrescriptionInfo.PrescriptionDrugInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)
        com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_PrescriptionDrugInfo_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_PrescriptionDrugInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.class, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder.class);
      }

      // Construct using com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        drugCode_ = "";

        drugCode3Th_ = "";

        oneDosage_ = 0D;

        oneDosageUnit_ = "";

        amount_ = 0;

        units_ = "";

        frequencyCode_ = "";

        frequency_ = "";

        frequencyQty_ = 0;

        usageCode_ = "";

        usage_ = "";

        price_ = 0;

        drugName_ = "";

        drugSpec_ = "";

        quantity_ = 0;

        total_ = 0;

        course_ = 0;

        group_ = 0;

        orderIndex_ = 0;

        combination_ = 0;

        remark_ = "";

        executeDate_ = "";

        injections_ = 0;

        packDetail_ = "";

        oneDosageDetail_ = "";

        usageRemarks_ = "";

        drugPrintName_ = "";

        drugRefrigeration_ = "";

        drugId_ = 0;

        producer_ = "";

        specDosage_ = 0D;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_PrescriptionDrugInfo_descriptor;
      }

      public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo getDefaultInstanceForType() {
        return com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance();
      }

      public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo build() {
        com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo buildPartial() {
        com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo result = new com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo(this);
        result.drugCode_ = drugCode_;
        result.drugCode3Th_ = drugCode3Th_;
        result.oneDosage_ = oneDosage_;
        result.oneDosageUnit_ = oneDosageUnit_;
        result.amount_ = amount_;
        result.units_ = units_;
        result.frequencyCode_ = frequencyCode_;
        result.frequency_ = frequency_;
        result.frequencyQty_ = frequencyQty_;
        result.usageCode_ = usageCode_;
        result.usage_ = usage_;
        result.price_ = price_;
        result.drugName_ = drugName_;
        result.drugSpec_ = drugSpec_;
        result.quantity_ = quantity_;
        result.total_ = total_;
        result.course_ = course_;
        result.group_ = group_;
        result.orderIndex_ = orderIndex_;
        result.combination_ = combination_;
        result.remark_ = remark_;
        result.executeDate_ = executeDate_;
        result.injections_ = injections_;
        result.packDetail_ = packDetail_;
        result.oneDosageDetail_ = oneDosageDetail_;
        result.usageRemarks_ = usageRemarks_;
        result.drugPrintName_ = drugPrintName_;
        result.drugRefrigeration_ = drugRefrigeration_;
        result.drugId_ = drugId_;
        result.producer_ = producer_;
        result.specDosage_ = specDosage_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo) {
          return mergeFrom((com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo other) {
        if (other == com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance()) return this;
        if (!other.getDrugCode().isEmpty()) {
          drugCode_ = other.drugCode_;
          onChanged();
        }
        if (!other.getDrugCode3Th().isEmpty()) {
          drugCode3Th_ = other.drugCode3Th_;
          onChanged();
        }
        if (other.getOneDosage() != 0D) {
          setOneDosage(other.getOneDosage());
        }
        if (!other.getOneDosageUnit().isEmpty()) {
          oneDosageUnit_ = other.oneDosageUnit_;
          onChanged();
        }
        if (other.getAmount() != 0) {
          setAmount(other.getAmount());
        }
        if (!other.getUnits().isEmpty()) {
          units_ = other.units_;
          onChanged();
        }
        if (!other.getFrequencyCode().isEmpty()) {
          frequencyCode_ = other.frequencyCode_;
          onChanged();
        }
        if (!other.getFrequency().isEmpty()) {
          frequency_ = other.frequency_;
          onChanged();
        }
        if (other.getFrequencyQty() != 0) {
          setFrequencyQty(other.getFrequencyQty());
        }
        if (!other.getUsageCode().isEmpty()) {
          usageCode_ = other.usageCode_;
          onChanged();
        }
        if (!other.getUsage().isEmpty()) {
          usage_ = other.usage_;
          onChanged();
        }
        if (other.getPrice() != 0) {
          setPrice(other.getPrice());
        }
        if (!other.getDrugName().isEmpty()) {
          drugName_ = other.drugName_;
          onChanged();
        }
        if (!other.getDrugSpec().isEmpty()) {
          drugSpec_ = other.drugSpec_;
          onChanged();
        }
        if (other.getQuantity() != 0) {
          setQuantity(other.getQuantity());
        }
        if (other.getTotal() != 0) {
          setTotal(other.getTotal());
        }
        if (other.getCourse() != 0) {
          setCourse(other.getCourse());
        }
        if (other.getGroup() != 0) {
          setGroup(other.getGroup());
        }
        if (other.getOrderIndex() != 0) {
          setOrderIndex(other.getOrderIndex());
        }
        if (other.getCombination() != 0) {
          setCombination(other.getCombination());
        }
        if (!other.getRemark().isEmpty()) {
          remark_ = other.remark_;
          onChanged();
        }
        if (!other.getExecuteDate().isEmpty()) {
          executeDate_ = other.executeDate_;
          onChanged();
        }
        if (other.getInjections() != 0) {
          setInjections(other.getInjections());
        }
        if (!other.getPackDetail().isEmpty()) {
          packDetail_ = other.packDetail_;
          onChanged();
        }
        if (!other.getOneDosageDetail().isEmpty()) {
          oneDosageDetail_ = other.oneDosageDetail_;
          onChanged();
        }
        if (!other.getUsageRemarks().isEmpty()) {
          usageRemarks_ = other.usageRemarks_;
          onChanged();
        }
        if (!other.getDrugPrintName().isEmpty()) {
          drugPrintName_ = other.drugPrintName_;
          onChanged();
        }
        if (!other.getDrugRefrigeration().isEmpty()) {
          drugRefrigeration_ = other.drugRefrigeration_;
          onChanged();
        }
        if (other.getDrugId() != 0) {
          setDrugId(other.getDrugId());
        }
        if (!other.getProducer().isEmpty()) {
          producer_ = other.producer_;
          onChanged();
        }
        if (other.getSpecDosage() != 0D) {
          setSpecDosage(other.getSpecDosage());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

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

      private java.lang.Object drugCode_ = "";
      /**
       * <code>string drugCode = 1;</code>
       */
      public java.lang.String getDrugCode() {
        java.lang.Object ref = drugCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugCode = 1;</code>
       */
      public com.google.protobuf.ByteString
          getDrugCodeBytes() {
        java.lang.Object ref = drugCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugCode = 1;</code>
       */
      public Builder setDrugCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugCode = 1;</code>
       */
      public Builder clearDrugCode() {
        
        drugCode_ = getDefaultInstance().getDrugCode();
        onChanged();
        return this;
      }
      /**
       * <code>string drugCode = 1;</code>
       */
      public Builder setDrugCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugCode_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object drugCode3Th_ = "";
      /**
       * <code>string drugCode3th = 2;</code>
       */
      public java.lang.String getDrugCode3Th() {
        java.lang.Object ref = drugCode3Th_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugCode3Th_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugCode3th = 2;</code>
       */
      public com.google.protobuf.ByteString
          getDrugCode3ThBytes() {
        java.lang.Object ref = drugCode3Th_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugCode3Th_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugCode3th = 2;</code>
       */
      public Builder setDrugCode3Th(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugCode3Th_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugCode3th = 2;</code>
       */
      public Builder clearDrugCode3Th() {
        
        drugCode3Th_ = getDefaultInstance().getDrugCode3Th();
        onChanged();
        return this;
      }
      /**
       * <code>string drugCode3th = 2;</code>
       */
      public Builder setDrugCode3ThBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugCode3Th_ = value;
        onChanged();
        return this;
      }

      private double oneDosage_ ;
      /**
       * <code>double oneDosage = 3;</code>
       */
      public double getOneDosage() {
        return oneDosage_;
      }
      /**
       * <code>double oneDosage = 3;</code>
       */
      public Builder setOneDosage(double value) {
        
        oneDosage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double oneDosage = 3;</code>
       */
      public Builder clearOneDosage() {
        
        oneDosage_ = 0D;
        onChanged();
        return this;
      }

      private java.lang.Object oneDosageUnit_ = "";
      /**
       * <code>string oneDosageUnit = 4;</code>
       */
      public java.lang.String getOneDosageUnit() {
        java.lang.Object ref = oneDosageUnit_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          oneDosageUnit_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string oneDosageUnit = 4;</code>
       */
      public com.google.protobuf.ByteString
          getOneDosageUnitBytes() {
        java.lang.Object ref = oneDosageUnit_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          oneDosageUnit_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string oneDosageUnit = 4;</code>
       */
      public Builder setOneDosageUnit(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        oneDosageUnit_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string oneDosageUnit = 4;</code>
       */
      public Builder clearOneDosageUnit() {
        
        oneDosageUnit_ = getDefaultInstance().getOneDosageUnit();
        onChanged();
        return this;
      }
      /**
       * <code>string oneDosageUnit = 4;</code>
       */
      public Builder setOneDosageUnitBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        oneDosageUnit_ = value;
        onChanged();
        return this;
      }

      private int amount_ ;
      /**
       * <code>int32 amount = 5;</code>
       */
      public int getAmount() {
        return amount_;
      }
      /**
       * <code>int32 amount = 5;</code>
       */
      public Builder setAmount(int value) {
        
        amount_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 amount = 5;</code>
       */
      public Builder clearAmount() {
        
        amount_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object units_ = "";
      /**
       * <code>string units = 6;</code>
       */
      public java.lang.String getUnits() {
        java.lang.Object ref = units_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          units_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string units = 6;</code>
       */
      public com.google.protobuf.ByteString
          getUnitsBytes() {
        java.lang.Object ref = units_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          units_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string units = 6;</code>
       */
      public Builder setUnits(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        units_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string units = 6;</code>
       */
      public Builder clearUnits() {
        
        units_ = getDefaultInstance().getUnits();
        onChanged();
        return this;
      }
      /**
       * <code>string units = 6;</code>
       */
      public Builder setUnitsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        units_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object frequencyCode_ = "";
      /**
       * <code>string frequencyCode = 7;</code>
       */
      public java.lang.String getFrequencyCode() {
        java.lang.Object ref = frequencyCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          frequencyCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string frequencyCode = 7;</code>
       */
      public com.google.protobuf.ByteString
          getFrequencyCodeBytes() {
        java.lang.Object ref = frequencyCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          frequencyCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string frequencyCode = 7;</code>
       */
      public Builder setFrequencyCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        frequencyCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string frequencyCode = 7;</code>
       */
      public Builder clearFrequencyCode() {
        
        frequencyCode_ = getDefaultInstance().getFrequencyCode();
        onChanged();
        return this;
      }
      /**
       * <code>string frequencyCode = 7;</code>
       */
      public Builder setFrequencyCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        frequencyCode_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object frequency_ = "";
      /**
       * <code>string frequency = 8;</code>
       */
      public java.lang.String getFrequency() {
        java.lang.Object ref = frequency_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          frequency_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string frequency = 8;</code>
       */
      public com.google.protobuf.ByteString
          getFrequencyBytes() {
        java.lang.Object ref = frequency_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          frequency_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string frequency = 8;</code>
       */
      public Builder setFrequency(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        frequency_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string frequency = 8;</code>
       */
      public Builder clearFrequency() {
        
        frequency_ = getDefaultInstance().getFrequency();
        onChanged();
        return this;
      }
      /**
       * <code>string frequency = 8;</code>
       */
      public Builder setFrequencyBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        frequency_ = value;
        onChanged();
        return this;
      }

      private int frequencyQty_ ;
      /**
       * <code>int32 frequencyQty = 9;</code>
       */
      public int getFrequencyQty() {
        return frequencyQty_;
      }
      /**
       * <code>int32 frequencyQty = 9;</code>
       */
      public Builder setFrequencyQty(int value) {
        
        frequencyQty_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 frequencyQty = 9;</code>
       */
      public Builder clearFrequencyQty() {
        
        frequencyQty_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object usageCode_ = "";
      /**
       * <code>string usageCode = 10;</code>
       */
      public java.lang.String getUsageCode() {
        java.lang.Object ref = usageCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          usageCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string usageCode = 10;</code>
       */
      public com.google.protobuf.ByteString
          getUsageCodeBytes() {
        java.lang.Object ref = usageCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          usageCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string usageCode = 10;</code>
       */
      public Builder setUsageCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        usageCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string usageCode = 10;</code>
       */
      public Builder clearUsageCode() {
        
        usageCode_ = getDefaultInstance().getUsageCode();
        onChanged();
        return this;
      }
      /**
       * <code>string usageCode = 10;</code>
       */
      public Builder setUsageCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        usageCode_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object usage_ = "";
      /**
       * <code>string usage = 11;</code>
       */
      public java.lang.String getUsage() {
        java.lang.Object ref = usage_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          usage_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string usage = 11;</code>
       */
      public com.google.protobuf.ByteString
          getUsageBytes() {
        java.lang.Object ref = usage_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          usage_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string usage = 11;</code>
       */
      public Builder setUsage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        usage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string usage = 11;</code>
       */
      public Builder clearUsage() {
        
        usage_ = getDefaultInstance().getUsage();
        onChanged();
        return this;
      }
      /**
       * <code>string usage = 11;</code>
       */
      public Builder setUsageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        usage_ = value;
        onChanged();
        return this;
      }

      private int price_ ;
      /**
       * <code>int32 price = 12;</code>
       */
      public int getPrice() {
        return price_;
      }
      /**
       * <code>int32 price = 12;</code>
       */
      public Builder setPrice(int value) {
        
        price_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 price = 12;</code>
       */
      public Builder clearPrice() {
        
        price_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object drugName_ = "";
      /**
       * <code>string drugName = 13;</code>
       */
      public java.lang.String getDrugName() {
        java.lang.Object ref = drugName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugName = 13;</code>
       */
      public com.google.protobuf.ByteString
          getDrugNameBytes() {
        java.lang.Object ref = drugName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugName = 13;</code>
       */
      public Builder setDrugName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugName_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugName = 13;</code>
       */
      public Builder clearDrugName() {
        
        drugName_ = getDefaultInstance().getDrugName();
        onChanged();
        return this;
      }
      /**
       * <code>string drugName = 13;</code>
       */
      public Builder setDrugNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugName_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object drugSpec_ = "";
      /**
       * <code>string drugSpec = 14;</code>
       */
      public java.lang.String getDrugSpec() {
        java.lang.Object ref = drugSpec_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugSpec_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugSpec = 14;</code>
       */
      public com.google.protobuf.ByteString
          getDrugSpecBytes() {
        java.lang.Object ref = drugSpec_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugSpec_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugSpec = 14;</code>
       */
      public Builder setDrugSpec(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugSpec_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugSpec = 14;</code>
       */
      public Builder clearDrugSpec() {
        
        drugSpec_ = getDefaultInstance().getDrugSpec();
        onChanged();
        return this;
      }
      /**
       * <code>string drugSpec = 14;</code>
       */
      public Builder setDrugSpecBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugSpec_ = value;
        onChanged();
        return this;
      }

      private int quantity_ ;
      /**
       * <code>int32 quantity = 15;</code>
       */
      public int getQuantity() {
        return quantity_;
      }
      /**
       * <code>int32 quantity = 15;</code>
       */
      public Builder setQuantity(int value) {
        
        quantity_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 quantity = 15;</code>
       */
      public Builder clearQuantity() {
        
        quantity_ = 0;
        onChanged();
        return this;
      }

      private int total_ ;
      /**
       * <code>int32 total = 16;</code>
       */
      public int getTotal() {
        return total_;
      }
      /**
       * <code>int32 total = 16;</code>
       */
      public Builder setTotal(int value) {
        
        total_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 total = 16;</code>
       */
      public Builder clearTotal() {
        
        total_ = 0;
        onChanged();
        return this;
      }

      private int course_ ;
      /**
       * <pre>
       *疗程，单位：天
       * </pre>
       *
       * <code>int32 course = 17;</code>
       */
      public int getCourse() {
        return course_;
      }
      /**
       * <pre>
       *疗程，单位：天
       * </pre>
       *
       * <code>int32 course = 17;</code>
       */
      public Builder setCourse(int value) {
        
        course_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *疗程，单位：天
       * </pre>
       *
       * <code>int32 course = 17;</code>
       */
      public Builder clearCourse() {
        
        course_ = 0;
        onChanged();
        return this;
      }

      private int group_ ;
      /**
       * <pre>
       *组号，组号相同表示它们为同组药
       * </pre>
       *
       * <code>int32 group = 18;</code>
       */
      public int getGroup() {
        return group_;
      }
      /**
       * <pre>
       *组号，组号相同表示它们为同组药
       * </pre>
       *
       * <code>int32 group = 18;</code>
       */
      public Builder setGroup(int value) {
        
        group_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *组号，组号相同表示它们为同组药
       * </pre>
       *
       * <code>int32 group = 18;</code>
       */
      public Builder clearGroup() {
        
        group_ = 0;
        onChanged();
        return this;
      }

      private int orderIndex_ ;
      /**
       * <pre>
       *序号
       * </pre>
       *
       * <code>int32 orderIndex = 19;</code>
       */
      public int getOrderIndex() {
        return orderIndex_;
      }
      /**
       * <pre>
       *序号
       * </pre>
       *
       * <code>int32 orderIndex = 19;</code>
       */
      public Builder setOrderIndex(int value) {
        
        orderIndex_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *序号
       * </pre>
       *
       * <code>int32 orderIndex = 19;</code>
       */
      public Builder clearOrderIndex() {
        
        orderIndex_ = 0;
        onChanged();
        return this;
      }

      private int combination_ ;
      /**
       * <pre>
       *是否为同组药(1-是，0-否)
       * </pre>
       *
       * <code>int32 combination = 20;</code>
       */
      public int getCombination() {
        return combination_;
      }
      /**
       * <pre>
       *是否为同组药(1-是，0-否)
       * </pre>
       *
       * <code>int32 combination = 20;</code>
       */
      public Builder setCombination(int value) {
        
        combination_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *是否为同组药(1-是，0-否)
       * </pre>
       *
       * <code>int32 combination = 20;</code>
       */
      public Builder clearCombination() {
        
        combination_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object remark_ = "";
      /**
       * <pre>
       *备注
       * </pre>
       *
       * <code>string remark = 21;</code>
       */
      public java.lang.String getRemark() {
        java.lang.Object ref = remark_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          remark_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *备注
       * </pre>
       *
       * <code>string remark = 21;</code>
       */
      public com.google.protobuf.ByteString
          getRemarkBytes() {
        java.lang.Object ref = remark_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          remark_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *备注
       * </pre>
       *
       * <code>string remark = 21;</code>
       */
      public Builder setRemark(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        remark_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *备注
       * </pre>
       *
       * <code>string remark = 21;</code>
       */
      public Builder clearRemark() {
        
        remark_ = getDefaultInstance().getRemark();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *备注
       * </pre>
       *
       * <code>string remark = 21;</code>
       */
      public Builder setRemarkBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        remark_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object executeDate_ = "";
      /**
       * <pre>
       *开始执行日期（医嘱）
       * </pre>
       *
       * <code>string executeDate = 22;</code>
       */
      public java.lang.String getExecuteDate() {
        java.lang.Object ref = executeDate_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          executeDate_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *开始执行日期（医嘱）
       * </pre>
       *
       * <code>string executeDate = 22;</code>
       */
      public com.google.protobuf.ByteString
          getExecuteDateBytes() {
        java.lang.Object ref = executeDate_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          executeDate_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *开始执行日期（医嘱）
       * </pre>
       *
       * <code>string executeDate = 22;</code>
       */
      public Builder setExecuteDate(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        executeDate_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *开始执行日期（医嘱）
       * </pre>
       *
       * <code>string executeDate = 22;</code>
       */
      public Builder clearExecuteDate() {
        
        executeDate_ = getDefaultInstance().getExecuteDate();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *开始执行日期（医嘱）
       * </pre>
       *
       * <code>string executeDate = 22;</code>
       */
      public Builder setExecuteDateBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        executeDate_ = value;
        onChanged();
        return this;
      }

      private int injections_ ;
      /**
       * <pre>
       *注射次数（医嘱）
       * </pre>
       *
       * <code>int32 injections = 23;</code>
       */
      public int getInjections() {
        return injections_;
      }
      /**
       * <pre>
       *注射次数（医嘱）
       * </pre>
       *
       * <code>int32 injections = 23;</code>
       */
      public Builder setInjections(int value) {
        
        injections_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *注射次数（医嘱）
       * </pre>
       *
       * <code>int32 injections = 23;</code>
       */
      public Builder clearInjections() {
        
        injections_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object packDetail_ = "";
      /**
       * <pre>
       *药品打包说明
       * </pre>
       *
       * <code>string packDetail = 24;</code>
       */
      public java.lang.String getPackDetail() {
        java.lang.Object ref = packDetail_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          packDetail_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *药品打包说明
       * </pre>
       *
       * <code>string packDetail = 24;</code>
       */
      public com.google.protobuf.ByteString
          getPackDetailBytes() {
        java.lang.Object ref = packDetail_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          packDetail_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *药品打包说明
       * </pre>
       *
       * <code>string packDetail = 24;</code>
       */
      public Builder setPackDetail(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        packDetail_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *药品打包说明
       * </pre>
       *
       * <code>string packDetail = 24;</code>
       */
      public Builder clearPackDetail() {
        
        packDetail_ = getDefaultInstance().getPackDetail();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *药品打包说明
       * </pre>
       *
       * <code>string packDetail = 24;</code>
       */
      public Builder setPackDetailBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        packDetail_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object oneDosageDetail_ = "";
      /**
       * <pre>
       *每次剂量说明(例：每次2片)
       * </pre>
       *
       * <code>string oneDosageDetail = 25;</code>
       */
      public java.lang.String getOneDosageDetail() {
        java.lang.Object ref = oneDosageDetail_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          oneDosageDetail_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *每次剂量说明(例：每次2片)
       * </pre>
       *
       * <code>string oneDosageDetail = 25;</code>
       */
      public com.google.protobuf.ByteString
          getOneDosageDetailBytes() {
        java.lang.Object ref = oneDosageDetail_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          oneDosageDetail_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *每次剂量说明(例：每次2片)
       * </pre>
       *
       * <code>string oneDosageDetail = 25;</code>
       */
      public Builder setOneDosageDetail(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        oneDosageDetail_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *每次剂量说明(例：每次2片)
       * </pre>
       *
       * <code>string oneDosageDetail = 25;</code>
       */
      public Builder clearOneDosageDetail() {
        
        oneDosageDetail_ = getDefaultInstance().getOneDosageDetail();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *每次剂量说明(例：每次2片)
       * </pre>
       *
       * <code>string oneDosageDetail = 25;</code>
       */
      public Builder setOneDosageDetailBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        oneDosageDetail_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object usageRemarks_ = "";
      /**
       * <pre>
       *用药医生说明(例：宜饭前服用)
       * </pre>
       *
       * <code>string usageRemarks = 26;</code>
       */
      public java.lang.String getUsageRemarks() {
        java.lang.Object ref = usageRemarks_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          usageRemarks_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *用药医生说明(例：宜饭前服用)
       * </pre>
       *
       * <code>string usageRemarks = 26;</code>
       */
      public com.google.protobuf.ByteString
          getUsageRemarksBytes() {
        java.lang.Object ref = usageRemarks_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          usageRemarks_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *用药医生说明(例：宜饭前服用)
       * </pre>
       *
       * <code>string usageRemarks = 26;</code>
       */
      public Builder setUsageRemarks(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        usageRemarks_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *用药医生说明(例：宜饭前服用)
       * </pre>
       *
       * <code>string usageRemarks = 26;</code>
       */
      public Builder clearUsageRemarks() {
        
        usageRemarks_ = getDefaultInstance().getUsageRemarks();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *用药医生说明(例：宜饭前服用)
       * </pre>
       *
       * <code>string usageRemarks = 26;</code>
       */
      public Builder setUsageRemarksBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        usageRemarks_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object drugPrintName_ = "";
      /**
       * <pre>
       *药品打印名称
       * </pre>
       *
       * <code>string drugPrintName = 27;</code>
       */
      public java.lang.String getDrugPrintName() {
        java.lang.Object ref = drugPrintName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugPrintName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *药品打印名称
       * </pre>
       *
       * <code>string drugPrintName = 27;</code>
       */
      public com.google.protobuf.ByteString
          getDrugPrintNameBytes() {
        java.lang.Object ref = drugPrintName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugPrintName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *药品打印名称
       * </pre>
       *
       * <code>string drugPrintName = 27;</code>
       */
      public Builder setDrugPrintName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugPrintName_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *药品打印名称
       * </pre>
       *
       * <code>string drugPrintName = 27;</code>
       */
      public Builder clearDrugPrintName() {
        
        drugPrintName_ = getDefaultInstance().getDrugPrintName();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *药品打印名称
       * </pre>
       *
       * <code>string drugPrintName = 27;</code>
       */
      public Builder setDrugPrintNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugPrintName_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object drugRefrigeration_ = "";
      /**
       * <pre>
       *药品是否冷藏(0或空不冷藏，1是冷藏)
       * </pre>
       *
       * <code>string drugRefrigeration = 28;</code>
       */
      public java.lang.String getDrugRefrigeration() {
        java.lang.Object ref = drugRefrigeration_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugRefrigeration_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *药品是否冷藏(0或空不冷藏，1是冷藏)
       * </pre>
       *
       * <code>string drugRefrigeration = 28;</code>
       */
      public com.google.protobuf.ByteString
          getDrugRefrigerationBytes() {
        java.lang.Object ref = drugRefrigeration_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugRefrigeration_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *药品是否冷藏(0或空不冷藏，1是冷藏)
       * </pre>
       *
       * <code>string drugRefrigeration = 28;</code>
       */
      public Builder setDrugRefrigeration(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugRefrigeration_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *药品是否冷藏(0或空不冷藏，1是冷藏)
       * </pre>
       *
       * <code>string drugRefrigeration = 28;</code>
       */
      public Builder clearDrugRefrigeration() {
        
        drugRefrigeration_ = getDefaultInstance().getDrugRefrigeration();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *药品是否冷藏(0或空不冷藏，1是冷藏)
       * </pre>
       *
       * <code>string drugRefrigeration = 28;</code>
       */
      public Builder setDrugRefrigerationBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugRefrigeration_ = value;
        onChanged();
        return this;
      }

      private int drugId_ ;
      /**
       * <code>int32 drugId = 29;</code>
       */
      public int getDrugId() {
        return drugId_;
      }
      /**
       * <code>int32 drugId = 29;</code>
       */
      public Builder setDrugId(int value) {
        
        drugId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 drugId = 29;</code>
       */
      public Builder clearDrugId() {
        
        drugId_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object producer_ = "";
      /**
       * <code>string producer = 30;</code>
       */
      public java.lang.String getProducer() {
        java.lang.Object ref = producer_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          producer_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string producer = 30;</code>
       */
      public com.google.protobuf.ByteString
          getProducerBytes() {
        java.lang.Object ref = producer_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          producer_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string producer = 30;</code>
       */
      public Builder setProducer(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        producer_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string producer = 30;</code>
       */
      public Builder clearProducer() {
        
        producer_ = getDefaultInstance().getProducer();
        onChanged();
        return this;
      }
      /**
       * <code>string producer = 30;</code>
       */
      public Builder setProducerBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        producer_ = value;
        onChanged();
        return this;
      }

      private double specDosage_ ;
      /**
       * <code>double specDosage = 31;</code>
       */
      public double getSpecDosage() {
        return specDosage_;
      }
      /**
       * <code>double specDosage = 31;</code>
       */
      public Builder setSpecDosage(double value) {
        
        specDosage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double specDosage = 31;</code>
       */
      public Builder clearSpecDosage() {
        
        specDosage_ = 0D;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)
    }

    // @@protoc_insertion_point(class_scope:com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo)
    private static final com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo();
    }

    public static com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int bitField0_;
  private int bitField1_;
  public static final int NO3TH_FIELD_NUMBER = 1;
  private volatile java.lang.Object no3Th_;
  /**
   * <code>string no3th = 1;</code>
   */
  public java.lang.String getNo3Th() {
    java.lang.Object ref = no3Th_;
    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();
      no3Th_ = s;
      return s;
    }
  }
  /**
   * <code>string no3th = 1;</code>
   */
  public com.google.protobuf.ByteString
      getNo3ThBytes() {
    java.lang.Object ref = no3Th_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      no3Th_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 2;</code>
   */
  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 = 2;</code>
   */
  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 PATIENTNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 3;</code>
   */
  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 = 3;</code>
   */
  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 = 4;
  private volatile java.lang.Object patientAge_;
  /**
   * <code>string patientAge = 4;</code>
   */
  public java.lang.String getPatientAge() {
    java.lang.Object ref = patientAge_;
    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();
      patientAge_ = s;
      return s;
    }
  }
  /**
   * <code>string patientAge = 4;</code>
   */
  public com.google.protobuf.ByteString
      getPatientAgeBytes() {
    java.lang.Object ref = patientAge_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientAge_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 5;
  private volatile java.lang.Object patientSex_;
  /**
   * <code>string patientSex = 5;</code>
   */
  public java.lang.String getPatientSex() {
    java.lang.Object ref = patientSex_;
    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();
      patientSex_ = s;
      return s;
    }
  }
  /**
   * <code>string patientSex = 5;</code>
   */
  public com.google.protobuf.ByteString
      getPatientSexBytes() {
    java.lang.Object ref = patientSex_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientSex_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNO_FIELD_NUMBER = 6;
  private volatile java.lang.Object patientNo_;
  /**
   * <code>string patientNo = 6;</code>
   */
  public java.lang.String getPatientNo() {
    java.lang.Object ref = patientNo_;
    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();
      patientNo_ = s;
      return s;
    }
  }
  /**
   * <code>string patientNo = 6;</code>
   */
  public com.google.protobuf.ByteString
      getPatientNoBytes() {
    java.lang.Object ref = patientNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSE_FIELD_NUMBER = 7;
  private volatile java.lang.Object diagnose_;
  /**
   * <code>string diagnose = 7;</code>
   */
  public java.lang.String getDiagnose() {
    java.lang.Object ref = diagnose_;
    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();
      diagnose_ = s;
      return s;
    }
  }
  /**
   * <code>string diagnose = 7;</code>
   */
  public com.google.protobuf.ByteString
      getDiagnoseBytes() {
    java.lang.Object ref = diagnose_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnose_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPT_FIELD_NUMBER = 8;
  private volatile java.lang.Object dept_;
  /**
   * <code>string dept = 8;</code>
   */
  public java.lang.String getDept() {
    java.lang.Object ref = dept_;
    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();
      dept_ = s;
      return s;
    }
  }
  /**
   * <code>string dept = 8;</code>
   */
  public com.google.protobuf.ByteString
      getDeptBytes() {
    java.lang.Object ref = dept_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dept_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_FIELD_NUMBER = 10;
  private int source_;
  /**
   * <code>int32 source = 10;</code>
   */
  public int getSource() {
    return source_;
  }

  public static final int HOSPTIALCODE_FIELD_NUMBER = 11;
  private volatile java.lang.Object hosptialCode_;
  /**
   * <code>string hosptialCode = 11;</code>
   */
  public java.lang.String getHosptialCode() {
    java.lang.Object ref = hosptialCode_;
    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();
      hosptialCode_ = s;
      return s;
    }
  }
  /**
   * <code>string hosptialCode = 11;</code>
   */
  public com.google.protobuf.ByteString
      getHosptialCodeBytes() {
    java.lang.Object ref = hosptialCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hosptialCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPTIALID_FIELD_NUMBER = 12;
  private int hosptialId_;
  /**
   * <code>int32 hosptialId = 12;</code>
   */
  public int getHosptialId() {
    return hosptialId_;
  }

  public static final int ORGCODE3TH_FIELD_NUMBER = 13;
  private volatile java.lang.Object orgCode3Th_;
  /**
   * <code>string orgCode3th = 13;</code>
   */
  public java.lang.String getOrgCode3Th() {
    java.lang.Object ref = orgCode3Th_;
    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();
      orgCode3Th_ = s;
      return s;
    }
  }
  /**
   * <code>string orgCode3th = 13;</code>
   */
  public com.google.protobuf.ByteString
      getOrgCode3ThBytes() {
    java.lang.Object ref = orgCode3Th_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orgCode3Th_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DRUGS_FIELD_NUMBER = 14;
  private java.util.List<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo> drugs_;
  /**
   * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
   */
  public java.util.List<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo> getDrugsList() {
    return drugs_;
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
   */
  public java.util.List<? extends com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> 
      getDrugsOrBuilderList() {
    return drugs_;
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
   */
  public int getDrugsCount() {
    return drugs_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
   */
  public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo getDrugs(int index) {
    return drugs_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
   */
  public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder getDrugsOrBuilder(
      int index) {
    return drugs_.get(index);
  }

  public static final int TOTALPRICE_FIELD_NUMBER = 15;
  private int totalPrice_;
  /**
   * <code>int32 totalPrice = 15;</code>
   */
  public int getTotalPrice() {
    return totalPrice_;
  }

  public static final int STATUS_FIELD_NUMBER = 16;
  private int status_;
  /**
   * <code>int32 status = 16;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int STATUSSTR_FIELD_NUMBER = 17;
  private volatile java.lang.Object statusStr_;
  /**
   * <code>string statusStr = 17;</code>
   */
  public java.lang.String getStatusStr() {
    java.lang.Object ref = statusStr_;
    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();
      statusStr_ = s;
      return s;
    }
  }
  /**
   * <code>string statusStr = 17;</code>
   */
  public com.google.protobuf.ByteString
      getStatusStrBytes() {
    java.lang.Object ref = statusStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATEON_FIELD_NUMBER = 18;
  private long createOn_;
  /**
   * <code>int64 createOn = 18;</code>
   */
  public long getCreateOn() {
    return createOn_;
  }

  public static final int PAYSTATUS_FIELD_NUMBER = 19;
  private int payStatus_;
  /**
   * <code>int32 payStatus = 19;</code>
   */
  public int getPayStatus() {
    return payStatus_;
  }

  public static final int CREATEONSTR_FIELD_NUMBER = 20;
  private volatile java.lang.Object createOnStr_;
  /**
   * <code>string createOnStr = 20;</code>
   */
  public java.lang.String getCreateOnStr() {
    java.lang.Object ref = createOnStr_;
    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();
      createOnStr_ = s;
      return s;
    }
  }
  /**
   * <code>string createOnStr = 20;</code>
   */
  public com.google.protobuf.ByteString
      getCreateOnStrBytes() {
    java.lang.Object ref = createOnStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      createOnStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTMOBILE_FIELD_NUMBER = 21;
  private volatile java.lang.Object patientMobile_;
  /**
   * <code>string patientMobile = 21;</code>
   */
  public java.lang.String getPatientMobile() {
    java.lang.Object ref = patientMobile_;
    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();
      patientMobile_ = s;
      return s;
    }
  }
  /**
   * <code>string patientMobile = 21;</code>
   */
  public com.google.protobuf.ByteString
      getPatientMobileBytes() {
    java.lang.Object ref = patientMobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientMobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 22;
  private volatile java.lang.Object description_;
  /**
   * <pre>
   *病情描述
   * </pre>
   *
   * <code>string description = 22;</code>
   */
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    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();
      description_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *病情描述
   * </pre>
   *
   * <code>string description = 22;</code>
   */
  public com.google.protobuf.ByteString
      getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ALLERGICHISTORY_FIELD_NUMBER = 23;
  private volatile java.lang.Object allergicHistory_;
  /**
   * <pre>
   *过敏史
   * </pre>
   *
   * <code>string allergicHistory = 23;</code>
   */
  public java.lang.String getAllergicHistory() {
    java.lang.Object ref = allergicHistory_;
    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();
      allergicHistory_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *过敏史
   * </pre>
   *
   * <code>string allergicHistory = 23;</code>
   */
  public com.google.protobuf.ByteString
      getAllergicHistoryBytes() {
    java.lang.Object ref = allergicHistory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      allergicHistory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORSIGNID_FIELD_NUMBER = 24;
  private int doctorSignId_;
  /**
   * <pre>
   *医生签名Id
   * </pre>
   *
   * <code>int32 doctorSignId = 24;</code>
   */
  public int getDoctorSignId() {
    return doctorSignId_;
  }

  public static final int PRESCRIPTIONID_FIELD_NUMBER = 25;
  private int prescriptionId_;
  /**
   * <pre>
   *处方单Id
   * </pre>
   *
   * <code>int32 prescriptionId = 25;</code>
   */
  public int getPrescriptionId() {
    return prescriptionId_;
  }

  public static final int BIZNO_FIELD_NUMBER = 26;
  private volatile java.lang.Object bizNo_;
  /**
   * <pre>
   *业务编码
   * </pre>
   *
   * <code>string bizNo = 26;</code>
   */
  public java.lang.String getBizNo() {
    java.lang.Object ref = bizNo_;
    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();
      bizNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *业务编码
   * </pre>
   *
   * <code>string bizNo = 26;</code>
   */
  public com.google.protobuf.ByteString
      getBizNoBytes() {
    java.lang.Object ref = bizNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      bizNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERID_FIELD_NUMBER = 27;
  private int userId_;
  /**
   * <pre>
   *用户Id
   * </pre>
   *
   * <code>int32 userId = 27;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int HISORDERNO_FIELD_NUMBER = 28;
  private volatile java.lang.Object hisOrderNo_;
  /**
   * <pre>
   *HIS单号
   * </pre>
   *
   * <code>string hisOrderNo = 28;</code>
   */
  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;
    }
  }
  /**
   * <pre>
   *HIS单号
   * </pre>
   *
   * <code>string hisOrderNo = 28;</code>
   */
  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 ADDRESSID_FIELD_NUMBER = 29;
  private int addressId_;
  /**
   * <pre>
   *地址ID
   * </pre>
   *
   * <code>int32 addressId = 29;</code>
   */
  public int getAddressId() {
    return addressId_;
  }

  public static final int DELIVERYMETHOD_FIELD_NUMBER = 30;
  private int deliveryMethod_;
  /**
   * <pre>
   * 取药方式：1-快递 2-自取
   * </pre>
   *
   * <code>int32 deliveryMethod = 30;</code>
   */
  public int getDeliveryMethod() {
    return deliveryMethod_;
  }

  public static final int SENDNO_FIELD_NUMBER = 31;
  private volatile java.lang.Object sendNo_;
  /**
   * <pre>
   * 配送号
   * </pre>
   *
   * <code>string sendNo = 31;</code>
   */
  public java.lang.String getSendNo() {
    java.lang.Object ref = sendNo_;
    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();
      sendNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 配送号
   * </pre>
   *
   * <code>string sendNo = 31;</code>
   */
  public com.google.protobuf.ByteString
      getSendNoBytes() {
    java.lang.Object ref = sendNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sendNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int QRCODEURL_FIELD_NUMBER = 32;
  private volatile java.lang.Object qrCodeUrl_;
  /**
   * <pre>
   * 取药二维码
   * </pre>
   *
   * <code>string qrCodeUrl = 32;</code>
   */
  public java.lang.String getQrCodeUrl() {
    java.lang.Object ref = qrCodeUrl_;
    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();
      qrCodeUrl_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 取药二维码
   * </pre>
   *
   * <code>string qrCodeUrl = 32;</code>
   */
  public com.google.protobuf.ByteString
      getQrCodeUrlBytes() {
    java.lang.Object ref = qrCodeUrl_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      qrCodeUrl_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PHARMACYADDRESS_FIELD_NUMBER = 33;
  private volatile java.lang.Object pharmacyAddress_;
  /**
   * <pre>
   * 药店地址（由省、市、区、详细地址组成）
   * </pre>
   *
   * <code>string pharmacyAddress = 33;</code>
   */
  public java.lang.String getPharmacyAddress() {
    java.lang.Object ref = pharmacyAddress_;
    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();
      pharmacyAddress_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 药店地址（由省、市、区、详细地址组成）
   * </pre>
   *
   * <code>string pharmacyAddress = 33;</code>
   */
  public com.google.protobuf.ByteString
      getPharmacyAddressBytes() {
    java.lang.Object ref = pharmacyAddress_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pharmacyAddress_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PHARMACYNAME_FIELD_NUMBER = 34;
  private volatile java.lang.Object pharmacyName_;
  /**
   * <pre>
   * 药店名称
   * </pre>
   *
   * <code>string pharmacyName = 34;</code>
   */
  public java.lang.String getPharmacyName() {
    java.lang.Object ref = pharmacyName_;
    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();
      pharmacyName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 药店名称
   * </pre>
   *
   * <code>string pharmacyName = 34;</code>
   */
  public com.google.protobuf.ByteString
      getPharmacyNameBytes() {
    java.lang.Object ref = pharmacyName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pharmacyName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FINSHTIME_FIELD_NUMBER = 35;
  private long finshTime_;
  /**
   * <pre>
   * 完成时间
   * </pre>
   *
   * <code>int64 finshTime = 35;</code>
   */
  public long getFinshTime() {
    return finshTime_;
  }

  public static final int DOCTORID_FIELD_NUMBER = 36;
  private int doctorId_;
  /**
   * <pre>
   * 医生ID
   * </pre>
   *
   * <code>int32 doctorId = 36;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 37;
  private int individual_;
  /**
   * <pre>
   * 个人支付总金额（药品总金额 - 医保 + 运费）
   * </pre>
   *
   * <code>int32 individual = 37;</code>
   */
  public int getIndividual() {
    return individual_;
  }

  public static final int EXTSTATUS_FIELD_NUMBER = 38;
  private int extStatus_;
  /**
   * <pre>
   * 拓展状态，位运算，1-是否报到，2-是否发药，4-是否打印发票，8-包含其他收费项目(广三来源)
   * </pre>
   *
   * <code>int32 extStatus = 38;</code>
   */
  public int getExtStatus() {
    return extStatus_;
  }

  public static final int NEEDPRINTSTATUS_FIELD_NUMBER = 39;
  private int needPrintStatus_;
  /**
   * <pre>
   * 是否需要打印发票，0-不需要，1-需要
   * </pre>
   *
   * <code>int32 needPrintStatus = 39;</code>
   */
  public int getNeedPrintStatus() {
    return needPrintStatus_;
  }

  public static final int FREIGHT_FIELD_NUMBER = 40;
  private int freight_;
  /**
   * <pre>
   * 快递费，单位：分
   * </pre>
   *
   * <code>int32 freight = 40;</code>
   */
  public int getFreight() {
    return freight_;
  }

  public static final int IDCARDNO_FIELD_NUMBER = 41;
  private volatile java.lang.Object idCardNo_;
  /**
   * <pre>
   *身份证号
   * </pre>
   *
   * <code>string idCardNo = 41;</code>
   */
  public java.lang.String getIdCardNo() {
    java.lang.Object ref = idCardNo_;
    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();
      idCardNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *身份证号
   * </pre>
   *
   * <code>string idCardNo = 41;</code>
   */
  public com.google.protobuf.ByteString
      getIdCardNoBytes() {
    java.lang.Object ref = idCardNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      idCardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PHARMACYID_FIELD_NUMBER = 42;
  private int pharmacyId_;
  /**
   * <pre>
   *药房地址ID
   * </pre>
   *
   * <code>int32 pharmacyId = 42;</code>
   */
  public int getPharmacyId() {
    return pharmacyId_;
  }

  public static final int PRESCRIPTIONDATE_FIELD_NUMBER = 43;
  private volatile java.lang.Object prescriptionDate_;
  /**
   * <pre>
   *处方日期(一般用于第三方来源)
   * </pre>
   *
   * <code>string prescriptionDate = 43;</code>
   */
  public java.lang.String getPrescriptionDate() {
    java.lang.Object ref = prescriptionDate_;
    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();
      prescriptionDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *处方日期(一般用于第三方来源)
   * </pre>
   *
   * <code>string prescriptionDate = 43;</code>
   */
  public com.google.protobuf.ByteString
      getPrescriptionDateBytes() {
    java.lang.Object ref = prescriptionDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      prescriptionDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TIMESTANDARD_FIELD_NUMBER = 44;
  private volatile java.lang.Object timeStandard_;
  /**
   * <pre>
   * 时效标准(快递的预计送达时间)
   * </pre>
   *
   * <code>string timeStandard = 44;</code>
   */
  public java.lang.String getTimeStandard() {
    java.lang.Object ref = timeStandard_;
    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();
      timeStandard_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 时效标准(快递的预计送达时间)
   * </pre>
   *
   * <code>string timeStandard = 44;</code>
   */
  public com.google.protobuf.ByteString
      getTimeStandardBytes() {
    java.lang.Object ref = timeStandard_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      timeStandard_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERNO_FIELD_NUMBER = 45;
  private volatile java.lang.Object orderNo_;
  /**
   * <pre>
   * 订单号
   * </pre>
   *
   * <code>string orderNo = 45;</code>
   */
  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;
    }
  }
  /**
   * <pre>
   * 订单号
   * </pre>
   *
   * <code>string orderNo = 45;</code>
   */
  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 ORDERID_FIELD_NUMBER = 46;
  private int orderId_;
  /**
   * <pre>
   * 订单ID
   * </pre>
   *
   * <code>int32 orderId = 46;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int REFUNDNO_FIELD_NUMBER = 47;
  private volatile java.lang.Object refundNo_;
  /**
   * <pre>
   *退款单号
   * </pre>
   *
   * <code>string refundNo = 47;</code>
   */
  public java.lang.String getRefundNo() {
    java.lang.Object ref = refundNo_;
    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();
      refundNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *退款单号
   * </pre>
   *
   * <code>string refundNo = 47;</code>
   */
  public com.google.protobuf.ByteString
      getRefundNoBytes() {
    java.lang.Object ref = refundNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      refundNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REFUNDSTATUS_FIELD_NUMBER = 48;
  private int refundStatus_;
  /**
   * <pre>
   *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
   * </pre>
   *
   * <code>int32 refundStatus = 48;</code>
   */
  public int getRefundStatus() {
    return refundStatus_;
  }

  public static final int PAYTIME_FIELD_NUMBER = 49;
  private long payTime_;
  /**
   * <pre>
   * 支付时间
   * </pre>
   *
   * <code>int64 payTime = 49;</code>
   */
  public long getPayTime() {
    return payTime_;
  }

  public static final int INVOICEENDTIME_FIELD_NUMBER = 50;
  private volatile java.lang.Object invoiceEndTime_;
  /**
   * <pre>
   * 发票开具结束时间
   * </pre>
   *
   * <code>string invoiceEndTime = 50;</code>
   */
  public java.lang.String getInvoiceEndTime() {
    java.lang.Object ref = invoiceEndTime_;
    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();
      invoiceEndTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 发票开具结束时间
   * </pre>
   *
   * <code>string invoiceEndTime = 50;</code>
   */
  public com.google.protobuf.ByteString
      getInvoiceEndTimeBytes() {
    java.lang.Object ref = invoiceEndTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceEndTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TERMINAL_FIELD_NUMBER = 51;
  private int terminal_;
  /**
   * <pre>
   *终端号
   * </pre>
   *
   * <code>int32 terminal = 51;</code>
   */
  public int getTerminal() {
    return terminal_;
  }

  public static final int HISOEORIORDERID_FIELD_NUMBER = 52;
  private volatile java.lang.Object hisOeoriOrderId_;
  /**
   * <pre>
   * HIS 医嘱订单编号
   * </pre>
   *
   * <code>string hisOeoriOrderId = 52;</code>
   */
  public java.lang.String getHisOeoriOrderId() {
    java.lang.Object ref = hisOeoriOrderId_;
    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();
      hisOeoriOrderId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * HIS 医嘱订单编号
   * </pre>
   *
   * <code>string hisOeoriOrderId = 52;</code>
   */
  public com.google.protobuf.ByteString
      getHisOeoriOrderIdBytes() {
    java.lang.Object ref = hisOeoriOrderId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOeoriOrderId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISPATIENTID_FIELD_NUMBER = 53;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 53;</code>
   */
  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 = 53;</code>
   */
  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 HISCLINICCODE_FIELD_NUMBER = 54;
  private volatile java.lang.Object hisClinicCode_;
  /**
   * <code>string hisClinicCode = 54;</code>
   */
  public java.lang.String getHisClinicCode() {
    java.lang.Object ref = hisClinicCode_;
    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();
      hisClinicCode_ = s;
      return s;
    }
  }
  /**
   * <code>string hisClinicCode = 54;</code>
   */
  public com.google.protobuf.ByteString
      getHisClinicCodeBytes() {
    java.lang.Object ref = hisClinicCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisClinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CANCELSTATUS_FIELD_NUMBER = 55;
  private int cancelStatus_;
  /**
   * <code>int32 cancelStatus = 55;</code>
   */
  public int getCancelStatus() {
    return cancelStatus_;
  }

  public static final int CANCELREMARK_FIELD_NUMBER = 56;
  private volatile java.lang.Object cancelRemark_;
  /**
   * <code>string cancelRemark = 56;</code>
   */
  public java.lang.String getCancelRemark() {
    java.lang.Object ref = cancelRemark_;
    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();
      cancelRemark_ = s;
      return s;
    }
  }
  /**
   * <code>string cancelRemark = 56;</code>
   */
  public com.google.protobuf.ByteString
      getCancelRemarkBytes() {
    java.lang.Object ref = cancelRemark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cancelRemark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTAGEINT_FIELD_NUMBER = 57;
  private int patientAgeInt_;
  /**
   * <code>int32 patientAgeInt = 57;</code>
   */
  public int getPatientAgeInt() {
    return patientAgeInt_;
  }

  public static final int PATIENTSEXINT_FIELD_NUMBER = 58;
  private int patientSexInt_;
  /**
   * <code>int32 patientSexInt = 58;</code>
   */
  public int getPatientSexInt() {
    return patientSexInt_;
  }

  public static final int ICDCODES_FIELD_NUMBER = 59;
  private volatile java.lang.Object icdCodes_;
  /**
   * <code>string icdCodes = 59;</code>
   */
  public java.lang.String getIcdCodes() {
    java.lang.Object ref = icdCodes_;
    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();
      icdCodes_ = s;
      return s;
    }
  }
  /**
   * <code>string icdCodes = 59;</code>
   */
  public com.google.protobuf.ByteString
      getIcdCodesBytes() {
    java.lang.Object ref = icdCodes_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      icdCodes_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTADDRESS_FIELD_NUMBER = 60;
  private volatile java.lang.Object patientAddress_;
  /**
   * <code>string patientAddress = 60;</code>
   */
  public java.lang.String getPatientAddress() {
    java.lang.Object ref = patientAddress_;
    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();
      patientAddress_ = s;
      return s;
    }
  }
  /**
   * <code>string patientAddress = 60;</code>
   */
  public com.google.protobuf.ByteString
      getPatientAddressBytes() {
    java.lang.Object ref = patientAddress_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientAddress_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REMARKS_FIELD_NUMBER = 61;
  private volatile java.lang.Object remarks_;
  /**
   * <code>string remarks = 61;</code>
   */
  public java.lang.String getRemarks() {
    java.lang.Object ref = remarks_;
    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();
      remarks_ = s;
      return s;
    }
  }
  /**
   * <code>string remarks = 61;</code>
   */
  public com.google.protobuf.ByteString
      getRemarksBytes() {
    java.lang.Object ref = remarks_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      remarks_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADDRESSMODIFIED_FIELD_NUMBER = 62;
  private boolean addressModified_;
  /**
   * <pre>
   * 是否已修改过配送地址
   * </pre>
   *
   * <code>bool addressModified = 62;</code>
   */
  public boolean getAddressModified() {
    return addressModified_;
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getNo3ThBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, no3Th_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, doctorName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patientAge_);
    }
    if (!getPatientSexBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patientSex_);
    }
    if (!getPatientNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patientNo_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diagnose_);
    }
    if (!getDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, dept_);
    }
    if (source_ != 0) {
      output.writeInt32(10, source_);
    }
    if (!getHosptialCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, hosptialCode_);
    }
    if (hosptialId_ != 0) {
      output.writeInt32(12, hosptialId_);
    }
    if (!getOrgCode3ThBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, orgCode3Th_);
    }
    for (int i = 0; i < drugs_.size(); i++) {
      output.writeMessage(14, drugs_.get(i));
    }
    if (totalPrice_ != 0) {
      output.writeInt32(15, totalPrice_);
    }
    if (status_ != 0) {
      output.writeInt32(16, status_);
    }
    if (!getStatusStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, statusStr_);
    }
    if (createOn_ != 0L) {
      output.writeInt64(18, createOn_);
    }
    if (payStatus_ != 0) {
      output.writeInt32(19, payStatus_);
    }
    if (!getCreateOnStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, createOnStr_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, patientMobile_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, description_);
    }
    if (!getAllergicHistoryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, allergicHistory_);
    }
    if (doctorSignId_ != 0) {
      output.writeInt32(24, doctorSignId_);
    }
    if (prescriptionId_ != 0) {
      output.writeInt32(25, prescriptionId_);
    }
    if (!getBizNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 26, bizNo_);
    }
    if (userId_ != 0) {
      output.writeInt32(27, userId_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 28, hisOrderNo_);
    }
    if (addressId_ != 0) {
      output.writeInt32(29, addressId_);
    }
    if (deliveryMethod_ != 0) {
      output.writeInt32(30, deliveryMethod_);
    }
    if (!getSendNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 31, sendNo_);
    }
    if (!getQrCodeUrlBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 32, qrCodeUrl_);
    }
    if (!getPharmacyAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 33, pharmacyAddress_);
    }
    if (!getPharmacyNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 34, pharmacyName_);
    }
    if (finshTime_ != 0L) {
      output.writeInt64(35, finshTime_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(36, doctorId_);
    }
    if (individual_ != 0) {
      output.writeInt32(37, individual_);
    }
    if (extStatus_ != 0) {
      output.writeInt32(38, extStatus_);
    }
    if (needPrintStatus_ != 0) {
      output.writeInt32(39, needPrintStatus_);
    }
    if (freight_ != 0) {
      output.writeInt32(40, freight_);
    }
    if (!getIdCardNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 41, idCardNo_);
    }
    if (pharmacyId_ != 0) {
      output.writeInt32(42, pharmacyId_);
    }
    if (!getPrescriptionDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 43, prescriptionDate_);
    }
    if (!getTimeStandardBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 44, timeStandard_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 45, orderNo_);
    }
    if (orderId_ != 0) {
      output.writeInt32(46, orderId_);
    }
    if (!getRefundNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 47, refundNo_);
    }
    if (refundStatus_ != 0) {
      output.writeInt32(48, refundStatus_);
    }
    if (payTime_ != 0L) {
      output.writeInt64(49, payTime_);
    }
    if (!getInvoiceEndTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 50, invoiceEndTime_);
    }
    if (terminal_ != 0) {
      output.writeInt32(51, terminal_);
    }
    if (!getHisOeoriOrderIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 52, hisOeoriOrderId_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 53, hisPatientId_);
    }
    if (!getHisClinicCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 54, hisClinicCode_);
    }
    if (cancelStatus_ != 0) {
      output.writeInt32(55, cancelStatus_);
    }
    if (!getCancelRemarkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 56, cancelRemark_);
    }
    if (patientAgeInt_ != 0) {
      output.writeInt32(57, patientAgeInt_);
    }
    if (patientSexInt_ != 0) {
      output.writeInt32(58, patientSexInt_);
    }
    if (!getIcdCodesBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 59, icdCodes_);
    }
    if (!getPatientAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 60, patientAddress_);
    }
    if (!getRemarksBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 61, remarks_);
    }
    if (addressModified_ != false) {
      output.writeBool(62, addressModified_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getNo3ThBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, no3Th_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, doctorName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patientAge_);
    }
    if (!getPatientSexBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patientSex_);
    }
    if (!getPatientNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patientNo_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diagnose_);
    }
    if (!getDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, dept_);
    }
    if (source_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, source_);
    }
    if (!getHosptialCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, hosptialCode_);
    }
    if (hosptialId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, hosptialId_);
    }
    if (!getOrgCode3ThBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, orgCode3Th_);
    }
    for (int i = 0; i < drugs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(14, drugs_.get(i));
    }
    if (totalPrice_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, totalPrice_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, status_);
    }
    if (!getStatusStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, statusStr_);
    }
    if (createOn_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(18, createOn_);
    }
    if (payStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, payStatus_);
    }
    if (!getCreateOnStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, createOnStr_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, patientMobile_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, description_);
    }
    if (!getAllergicHistoryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, allergicHistory_);
    }
    if (doctorSignId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(24, doctorSignId_);
    }
    if (prescriptionId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(25, prescriptionId_);
    }
    if (!getBizNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, bizNo_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(27, userId_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, hisOrderNo_);
    }
    if (addressId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(29, addressId_);
    }
    if (deliveryMethod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(30, deliveryMethod_);
    }
    if (!getSendNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, sendNo_);
    }
    if (!getQrCodeUrlBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, qrCodeUrl_);
    }
    if (!getPharmacyAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, pharmacyAddress_);
    }
    if (!getPharmacyNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, pharmacyName_);
    }
    if (finshTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(35, finshTime_);
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(36, doctorId_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(37, individual_);
    }
    if (extStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(38, extStatus_);
    }
    if (needPrintStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(39, needPrintStatus_);
    }
    if (freight_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(40, freight_);
    }
    if (!getIdCardNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, idCardNo_);
    }
    if (pharmacyId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(42, pharmacyId_);
    }
    if (!getPrescriptionDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(43, prescriptionDate_);
    }
    if (!getTimeStandardBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44, timeStandard_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(45, orderNo_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(46, orderId_);
    }
    if (!getRefundNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, refundNo_);
    }
    if (refundStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(48, refundStatus_);
    }
    if (payTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(49, payTime_);
    }
    if (!getInvoiceEndTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, invoiceEndTime_);
    }
    if (terminal_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(51, terminal_);
    }
    if (!getHisOeoriOrderIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(52, hisOeoriOrderId_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(53, hisPatientId_);
    }
    if (!getHisClinicCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(54, hisClinicCode_);
    }
    if (cancelStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(55, cancelStatus_);
    }
    if (!getCancelRemarkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(56, cancelRemark_);
    }
    if (patientAgeInt_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(57, patientAgeInt_);
    }
    if (patientSexInt_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(58, patientSexInt_);
    }
    if (!getIcdCodesBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(59, icdCodes_);
    }
    if (!getPatientAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(60, patientAddress_);
    }
    if (!getRemarksBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(61, remarks_);
    }
    if (addressModified_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(62, addressModified_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.drug.PrescriptionInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.drug.PrescriptionInfo other = (com.ywt.gapi.drug.PrescriptionInfo) obj;

    boolean result = true;
    result = result && getNo3Th()
        .equals(other.getNo3Th());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getPatientAge()
        .equals(other.getPatientAge());
    result = result && getPatientSex()
        .equals(other.getPatientSex());
    result = result && getPatientNo()
        .equals(other.getPatientNo());
    result = result && getDiagnose()
        .equals(other.getDiagnose());
    result = result && getDept()
        .equals(other.getDept());
    result = result && (getSource()
        == other.getSource());
    result = result && getHosptialCode()
        .equals(other.getHosptialCode());
    result = result && (getHosptialId()
        == other.getHosptialId());
    result = result && getOrgCode3Th()
        .equals(other.getOrgCode3Th());
    result = result && getDrugsList()
        .equals(other.getDrugsList());
    result = result && (getTotalPrice()
        == other.getTotalPrice());
    result = result && (getStatus()
        == other.getStatus());
    result = result && getStatusStr()
        .equals(other.getStatusStr());
    result = result && (getCreateOn()
        == other.getCreateOn());
    result = result && (getPayStatus()
        == other.getPayStatus());
    result = result && getCreateOnStr()
        .equals(other.getCreateOnStr());
    result = result && getPatientMobile()
        .equals(other.getPatientMobile());
    result = result && getDescription()
        .equals(other.getDescription());
    result = result && getAllergicHistory()
        .equals(other.getAllergicHistory());
    result = result && (getDoctorSignId()
        == other.getDoctorSignId());
    result = result && (getPrescriptionId()
        == other.getPrescriptionId());
    result = result && getBizNo()
        .equals(other.getBizNo());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getHisOrderNo()
        .equals(other.getHisOrderNo());
    result = result && (getAddressId()
        == other.getAddressId());
    result = result && (getDeliveryMethod()
        == other.getDeliveryMethod());
    result = result && getSendNo()
        .equals(other.getSendNo());
    result = result && getQrCodeUrl()
        .equals(other.getQrCodeUrl());
    result = result && getPharmacyAddress()
        .equals(other.getPharmacyAddress());
    result = result && getPharmacyName()
        .equals(other.getPharmacyName());
    result = result && (getFinshTime()
        == other.getFinshTime());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getIndividual()
        == other.getIndividual());
    result = result && (getExtStatus()
        == other.getExtStatus());
    result = result && (getNeedPrintStatus()
        == other.getNeedPrintStatus());
    result = result && (getFreight()
        == other.getFreight());
    result = result && getIdCardNo()
        .equals(other.getIdCardNo());
    result = result && (getPharmacyId()
        == other.getPharmacyId());
    result = result && getPrescriptionDate()
        .equals(other.getPrescriptionDate());
    result = result && getTimeStandard()
        .equals(other.getTimeStandard());
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && getRefundNo()
        .equals(other.getRefundNo());
    result = result && (getRefundStatus()
        == other.getRefundStatus());
    result = result && (getPayTime()
        == other.getPayTime());
    result = result && getInvoiceEndTime()
        .equals(other.getInvoiceEndTime());
    result = result && (getTerminal()
        == other.getTerminal());
    result = result && getHisOeoriOrderId()
        .equals(other.getHisOeoriOrderId());
    result = result && getHisPatientId()
        .equals(other.getHisPatientId());
    result = result && getHisClinicCode()
        .equals(other.getHisClinicCode());
    result = result && (getCancelStatus()
        == other.getCancelStatus());
    result = result && getCancelRemark()
        .equals(other.getCancelRemark());
    result = result && (getPatientAgeInt()
        == other.getPatientAgeInt());
    result = result && (getPatientSexInt()
        == other.getPatientSexInt());
    result = result && getIcdCodes()
        .equals(other.getIcdCodes());
    result = result && getPatientAddress()
        .equals(other.getPatientAddress());
    result = result && getRemarks()
        .equals(other.getRemarks());
    result = result && (getAddressModified()
        == other.getAddressModified());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NO3TH_FIELD_NUMBER;
    hash = (53 * hash) + getNo3Th().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge().hashCode();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex().hashCode();
    hash = (37 * hash) + PATIENTNO_FIELD_NUMBER;
    hash = (53 * hash) + getPatientNo().hashCode();
    hash = (37 * hash) + DIAGNOSE_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnose().hashCode();
    hash = (37 * hash) + DEPT_FIELD_NUMBER;
    hash = (53 * hash) + getDept().hashCode();
    hash = (37 * hash) + SOURCE_FIELD_NUMBER;
    hash = (53 * hash) + getSource();
    hash = (37 * hash) + HOSPTIALCODE_FIELD_NUMBER;
    hash = (53 * hash) + getHosptialCode().hashCode();
    hash = (37 * hash) + HOSPTIALID_FIELD_NUMBER;
    hash = (53 * hash) + getHosptialId();
    hash = (37 * hash) + ORGCODE3TH_FIELD_NUMBER;
    hash = (53 * hash) + getOrgCode3Th().hashCode();
    if (getDrugsCount() > 0) {
      hash = (37 * hash) + DRUGS_FIELD_NUMBER;
      hash = (53 * hash) + getDrugsList().hashCode();
    }
    hash = (37 * hash) + TOTALPRICE_FIELD_NUMBER;
    hash = (53 * hash) + getTotalPrice();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + STATUSSTR_FIELD_NUMBER;
    hash = (53 * hash) + getStatusStr().hashCode();
    hash = (37 * hash) + CREATEON_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateOn());
    hash = (37 * hash) + PAYSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPayStatus();
    hash = (37 * hash) + CREATEONSTR_FIELD_NUMBER;
    hash = (53 * hash) + getCreateOnStr().hashCode();
    hash = (37 * hash) + PATIENTMOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientMobile().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    hash = (37 * hash) + ALLERGICHISTORY_FIELD_NUMBER;
    hash = (53 * hash) + getAllergicHistory().hashCode();
    hash = (37 * hash) + DOCTORSIGNID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSignId();
    hash = (37 * hash) + PRESCRIPTIONID_FIELD_NUMBER;
    hash = (53 * hash) + getPrescriptionId();
    hash = (37 * hash) + BIZNO_FIELD_NUMBER;
    hash = (53 * hash) + getBizNo().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + HISORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrderNo().hashCode();
    hash = (37 * hash) + ADDRESSID_FIELD_NUMBER;
    hash = (53 * hash) + getAddressId();
    hash = (37 * hash) + DELIVERYMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getDeliveryMethod();
    hash = (37 * hash) + SENDNO_FIELD_NUMBER;
    hash = (53 * hash) + getSendNo().hashCode();
    hash = (37 * hash) + QRCODEURL_FIELD_NUMBER;
    hash = (53 * hash) + getQrCodeUrl().hashCode();
    hash = (37 * hash) + PHARMACYADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getPharmacyAddress().hashCode();
    hash = (37 * hash) + PHARMACYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPharmacyName().hashCode();
    hash = (37 * hash) + FINSHTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getFinshTime());
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + EXTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getExtStatus();
    hash = (37 * hash) + NEEDPRINTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getNeedPrintStatus();
    hash = (37 * hash) + FREIGHT_FIELD_NUMBER;
    hash = (53 * hash) + getFreight();
    hash = (37 * hash) + IDCARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getIdCardNo().hashCode();
    hash = (37 * hash) + PHARMACYID_FIELD_NUMBER;
    hash = (53 * hash) + getPharmacyId();
    hash = (37 * hash) + PRESCRIPTIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + getPrescriptionDate().hashCode();
    hash = (37 * hash) + TIMESTANDARD_FIELD_NUMBER;
    hash = (53 * hash) + getTimeStandard().hashCode();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + REFUNDNO_FIELD_NUMBER;
    hash = (53 * hash) + getRefundNo().hashCode();
    hash = (37 * hash) + REFUNDSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getRefundStatus();
    hash = (37 * hash) + PAYTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPayTime());
    hash = (37 * hash) + INVOICEENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceEndTime().hashCode();
    hash = (37 * hash) + TERMINAL_FIELD_NUMBER;
    hash = (53 * hash) + getTerminal();
    hash = (37 * hash) + HISOEORIORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getHisOeoriOrderId().hashCode();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + HISCLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getHisClinicCode().hashCode();
    hash = (37 * hash) + CANCELSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getCancelStatus();
    hash = (37 * hash) + CANCELREMARK_FIELD_NUMBER;
    hash = (53 * hash) + getCancelRemark().hashCode();
    hash = (37 * hash) + PATIENTAGEINT_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAgeInt();
    hash = (37 * hash) + PATIENTSEXINT_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSexInt();
    hash = (37 * hash) + ICDCODES_FIELD_NUMBER;
    hash = (53 * hash) + getIcdCodes().hashCode();
    hash = (37 * hash) + PATIENTADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAddress().hashCode();
    hash = (37 * hash) + REMARKS_FIELD_NUMBER;
    hash = (53 * hash) + getRemarks().hashCode();
    hash = (37 * hash) + ADDRESSMODIFIED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getAddressModified());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.drug.PrescriptionInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo 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.drug.PrescriptionInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo 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.drug.PrescriptionInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo 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.drug.PrescriptionInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo 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.drug.PrescriptionInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.PrescriptionInfo parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.drug.PrescriptionInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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.drug.PrescriptionInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.PrescriptionInfo)
      com.ywt.gapi.drug.PrescriptionInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.drug.PrescriptionInfo.class, com.ywt.gapi.drug.PrescriptionInfo.Builder.class);
    }

    // Construct using com.ywt.gapi.drug.PrescriptionInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDrugsFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      no3Th_ = "";

      doctorName_ = "";

      patientName_ = "";

      patientAge_ = "";

      patientSex_ = "";

      patientNo_ = "";

      diagnose_ = "";

      dept_ = "";

      source_ = 0;

      hosptialCode_ = "";

      hosptialId_ = 0;

      orgCode3Th_ = "";

      if (drugsBuilder_ == null) {
        drugs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00001000);
      } else {
        drugsBuilder_.clear();
      }
      totalPrice_ = 0;

      status_ = 0;

      statusStr_ = "";

      createOn_ = 0L;

      payStatus_ = 0;

      createOnStr_ = "";

      patientMobile_ = "";

      description_ = "";

      allergicHistory_ = "";

      doctorSignId_ = 0;

      prescriptionId_ = 0;

      bizNo_ = "";

      userId_ = 0;

      hisOrderNo_ = "";

      addressId_ = 0;

      deliveryMethod_ = 0;

      sendNo_ = "";

      qrCodeUrl_ = "";

      pharmacyAddress_ = "";

      pharmacyName_ = "";

      finshTime_ = 0L;

      doctorId_ = 0;

      individual_ = 0;

      extStatus_ = 0;

      needPrintStatus_ = 0;

      freight_ = 0;

      idCardNo_ = "";

      pharmacyId_ = 0;

      prescriptionDate_ = "";

      timeStandard_ = "";

      orderNo_ = "";

      orderId_ = 0;

      refundNo_ = "";

      refundStatus_ = 0;

      payTime_ = 0L;

      invoiceEndTime_ = "";

      terminal_ = 0;

      hisOeoriOrderId_ = "";

      hisPatientId_ = "";

      hisClinicCode_ = "";

      cancelStatus_ = 0;

      cancelRemark_ = "";

      patientAgeInt_ = 0;

      patientSexInt_ = 0;

      icdCodes_ = "";

      patientAddress_ = "";

      remarks_ = "";

      addressModified_ = false;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfo_descriptor;
    }

    public com.ywt.gapi.drug.PrescriptionInfo getDefaultInstanceForType() {
      return com.ywt.gapi.drug.PrescriptionInfo.getDefaultInstance();
    }

    public com.ywt.gapi.drug.PrescriptionInfo build() {
      com.ywt.gapi.drug.PrescriptionInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.drug.PrescriptionInfo buildPartial() {
      com.ywt.gapi.drug.PrescriptionInfo result = new com.ywt.gapi.drug.PrescriptionInfo(this);
      int from_bitField0_ = bitField0_;
      int from_bitField1_ = bitField1_;
      int to_bitField0_ = 0;
      int to_bitField1_ = 0;
      result.no3Th_ = no3Th_;
      result.doctorName_ = doctorName_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.patientNo_ = patientNo_;
      result.diagnose_ = diagnose_;
      result.dept_ = dept_;
      result.source_ = source_;
      result.hosptialCode_ = hosptialCode_;
      result.hosptialId_ = hosptialId_;
      result.orgCode3Th_ = orgCode3Th_;
      if (drugsBuilder_ == null) {
        if (((bitField0_ & 0x00001000) == 0x00001000)) {
          drugs_ = java.util.Collections.unmodifiableList(drugs_);
          bitField0_ = (bitField0_ & ~0x00001000);
        }
        result.drugs_ = drugs_;
      } else {
        result.drugs_ = drugsBuilder_.build();
      }
      result.totalPrice_ = totalPrice_;
      result.status_ = status_;
      result.statusStr_ = statusStr_;
      result.createOn_ = createOn_;
      result.payStatus_ = payStatus_;
      result.createOnStr_ = createOnStr_;
      result.patientMobile_ = patientMobile_;
      result.description_ = description_;
      result.allergicHistory_ = allergicHistory_;
      result.doctorSignId_ = doctorSignId_;
      result.prescriptionId_ = prescriptionId_;
      result.bizNo_ = bizNo_;
      result.userId_ = userId_;
      result.hisOrderNo_ = hisOrderNo_;
      result.addressId_ = addressId_;
      result.deliveryMethod_ = deliveryMethod_;
      result.sendNo_ = sendNo_;
      result.qrCodeUrl_ = qrCodeUrl_;
      result.pharmacyAddress_ = pharmacyAddress_;
      result.pharmacyName_ = pharmacyName_;
      result.finshTime_ = finshTime_;
      result.doctorId_ = doctorId_;
      result.individual_ = individual_;
      result.extStatus_ = extStatus_;
      result.needPrintStatus_ = needPrintStatus_;
      result.freight_ = freight_;
      result.idCardNo_ = idCardNo_;
      result.pharmacyId_ = pharmacyId_;
      result.prescriptionDate_ = prescriptionDate_;
      result.timeStandard_ = timeStandard_;
      result.orderNo_ = orderNo_;
      result.orderId_ = orderId_;
      result.refundNo_ = refundNo_;
      result.refundStatus_ = refundStatus_;
      result.payTime_ = payTime_;
      result.invoiceEndTime_ = invoiceEndTime_;
      result.terminal_ = terminal_;
      result.hisOeoriOrderId_ = hisOeoriOrderId_;
      result.hisPatientId_ = hisPatientId_;
      result.hisClinicCode_ = hisClinicCode_;
      result.cancelStatus_ = cancelStatus_;
      result.cancelRemark_ = cancelRemark_;
      result.patientAgeInt_ = patientAgeInt_;
      result.patientSexInt_ = patientSexInt_;
      result.icdCodes_ = icdCodes_;
      result.patientAddress_ = patientAddress_;
      result.remarks_ = remarks_;
      result.addressModified_ = addressModified_;
      result.bitField0_ = to_bitField0_;
      result.bitField1_ = to_bitField1_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.drug.PrescriptionInfo other) {
      if (other == com.ywt.gapi.drug.PrescriptionInfo.getDefaultInstance()) return this;
      if (!other.getNo3Th().isEmpty()) {
        no3Th_ = other.no3Th_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getPatientAge().isEmpty()) {
        patientAge_ = other.patientAge_;
        onChanged();
      }
      if (!other.getPatientSex().isEmpty()) {
        patientSex_ = other.patientSex_;
        onChanged();
      }
      if (!other.getPatientNo().isEmpty()) {
        patientNo_ = other.patientNo_;
        onChanged();
      }
      if (!other.getDiagnose().isEmpty()) {
        diagnose_ = other.diagnose_;
        onChanged();
      }
      if (!other.getDept().isEmpty()) {
        dept_ = other.dept_;
        onChanged();
      }
      if (other.getSource() != 0) {
        setSource(other.getSource());
      }
      if (!other.getHosptialCode().isEmpty()) {
        hosptialCode_ = other.hosptialCode_;
        onChanged();
      }
      if (other.getHosptialId() != 0) {
        setHosptialId(other.getHosptialId());
      }
      if (!other.getOrgCode3Th().isEmpty()) {
        orgCode3Th_ = other.orgCode3Th_;
        onChanged();
      }
      if (drugsBuilder_ == null) {
        if (!other.drugs_.isEmpty()) {
          if (drugs_.isEmpty()) {
            drugs_ = other.drugs_;
            bitField0_ = (bitField0_ & ~0x00001000);
          } else {
            ensureDrugsIsMutable();
            drugs_.addAll(other.drugs_);
          }
          onChanged();
        }
      } else {
        if (!other.drugs_.isEmpty()) {
          if (drugsBuilder_.isEmpty()) {
            drugsBuilder_.dispose();
            drugsBuilder_ = null;
            drugs_ = other.drugs_;
            bitField0_ = (bitField0_ & ~0x00001000);
            drugsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDrugsFieldBuilder() : null;
          } else {
            drugsBuilder_.addAllMessages(other.drugs_);
          }
        }
      }
      if (other.getTotalPrice() != 0) {
        setTotalPrice(other.getTotalPrice());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (!other.getStatusStr().isEmpty()) {
        statusStr_ = other.statusStr_;
        onChanged();
      }
      if (other.getCreateOn() != 0L) {
        setCreateOn(other.getCreateOn());
      }
      if (other.getPayStatus() != 0) {
        setPayStatus(other.getPayStatus());
      }
      if (!other.getCreateOnStr().isEmpty()) {
        createOnStr_ = other.createOnStr_;
        onChanged();
      }
      if (!other.getPatientMobile().isEmpty()) {
        patientMobile_ = other.patientMobile_;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        onChanged();
      }
      if (!other.getAllergicHistory().isEmpty()) {
        allergicHistory_ = other.allergicHistory_;
        onChanged();
      }
      if (other.getDoctorSignId() != 0) {
        setDoctorSignId(other.getDoctorSignId());
      }
      if (other.getPrescriptionId() != 0) {
        setPrescriptionId(other.getPrescriptionId());
      }
      if (!other.getBizNo().isEmpty()) {
        bizNo_ = other.bizNo_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (other.getAddressId() != 0) {
        setAddressId(other.getAddressId());
      }
      if (other.getDeliveryMethod() != 0) {
        setDeliveryMethod(other.getDeliveryMethod());
      }
      if (!other.getSendNo().isEmpty()) {
        sendNo_ = other.sendNo_;
        onChanged();
      }
      if (!other.getQrCodeUrl().isEmpty()) {
        qrCodeUrl_ = other.qrCodeUrl_;
        onChanged();
      }
      if (!other.getPharmacyAddress().isEmpty()) {
        pharmacyAddress_ = other.pharmacyAddress_;
        onChanged();
      }
      if (!other.getPharmacyName().isEmpty()) {
        pharmacyName_ = other.pharmacyName_;
        onChanged();
      }
      if (other.getFinshTime() != 0L) {
        setFinshTime(other.getFinshTime());
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getExtStatus() != 0) {
        setExtStatus(other.getExtStatus());
      }
      if (other.getNeedPrintStatus() != 0) {
        setNeedPrintStatus(other.getNeedPrintStatus());
      }
      if (other.getFreight() != 0) {
        setFreight(other.getFreight());
      }
      if (!other.getIdCardNo().isEmpty()) {
        idCardNo_ = other.idCardNo_;
        onChanged();
      }
      if (other.getPharmacyId() != 0) {
        setPharmacyId(other.getPharmacyId());
      }
      if (!other.getPrescriptionDate().isEmpty()) {
        prescriptionDate_ = other.prescriptionDate_;
        onChanged();
      }
      if (!other.getTimeStandard().isEmpty()) {
        timeStandard_ = other.timeStandard_;
        onChanged();
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getRefundNo().isEmpty()) {
        refundNo_ = other.refundNo_;
        onChanged();
      }
      if (other.getRefundStatus() != 0) {
        setRefundStatus(other.getRefundStatus());
      }
      if (other.getPayTime() != 0L) {
        setPayTime(other.getPayTime());
      }
      if (!other.getInvoiceEndTime().isEmpty()) {
        invoiceEndTime_ = other.invoiceEndTime_;
        onChanged();
      }
      if (other.getTerminal() != 0) {
        setTerminal(other.getTerminal());
      }
      if (!other.getHisOeoriOrderId().isEmpty()) {
        hisOeoriOrderId_ = other.hisOeoriOrderId_;
        onChanged();
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getHisClinicCode().isEmpty()) {
        hisClinicCode_ = other.hisClinicCode_;
        onChanged();
      }
      if (other.getCancelStatus() != 0) {
        setCancelStatus(other.getCancelStatus());
      }
      if (!other.getCancelRemark().isEmpty()) {
        cancelRemark_ = other.cancelRemark_;
        onChanged();
      }
      if (other.getPatientAgeInt() != 0) {
        setPatientAgeInt(other.getPatientAgeInt());
      }
      if (other.getPatientSexInt() != 0) {
        setPatientSexInt(other.getPatientSexInt());
      }
      if (!other.getIcdCodes().isEmpty()) {
        icdCodes_ = other.icdCodes_;
        onChanged();
      }
      if (!other.getPatientAddress().isEmpty()) {
        patientAddress_ = other.patientAddress_;
        onChanged();
      }
      if (!other.getRemarks().isEmpty()) {
        remarks_ = other.remarks_;
        onChanged();
      }
      if (other.getAddressModified() != false) {
        setAddressModified(other.getAddressModified());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.drug.PrescriptionInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.drug.PrescriptionInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;
    private int bitField1_;

    private java.lang.Object no3Th_ = "";
    /**
     * <code>string no3th = 1;</code>
     */
    public java.lang.String getNo3Th() {
      java.lang.Object ref = no3Th_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        no3Th_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string no3th = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNo3ThBytes() {
      java.lang.Object ref = no3Th_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        no3Th_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string no3th = 1;</code>
     */
    public Builder setNo3Th(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      no3Th_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string no3th = 1;</code>
     */
    public Builder clearNo3Th() {
      
      no3Th_ = getDefaultInstance().getNo3Th();
      onChanged();
      return this;
    }
    /**
     * <code>string no3th = 1;</code>
     */
    public Builder setNo3ThBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      no3Th_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 2;</code>
     */
    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 = 2;</code>
     */
    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 = 2;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 2;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 2;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 3;</code>
     */
    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 = 3;</code>
     */
    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 = 3;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 3;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 3;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientAge_ = "";
    /**
     * <code>string patientAge = 4;</code>
     */
    public java.lang.String getPatientAge() {
      java.lang.Object ref = patientAge_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientAge_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public com.google.protobuf.ByteString
        getPatientAgeBytes() {
      java.lang.Object ref = patientAge_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientAge_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public Builder setPatientAge(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = getDefaultInstance().getPatientAge();
      onChanged();
      return this;
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public Builder setPatientAgeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientAge_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientSex_ = "";
    /**
     * <code>string patientSex = 5;</code>
     */
    public java.lang.String getPatientSex() {
      java.lang.Object ref = patientSex_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientSex_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public com.google.protobuf.ByteString
        getPatientSexBytes() {
      java.lang.Object ref = patientSex_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientSex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public Builder setPatientSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = getDefaultInstance().getPatientSex();
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public Builder setPatientSexBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientSex_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientNo_ = "";
    /**
     * <code>string patientNo = 6;</code>
     */
    public java.lang.String getPatientNo() {
      java.lang.Object ref = patientNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public com.google.protobuf.ByteString
        getPatientNoBytes() {
      java.lang.Object ref = patientNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public Builder setPatientNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public Builder clearPatientNo() {
      
      patientNo_ = getDefaultInstance().getPatientNo();
      onChanged();
      return this;
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public Builder setPatientNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnose_ = "";
    /**
     * <code>string diagnose = 7;</code>
     */
    public java.lang.String getDiagnose() {
      java.lang.Object ref = diagnose_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnose_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public com.google.protobuf.ByteString
        getDiagnoseBytes() {
      java.lang.Object ref = diagnose_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnose_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public Builder setDiagnoseBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnose_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dept_ = "";
    /**
     * <code>string dept = 8;</code>
     */
    public java.lang.String getDept() {
      java.lang.Object ref = dept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string dept = 8;</code>
     */
    public com.google.protobuf.ByteString
        getDeptBytes() {
      java.lang.Object ref = dept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string dept = 8;</code>
     */
    public Builder setDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string dept = 8;</code>
     */
    public Builder clearDept() {
      
      dept_ = getDefaultInstance().getDept();
      onChanged();
      return this;
    }
    /**
     * <code>string dept = 8;</code>
     */
    public Builder setDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dept_ = value;
      onChanged();
      return this;
    }

    private int source_ ;
    /**
     * <code>int32 source = 10;</code>
     */
    public int getSource() {
      return source_;
    }
    /**
     * <code>int32 source = 10;</code>
     */
    public Builder setSource(int value) {
      
      source_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 source = 10;</code>
     */
    public Builder clearSource() {
      
      source_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hosptialCode_ = "";
    /**
     * <code>string hosptialCode = 11;</code>
     */
    public java.lang.String getHosptialCode() {
      java.lang.Object ref = hosptialCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hosptialCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hosptialCode = 11;</code>
     */
    public com.google.protobuf.ByteString
        getHosptialCodeBytes() {
      java.lang.Object ref = hosptialCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hosptialCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hosptialCode = 11;</code>
     */
    public Builder setHosptialCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hosptialCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hosptialCode = 11;</code>
     */
    public Builder clearHosptialCode() {
      
      hosptialCode_ = getDefaultInstance().getHosptialCode();
      onChanged();
      return this;
    }
    /**
     * <code>string hosptialCode = 11;</code>
     */
    public Builder setHosptialCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hosptialCode_ = value;
      onChanged();
      return this;
    }

    private int hosptialId_ ;
    /**
     * <code>int32 hosptialId = 12;</code>
     */
    public int getHosptialId() {
      return hosptialId_;
    }
    /**
     * <code>int32 hosptialId = 12;</code>
     */
    public Builder setHosptialId(int value) {
      
      hosptialId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hosptialId = 12;</code>
     */
    public Builder clearHosptialId() {
      
      hosptialId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orgCode3Th_ = "";
    /**
     * <code>string orgCode3th = 13;</code>
     */
    public java.lang.String getOrgCode3Th() {
      java.lang.Object ref = orgCode3Th_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orgCode3Th_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orgCode3th = 13;</code>
     */
    public com.google.protobuf.ByteString
        getOrgCode3ThBytes() {
      java.lang.Object ref = orgCode3Th_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orgCode3Th_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orgCode3th = 13;</code>
     */
    public Builder setOrgCode3Th(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orgCode3Th_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orgCode3th = 13;</code>
     */
    public Builder clearOrgCode3Th() {
      
      orgCode3Th_ = getDefaultInstance().getOrgCode3Th();
      onChanged();
      return this;
    }
    /**
     * <code>string orgCode3th = 13;</code>
     */
    public Builder setOrgCode3ThBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orgCode3Th_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo> drugs_ =
      java.util.Collections.emptyList();
    private void ensureDrugsIsMutable() {
      if (!((bitField0_ & 0x00001000) == 0x00001000)) {
        drugs_ = new java.util.ArrayList<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo>(drugs_);
        bitField0_ |= 0x00001000;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> drugsBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public java.util.List<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo> getDrugsList() {
      if (drugsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(drugs_);
      } else {
        return drugsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public int getDrugsCount() {
      if (drugsBuilder_ == null) {
        return drugs_.size();
      } else {
        return drugsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo getDrugs(int index) {
      if (drugsBuilder_ == null) {
        return drugs_.get(index);
      } else {
        return drugsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder setDrugs(
        int index, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo value) {
      if (drugsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDrugsIsMutable();
        drugs_.set(index, value);
        onChanged();
      } else {
        drugsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder setDrugs(
        int index, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.set(index, builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder addDrugs(com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo value) {
      if (drugsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDrugsIsMutable();
        drugs_.add(value);
        onChanged();
      } else {
        drugsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder addDrugs(
        int index, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo value) {
      if (drugsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDrugsIsMutable();
        drugs_.add(index, value);
        onChanged();
      } else {
        drugsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder addDrugs(
        com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.add(builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder addDrugs(
        int index, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.add(index, builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder addAllDrugs(
        java.lang.Iterable<? extends com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo> values) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, drugs_);
        onChanged();
      } else {
        drugsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder clearDrugs() {
      if (drugsBuilder_ == null) {
        drugs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00001000);
        onChanged();
      } else {
        drugsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public Builder removeDrugs(int index) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.remove(index);
        onChanged();
      } else {
        drugsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder getDrugsBuilder(
        int index) {
      return getDrugsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder getDrugsOrBuilder(
        int index) {
      if (drugsBuilder_ == null) {
        return drugs_.get(index);  } else {
        return drugsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public java.util.List<? extends com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> 
         getDrugsOrBuilderList() {
      if (drugsBuilder_ != null) {
        return drugsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(drugs_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder addDrugsBuilder() {
      return getDrugsFieldBuilder().addBuilder(
          com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder addDrugsBuilder(
        int index) {
      return getDrugsFieldBuilder().addBuilder(
          index, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo drugs = 14;</code>
     */
    public java.util.List<com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder> 
         getDrugsBuilderList() {
      return getDrugsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> 
        getDrugsFieldBuilder() {
      if (drugsBuilder_ == null) {
        drugsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfo.Builder, com.ywt.gapi.drug.PrescriptionInfo.PrescriptionDrugInfoOrBuilder>(
                drugs_,
                ((bitField0_ & 0x00001000) == 0x00001000),
                getParentForChildren(),
                isClean());
        drugs_ = null;
      }
      return drugsBuilder_;
    }

    private int totalPrice_ ;
    /**
     * <code>int32 totalPrice = 15;</code>
     */
    public int getTotalPrice() {
      return totalPrice_;
    }
    /**
     * <code>int32 totalPrice = 15;</code>
     */
    public Builder setTotalPrice(int value) {
      
      totalPrice_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 totalPrice = 15;</code>
     */
    public Builder clearTotalPrice() {
      
      totalPrice_ = 0;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <code>int32 status = 16;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 16;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 16;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object statusStr_ = "";
    /**
     * <code>string statusStr = 17;</code>
     */
    public java.lang.String getStatusStr() {
      java.lang.Object ref = statusStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string statusStr = 17;</code>
     */
    public com.google.protobuf.ByteString
        getStatusStrBytes() {
      java.lang.Object ref = statusStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string statusStr = 17;</code>
     */
    public Builder setStatusStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string statusStr = 17;</code>
     */
    public Builder clearStatusStr() {
      
      statusStr_ = getDefaultInstance().getStatusStr();
      onChanged();
      return this;
    }
    /**
     * <code>string statusStr = 17;</code>
     */
    public Builder setStatusStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusStr_ = value;
      onChanged();
      return this;
    }

    private long createOn_ ;
    /**
     * <code>int64 createOn = 18;</code>
     */
    public long getCreateOn() {
      return createOn_;
    }
    /**
     * <code>int64 createOn = 18;</code>
     */
    public Builder setCreateOn(long value) {
      
      createOn_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createOn = 18;</code>
     */
    public Builder clearCreateOn() {
      
      createOn_ = 0L;
      onChanged();
      return this;
    }

    private int payStatus_ ;
    /**
     * <code>int32 payStatus = 19;</code>
     */
    public int getPayStatus() {
      return payStatus_;
    }
    /**
     * <code>int32 payStatus = 19;</code>
     */
    public Builder setPayStatus(int value) {
      
      payStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 payStatus = 19;</code>
     */
    public Builder clearPayStatus() {
      
      payStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object createOnStr_ = "";
    /**
     * <code>string createOnStr = 20;</code>
     */
    public java.lang.String getCreateOnStr() {
      java.lang.Object ref = createOnStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        createOnStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string createOnStr = 20;</code>
     */
    public com.google.protobuf.ByteString
        getCreateOnStrBytes() {
      java.lang.Object ref = createOnStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        createOnStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string createOnStr = 20;</code>
     */
    public Builder setCreateOnStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      createOnStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string createOnStr = 20;</code>
     */
    public Builder clearCreateOnStr() {
      
      createOnStr_ = getDefaultInstance().getCreateOnStr();
      onChanged();
      return this;
    }
    /**
     * <code>string createOnStr = 20;</code>
     */
    public Builder setCreateOnStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      createOnStr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientMobile_ = "";
    /**
     * <code>string patientMobile = 21;</code>
     */
    public java.lang.String getPatientMobile() {
      java.lang.Object ref = patientMobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientMobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientMobile = 21;</code>
     */
    public com.google.protobuf.ByteString
        getPatientMobileBytes() {
      java.lang.Object ref = patientMobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientMobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientMobile = 21;</code>
     */
    public Builder setPatientMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientMobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientMobile = 21;</code>
     */
    public Builder clearPatientMobile() {
      
      patientMobile_ = getDefaultInstance().getPatientMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string patientMobile = 21;</code>
     */
    public Builder setPatientMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientMobile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     * <pre>
     *病情描述
     * </pre>
     *
     * <code>string description = 22;</code>
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *病情描述
     * </pre>
     *
     * <code>string description = 22;</code>
     */
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *病情描述
     * </pre>
     *
     * <code>string description = 22;</code>
     */
    public Builder setDescription(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      description_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病情描述
     * </pre>
     *
     * <code>string description = 22;</code>
     */
    public Builder clearDescription() {
      
      description_ = getDefaultInstance().getDescription();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病情描述
     * </pre>
     *
     * <code>string description = 22;</code>
     */
    public Builder setDescriptionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      description_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object allergicHistory_ = "";
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 23;</code>
     */
    public java.lang.String getAllergicHistory() {
      java.lang.Object ref = allergicHistory_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        allergicHistory_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 23;</code>
     */
    public com.google.protobuf.ByteString
        getAllergicHistoryBytes() {
      java.lang.Object ref = allergicHistory_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        allergicHistory_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 23;</code>
     */
    public Builder setAllergicHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      allergicHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 23;</code>
     */
    public Builder clearAllergicHistory() {
      
      allergicHistory_ = getDefaultInstance().getAllergicHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 23;</code>
     */
    public Builder setAllergicHistoryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      allergicHistory_ = value;
      onChanged();
      return this;
    }

    private int doctorSignId_ ;
    /**
     * <pre>
     *医生签名Id
     * </pre>
     *
     * <code>int32 doctorSignId = 24;</code>
     */
    public int getDoctorSignId() {
      return doctorSignId_;
    }
    /**
     * <pre>
     *医生签名Id
     * </pre>
     *
     * <code>int32 doctorSignId = 24;</code>
     */
    public Builder setDoctorSignId(int value) {
      
      doctorSignId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生签名Id
     * </pre>
     *
     * <code>int32 doctorSignId = 24;</code>
     */
    public Builder clearDoctorSignId() {
      
      doctorSignId_ = 0;
      onChanged();
      return this;
    }

    private int prescriptionId_ ;
    /**
     * <pre>
     *处方单Id
     * </pre>
     *
     * <code>int32 prescriptionId = 25;</code>
     */
    public int getPrescriptionId() {
      return prescriptionId_;
    }
    /**
     * <pre>
     *处方单Id
     * </pre>
     *
     * <code>int32 prescriptionId = 25;</code>
     */
    public Builder setPrescriptionId(int value) {
      
      prescriptionId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方单Id
     * </pre>
     *
     * <code>int32 prescriptionId = 25;</code>
     */
    public Builder clearPrescriptionId() {
      
      prescriptionId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object bizNo_ = "";
    /**
     * <pre>
     *业务编码
     * </pre>
     *
     * <code>string bizNo = 26;</code>
     */
    public java.lang.String getBizNo() {
      java.lang.Object ref = bizNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bizNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *业务编码
     * </pre>
     *
     * <code>string bizNo = 26;</code>
     */
    public com.google.protobuf.ByteString
        getBizNoBytes() {
      java.lang.Object ref = bizNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        bizNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *业务编码
     * </pre>
     *
     * <code>string bizNo = 26;</code>
     */
    public Builder setBizNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      bizNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *业务编码
     * </pre>
     *
     * <code>string bizNo = 26;</code>
     */
    public Builder clearBizNo() {
      
      bizNo_ = getDefaultInstance().getBizNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *业务编码
     * </pre>
     *
     * <code>string bizNo = 26;</code>
     */
    public Builder setBizNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      bizNo_ = value;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 27;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 27;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 27;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisOrderNo_ = "";
    /**
     * <pre>
     *HIS单号
     * </pre>
     *
     * <code>string hisOrderNo = 28;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     *HIS单号
     * </pre>
     *
     * <code>string hisOrderNo = 28;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     *HIS单号
     * </pre>
     *
     * <code>string hisOrderNo = 28;</code>
     */
    public Builder setHisOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *HIS单号
     * </pre>
     *
     * <code>string hisOrderNo = 28;</code>
     */
    public Builder clearHisOrderNo() {
      
      hisOrderNo_ = getDefaultInstance().getHisOrderNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *HIS单号
     * </pre>
     *
     * <code>string hisOrderNo = 28;</code>
     */
    public Builder setHisOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrderNo_ = value;
      onChanged();
      return this;
    }

    private int addressId_ ;
    /**
     * <pre>
     *地址ID
     * </pre>
     *
     * <code>int32 addressId = 29;</code>
     */
    public int getAddressId() {
      return addressId_;
    }
    /**
     * <pre>
     *地址ID
     * </pre>
     *
     * <code>int32 addressId = 29;</code>
     */
    public Builder setAddressId(int value) {
      
      addressId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地址ID
     * </pre>
     *
     * <code>int32 addressId = 29;</code>
     */
    public Builder clearAddressId() {
      
      addressId_ = 0;
      onChanged();
      return this;
    }

    private int deliveryMethod_ ;
    /**
     * <pre>
     * 取药方式：1-快递 2-自取
     * </pre>
     *
     * <code>int32 deliveryMethod = 30;</code>
     */
    public int getDeliveryMethod() {
      return deliveryMethod_;
    }
    /**
     * <pre>
     * 取药方式：1-快递 2-自取
     * </pre>
     *
     * <code>int32 deliveryMethod = 30;</code>
     */
    public Builder setDeliveryMethod(int value) {
      
      deliveryMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 取药方式：1-快递 2-自取
     * </pre>
     *
     * <code>int32 deliveryMethod = 30;</code>
     */
    public Builder clearDeliveryMethod() {
      
      deliveryMethod_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object sendNo_ = "";
    /**
     * <pre>
     * 配送号
     * </pre>
     *
     * <code>string sendNo = 31;</code>
     */
    public java.lang.String getSendNo() {
      java.lang.Object ref = sendNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sendNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 配送号
     * </pre>
     *
     * <code>string sendNo = 31;</code>
     */
    public com.google.protobuf.ByteString
        getSendNoBytes() {
      java.lang.Object ref = sendNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sendNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 配送号
     * </pre>
     *
     * <code>string sendNo = 31;</code>
     */
    public Builder setSendNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sendNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 配送号
     * </pre>
     *
     * <code>string sendNo = 31;</code>
     */
    public Builder clearSendNo() {
      
      sendNo_ = getDefaultInstance().getSendNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 配送号
     * </pre>
     *
     * <code>string sendNo = 31;</code>
     */
    public Builder setSendNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sendNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object qrCodeUrl_ = "";
    /**
     * <pre>
     * 取药二维码
     * </pre>
     *
     * <code>string qrCodeUrl = 32;</code>
     */
    public java.lang.String getQrCodeUrl() {
      java.lang.Object ref = qrCodeUrl_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        qrCodeUrl_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 取药二维码
     * </pre>
     *
     * <code>string qrCodeUrl = 32;</code>
     */
    public com.google.protobuf.ByteString
        getQrCodeUrlBytes() {
      java.lang.Object ref = qrCodeUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        qrCodeUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 取药二维码
     * </pre>
     *
     * <code>string qrCodeUrl = 32;</code>
     */
    public Builder setQrCodeUrl(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      qrCodeUrl_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 取药二维码
     * </pre>
     *
     * <code>string qrCodeUrl = 32;</code>
     */
    public Builder clearQrCodeUrl() {
      
      qrCodeUrl_ = getDefaultInstance().getQrCodeUrl();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 取药二维码
     * </pre>
     *
     * <code>string qrCodeUrl = 32;</code>
     */
    public Builder setQrCodeUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      qrCodeUrl_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object pharmacyAddress_ = "";
    /**
     * <pre>
     * 药店地址（由省、市、区、详细地址组成）
     * </pre>
     *
     * <code>string pharmacyAddress = 33;</code>
     */
    public java.lang.String getPharmacyAddress() {
      java.lang.Object ref = pharmacyAddress_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pharmacyAddress_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 药店地址（由省、市、区、详细地址组成）
     * </pre>
     *
     * <code>string pharmacyAddress = 33;</code>
     */
    public com.google.protobuf.ByteString
        getPharmacyAddressBytes() {
      java.lang.Object ref = pharmacyAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pharmacyAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 药店地址（由省、市、区、详细地址组成）
     * </pre>
     *
     * <code>string pharmacyAddress = 33;</code>
     */
    public Builder setPharmacyAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pharmacyAddress_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 药店地址（由省、市、区、详细地址组成）
     * </pre>
     *
     * <code>string pharmacyAddress = 33;</code>
     */
    public Builder clearPharmacyAddress() {
      
      pharmacyAddress_ = getDefaultInstance().getPharmacyAddress();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 药店地址（由省、市、区、详细地址组成）
     * </pre>
     *
     * <code>string pharmacyAddress = 33;</code>
     */
    public Builder setPharmacyAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pharmacyAddress_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object pharmacyName_ = "";
    /**
     * <pre>
     * 药店名称
     * </pre>
     *
     * <code>string pharmacyName = 34;</code>
     */
    public java.lang.String getPharmacyName() {
      java.lang.Object ref = pharmacyName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pharmacyName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 药店名称
     * </pre>
     *
     * <code>string pharmacyName = 34;</code>
     */
    public com.google.protobuf.ByteString
        getPharmacyNameBytes() {
      java.lang.Object ref = pharmacyName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pharmacyName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 药店名称
     * </pre>
     *
     * <code>string pharmacyName = 34;</code>
     */
    public Builder setPharmacyName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pharmacyName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 药店名称
     * </pre>
     *
     * <code>string pharmacyName = 34;</code>
     */
    public Builder clearPharmacyName() {
      
      pharmacyName_ = getDefaultInstance().getPharmacyName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 药店名称
     * </pre>
     *
     * <code>string pharmacyName = 34;</code>
     */
    public Builder setPharmacyNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pharmacyName_ = value;
      onChanged();
      return this;
    }

    private long finshTime_ ;
    /**
     * <pre>
     * 完成时间
     * </pre>
     *
     * <code>int64 finshTime = 35;</code>
     */
    public long getFinshTime() {
      return finshTime_;
    }
    /**
     * <pre>
     * 完成时间
     * </pre>
     *
     * <code>int64 finshTime = 35;</code>
     */
    public Builder setFinshTime(long value) {
      
      finshTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 完成时间
     * </pre>
     *
     * <code>int64 finshTime = 35;</code>
     */
    public Builder clearFinshTime() {
      
      finshTime_ = 0L;
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <pre>
     * 医生ID
     * </pre>
     *
     * <code>int32 doctorId = 36;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <pre>
     * 医生ID
     * </pre>
     *
     * <code>int32 doctorId = 36;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医生ID
     * </pre>
     *
     * <code>int32 doctorId = 36;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <pre>
     * 个人支付总金额（药品总金额 - 医保 + 运费）
     * </pre>
     *
     * <code>int32 individual = 37;</code>
     */
    public int getIndividual() {
      return individual_;
    }
    /**
     * <pre>
     * 个人支付总金额（药品总金额 - 医保 + 运费）
     * </pre>
     *
     * <code>int32 individual = 37;</code>
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 个人支付总金额（药品总金额 - 医保 + 运费）
     * </pre>
     *
     * <code>int32 individual = 37;</code>
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

    private int extStatus_ ;
    /**
     * <pre>
     * 拓展状态，位运算，1-是否报到，2-是否发药，4-是否打印发票，8-包含其他收费项目(广三来源)
     * </pre>
     *
     * <code>int32 extStatus = 38;</code>
     */
    public int getExtStatus() {
      return extStatus_;
    }
    /**
     * <pre>
     * 拓展状态，位运算，1-是否报到，2-是否发药，4-是否打印发票，8-包含其他收费项目(广三来源)
     * </pre>
     *
     * <code>int32 extStatus = 38;</code>
     */
    public Builder setExtStatus(int value) {
      
      extStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 拓展状态，位运算，1-是否报到，2-是否发药，4-是否打印发票，8-包含其他收费项目(广三来源)
     * </pre>
     *
     * <code>int32 extStatus = 38;</code>
     */
    public Builder clearExtStatus() {
      
      extStatus_ = 0;
      onChanged();
      return this;
    }

    private int needPrintStatus_ ;
    /**
     * <pre>
     * 是否需要打印发票，0-不需要，1-需要
     * </pre>
     *
     * <code>int32 needPrintStatus = 39;</code>
     */
    public int getNeedPrintStatus() {
      return needPrintStatus_;
    }
    /**
     * <pre>
     * 是否需要打印发票，0-不需要，1-需要
     * </pre>
     *
     * <code>int32 needPrintStatus = 39;</code>
     */
    public Builder setNeedPrintStatus(int value) {
      
      needPrintStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 是否需要打印发票，0-不需要，1-需要
     * </pre>
     *
     * <code>int32 needPrintStatus = 39;</code>
     */
    public Builder clearNeedPrintStatus() {
      
      needPrintStatus_ = 0;
      onChanged();
      return this;
    }

    private int freight_ ;
    /**
     * <pre>
     * 快递费，单位：分
     * </pre>
     *
     * <code>int32 freight = 40;</code>
     */
    public int getFreight() {
      return freight_;
    }
    /**
     * <pre>
     * 快递费，单位：分
     * </pre>
     *
     * <code>int32 freight = 40;</code>
     */
    public Builder setFreight(int value) {
      
      freight_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 快递费，单位：分
     * </pre>
     *
     * <code>int32 freight = 40;</code>
     */
    public Builder clearFreight() {
      
      freight_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object idCardNo_ = "";
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 41;</code>
     */
    public java.lang.String getIdCardNo() {
      java.lang.Object ref = idCardNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idCardNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 41;</code>
     */
    public com.google.protobuf.ByteString
        getIdCardNoBytes() {
      java.lang.Object ref = idCardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idCardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 41;</code>
     */
    public Builder setIdCardNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idCardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 41;</code>
     */
    public Builder clearIdCardNo() {
      
      idCardNo_ = getDefaultInstance().getIdCardNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 41;</code>
     */
    public Builder setIdCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idCardNo_ = value;
      onChanged();
      return this;
    }

    private int pharmacyId_ ;
    /**
     * <pre>
     *药房地址ID
     * </pre>
     *
     * <code>int32 pharmacyId = 42;</code>
     */
    public int getPharmacyId() {
      return pharmacyId_;
    }
    /**
     * <pre>
     *药房地址ID
     * </pre>
     *
     * <code>int32 pharmacyId = 42;</code>
     */
    public Builder setPharmacyId(int value) {
      
      pharmacyId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药房地址ID
     * </pre>
     *
     * <code>int32 pharmacyId = 42;</code>
     */
    public Builder clearPharmacyId() {
      
      pharmacyId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object prescriptionDate_ = "";
    /**
     * <pre>
     *处方日期(一般用于第三方来源)
     * </pre>
     *
     * <code>string prescriptionDate = 43;</code>
     */
    public java.lang.String getPrescriptionDate() {
      java.lang.Object ref = prescriptionDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        prescriptionDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *处方日期(一般用于第三方来源)
     * </pre>
     *
     * <code>string prescriptionDate = 43;</code>
     */
    public com.google.protobuf.ByteString
        getPrescriptionDateBytes() {
      java.lang.Object ref = prescriptionDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        prescriptionDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *处方日期(一般用于第三方来源)
     * </pre>
     *
     * <code>string prescriptionDate = 43;</code>
     */
    public Builder setPrescriptionDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      prescriptionDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方日期(一般用于第三方来源)
     * </pre>
     *
     * <code>string prescriptionDate = 43;</code>
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = getDefaultInstance().getPrescriptionDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方日期(一般用于第三方来源)
     * </pre>
     *
     * <code>string prescriptionDate = 43;</code>
     */
    public Builder setPrescriptionDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      prescriptionDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object timeStandard_ = "";
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 44;</code>
     */
    public java.lang.String getTimeStandard() {
      java.lang.Object ref = timeStandard_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        timeStandard_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 44;</code>
     */
    public com.google.protobuf.ByteString
        getTimeStandardBytes() {
      java.lang.Object ref = timeStandard_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        timeStandard_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 44;</code>
     */
    public Builder setTimeStandard(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      timeStandard_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 44;</code>
     */
    public Builder clearTimeStandard() {
      
      timeStandard_ = getDefaultInstance().getTimeStandard();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 44;</code>
     */
    public Builder setTimeStandardBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      timeStandard_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderNo_ = "";
    /**
     * <pre>
     * 订单号
     * </pre>
     *
     * <code>string orderNo = 45;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * 订单号
     * </pre>
     *
     * <code>string orderNo = 45;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * 订单号
     * </pre>
     *
     * <code>string orderNo = 45;</code>
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 订单号
     * </pre>
     *
     * <code>string orderNo = 45;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 订单号
     * </pre>
     *
     * <code>string orderNo = 45;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <pre>
     * 订单ID
     * </pre>
     *
     * <code>int32 orderId = 46;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <pre>
     * 订单ID
     * </pre>
     *
     * <code>int32 orderId = 46;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 订单ID
     * </pre>
     *
     * <code>int32 orderId = 46;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object refundNo_ = "";
    /**
     * <pre>
     *退款单号
     * </pre>
     *
     * <code>string refundNo = 47;</code>
     */
    public java.lang.String getRefundNo() {
      java.lang.Object ref = refundNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        refundNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *退款单号
     * </pre>
     *
     * <code>string refundNo = 47;</code>
     */
    public com.google.protobuf.ByteString
        getRefundNoBytes() {
      java.lang.Object ref = refundNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        refundNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *退款单号
     * </pre>
     *
     * <code>string refundNo = 47;</code>
     */
    public Builder setRefundNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      refundNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款单号
     * </pre>
     *
     * <code>string refundNo = 47;</code>
     */
    public Builder clearRefundNo() {
      
      refundNo_ = getDefaultInstance().getRefundNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款单号
     * </pre>
     *
     * <code>string refundNo = 47;</code>
     */
    public Builder setRefundNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      refundNo_ = value;
      onChanged();
      return this;
    }

    private int refundStatus_ ;
    /**
     * <pre>
     *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
     * </pre>
     *
     * <code>int32 refundStatus = 48;</code>
     */
    public int getRefundStatus() {
      return refundStatus_;
    }
    /**
     * <pre>
     *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
     * </pre>
     *
     * <code>int32 refundStatus = 48;</code>
     */
    public Builder setRefundStatus(int value) {
      
      refundStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
     * </pre>
     *
     * <code>int32 refundStatus = 48;</code>
     */
    public Builder clearRefundStatus() {
      
      refundStatus_ = 0;
      onChanged();
      return this;
    }

    private long payTime_ ;
    /**
     * <pre>
     * 支付时间
     * </pre>
     *
     * <code>int64 payTime = 49;</code>
     */
    public long getPayTime() {
      return payTime_;
    }
    /**
     * <pre>
     * 支付时间
     * </pre>
     *
     * <code>int64 payTime = 49;</code>
     */
    public Builder setPayTime(long value) {
      
      payTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 支付时间
     * </pre>
     *
     * <code>int64 payTime = 49;</code>
     */
    public Builder clearPayTime() {
      
      payTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceEndTime_ = "";
    /**
     * <pre>
     * 发票开具结束时间
     * </pre>
     *
     * <code>string invoiceEndTime = 50;</code>
     */
    public java.lang.String getInvoiceEndTime() {
      java.lang.Object ref = invoiceEndTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceEndTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 发票开具结束时间
     * </pre>
     *
     * <code>string invoiceEndTime = 50;</code>
     */
    public com.google.protobuf.ByteString
        getInvoiceEndTimeBytes() {
      java.lang.Object ref = invoiceEndTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceEndTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 发票开具结束时间
     * </pre>
     *
     * <code>string invoiceEndTime = 50;</code>
     */
    public Builder setInvoiceEndTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceEndTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票开具结束时间
     * </pre>
     *
     * <code>string invoiceEndTime = 50;</code>
     */
    public Builder clearInvoiceEndTime() {
      
      invoiceEndTime_ = getDefaultInstance().getInvoiceEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票开具结束时间
     * </pre>
     *
     * <code>string invoiceEndTime = 50;</code>
     */
    public Builder setInvoiceEndTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceEndTime_ = value;
      onChanged();
      return this;
    }

    private int terminal_ ;
    /**
     * <pre>
     *终端号
     * </pre>
     *
     * <code>int32 terminal = 51;</code>
     */
    public int getTerminal() {
      return terminal_;
    }
    /**
     * <pre>
     *终端号
     * </pre>
     *
     * <code>int32 terminal = 51;</code>
     */
    public Builder setTerminal(int value) {
      
      terminal_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *终端号
     * </pre>
     *
     * <code>int32 terminal = 51;</code>
     */
    public Builder clearTerminal() {
      
      terminal_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisOeoriOrderId_ = "";
    /**
     * <pre>
     * HIS 医嘱订单编号
     * </pre>
     *
     * <code>string hisOeoriOrderId = 52;</code>
     */
    public java.lang.String getHisOeoriOrderId() {
      java.lang.Object ref = hisOeoriOrderId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOeoriOrderId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * HIS 医嘱订单编号
     * </pre>
     *
     * <code>string hisOeoriOrderId = 52;</code>
     */
    public com.google.protobuf.ByteString
        getHisOeoriOrderIdBytes() {
      java.lang.Object ref = hisOeoriOrderId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOeoriOrderId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * HIS 医嘱订单编号
     * </pre>
     *
     * <code>string hisOeoriOrderId = 52;</code>
     */
    public Builder setHisOeoriOrderId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOeoriOrderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 医嘱订单编号
     * </pre>
     *
     * <code>string hisOeoriOrderId = 52;</code>
     */
    public Builder clearHisOeoriOrderId() {
      
      hisOeoriOrderId_ = getDefaultInstance().getHisOeoriOrderId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 医嘱订单编号
     * </pre>
     *
     * <code>string hisOeoriOrderId = 52;</code>
     */
    public Builder setHisOeoriOrderIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOeoriOrderId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 53;</code>
     */
    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 = 53;</code>
     */
    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 = 53;</code>
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 53;</code>
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 53;</code>
     */
    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 hisClinicCode_ = "";
    /**
     * <code>string hisClinicCode = 54;</code>
     */
    public java.lang.String getHisClinicCode() {
      java.lang.Object ref = hisClinicCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisClinicCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisClinicCode = 54;</code>
     */
    public com.google.protobuf.ByteString
        getHisClinicCodeBytes() {
      java.lang.Object ref = hisClinicCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisClinicCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisClinicCode = 54;</code>
     */
    public Builder setHisClinicCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisClinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisClinicCode = 54;</code>
     */
    public Builder clearHisClinicCode() {
      
      hisClinicCode_ = getDefaultInstance().getHisClinicCode();
      onChanged();
      return this;
    }
    /**
     * <code>string hisClinicCode = 54;</code>
     */
    public Builder setHisClinicCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisClinicCode_ = value;
      onChanged();
      return this;
    }

    private int cancelStatus_ ;
    /**
     * <code>int32 cancelStatus = 55;</code>
     */
    public int getCancelStatus() {
      return cancelStatus_;
    }
    /**
     * <code>int32 cancelStatus = 55;</code>
     */
    public Builder setCancelStatus(int value) {
      
      cancelStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 cancelStatus = 55;</code>
     */
    public Builder clearCancelStatus() {
      
      cancelStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object cancelRemark_ = "";
    /**
     * <code>string cancelRemark = 56;</code>
     */
    public java.lang.String getCancelRemark() {
      java.lang.Object ref = cancelRemark_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cancelRemark_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string cancelRemark = 56;</code>
     */
    public com.google.protobuf.ByteString
        getCancelRemarkBytes() {
      java.lang.Object ref = cancelRemark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cancelRemark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string cancelRemark = 56;</code>
     */
    public Builder setCancelRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cancelRemark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string cancelRemark = 56;</code>
     */
    public Builder clearCancelRemark() {
      
      cancelRemark_ = getDefaultInstance().getCancelRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string cancelRemark = 56;</code>
     */
    public Builder setCancelRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cancelRemark_ = value;
      onChanged();
      return this;
    }

    private int patientAgeInt_ ;
    /**
     * <code>int32 patientAgeInt = 57;</code>
     */
    public int getPatientAgeInt() {
      return patientAgeInt_;
    }
    /**
     * <code>int32 patientAgeInt = 57;</code>
     */
    public Builder setPatientAgeInt(int value) {
      
      patientAgeInt_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAgeInt = 57;</code>
     */
    public Builder clearPatientAgeInt() {
      
      patientAgeInt_ = 0;
      onChanged();
      return this;
    }

    private int patientSexInt_ ;
    /**
     * <code>int32 patientSexInt = 58;</code>
     */
    public int getPatientSexInt() {
      return patientSexInt_;
    }
    /**
     * <code>int32 patientSexInt = 58;</code>
     */
    public Builder setPatientSexInt(int value) {
      
      patientSexInt_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSexInt = 58;</code>
     */
    public Builder clearPatientSexInt() {
      
      patientSexInt_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object icdCodes_ = "";
    /**
     * <code>string icdCodes = 59;</code>
     */
    public java.lang.String getIcdCodes() {
      java.lang.Object ref = icdCodes_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        icdCodes_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string icdCodes = 59;</code>
     */
    public com.google.protobuf.ByteString
        getIcdCodesBytes() {
      java.lang.Object ref = icdCodes_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        icdCodes_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string icdCodes = 59;</code>
     */
    public Builder setIcdCodes(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      icdCodes_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string icdCodes = 59;</code>
     */
    public Builder clearIcdCodes() {
      
      icdCodes_ = getDefaultInstance().getIcdCodes();
      onChanged();
      return this;
    }
    /**
     * <code>string icdCodes = 59;</code>
     */
    public Builder setIcdCodesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      icdCodes_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientAddress_ = "";
    /**
     * <code>string patientAddress = 60;</code>
     */
    public java.lang.String getPatientAddress() {
      java.lang.Object ref = patientAddress_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientAddress_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientAddress = 60;</code>
     */
    public com.google.protobuf.ByteString
        getPatientAddressBytes() {
      java.lang.Object ref = patientAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientAddress = 60;</code>
     */
    public Builder setPatientAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientAddress_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientAddress = 60;</code>
     */
    public Builder clearPatientAddress() {
      
      patientAddress_ = getDefaultInstance().getPatientAddress();
      onChanged();
      return this;
    }
    /**
     * <code>string patientAddress = 60;</code>
     */
    public Builder setPatientAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientAddress_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object remarks_ = "";
    /**
     * <code>string remarks = 61;</code>
     */
    public java.lang.String getRemarks() {
      java.lang.Object ref = remarks_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        remarks_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string remarks = 61;</code>
     */
    public com.google.protobuf.ByteString
        getRemarksBytes() {
      java.lang.Object ref = remarks_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        remarks_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string remarks = 61;</code>
     */
    public Builder setRemarks(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remarks_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remarks = 61;</code>
     */
    public Builder clearRemarks() {
      
      remarks_ = getDefaultInstance().getRemarks();
      onChanged();
      return this;
    }
    /**
     * <code>string remarks = 61;</code>
     */
    public Builder setRemarksBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remarks_ = value;
      onChanged();
      return this;
    }

    private boolean addressModified_ ;
    /**
     * <pre>
     * 是否已修改过配送地址
     * </pre>
     *
     * <code>bool addressModified = 62;</code>
     */
    public boolean getAddressModified() {
      return addressModified_;
    }
    /**
     * <pre>
     * 是否已修改过配送地址
     * </pre>
     *
     * <code>bool addressModified = 62;</code>
     */
    public Builder setAddressModified(boolean value) {
      
      addressModified_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 是否已修改过配送地址
     * </pre>
     *
     * <code>bool addressModified = 62;</code>
     */
    public Builder clearAddressModified() {
      
      addressModified_ = false;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.drug.PrescriptionInfo)
  }

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

  public static com.ywt.gapi.drug.PrescriptionInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.drug.PrescriptionInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

