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

package com.ywt.gapi.medicalrecord;

/**
 * <pre>
 *病历详情
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.medicalrecord.MedicalRecord}
 */
public final class MedicalRecord extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.medicalrecord.MedicalRecord)
    MedicalRecordOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MedicalRecord.newBuilder() to construct.
  private MedicalRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MedicalRecord() {
    typeName_ = "";
    desc_ = "";
    imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    mobile_ = "";
    patientName_ = "";
    admTime_ = "";
    hospitalName_ = "";
    doctorName_ = "";
    selfReport_ = "";
    phyExam_ = "";
    diagnose_ = "";
    suggestion_ = "";
    advice_ = "";
    laboratoryReport_ = java.util.Collections.emptyList();
    inspectionReport_ = java.util.Collections.emptyList();
    presentHistory_ = "";
    pastHistory_ = "";
    allergicHistory_ = "";
    personalHistory_ = "";
    bodyTemperature_ = "";
    accessoryExamination_ = "";
    specialCondition_ = "";
    single_ = "";
    disposition_ = "";
    treatmentCase_ = "";
    treatmentStatus_ = "";
    diseaseTime_ = "";
    diseaseEvaluation_ = "";
    icdCode_ = "";
    management_ = "";
    doctorTitle_ = "";
    clinicCode_ = "";
  }

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

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

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

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

            desc_ = s;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              imageUrl_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            imageUrl_.add(s);
            break;
          }
          case 40: {

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

            patientId_ = input.readInt32();
            break;
          }
          case 56: {

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

            mobile_ = s;
            break;
          }
          case 72: {

            age_ = input.readInt32();
            break;
          }
          case 80: {

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

            patientName_ = s;
            break;
          }
          case 96: {

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

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

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

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

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

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

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

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

            advice_ = s;
            break;
          }
          case 170: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              laboratoryReport_ = new java.util.ArrayList<com.ywt.gapi.medicalrecord.LaboratoryReport>();
              mutable_bitField0_ |= 0x00000002;
            }
            laboratoryReport_.add(
                input.readMessage(com.ywt.gapi.medicalrecord.LaboratoryReport.parser(), extensionRegistry));
            break;
          }
          case 178: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              inspectionReport_ = new java.util.ArrayList<com.ywt.gapi.medicalrecord.InspectionReport>();
              mutable_bitField0_ |= 0x00000004;
            }
            inspectionReport_.add(
                input.readMessage(com.ywt.gapi.medicalrecord.InspectionReport.parser(), extensionRegistry));
            break;
          }
          case 186: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            clinicCode_ = s;
            break;
          }
          case 320: {

            hospitalId_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        imageUrl_ = imageUrl_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        laboratoryReport_ = java.util.Collections.unmodifiableList(laboratoryReport_);
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        inspectionReport_ = java.util.Collections.unmodifiableList(inspectionReport_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.medicalrecord.MedicalrecordProto.internal_static_com_ywt_gapi_medicalrecord_MedicalRecord_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.medicalrecord.MedicalrecordProto.internal_static_com_ywt_gapi_medicalrecord_MedicalRecord_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.medicalrecord.MedicalRecord.class, com.ywt.gapi.medicalrecord.MedicalRecord.Builder.class);
  }

  public static final int RECORDID_FIELD_NUMBER = 1;
  private int recordId_;
  /**
   * <pre>
   *主键
   * </pre>
   *
   * <code>int32 recordId = 1;</code>
   * @return The recordId.
   */
  @java.lang.Override
  public int getRecordId() {
    return recordId_;
  }

  public static final int TYPENAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object typeName_;
  /**
   * <code>string typeName = 2;</code>
   * @return The typeName.
   */
  @java.lang.Override
  public java.lang.String getTypeName() {
    java.lang.Object ref = typeName_;
    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();
      typeName_ = s;
      return s;
    }
  }
  /**
   * <code>string typeName = 2;</code>
   * @return The bytes for typeName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTypeNameBytes() {
    java.lang.Object ref = typeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      typeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESC_FIELD_NUMBER = 3;
  private volatile java.lang.Object desc_;
  /**
   * <code>string desc = 3;</code>
   * @return The desc.
   */
  @java.lang.Override
  public java.lang.String getDesc() {
    java.lang.Object ref = desc_;
    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();
      desc_ = s;
      return s;
    }
  }
  /**
   * <code>string desc = 3;</code>
   * @return The bytes for desc.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDescBytes() {
    java.lang.Object ref = desc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      desc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IMAGEURL_FIELD_NUMBER = 4;
  private com.google.protobuf.LazyStringList imageUrl_;
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   * @return A list containing the imageUrl.
   */
  public com.google.protobuf.ProtocolStringList
      getImageUrlList() {
    return imageUrl_;
  }
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   * @return The count of imageUrl.
   */
  public int getImageUrlCount() {
    return imageUrl_.size();
  }
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   * @param index The index of the element to return.
   * @return The imageUrl at the given index.
   */
  public java.lang.String getImageUrl(int index) {
    return imageUrl_.get(index);
  }
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   * @param index The index of the value to return.
   * @return The bytes of the imageUrl at the given index.
   */
  public com.google.protobuf.ByteString
      getImageUrlBytes(int index) {
    return imageUrl_.getByteString(index);
  }

  public static final int DOCTORID_FIELD_NUMBER = 5;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 5;</code>
   * @return The doctorId.
   */
  @java.lang.Override
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int PATIENTID_FIELD_NUMBER = 6;
  private int patientId_;
  /**
   * <code>int32 patientId = 6;</code>
   * @return The patientId.
   */
  @java.lang.Override
  public int getPatientId() {
    return patientId_;
  }

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

  public static final int MOBILE_FIELD_NUMBER = 8;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 8;</code>
   * @return The mobile.
   */
  @java.lang.Override
  public java.lang.String getMobile() {
    java.lang.Object ref = mobile_;
    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();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <code>string mobile = 8;</code>
   * @return The bytes for mobile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMobileBytes() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AGE_FIELD_NUMBER = 9;
  private int age_;
  /**
   * <code>int32 age = 9;</code>
   * @return The age.
   */
  @java.lang.Override
  public int getAge() {
    return age_;
  }

  public static final int SEX_FIELD_NUMBER = 10;
  private int sex_;
  /**
   * <code>int32 sex = 10;</code>
   * @return The sex.
   */
  @java.lang.Override
  public int getSex() {
    return sex_;
  }

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

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

  public static final int ADMTIME_FIELD_NUMBER = 13;
  private volatile java.lang.Object admTime_;
  /**
   * <pre>
   *患者入院日期
   * </pre>
   *
   * <code>string admTime = 13;</code>
   * @return The admTime.
   */
  @java.lang.Override
  public java.lang.String getAdmTime() {
    java.lang.Object ref = admTime_;
    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();
      admTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者入院日期
   * </pre>
   *
   * <code>string admTime = 13;</code>
   * @return The bytes for admTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdmTimeBytes() {
    java.lang.Object ref = admTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

  public static final int SELFREPORT_FIELD_NUMBER = 16;
  private volatile java.lang.Object selfReport_;
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string selfReport = 16;</code>
   * @return The selfReport.
   */
  @java.lang.Override
  public java.lang.String getSelfReport() {
    java.lang.Object ref = selfReport_;
    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();
      selfReport_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string selfReport = 16;</code>
   * @return The bytes for selfReport.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSelfReportBytes() {
    java.lang.Object ref = selfReport_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      selfReport_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PHYEXAM_FIELD_NUMBER = 17;
  private volatile java.lang.Object phyExam_;
  /**
   * <pre>
   *体格检查
   * </pre>
   *
   * <code>string phyExam = 17;</code>
   * @return The phyExam.
   */
  @java.lang.Override
  public java.lang.String getPhyExam() {
    java.lang.Object ref = phyExam_;
    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();
      phyExam_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *体格检查
   * </pre>
   *
   * <code>string phyExam = 17;</code>
   * @return The bytes for phyExam.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPhyExamBytes() {
    java.lang.Object ref = phyExam_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      phyExam_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSE_FIELD_NUMBER = 18;
  private volatile java.lang.Object diagnose_;
  /**
   * <pre>
   *诊断结果
   * </pre>
   *
   * <code>string diagnose = 18;</code>
   * @return The diagnose.
   */
  @java.lang.Override
  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;
    }
  }
  /**
   * <pre>
   *诊断结果
   * </pre>
   *
   * <code>string diagnose = 18;</code>
   * @return The bytes for diagnose.
   */
  @java.lang.Override
  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 SUGGESTION_FIELD_NUMBER = 19;
  private volatile java.lang.Object suggestion_;
  /**
   * <pre>
   *意见
   * </pre>
   *
   * <code>string suggestion = 19;</code>
   * @return The suggestion.
   */
  @java.lang.Override
  public java.lang.String getSuggestion() {
    java.lang.Object ref = suggestion_;
    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();
      suggestion_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *意见
   * </pre>
   *
   * <code>string suggestion = 19;</code>
   * @return The bytes for suggestion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSuggestionBytes() {
    java.lang.Object ref = suggestion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      suggestion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADVICE_FIELD_NUMBER = 20;
  private volatile java.lang.Object advice_;
  /**
   * <pre>
   *门急诊医嘱
   * </pre>
   *
   * <code>string advice = 20;</code>
   * @return The advice.
   */
  @java.lang.Override
  public java.lang.String getAdvice() {
    java.lang.Object ref = advice_;
    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();
      advice_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门急诊医嘱
   * </pre>
   *
   * <code>string advice = 20;</code>
   * @return The bytes for advice.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdviceBytes() {
    java.lang.Object ref = advice_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      advice_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LABORATORYREPORT_FIELD_NUMBER = 21;
  private java.util.List<com.ywt.gapi.medicalrecord.LaboratoryReport> laboratoryReport_;
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.medicalrecord.LaboratoryReport> getLaboratoryReportList() {
    return laboratoryReport_;
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder> 
      getLaboratoryReportOrBuilderList() {
    return laboratoryReport_;
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
   */
  @java.lang.Override
  public int getLaboratoryReportCount() {
    return laboratoryReport_.size();
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.medicalrecord.LaboratoryReport getLaboratoryReport(int index) {
    return laboratoryReport_.get(index);
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder getLaboratoryReportOrBuilder(
      int index) {
    return laboratoryReport_.get(index);
  }

  public static final int INSPECTIONREPORT_FIELD_NUMBER = 22;
  private java.util.List<com.ywt.gapi.medicalrecord.InspectionReport> inspectionReport_;
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.medicalrecord.InspectionReport> getInspectionReportList() {
    return inspectionReport_;
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.medicalrecord.InspectionReportOrBuilder> 
      getInspectionReportOrBuilderList() {
    return inspectionReport_;
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
   */
  @java.lang.Override
  public int getInspectionReportCount() {
    return inspectionReport_.size();
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.medicalrecord.InspectionReport getInspectionReport(int index) {
    return inspectionReport_.get(index);
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.medicalrecord.InspectionReportOrBuilder getInspectionReportOrBuilder(
      int index) {
    return inspectionReport_.get(index);
  }

  public static final int PRESENTHISTORY_FIELD_NUMBER = 23;
  private volatile java.lang.Object presentHistory_;
  /**
   * <pre>
   *现病史
   * </pre>
   *
   * <code>string presentHistory = 23;</code>
   * @return The presentHistory.
   */
  @java.lang.Override
  public java.lang.String getPresentHistory() {
    java.lang.Object ref = presentHistory_;
    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();
      presentHistory_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *现病史
   * </pre>
   *
   * <code>string presentHistory = 23;</code>
   * @return The bytes for presentHistory.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPresentHistoryBytes() {
    java.lang.Object ref = presentHistory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      presentHistory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PASTHISTORY_FIELD_NUMBER = 24;
  private volatile java.lang.Object pastHistory_;
  /**
   * <pre>
   *既往史
   * </pre>
   *
   * <code>string pastHistory = 24;</code>
   * @return The pastHistory.
   */
  @java.lang.Override
  public java.lang.String getPastHistory() {
    java.lang.Object ref = pastHistory_;
    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();
      pastHistory_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *既往史
   * </pre>
   *
   * <code>string pastHistory = 24;</code>
   * @return The bytes for pastHistory.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPastHistoryBytes() {
    java.lang.Object ref = pastHistory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pastHistory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ALLERGICHISTORY_FIELD_NUMBER = 25;
  private volatile java.lang.Object allergicHistory_;
  /**
   * <pre>
   *过敏史
   * </pre>
   *
   * <code>string allergicHistory = 25;</code>
   * @return The allergicHistory.
   */
  @java.lang.Override
  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 = 25;</code>
   * @return The bytes for allergicHistory.
   */
  @java.lang.Override
  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 PERSONALHISTORY_FIELD_NUMBER = 26;
  private volatile java.lang.Object personalHistory_;
  /**
   * <pre>
   *个人史
   * </pre>
   *
   * <code>string personalHistory = 26;</code>
   * @return The personalHistory.
   */
  @java.lang.Override
  public java.lang.String getPersonalHistory() {
    java.lang.Object ref = personalHistory_;
    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();
      personalHistory_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *个人史
   * </pre>
   *
   * <code>string personalHistory = 26;</code>
   * @return The bytes for personalHistory.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPersonalHistoryBytes() {
    java.lang.Object ref = personalHistory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      personalHistory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BODYTEMPERATURE_FIELD_NUMBER = 27;
  private volatile java.lang.Object bodyTemperature_;
  /**
   * <pre>
   *病人体温
   * </pre>
   *
   * <code>string bodyTemperature = 27;</code>
   * @return The bodyTemperature.
   */
  @java.lang.Override
  public java.lang.String getBodyTemperature() {
    java.lang.Object ref = bodyTemperature_;
    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();
      bodyTemperature_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *病人体温
   * </pre>
   *
   * <code>string bodyTemperature = 27;</code>
   * @return The bytes for bodyTemperature.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBodyTemperatureBytes() {
    java.lang.Object ref = bodyTemperature_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      bodyTemperature_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACCESSORYEXAMINATION_FIELD_NUMBER = 28;
  private volatile java.lang.Object accessoryExamination_;
  /**
   * <pre>
   *辅助检查
   * </pre>
   *
   * <code>string accessoryExamination = 28;</code>
   * @return The accessoryExamination.
   */
  @java.lang.Override
  public java.lang.String getAccessoryExamination() {
    java.lang.Object ref = accessoryExamination_;
    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();
      accessoryExamination_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *辅助检查
   * </pre>
   *
   * <code>string accessoryExamination = 28;</code>
   * @return The bytes for accessoryExamination.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAccessoryExaminationBytes() {
    java.lang.Object ref = accessoryExamination_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      accessoryExamination_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SPECIALCONDITION_FIELD_NUMBER = 29;
  private volatile java.lang.Object specialCondition_;
  /**
   * <pre>
   *专科情况
   * </pre>
   *
   * <code>string specialCondition = 29;</code>
   * @return The specialCondition.
   */
  @java.lang.Override
  public java.lang.String getSpecialCondition() {
    java.lang.Object ref = specialCondition_;
    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();
      specialCondition_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *专科情况
   * </pre>
   *
   * <code>string specialCondition = 29;</code>
   * @return The bytes for specialCondition.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSpecialConditionBytes() {
    java.lang.Object ref = specialCondition_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      specialCondition_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SINGLE_FIELD_NUMBER = 30;
  private volatile java.lang.Object single_;
  /**
   * <pre>
   *单病种，1-是，0-否
   * </pre>
   *
   * <code>string single = 30;</code>
   * @return The single.
   */
  @java.lang.Override
  public java.lang.String getSingle() {
    java.lang.Object ref = single_;
    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();
      single_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *单病种，1-是，0-否
   * </pre>
   *
   * <code>string single = 30;</code>
   * @return The bytes for single.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSingleBytes() {
    java.lang.Object ref = single_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      single_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPOSITION_FIELD_NUMBER = 31;
  private volatile java.lang.Object disposition_;
  /**
   * <pre>
   *病人去向
   * </pre>
   *
   * <code>string disposition = 31;</code>
   * @return The disposition.
   */
  @java.lang.Override
  public java.lang.String getDisposition() {
    java.lang.Object ref = disposition_;
    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();
      disposition_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *病人去向
   * </pre>
   *
   * <code>string disposition = 31;</code>
   * @return The bytes for disposition.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDispositionBytes() {
    java.lang.Object ref = disposition_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      disposition_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TREATMENTCASE_FIELD_NUMBER = 32;
  private volatile java.lang.Object treatmentCase_;
  /**
   * <pre>
   *抢救病人
   * </pre>
   *
   * <code>string treatmentCase = 32;</code>
   * @return The treatmentCase.
   */
  @java.lang.Override
  public java.lang.String getTreatmentCase() {
    java.lang.Object ref = treatmentCase_;
    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();
      treatmentCase_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *抢救病人
   * </pre>
   *
   * <code>string treatmentCase = 32;</code>
   * @return The bytes for treatmentCase.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTreatmentCaseBytes() {
    java.lang.Object ref = treatmentCase_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      treatmentCase_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TREATMENTSTATUS_FIELD_NUMBER = 33;
  private volatile java.lang.Object treatmentStatus_;
  /**
   * <pre>
   *是否抢救成功
   * </pre>
   *
   * <code>string treatmentStatus = 33;</code>
   * @return The treatmentStatus.
   */
  @java.lang.Override
  public java.lang.String getTreatmentStatus() {
    java.lang.Object ref = treatmentStatus_;
    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();
      treatmentStatus_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *是否抢救成功
   * </pre>
   *
   * <code>string treatmentStatus = 33;</code>
   * @return The bytes for treatmentStatus.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTreatmentStatusBytes() {
    java.lang.Object ref = treatmentStatus_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      treatmentStatus_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISEASETIME_FIELD_NUMBER = 34;
  private volatile java.lang.Object diseaseTime_;
  /**
   * <pre>
   *发病时间
   * </pre>
   *
   * <code>string diseaseTime = 34;</code>
   * @return The diseaseTime.
   */
  @java.lang.Override
  public java.lang.String getDiseaseTime() {
    java.lang.Object ref = diseaseTime_;
    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();
      diseaseTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *发病时间
   * </pre>
   *
   * <code>string diseaseTime = 34;</code>
   * @return The bytes for diseaseTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDiseaseTimeBytes() {
    java.lang.Object ref = diseaseTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diseaseTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISEASEEVALUATION_FIELD_NUMBER = 35;
  private volatile java.lang.Object diseaseEvaluation_;
  /**
   * <pre>
   *病情评估
   * </pre>
   *
   * <code>string diseaseEvaluation = 35;</code>
   * @return The diseaseEvaluation.
   */
  @java.lang.Override
  public java.lang.String getDiseaseEvaluation() {
    java.lang.Object ref = diseaseEvaluation_;
    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();
      diseaseEvaluation_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *病情评估
   * </pre>
   *
   * <code>string diseaseEvaluation = 35;</code>
   * @return The bytes for diseaseEvaluation.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDiseaseEvaluationBytes() {
    java.lang.Object ref = diseaseEvaluation_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diseaseEvaluation_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ICDCODE_FIELD_NUMBER = 36;
  private volatile java.lang.Object icdCode_;
  /**
   * <pre>
   *ICD编码
   * </pre>
   *
   * <code>string icdCode = 36;</code>
   * @return The icdCode.
   */
  @java.lang.Override
  public java.lang.String getIcdCode() {
    java.lang.Object ref = icdCode_;
    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();
      icdCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *ICD编码
   * </pre>
   *
   * <code>string icdCode = 36;</code>
   * @return The bytes for icdCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIcdCodeBytes() {
    java.lang.Object ref = icdCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      icdCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MANAGEMENT_FIELD_NUMBER = 37;
  private volatile java.lang.Object management_;
  /**
   * <pre>
   *处置
   * </pre>
   *
   * <code>string management = 37;</code>
   * @return The management.
   */
  @java.lang.Override
  public java.lang.String getManagement() {
    java.lang.Object ref = management_;
    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();
      management_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *处置
   * </pre>
   *
   * <code>string management = 37;</code>
   * @return The bytes for management.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getManagementBytes() {
    java.lang.Object ref = management_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      management_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORTITLE_FIELD_NUMBER = 38;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 38;</code>
   * @return The doctorTitle.
   */
  @java.lang.Override
  public java.lang.String getDoctorTitle() {
    java.lang.Object ref = doctorTitle_;
    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();
      doctorTitle_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 38;</code>
   * @return The bytes for doctorTitle.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorTitleBytes() {
    java.lang.Object ref = doctorTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CLINICCODE_FIELD_NUMBER = 39;
  private volatile java.lang.Object clinicCode_;
  /**
   * <pre>
   *就诊流水号
   * </pre>
   *
   * <code>string clinicCode = 39;</code>
   * @return The clinicCode.
   */
  @java.lang.Override
  public java.lang.String getClinicCode() {
    java.lang.Object ref = clinicCode_;
    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();
      clinicCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊流水号
   * </pre>
   *
   * <code>string clinicCode = 39;</code>
   * @return The bytes for clinicCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClinicCodeBytes() {
    java.lang.Object ref = clinicCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (recordId_ != 0) {
      output.writeInt32(1, recordId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, desc_);
    }
    for (int i = 0; i < imageUrl_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, imageUrl_.getRaw(i));
    }
    if (doctorId_ != 0) {
      output.writeInt32(5, doctorId_);
    }
    if (patientId_ != 0) {
      output.writeInt32(6, patientId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(7, createTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mobile_);
    }
    if (age_ != 0) {
      output.writeInt32(9, age_);
    }
    if (sex_ != 0) {
      output.writeInt32(10, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, patientName_);
    }
    if (userId_ != 0) {
      output.writeInt32(12, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, admTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfReport_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, selfReport_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phyExam_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, phyExam_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnose_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, diagnose_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, suggestion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advice_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, advice_);
    }
    for (int i = 0; i < laboratoryReport_.size(); i++) {
      output.writeMessage(21, laboratoryReport_.get(i));
    }
    for (int i = 0; i < inspectionReport_.size(); i++) {
      output.writeMessage(22, inspectionReport_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presentHistory_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, presentHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pastHistory_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, pastHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allergicHistory_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 25, allergicHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(personalHistory_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 26, personalHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bodyTemperature_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 27, bodyTemperature_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessoryExamination_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 28, accessoryExamination_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specialCondition_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 29, specialCondition_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(single_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 30, single_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(disposition_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 31, disposition_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(treatmentCase_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 32, treatmentCase_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(treatmentStatus_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 33, treatmentStatus_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diseaseTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 34, diseaseTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diseaseEvaluation_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 35, diseaseEvaluation_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icdCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 36, icdCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(management_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 37, management_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 38, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 39, clinicCode_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(40, hospitalId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (recordId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, recordId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, desc_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < imageUrl_.size(); i++) {
        dataSize += computeStringSizeNoTag(imageUrl_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getImageUrlList().size();
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, doctorId_);
    }
    if (patientId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, patientId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, createTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mobile_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, age_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, patientName_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, admTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfReport_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, selfReport_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phyExam_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, phyExam_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnose_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, diagnose_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestion_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, suggestion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advice_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, advice_);
    }
    for (int i = 0; i < laboratoryReport_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(21, laboratoryReport_.get(i));
    }
    for (int i = 0; i < inspectionReport_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(22, inspectionReport_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presentHistory_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, presentHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pastHistory_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, pastHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allergicHistory_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, allergicHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(personalHistory_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, personalHistory_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bodyTemperature_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, bodyTemperature_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessoryExamination_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, accessoryExamination_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specialCondition_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, specialCondition_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(single_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, single_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(disposition_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, disposition_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(treatmentCase_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, treatmentCase_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(treatmentStatus_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, treatmentStatus_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diseaseTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, diseaseTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diseaseEvaluation_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, diseaseEvaluation_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icdCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, icdCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(management_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, management_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(38, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, clinicCode_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(40, hospitalId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (getRecordId()
        != other.getRecordId()) return false;
    if (!getTypeName()
        .equals(other.getTypeName())) return false;
    if (!getDesc()
        .equals(other.getDesc())) return false;
    if (!getImageUrlList()
        .equals(other.getImageUrlList())) return false;
    if (getDoctorId()
        != other.getDoctorId()) return false;
    if (getPatientId()
        != other.getPatientId()) return false;
    if (getCreateTime()
        != other.getCreateTime()) return false;
    if (!getMobile()
        .equals(other.getMobile())) return false;
    if (getAge()
        != other.getAge()) return false;
    if (getSex()
        != other.getSex()) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (!getAdmTime()
        .equals(other.getAdmTime())) return false;
    if (!getHospitalName()
        .equals(other.getHospitalName())) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (!getSelfReport()
        .equals(other.getSelfReport())) return false;
    if (!getPhyExam()
        .equals(other.getPhyExam())) return false;
    if (!getDiagnose()
        .equals(other.getDiagnose())) return false;
    if (!getSuggestion()
        .equals(other.getSuggestion())) return false;
    if (!getAdvice()
        .equals(other.getAdvice())) return false;
    if (!getLaboratoryReportList()
        .equals(other.getLaboratoryReportList())) return false;
    if (!getInspectionReportList()
        .equals(other.getInspectionReportList())) return false;
    if (!getPresentHistory()
        .equals(other.getPresentHistory())) return false;
    if (!getPastHistory()
        .equals(other.getPastHistory())) return false;
    if (!getAllergicHistory()
        .equals(other.getAllergicHistory())) return false;
    if (!getPersonalHistory()
        .equals(other.getPersonalHistory())) return false;
    if (!getBodyTemperature()
        .equals(other.getBodyTemperature())) return false;
    if (!getAccessoryExamination()
        .equals(other.getAccessoryExamination())) return false;
    if (!getSpecialCondition()
        .equals(other.getSpecialCondition())) return false;
    if (!getSingle()
        .equals(other.getSingle())) return false;
    if (!getDisposition()
        .equals(other.getDisposition())) return false;
    if (!getTreatmentCase()
        .equals(other.getTreatmentCase())) return false;
    if (!getTreatmentStatus()
        .equals(other.getTreatmentStatus())) return false;
    if (!getDiseaseTime()
        .equals(other.getDiseaseTime())) return false;
    if (!getDiseaseEvaluation()
        .equals(other.getDiseaseEvaluation())) return false;
    if (!getIcdCode()
        .equals(other.getIcdCode())) return false;
    if (!getManagement()
        .equals(other.getManagement())) return false;
    if (!getDoctorTitle()
        .equals(other.getDoctorTitle())) return false;
    if (!getClinicCode()
        .equals(other.getClinicCode())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + RECORDID_FIELD_NUMBER;
    hash = (53 * hash) + getRecordId();
    hash = (37 * hash) + TYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getTypeName().hashCode();
    hash = (37 * hash) + DESC_FIELD_NUMBER;
    hash = (53 * hash) + getDesc().hashCode();
    if (getImageUrlCount() > 0) {
      hash = (37 * hash) + IMAGEURL_FIELD_NUMBER;
      hash = (53 * hash) + getImageUrlList().hashCode();
    }
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + ADMTIME_FIELD_NUMBER;
    hash = (53 * hash) + getAdmTime().hashCode();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + SELFREPORT_FIELD_NUMBER;
    hash = (53 * hash) + getSelfReport().hashCode();
    hash = (37 * hash) + PHYEXAM_FIELD_NUMBER;
    hash = (53 * hash) + getPhyExam().hashCode();
    hash = (37 * hash) + DIAGNOSE_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnose().hashCode();
    hash = (37 * hash) + SUGGESTION_FIELD_NUMBER;
    hash = (53 * hash) + getSuggestion().hashCode();
    hash = (37 * hash) + ADVICE_FIELD_NUMBER;
    hash = (53 * hash) + getAdvice().hashCode();
    if (getLaboratoryReportCount() > 0) {
      hash = (37 * hash) + LABORATORYREPORT_FIELD_NUMBER;
      hash = (53 * hash) + getLaboratoryReportList().hashCode();
    }
    if (getInspectionReportCount() > 0) {
      hash = (37 * hash) + INSPECTIONREPORT_FIELD_NUMBER;
      hash = (53 * hash) + getInspectionReportList().hashCode();
    }
    hash = (37 * hash) + PRESENTHISTORY_FIELD_NUMBER;
    hash = (53 * hash) + getPresentHistory().hashCode();
    hash = (37 * hash) + PASTHISTORY_FIELD_NUMBER;
    hash = (53 * hash) + getPastHistory().hashCode();
    hash = (37 * hash) + ALLERGICHISTORY_FIELD_NUMBER;
    hash = (53 * hash) + getAllergicHistory().hashCode();
    hash = (37 * hash) + PERSONALHISTORY_FIELD_NUMBER;
    hash = (53 * hash) + getPersonalHistory().hashCode();
    hash = (37 * hash) + BODYTEMPERATURE_FIELD_NUMBER;
    hash = (53 * hash) + getBodyTemperature().hashCode();
    hash = (37 * hash) + ACCESSORYEXAMINATION_FIELD_NUMBER;
    hash = (53 * hash) + getAccessoryExamination().hashCode();
    hash = (37 * hash) + SPECIALCONDITION_FIELD_NUMBER;
    hash = (53 * hash) + getSpecialCondition().hashCode();
    hash = (37 * hash) + SINGLE_FIELD_NUMBER;
    hash = (53 * hash) + getSingle().hashCode();
    hash = (37 * hash) + DISPOSITION_FIELD_NUMBER;
    hash = (53 * hash) + getDisposition().hashCode();
    hash = (37 * hash) + TREATMENTCASE_FIELD_NUMBER;
    hash = (53 * hash) + getTreatmentCase().hashCode();
    hash = (37 * hash) + TREATMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getTreatmentStatus().hashCode();
    hash = (37 * hash) + DISEASETIME_FIELD_NUMBER;
    hash = (53 * hash) + getDiseaseTime().hashCode();
    hash = (37 * hash) + DISEASEEVALUATION_FIELD_NUMBER;
    hash = (53 * hash) + getDiseaseEvaluation().hashCode();
    hash = (37 * hash) + ICDCODE_FIELD_NUMBER;
    hash = (53 * hash) + getIcdCode().hashCode();
    hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getManagement().hashCode();
    hash = (37 * hash) + DOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorTitle().hashCode();
    hash = (37 * hash) + CLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getClinicCode().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *病历详情
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.medicalrecord.MedicalRecord}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.medicalrecord.MedicalRecord)
      com.ywt.gapi.medicalrecord.MedicalRecordOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.medicalrecord.MedicalrecordProto.internal_static_com_ywt_gapi_medicalrecord_MedicalRecord_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.medicalrecord.MedicalrecordProto.internal_static_com_ywt_gapi_medicalrecord_MedicalRecord_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.medicalrecord.MedicalRecord.class, com.ywt.gapi.medicalrecord.MedicalRecord.Builder.class);
    }

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

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

      typeName_ = "";

      desc_ = "";

      imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      doctorId_ = 0;

      patientId_ = 0;

      createTime_ = 0L;

      mobile_ = "";

      age_ = 0;

      sex_ = 0;

      patientName_ = "";

      userId_ = 0;

      admTime_ = "";

      hospitalName_ = "";

      doctorName_ = "";

      selfReport_ = "";

      phyExam_ = "";

      diagnose_ = "";

      suggestion_ = "";

      advice_ = "";

      if (laboratoryReportBuilder_ == null) {
        laboratoryReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        laboratoryReportBuilder_.clear();
      }
      if (inspectionReportBuilder_ == null) {
        inspectionReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        inspectionReportBuilder_.clear();
      }
      presentHistory_ = "";

      pastHistory_ = "";

      allergicHistory_ = "";

      personalHistory_ = "";

      bodyTemperature_ = "";

      accessoryExamination_ = "";

      specialCondition_ = "";

      single_ = "";

      disposition_ = "";

      treatmentCase_ = "";

      treatmentStatus_ = "";

      diseaseTime_ = "";

      diseaseEvaluation_ = "";

      icdCode_ = "";

      management_ = "";

      doctorTitle_ = "";

      clinicCode_ = "";

      hospitalId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.medicalrecord.MedicalrecordProto.internal_static_com_ywt_gapi_medicalrecord_MedicalRecord_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.medicalrecord.MedicalRecord getDefaultInstanceForType() {
      return com.ywt.gapi.medicalrecord.MedicalRecord.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.medicalrecord.MedicalRecord buildPartial() {
      com.ywt.gapi.medicalrecord.MedicalRecord result = new com.ywt.gapi.medicalrecord.MedicalRecord(this);
      int from_bitField0_ = bitField0_;
      result.recordId_ = recordId_;
      result.typeName_ = typeName_;
      result.desc_ = desc_;
      if (((bitField0_ & 0x00000001) != 0)) {
        imageUrl_ = imageUrl_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.imageUrl_ = imageUrl_;
      result.doctorId_ = doctorId_;
      result.patientId_ = patientId_;
      result.createTime_ = createTime_;
      result.mobile_ = mobile_;
      result.age_ = age_;
      result.sex_ = sex_;
      result.patientName_ = patientName_;
      result.userId_ = userId_;
      result.admTime_ = admTime_;
      result.hospitalName_ = hospitalName_;
      result.doctorName_ = doctorName_;
      result.selfReport_ = selfReport_;
      result.phyExam_ = phyExam_;
      result.diagnose_ = diagnose_;
      result.suggestion_ = suggestion_;
      result.advice_ = advice_;
      if (laboratoryReportBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          laboratoryReport_ = java.util.Collections.unmodifiableList(laboratoryReport_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.laboratoryReport_ = laboratoryReport_;
      } else {
        result.laboratoryReport_ = laboratoryReportBuilder_.build();
      }
      if (inspectionReportBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          inspectionReport_ = java.util.Collections.unmodifiableList(inspectionReport_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.inspectionReport_ = inspectionReport_;
      } else {
        result.inspectionReport_ = inspectionReportBuilder_.build();
      }
      result.presentHistory_ = presentHistory_;
      result.pastHistory_ = pastHistory_;
      result.allergicHistory_ = allergicHistory_;
      result.personalHistory_ = personalHistory_;
      result.bodyTemperature_ = bodyTemperature_;
      result.accessoryExamination_ = accessoryExamination_;
      result.specialCondition_ = specialCondition_;
      result.single_ = single_;
      result.disposition_ = disposition_;
      result.treatmentCase_ = treatmentCase_;
      result.treatmentStatus_ = treatmentStatus_;
      result.diseaseTime_ = diseaseTime_;
      result.diseaseEvaluation_ = diseaseEvaluation_;
      result.icdCode_ = icdCode_;
      result.management_ = management_;
      result.doctorTitle_ = doctorTitle_;
      result.clinicCode_ = clinicCode_;
      result.hospitalId_ = hospitalId_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.medicalrecord.MedicalRecord other) {
      if (other == com.ywt.gapi.medicalrecord.MedicalRecord.getDefaultInstance()) return this;
      if (other.getRecordId() != 0) {
        setRecordId(other.getRecordId());
      }
      if (!other.getTypeName().isEmpty()) {
        typeName_ = other.typeName_;
        onChanged();
      }
      if (!other.getDesc().isEmpty()) {
        desc_ = other.desc_;
        onChanged();
      }
      if (!other.imageUrl_.isEmpty()) {
        if (imageUrl_.isEmpty()) {
          imageUrl_ = other.imageUrl_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureImageUrlIsMutable();
          imageUrl_.addAll(other.imageUrl_);
        }
        onChanged();
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getPatientId() != 0) {
        setPatientId(other.getPatientId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getAdmTime().isEmpty()) {
        admTime_ = other.admTime_;
        onChanged();
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getSelfReport().isEmpty()) {
        selfReport_ = other.selfReport_;
        onChanged();
      }
      if (!other.getPhyExam().isEmpty()) {
        phyExam_ = other.phyExam_;
        onChanged();
      }
      if (!other.getDiagnose().isEmpty()) {
        diagnose_ = other.diagnose_;
        onChanged();
      }
      if (!other.getSuggestion().isEmpty()) {
        suggestion_ = other.suggestion_;
        onChanged();
      }
      if (!other.getAdvice().isEmpty()) {
        advice_ = other.advice_;
        onChanged();
      }
      if (laboratoryReportBuilder_ == null) {
        if (!other.laboratoryReport_.isEmpty()) {
          if (laboratoryReport_.isEmpty()) {
            laboratoryReport_ = other.laboratoryReport_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureLaboratoryReportIsMutable();
            laboratoryReport_.addAll(other.laboratoryReport_);
          }
          onChanged();
        }
      } else {
        if (!other.laboratoryReport_.isEmpty()) {
          if (laboratoryReportBuilder_.isEmpty()) {
            laboratoryReportBuilder_.dispose();
            laboratoryReportBuilder_ = null;
            laboratoryReport_ = other.laboratoryReport_;
            bitField0_ = (bitField0_ & ~0x00000002);
            laboratoryReportBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getLaboratoryReportFieldBuilder() : null;
          } else {
            laboratoryReportBuilder_.addAllMessages(other.laboratoryReport_);
          }
        }
      }
      if (inspectionReportBuilder_ == null) {
        if (!other.inspectionReport_.isEmpty()) {
          if (inspectionReport_.isEmpty()) {
            inspectionReport_ = other.inspectionReport_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureInspectionReportIsMutable();
            inspectionReport_.addAll(other.inspectionReport_);
          }
          onChanged();
        }
      } else {
        if (!other.inspectionReport_.isEmpty()) {
          if (inspectionReportBuilder_.isEmpty()) {
            inspectionReportBuilder_.dispose();
            inspectionReportBuilder_ = null;
            inspectionReport_ = other.inspectionReport_;
            bitField0_ = (bitField0_ & ~0x00000004);
            inspectionReportBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInspectionReportFieldBuilder() : null;
          } else {
            inspectionReportBuilder_.addAllMessages(other.inspectionReport_);
          }
        }
      }
      if (!other.getPresentHistory().isEmpty()) {
        presentHistory_ = other.presentHistory_;
        onChanged();
      }
      if (!other.getPastHistory().isEmpty()) {
        pastHistory_ = other.pastHistory_;
        onChanged();
      }
      if (!other.getAllergicHistory().isEmpty()) {
        allergicHistory_ = other.allergicHistory_;
        onChanged();
      }
      if (!other.getPersonalHistory().isEmpty()) {
        personalHistory_ = other.personalHistory_;
        onChanged();
      }
      if (!other.getBodyTemperature().isEmpty()) {
        bodyTemperature_ = other.bodyTemperature_;
        onChanged();
      }
      if (!other.getAccessoryExamination().isEmpty()) {
        accessoryExamination_ = other.accessoryExamination_;
        onChanged();
      }
      if (!other.getSpecialCondition().isEmpty()) {
        specialCondition_ = other.specialCondition_;
        onChanged();
      }
      if (!other.getSingle().isEmpty()) {
        single_ = other.single_;
        onChanged();
      }
      if (!other.getDisposition().isEmpty()) {
        disposition_ = other.disposition_;
        onChanged();
      }
      if (!other.getTreatmentCase().isEmpty()) {
        treatmentCase_ = other.treatmentCase_;
        onChanged();
      }
      if (!other.getTreatmentStatus().isEmpty()) {
        treatmentStatus_ = other.treatmentStatus_;
        onChanged();
      }
      if (!other.getDiseaseTime().isEmpty()) {
        diseaseTime_ = other.diseaseTime_;
        onChanged();
      }
      if (!other.getDiseaseEvaluation().isEmpty()) {
        diseaseEvaluation_ = other.diseaseEvaluation_;
        onChanged();
      }
      if (!other.getIcdCode().isEmpty()) {
        icdCode_ = other.icdCode_;
        onChanged();
      }
      if (!other.getManagement().isEmpty()) {
        management_ = other.management_;
        onChanged();
      }
      if (!other.getDoctorTitle().isEmpty()) {
        doctorTitle_ = other.doctorTitle_;
        onChanged();
      }
      if (!other.getClinicCode().isEmpty()) {
        clinicCode_ = other.clinicCode_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private int recordId_ ;
    /**
     * <pre>
     *主键
     * </pre>
     *
     * <code>int32 recordId = 1;</code>
     * @return The recordId.
     */
    @java.lang.Override
    public int getRecordId() {
      return recordId_;
    }
    /**
     * <pre>
     *主键
     * </pre>
     *
     * <code>int32 recordId = 1;</code>
     * @param value The recordId to set.
     * @return This builder for chaining.
     */
    public Builder setRecordId(int value) {
      
      recordId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主键
     * </pre>
     *
     * <code>int32 recordId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearRecordId() {
      
      recordId_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object desc_ = "";
    /**
     * <code>string desc = 3;</code>
     * @return The desc.
     */
    public java.lang.String getDesc() {
      java.lang.Object ref = desc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        desc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string desc = 3;</code>
     * @return The bytes for desc.
     */
    public com.google.protobuf.ByteString
        getDescBytes() {
      java.lang.Object ref = desc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        desc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string desc = 3;</code>
     * @param value The desc to set.
     * @return This builder for chaining.
     */
    public Builder setDesc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      desc_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string desc = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDesc() {
      
      desc_ = getDefaultInstance().getDesc();
      onChanged();
      return this;
    }
    /**
     * <code>string desc = 3;</code>
     * @param value The bytes for desc to set.
     * @return This builder for chaining.
     */
    public Builder setDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      desc_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureImageUrlIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        imageUrl_ = new com.google.protobuf.LazyStringArrayList(imageUrl_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @return A list containing the imageUrl.
     */
    public com.google.protobuf.ProtocolStringList
        getImageUrlList() {
      return imageUrl_.getUnmodifiableView();
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @return The count of imageUrl.
     */
    public int getImageUrlCount() {
      return imageUrl_.size();
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @param index The index of the element to return.
     * @return The imageUrl at the given index.
     */
    public java.lang.String getImageUrl(int index) {
      return imageUrl_.get(index);
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @param index The index of the value to return.
     * @return The bytes of the imageUrl at the given index.
     */
    public com.google.protobuf.ByteString
        getImageUrlBytes(int index) {
      return imageUrl_.getByteString(index);
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @param index The index to set the value at.
     * @param value The imageUrl to set.
     * @return This builder for chaining.
     */
    public Builder setImageUrl(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureImageUrlIsMutable();
      imageUrl_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @param value The imageUrl to add.
     * @return This builder for chaining.
     */
    public Builder addImageUrl(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureImageUrlIsMutable();
      imageUrl_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @param values The imageUrl to add.
     * @return This builder for chaining.
     */
    public Builder addAllImageUrl(
        java.lang.Iterable<java.lang.String> values) {
      ensureImageUrlIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, imageUrl_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearImageUrl() {
      imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     * @param value The bytes of the imageUrl to add.
     * @return This builder for chaining.
     */
    public Builder addImageUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureImageUrlIsMutable();
      imageUrl_.add(value);
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <code>int32 doctorId = 5;</code>
     * @return The doctorId.
     */
    @java.lang.Override
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <code>int32 doctorId = 5;</code>
     * @param value The doctorId to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorId = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int patientId_ ;
    /**
     * <code>int32 patientId = 6;</code>
     * @return The patientId.
     */
    @java.lang.Override
    public int getPatientId() {
      return patientId_;
    }
    /**
     * <code>int32 patientId = 6;</code>
     * @param value The patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientId(int value) {
      
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientId = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientId() {
      
      patientId_ = 0;
      onChanged();
      return this;
    }

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

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

    private int age_ ;
    /**
     * <code>int32 age = 9;</code>
     * @return The age.
     */
    @java.lang.Override
    public int getAge() {
      return age_;
    }
    /**
     * <code>int32 age = 9;</code>
     * @param value The age to set.
     * @return This builder for chaining.
     */
    public Builder setAge(int value) {
      
      age_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 age = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearAge() {
      
      age_ = 0;
      onChanged();
      return this;
    }

    private int sex_ ;
    /**
     * <code>int32 sex = 10;</code>
     * @return The sex.
     */
    @java.lang.Override
    public int getSex() {
      return sex_;
    }
    /**
     * <code>int32 sex = 10;</code>
     * @param value The sex to set.
     * @return This builder for chaining.
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 sex = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object admTime_ = "";
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     * @return The admTime.
     */
    public java.lang.String getAdmTime() {
      java.lang.Object ref = admTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     * @return The bytes for admTime.
     */
    public com.google.protobuf.ByteString
        getAdmTimeBytes() {
      java.lang.Object ref = admTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     * @param value The admTime to set.
     * @return This builder for chaining.
     */
    public Builder setAdmTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdmTime() {
      
      admTime_ = getDefaultInstance().getAdmTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     * @param value The bytes for admTime to set.
     * @return This builder for chaining.
     */
    public Builder setAdmTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admTime_ = value;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object selfReport_ = "";
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     * @return The selfReport.
     */
    public java.lang.String getSelfReport() {
      java.lang.Object ref = selfReport_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        selfReport_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     * @return The bytes for selfReport.
     */
    public com.google.protobuf.ByteString
        getSelfReportBytes() {
      java.lang.Object ref = selfReport_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selfReport_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     * @param value The selfReport to set.
     * @return This builder for chaining.
     */
    public Builder setSelfReport(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      selfReport_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearSelfReport() {
      
      selfReport_ = getDefaultInstance().getSelfReport();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     * @param value The bytes for selfReport to set.
     * @return This builder for chaining.
     */
    public Builder setSelfReportBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      selfReport_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object phyExam_ = "";
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     * @return The phyExam.
     */
    public java.lang.String getPhyExam() {
      java.lang.Object ref = phyExam_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        phyExam_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     * @return The bytes for phyExam.
     */
    public com.google.protobuf.ByteString
        getPhyExamBytes() {
      java.lang.Object ref = phyExam_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        phyExam_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     * @param value The phyExam to set.
     * @return This builder for chaining.
     */
    public Builder setPhyExam(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      phyExam_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearPhyExam() {
      
      phyExam_ = getDefaultInstance().getPhyExam();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     * @param value The bytes for phyExam to set.
     * @return This builder for chaining.
     */
    public Builder setPhyExamBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      phyExam_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnose_ = "";
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     * @return The diagnose.
     */
    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;
      }
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     * @return The bytes for diagnose.
     */
    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;
      }
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     * @param value The diagnose to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     * @param value The bytes for diagnose to set.
     * @return This builder for chaining.
     */
    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 suggestion_ = "";
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     * @return The suggestion.
     */
    public java.lang.String getSuggestion() {
      java.lang.Object ref = suggestion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        suggestion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     * @return The bytes for suggestion.
     */
    public com.google.protobuf.ByteString
        getSuggestionBytes() {
      java.lang.Object ref = suggestion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        suggestion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     * @param value The suggestion to set.
     * @return This builder for chaining.
     */
    public Builder setSuggestion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      suggestion_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearSuggestion() {
      
      suggestion_ = getDefaultInstance().getSuggestion();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     * @param value The bytes for suggestion to set.
     * @return This builder for chaining.
     */
    public Builder setSuggestionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      suggestion_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object advice_ = "";
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     * @return The advice.
     */
    public java.lang.String getAdvice() {
      java.lang.Object ref = advice_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        advice_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     * @return The bytes for advice.
     */
    public com.google.protobuf.ByteString
        getAdviceBytes() {
      java.lang.Object ref = advice_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        advice_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     * @param value The advice to set.
     * @return This builder for chaining.
     */
    public Builder setAdvice(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      advice_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdvice() {
      
      advice_ = getDefaultInstance().getAdvice();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     * @param value The bytes for advice to set.
     * @return This builder for chaining.
     */
    public Builder setAdviceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      advice_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.medicalrecord.LaboratoryReport> laboratoryReport_ =
      java.util.Collections.emptyList();
    private void ensureLaboratoryReportIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        laboratoryReport_ = new java.util.ArrayList<com.ywt.gapi.medicalrecord.LaboratoryReport>(laboratoryReport_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.medicalrecord.LaboratoryReport, com.ywt.gapi.medicalrecord.LaboratoryReport.Builder, com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder> laboratoryReportBuilder_;

    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public java.util.List<com.ywt.gapi.medicalrecord.LaboratoryReport> getLaboratoryReportList() {
      if (laboratoryReportBuilder_ == null) {
        return java.util.Collections.unmodifiableList(laboratoryReport_);
      } else {
        return laboratoryReportBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public int getLaboratoryReportCount() {
      if (laboratoryReportBuilder_ == null) {
        return laboratoryReport_.size();
      } else {
        return laboratoryReportBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.medicalrecord.LaboratoryReport getLaboratoryReport(int index) {
      if (laboratoryReportBuilder_ == null) {
        return laboratoryReport_.get(index);
      } else {
        return laboratoryReportBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder setLaboratoryReport(
        int index, com.ywt.gapi.medicalrecord.LaboratoryReport value) {
      if (laboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.set(index, value);
        onChanged();
      } else {
        laboratoryReportBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder setLaboratoryReport(
        int index, com.ywt.gapi.medicalrecord.LaboratoryReport.Builder builderForValue) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.set(index, builderForValue.build());
        onChanged();
      } else {
        laboratoryReportBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(com.ywt.gapi.medicalrecord.LaboratoryReport value) {
      if (laboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(value);
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(
        int index, com.ywt.gapi.medicalrecord.LaboratoryReport value) {
      if (laboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(index, value);
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(
        com.ywt.gapi.medicalrecord.LaboratoryReport.Builder builderForValue) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(builderForValue.build());
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(
        int index, com.ywt.gapi.medicalrecord.LaboratoryReport.Builder builderForValue) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(index, builderForValue.build());
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addAllLaboratoryReport(
        java.lang.Iterable<? extends com.ywt.gapi.medicalrecord.LaboratoryReport> values) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, laboratoryReport_);
        onChanged();
      } else {
        laboratoryReportBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder clearLaboratoryReport() {
      if (laboratoryReportBuilder_ == null) {
        laboratoryReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        laboratoryReportBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder removeLaboratoryReport(int index) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.remove(index);
        onChanged();
      } else {
        laboratoryReportBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.medicalrecord.LaboratoryReport.Builder getLaboratoryReportBuilder(
        int index) {
      return getLaboratoryReportFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder getLaboratoryReportOrBuilder(
        int index) {
      if (laboratoryReportBuilder_ == null) {
        return laboratoryReport_.get(index);  } else {
        return laboratoryReportBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public java.util.List<? extends com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder> 
         getLaboratoryReportOrBuilderList() {
      if (laboratoryReportBuilder_ != null) {
        return laboratoryReportBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(laboratoryReport_);
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.medicalrecord.LaboratoryReport.Builder addLaboratoryReportBuilder() {
      return getLaboratoryReportFieldBuilder().addBuilder(
          com.ywt.gapi.medicalrecord.LaboratoryReport.getDefaultInstance());
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.medicalrecord.LaboratoryReport.Builder addLaboratoryReportBuilder(
        int index) {
      return getLaboratoryReportFieldBuilder().addBuilder(
          index, com.ywt.gapi.medicalrecord.LaboratoryReport.getDefaultInstance());
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.LaboratoryReport laboratoryReport = 21;</code>
     */
    public java.util.List<com.ywt.gapi.medicalrecord.LaboratoryReport.Builder> 
         getLaboratoryReportBuilderList() {
      return getLaboratoryReportFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.medicalrecord.LaboratoryReport, com.ywt.gapi.medicalrecord.LaboratoryReport.Builder, com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder> 
        getLaboratoryReportFieldBuilder() {
      if (laboratoryReportBuilder_ == null) {
        laboratoryReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.medicalrecord.LaboratoryReport, com.ywt.gapi.medicalrecord.LaboratoryReport.Builder, com.ywt.gapi.medicalrecord.LaboratoryReportOrBuilder>(
                laboratoryReport_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        laboratoryReport_ = null;
      }
      return laboratoryReportBuilder_;
    }

    private java.util.List<com.ywt.gapi.medicalrecord.InspectionReport> inspectionReport_ =
      java.util.Collections.emptyList();
    private void ensureInspectionReportIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        inspectionReport_ = new java.util.ArrayList<com.ywt.gapi.medicalrecord.InspectionReport>(inspectionReport_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.medicalrecord.InspectionReport, com.ywt.gapi.medicalrecord.InspectionReport.Builder, com.ywt.gapi.medicalrecord.InspectionReportOrBuilder> inspectionReportBuilder_;

    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public java.util.List<com.ywt.gapi.medicalrecord.InspectionReport> getInspectionReportList() {
      if (inspectionReportBuilder_ == null) {
        return java.util.Collections.unmodifiableList(inspectionReport_);
      } else {
        return inspectionReportBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public int getInspectionReportCount() {
      if (inspectionReportBuilder_ == null) {
        return inspectionReport_.size();
      } else {
        return inspectionReportBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.medicalrecord.InspectionReport getInspectionReport(int index) {
      if (inspectionReportBuilder_ == null) {
        return inspectionReport_.get(index);
      } else {
        return inspectionReportBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder setInspectionReport(
        int index, com.ywt.gapi.medicalrecord.InspectionReport value) {
      if (inspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInspectionReportIsMutable();
        inspectionReport_.set(index, value);
        onChanged();
      } else {
        inspectionReportBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder setInspectionReport(
        int index, com.ywt.gapi.medicalrecord.InspectionReport.Builder builderForValue) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.set(index, builderForValue.build());
        onChanged();
      } else {
        inspectionReportBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(com.ywt.gapi.medicalrecord.InspectionReport value) {
      if (inspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInspectionReportIsMutable();
        inspectionReport_.add(value);
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(
        int index, com.ywt.gapi.medicalrecord.InspectionReport value) {
      if (inspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInspectionReportIsMutable();
        inspectionReport_.add(index, value);
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(
        com.ywt.gapi.medicalrecord.InspectionReport.Builder builderForValue) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.add(builderForValue.build());
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(
        int index, com.ywt.gapi.medicalrecord.InspectionReport.Builder builderForValue) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.add(index, builderForValue.build());
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addAllInspectionReport(
        java.lang.Iterable<? extends com.ywt.gapi.medicalrecord.InspectionReport> values) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, inspectionReport_);
        onChanged();
      } else {
        inspectionReportBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder clearInspectionReport() {
      if (inspectionReportBuilder_ == null) {
        inspectionReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        inspectionReportBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public Builder removeInspectionReport(int index) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.remove(index);
        onChanged();
      } else {
        inspectionReportBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.medicalrecord.InspectionReport.Builder getInspectionReportBuilder(
        int index) {
      return getInspectionReportFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.medicalrecord.InspectionReportOrBuilder getInspectionReportOrBuilder(
        int index) {
      if (inspectionReportBuilder_ == null) {
        return inspectionReport_.get(index);  } else {
        return inspectionReportBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public java.util.List<? extends com.ywt.gapi.medicalrecord.InspectionReportOrBuilder> 
         getInspectionReportOrBuilderList() {
      if (inspectionReportBuilder_ != null) {
        return inspectionReportBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(inspectionReport_);
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.medicalrecord.InspectionReport.Builder addInspectionReportBuilder() {
      return getInspectionReportFieldBuilder().addBuilder(
          com.ywt.gapi.medicalrecord.InspectionReport.getDefaultInstance());
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.medicalrecord.InspectionReport.Builder addInspectionReportBuilder(
        int index) {
      return getInspectionReportFieldBuilder().addBuilder(
          index, com.ywt.gapi.medicalrecord.InspectionReport.getDefaultInstance());
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.medicalrecord.InspectionReport inspectionReport = 22;</code>
     */
    public java.util.List<com.ywt.gapi.medicalrecord.InspectionReport.Builder> 
         getInspectionReportBuilderList() {
      return getInspectionReportFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.medicalrecord.InspectionReport, com.ywt.gapi.medicalrecord.InspectionReport.Builder, com.ywt.gapi.medicalrecord.InspectionReportOrBuilder> 
        getInspectionReportFieldBuilder() {
      if (inspectionReportBuilder_ == null) {
        inspectionReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.medicalrecord.InspectionReport, com.ywt.gapi.medicalrecord.InspectionReport.Builder, com.ywt.gapi.medicalrecord.InspectionReportOrBuilder>(
                inspectionReport_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        inspectionReport_ = null;
      }
      return inspectionReportBuilder_;
    }

    private java.lang.Object presentHistory_ = "";
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 23;</code>
     * @return The presentHistory.
     */
    public java.lang.String getPresentHistory() {
      java.lang.Object ref = presentHistory_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        presentHistory_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 23;</code>
     * @return The bytes for presentHistory.
     */
    public com.google.protobuf.ByteString
        getPresentHistoryBytes() {
      java.lang.Object ref = presentHistory_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        presentHistory_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 23;</code>
     * @param value The presentHistory to set.
     * @return This builder for chaining.
     */
    public Builder setPresentHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      presentHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 23;</code>
     * @return This builder for chaining.
     */
    public Builder clearPresentHistory() {
      
      presentHistory_ = getDefaultInstance().getPresentHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 23;</code>
     * @param value The bytes for presentHistory to set.
     * @return This builder for chaining.
     */
    public Builder setPresentHistoryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      presentHistory_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object pastHistory_ = "";
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 24;</code>
     * @return The pastHistory.
     */
    public java.lang.String getPastHistory() {
      java.lang.Object ref = pastHistory_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pastHistory_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 24;</code>
     * @return The bytes for pastHistory.
     */
    public com.google.protobuf.ByteString
        getPastHistoryBytes() {
      java.lang.Object ref = pastHistory_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pastHistory_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 24;</code>
     * @param value The pastHistory to set.
     * @return This builder for chaining.
     */
    public Builder setPastHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pastHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 24;</code>
     * @return This builder for chaining.
     */
    public Builder clearPastHistory() {
      
      pastHistory_ = getDefaultInstance().getPastHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 24;</code>
     * @param value The bytes for pastHistory to set.
     * @return This builder for chaining.
     */
    public Builder setPastHistoryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pastHistory_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object allergicHistory_ = "";
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 25;</code>
     * @return The allergicHistory.
     */
    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 = 25;</code>
     * @return The bytes for allergicHistory.
     */
    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 = 25;</code>
     * @param value The allergicHistory to set.
     * @return This builder for chaining.
     */
    public Builder setAllergicHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      allergicHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 25;</code>
     * @return This builder for chaining.
     */
    public Builder clearAllergicHistory() {
      
      allergicHistory_ = getDefaultInstance().getAllergicHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 25;</code>
     * @param value The bytes for allergicHistory to set.
     * @return This builder for chaining.
     */
    public Builder setAllergicHistoryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      allergicHistory_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object personalHistory_ = "";
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 26;</code>
     * @return The personalHistory.
     */
    public java.lang.String getPersonalHistory() {
      java.lang.Object ref = personalHistory_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        personalHistory_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 26;</code>
     * @return The bytes for personalHistory.
     */
    public com.google.protobuf.ByteString
        getPersonalHistoryBytes() {
      java.lang.Object ref = personalHistory_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        personalHistory_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 26;</code>
     * @param value The personalHistory to set.
     * @return This builder for chaining.
     */
    public Builder setPersonalHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      personalHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 26;</code>
     * @return This builder for chaining.
     */
    public Builder clearPersonalHistory() {
      
      personalHistory_ = getDefaultInstance().getPersonalHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 26;</code>
     * @param value The bytes for personalHistory to set.
     * @return This builder for chaining.
     */
    public Builder setPersonalHistoryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      personalHistory_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object bodyTemperature_ = "";
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>string bodyTemperature = 27;</code>
     * @return The bodyTemperature.
     */
    public java.lang.String getBodyTemperature() {
      java.lang.Object ref = bodyTemperature_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bodyTemperature_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>string bodyTemperature = 27;</code>
     * @return The bytes for bodyTemperature.
     */
    public com.google.protobuf.ByteString
        getBodyTemperatureBytes() {
      java.lang.Object ref = bodyTemperature_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        bodyTemperature_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>string bodyTemperature = 27;</code>
     * @param value The bodyTemperature to set.
     * @return This builder for chaining.
     */
    public Builder setBodyTemperature(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      bodyTemperature_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>string bodyTemperature = 27;</code>
     * @return This builder for chaining.
     */
    public Builder clearBodyTemperature() {
      
      bodyTemperature_ = getDefaultInstance().getBodyTemperature();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>string bodyTemperature = 27;</code>
     * @param value The bytes for bodyTemperature to set.
     * @return This builder for chaining.
     */
    public Builder setBodyTemperatureBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      bodyTemperature_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object accessoryExamination_ = "";
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 28;</code>
     * @return The accessoryExamination.
     */
    public java.lang.String getAccessoryExamination() {
      java.lang.Object ref = accessoryExamination_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        accessoryExamination_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 28;</code>
     * @return The bytes for accessoryExamination.
     */
    public com.google.protobuf.ByteString
        getAccessoryExaminationBytes() {
      java.lang.Object ref = accessoryExamination_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        accessoryExamination_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 28;</code>
     * @param value The accessoryExamination to set.
     * @return This builder for chaining.
     */
    public Builder setAccessoryExamination(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      accessoryExamination_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 28;</code>
     * @return This builder for chaining.
     */
    public Builder clearAccessoryExamination() {
      
      accessoryExamination_ = getDefaultInstance().getAccessoryExamination();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 28;</code>
     * @param value The bytes for accessoryExamination to set.
     * @return This builder for chaining.
     */
    public Builder setAccessoryExaminationBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      accessoryExamination_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object specialCondition_ = "";
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 29;</code>
     * @return The specialCondition.
     */
    public java.lang.String getSpecialCondition() {
      java.lang.Object ref = specialCondition_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        specialCondition_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 29;</code>
     * @return The bytes for specialCondition.
     */
    public com.google.protobuf.ByteString
        getSpecialConditionBytes() {
      java.lang.Object ref = specialCondition_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        specialCondition_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 29;</code>
     * @param value The specialCondition to set.
     * @return This builder for chaining.
     */
    public Builder setSpecialCondition(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      specialCondition_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 29;</code>
     * @return This builder for chaining.
     */
    public Builder clearSpecialCondition() {
      
      specialCondition_ = getDefaultInstance().getSpecialCondition();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 29;</code>
     * @param value The bytes for specialCondition to set.
     * @return This builder for chaining.
     */
    public Builder setSpecialConditionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      specialCondition_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object single_ = "";
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>string single = 30;</code>
     * @return The single.
     */
    public java.lang.String getSingle() {
      java.lang.Object ref = single_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        single_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>string single = 30;</code>
     * @return The bytes for single.
     */
    public com.google.protobuf.ByteString
        getSingleBytes() {
      java.lang.Object ref = single_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        single_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>string single = 30;</code>
     * @param value The single to set.
     * @return This builder for chaining.
     */
    public Builder setSingle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      single_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>string single = 30;</code>
     * @return This builder for chaining.
     */
    public Builder clearSingle() {
      
      single_ = getDefaultInstance().getSingle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>string single = 30;</code>
     * @param value The bytes for single to set.
     * @return This builder for chaining.
     */
    public Builder setSingleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      single_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object disposition_ = "";
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>string disposition = 31;</code>
     * @return The disposition.
     */
    public java.lang.String getDisposition() {
      java.lang.Object ref = disposition_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        disposition_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>string disposition = 31;</code>
     * @return The bytes for disposition.
     */
    public com.google.protobuf.ByteString
        getDispositionBytes() {
      java.lang.Object ref = disposition_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        disposition_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>string disposition = 31;</code>
     * @param value The disposition to set.
     * @return This builder for chaining.
     */
    public Builder setDisposition(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      disposition_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>string disposition = 31;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisposition() {
      
      disposition_ = getDefaultInstance().getDisposition();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>string disposition = 31;</code>
     * @param value The bytes for disposition to set.
     * @return This builder for chaining.
     */
    public Builder setDispositionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      disposition_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object treatmentCase_ = "";
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>string treatmentCase = 32;</code>
     * @return The treatmentCase.
     */
    public java.lang.String getTreatmentCase() {
      java.lang.Object ref = treatmentCase_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        treatmentCase_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>string treatmentCase = 32;</code>
     * @return The bytes for treatmentCase.
     */
    public com.google.protobuf.ByteString
        getTreatmentCaseBytes() {
      java.lang.Object ref = treatmentCase_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        treatmentCase_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>string treatmentCase = 32;</code>
     * @param value The treatmentCase to set.
     * @return This builder for chaining.
     */
    public Builder setTreatmentCase(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      treatmentCase_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>string treatmentCase = 32;</code>
     * @return This builder for chaining.
     */
    public Builder clearTreatmentCase() {
      
      treatmentCase_ = getDefaultInstance().getTreatmentCase();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>string treatmentCase = 32;</code>
     * @param value The bytes for treatmentCase to set.
     * @return This builder for chaining.
     */
    public Builder setTreatmentCaseBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      treatmentCase_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object treatmentStatus_ = "";
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>string treatmentStatus = 33;</code>
     * @return The treatmentStatus.
     */
    public java.lang.String getTreatmentStatus() {
      java.lang.Object ref = treatmentStatus_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        treatmentStatus_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>string treatmentStatus = 33;</code>
     * @return The bytes for treatmentStatus.
     */
    public com.google.protobuf.ByteString
        getTreatmentStatusBytes() {
      java.lang.Object ref = treatmentStatus_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        treatmentStatus_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>string treatmentStatus = 33;</code>
     * @param value The treatmentStatus to set.
     * @return This builder for chaining.
     */
    public Builder setTreatmentStatus(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      treatmentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>string treatmentStatus = 33;</code>
     * @return This builder for chaining.
     */
    public Builder clearTreatmentStatus() {
      
      treatmentStatus_ = getDefaultInstance().getTreatmentStatus();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>string treatmentStatus = 33;</code>
     * @param value The bytes for treatmentStatus to set.
     * @return This builder for chaining.
     */
    public Builder setTreatmentStatusBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      treatmentStatus_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diseaseTime_ = "";
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>string diseaseTime = 34;</code>
     * @return The diseaseTime.
     */
    public java.lang.String getDiseaseTime() {
      java.lang.Object ref = diseaseTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diseaseTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>string diseaseTime = 34;</code>
     * @return The bytes for diseaseTime.
     */
    public com.google.protobuf.ByteString
        getDiseaseTimeBytes() {
      java.lang.Object ref = diseaseTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diseaseTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>string diseaseTime = 34;</code>
     * @param value The diseaseTime to set.
     * @return This builder for chaining.
     */
    public Builder setDiseaseTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diseaseTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>string diseaseTime = 34;</code>
     * @return This builder for chaining.
     */
    public Builder clearDiseaseTime() {
      
      diseaseTime_ = getDefaultInstance().getDiseaseTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>string diseaseTime = 34;</code>
     * @param value The bytes for diseaseTime to set.
     * @return This builder for chaining.
     */
    public Builder setDiseaseTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diseaseTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diseaseEvaluation_ = "";
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 35;</code>
     * @return The diseaseEvaluation.
     */
    public java.lang.String getDiseaseEvaluation() {
      java.lang.Object ref = diseaseEvaluation_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diseaseEvaluation_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 35;</code>
     * @return The bytes for diseaseEvaluation.
     */
    public com.google.protobuf.ByteString
        getDiseaseEvaluationBytes() {
      java.lang.Object ref = diseaseEvaluation_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diseaseEvaluation_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 35;</code>
     * @param value The diseaseEvaluation to set.
     * @return This builder for chaining.
     */
    public Builder setDiseaseEvaluation(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diseaseEvaluation_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 35;</code>
     * @return This builder for chaining.
     */
    public Builder clearDiseaseEvaluation() {
      
      diseaseEvaluation_ = getDefaultInstance().getDiseaseEvaluation();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 35;</code>
     * @param value The bytes for diseaseEvaluation to set.
     * @return This builder for chaining.
     */
    public Builder setDiseaseEvaluationBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diseaseEvaluation_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object icdCode_ = "";
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 36;</code>
     * @return The icdCode.
     */
    public java.lang.String getIcdCode() {
      java.lang.Object ref = icdCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        icdCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 36;</code>
     * @return The bytes for icdCode.
     */
    public com.google.protobuf.ByteString
        getIcdCodeBytes() {
      java.lang.Object ref = icdCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        icdCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 36;</code>
     * @param value The icdCode to set.
     * @return This builder for chaining.
     */
    public Builder setIcdCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      icdCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 36;</code>
     * @return This builder for chaining.
     */
    public Builder clearIcdCode() {
      
      icdCode_ = getDefaultInstance().getIcdCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 36;</code>
     * @param value The bytes for icdCode to set.
     * @return This builder for chaining.
     */
    public Builder setIcdCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      icdCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object management_ = "";
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 37;</code>
     * @return The management.
     */
    public java.lang.String getManagement() {
      java.lang.Object ref = management_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        management_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 37;</code>
     * @return The bytes for management.
     */
    public com.google.protobuf.ByteString
        getManagementBytes() {
      java.lang.Object ref = management_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        management_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 37;</code>
     * @param value The management to set.
     * @return This builder for chaining.
     */
    public Builder setManagement(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      management_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 37;</code>
     * @return This builder for chaining.
     */
    public Builder clearManagement() {
      
      management_ = getDefaultInstance().getManagement();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 37;</code>
     * @param value The bytes for management to set.
     * @return This builder for chaining.
     */
    public Builder setManagementBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      management_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorTitle_ = "";
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 38;</code>
     * @return The doctorTitle.
     */
    public java.lang.String getDoctorTitle() {
      java.lang.Object ref = doctorTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 38;</code>
     * @return The bytes for doctorTitle.
     */
    public com.google.protobuf.ByteString
        getDoctorTitleBytes() {
      java.lang.Object ref = doctorTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 38;</code>
     * @param value The doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 38;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorTitle() {
      
      doctorTitle_ = getDefaultInstance().getDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 38;</code>
     * @param value The bytes for doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorTitle_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object clinicCode_ = "";
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 39;</code>
     * @return The clinicCode.
     */
    public java.lang.String getClinicCode() {
      java.lang.Object ref = clinicCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 39;</code>
     * @return The bytes for clinicCode.
     */
    public com.google.protobuf.ByteString
        getClinicCodeBytes() {
      java.lang.Object ref = clinicCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 39;</code>
     * @param value The clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 39;</code>
     * @return This builder for chaining.
     */
    public Builder clearClinicCode() {
      
      clinicCode_ = getDefaultInstance().getClinicCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 39;</code>
     * @param value The bytes for clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicCode_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <pre>
     * 医院 id
     * </pre>
     *
     * <code>int32 hospitalId = 40;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <pre>
     * 医院 id
     * </pre>
     *
     * <code>int32 hospitalId = 40;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医院 id
     * </pre>
     *
     * <code>int32 hospitalId = 40;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.medicalrecord.MedicalRecord)
  }

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

  public static com.ywt.gapi.medicalrecord.MedicalRecord getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.medicalrecord.MedicalRecord getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

