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

package com.ywt.gapi.user;

/**
 * <pre>
 *获取病历详情Response
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse}
 */
public  final class GetMedicalRecordsDetailByIdResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse)
    GetMedicalRecordsDetailByIdResponseOrBuilder {
  // Use GetMedicalRecordsDetailByIdResponse.newBuilder() to construct.
  private GetMedicalRecordsDetailByIdResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetMedicalRecordsDetailByIdResponse() {
    patientName_ = "";
    patientSex_ = 0;
    patientAge_ = 0;
    patientMobile_ = "";
    chiefComplaint_ = "";
    presentHistory_ = "";
    pastHistory_ = "";
    allergicHistory_ = "";
    personalHistory_ = "";
    phyExam_ = "";
    bodyTemperature_ = 0D;
    specialCondition_ = "";
    accessoryExamination_ = "";
    diagnosis_ = "";
    single_ = 0;
    diseaseTime_ = 0L;
    disposition_ = 0;
    treatmentCase_ = 0;
    treatmentStatus_ = 0;
    diseaseEvaluation_ = "";
    icdCode_ = "";
    management_ = "";
    doctorName_ = "";
    deptName_ = "";
    remark_ = "";
    createTime_ = 0L;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private GetMedicalRecordsDetailByIdResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            com.ywt.gapi.Result.Builder subBuilder = null;
            if (result_ != null) {
              subBuilder = result_.toBuilder();
            }
            result_ = input.readMessage(com.ywt.gapi.Result.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(result_);
              result_ = subBuilder.buildPartial();
            }

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

            patientName_ = s;
            break;
          }
          case 24: {

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

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

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

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

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

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

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

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

            phyExam_ = s;
            break;
          }
          case 97: {

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

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

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

            diagnosis_ = s;
            break;
          }
          case 128: {

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

            diseaseTime_ = input.readInt64();
            break;
          }
          case 144: {

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

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

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

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

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

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

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

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

            remark_ = s;
            break;
          }
          case 216: {

            createTime_ = input.readInt64();
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetMedicalRecordsDetailByIdResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetMedicalRecordsDetailByIdResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse.class, com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse.Builder.class);
  }

  public static final int RESULT_FIELD_NUMBER = 1;
  private com.ywt.gapi.Result result_;
  /**
   * <code>.com.ywt.gapi.Result result = 1;</code>
   */
  public boolean hasResult() {
    return result_ != null;
  }
  /**
   * <code>.com.ywt.gapi.Result result = 1;</code>
   */
  public com.ywt.gapi.Result getResult() {
    return result_ == null ? com.ywt.gapi.Result.getDefaultInstance() : result_;
  }
  /**
   * <code>.com.ywt.gapi.Result result = 1;</code>
   */
  public com.ywt.gapi.ResultOrBuilder getResultOrBuilder() {
    return getResult();
  }

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

  public static final int PATIENTSEX_FIELD_NUMBER = 3;
  private int patientSex_;
  /**
   * <code>int32 patientSex = 3;</code>
   */
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int PATIENTAGE_FIELD_NUMBER = 4;
  private int patientAge_;
  /**
   * <code>int32 patientAge = 4;</code>
   */
  public int getPatientAge() {
    return patientAge_;
  }

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

  public static final int CHIEFCOMPLAINT_FIELD_NUMBER = 6;
  private volatile java.lang.Object chiefComplaint_;
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string chiefComplaint = 6;</code>
   */
  public java.lang.String getChiefComplaint() {
    java.lang.Object ref = chiefComplaint_;
    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();
      chiefComplaint_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string chiefComplaint = 6;</code>
   */
  public com.google.protobuf.ByteString
      getChiefComplaintBytes() {
    java.lang.Object ref = chiefComplaint_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      chiefComplaint_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRESENTHISTORY_FIELD_NUMBER = 7;
  private volatile java.lang.Object presentHistory_;
  /**
   * <pre>
   *现病史
   * </pre>
   *
   * <code>string presentHistory = 7;</code>
   */
  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 = 7;</code>
   */
  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 = 8;
  private volatile java.lang.Object pastHistory_;
  /**
   * <pre>
   *既往史
   * </pre>
   *
   * <code>string pastHistory = 8;</code>
   */
  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 = 8;</code>
   */
  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 = 9;
  private volatile java.lang.Object allergicHistory_;
  /**
   * <pre>
   *过敏史
   * </pre>
   *
   * <code>string allergicHistory = 9;</code>
   */
  public java.lang.String getAllergicHistory() {
    java.lang.Object ref = allergicHistory_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      allergicHistory_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *过敏史
   * </pre>
   *
   * <code>string allergicHistory = 9;</code>
   */
  public com.google.protobuf.ByteString
      getAllergicHistoryBytes() {
    java.lang.Object ref = allergicHistory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      allergicHistory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PERSONALHISTORY_FIELD_NUMBER = 10;
  private volatile java.lang.Object personalHistory_;
  /**
   * <pre>
   *个人史
   * </pre>
   *
   * <code>string personalHistory = 10;</code>
   */
  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 = 10;</code>
   */
  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 PHYEXAM_FIELD_NUMBER = 11;
  private volatile java.lang.Object phyExam_;
  /**
   * <pre>
   *体格检查
   * </pre>
   *
   * <code>string phyExam = 11;</code>
   */
  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 = 11;</code>
   */
  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 BODYTEMPERATURE_FIELD_NUMBER = 12;
  private double bodyTemperature_;
  /**
   * <pre>
   *病人体温
   * </pre>
   *
   * <code>double bodyTemperature = 12;</code>
   */
  public double getBodyTemperature() {
    return bodyTemperature_;
  }

  public static final int SPECIALCONDITION_FIELD_NUMBER = 13;
  private volatile java.lang.Object specialCondition_;
  /**
   * <pre>
   *专科情况
   * </pre>
   *
   * <code>string specialCondition = 13;</code>
   */
  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 = 13;</code>
   */
  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 ACCESSORYEXAMINATION_FIELD_NUMBER = 14;
  private volatile java.lang.Object accessoryExamination_;
  /**
   * <pre>
   *辅助检查
   * </pre>
   *
   * <code>string accessoryExamination = 14;</code>
   */
  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 = 14;</code>
   */
  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 DIAGNOSIS_FIELD_NUMBER = 15;
  private volatile java.lang.Object diagnosis_;
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnosis = 15;</code>
   */
  public java.lang.String getDiagnosis() {
    java.lang.Object ref = diagnosis_;
    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();
      diagnosis_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnosis = 15;</code>
   */
  public com.google.protobuf.ByteString
      getDiagnosisBytes() {
    java.lang.Object ref = diagnosis_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnosis_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SINGLE_FIELD_NUMBER = 16;
  private int single_;
  /**
   * <pre>
   *单病种，1-是，0-否
   * </pre>
   *
   * <code>int32 single = 16;</code>
   */
  public int getSingle() {
    return single_;
  }

  public static final int DISEASETIME_FIELD_NUMBER = 17;
  private long diseaseTime_;
  /**
   * <pre>
   *发病时间
   * </pre>
   *
   * <code>int64 diseaseTime = 17;</code>
   */
  public long getDiseaseTime() {
    return diseaseTime_;
  }

  public static final int DISPOSITION_FIELD_NUMBER = 18;
  private int disposition_;
  /**
   * <pre>
   *病人去向
   * </pre>
   *
   * <code>int32 disposition = 18;</code>
   */
  public int getDisposition() {
    return disposition_;
  }

  public static final int TREATMENTCASE_FIELD_NUMBER = 19;
  private int treatmentCase_;
  /**
   * <pre>
   *抢救病人
   * </pre>
   *
   * <code>int32 treatmentCase = 19;</code>
   */
  public int getTreatmentCase() {
    return treatmentCase_;
  }

  public static final int TREATMENTSTATUS_FIELD_NUMBER = 20;
  private int treatmentStatus_;
  /**
   * <pre>
   *是否抢救成功
   * </pre>
   *
   * <code>int32 treatmentStatus = 20;</code>
   */
  public int getTreatmentStatus() {
    return treatmentStatus_;
  }

  public static final int DISEASEEVALUATION_FIELD_NUMBER = 21;
  private volatile java.lang.Object diseaseEvaluation_;
  /**
   * <pre>
   *病情评估
   * </pre>
   *
   * <code>string diseaseEvaluation = 21;</code>
   */
  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 = 21;</code>
   */
  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 = 22;
  private volatile java.lang.Object icdCode_;
  /**
   * <pre>
   *ICD编码
   * </pre>
   *
   * <code>string icdCode = 22;</code>
   */
  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 = 22;</code>
   */
  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 = 23;
  private volatile java.lang.Object management_;
  /**
   * <pre>
   *处置
   * </pre>
   *
   * <code>string management = 23;</code>
   */
  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 = 23;</code>
   */
  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 DOCTORNAME_FIELD_NUMBER = 24;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 24;</code>
   */
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorName = 24;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int REMARK_FIELD_NUMBER = 26;
  private volatile java.lang.Object remark_;
  /**
   * <code>string remark = 26;</code>
   */
  public java.lang.String getRemark() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      remark_ = s;
      return s;
    }
  }
  /**
   * <code>string remark = 26;</code>
   */
  public com.google.protobuf.ByteString
      getRemarkBytes() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      remark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATETIME_FIELD_NUMBER = 27;
  private long createTime_;
  /**
   * <pre>
   *病历创建时间，就诊日期
   * </pre>
   *
   * <code>int64 createTime = 27;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (result_ != null) {
      output.writeMessage(1, getResult());
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientName_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(3, patientSex_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(4, patientAge_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patientMobile_);
    }
    if (!getChiefComplaintBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, chiefComplaint_);
    }
    if (!getPresentHistoryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, presentHistory_);
    }
    if (!getPastHistoryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pastHistory_);
    }
    if (!getAllergicHistoryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, allergicHistory_);
    }
    if (!getPersonalHistoryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, personalHistory_);
    }
    if (!getPhyExamBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, phyExam_);
    }
    if (bodyTemperature_ != 0D) {
      output.writeDouble(12, bodyTemperature_);
    }
    if (!getSpecialConditionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, specialCondition_);
    }
    if (!getAccessoryExaminationBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, accessoryExamination_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, diagnosis_);
    }
    if (single_ != 0) {
      output.writeInt32(16, single_);
    }
    if (diseaseTime_ != 0L) {
      output.writeInt64(17, diseaseTime_);
    }
    if (disposition_ != 0) {
      output.writeInt32(18, disposition_);
    }
    if (treatmentCase_ != 0) {
      output.writeInt32(19, treatmentCase_);
    }
    if (treatmentStatus_ != 0) {
      output.writeInt32(20, treatmentStatus_);
    }
    if (!getDiseaseEvaluationBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, diseaseEvaluation_);
    }
    if (!getIcdCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, icdCode_);
    }
    if (!getManagementBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, management_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, doctorName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 25, deptName_);
    }
    if (!getRemarkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 26, remark_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(27, createTime_);
    }
  }

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

    size = 0;
    if (result_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getResult());
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientName_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, patientSex_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, patientAge_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patientMobile_);
    }
    if (!getChiefComplaintBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, chiefComplaint_);
    }
    if (!getPresentHistoryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, presentHistory_);
    }
    if (!getPastHistoryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pastHistory_);
    }
    if (!getAllergicHistoryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, allergicHistory_);
    }
    if (!getPersonalHistoryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, personalHistory_);
    }
    if (!getPhyExamBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, phyExam_);
    }
    if (bodyTemperature_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(12, bodyTemperature_);
    }
    if (!getSpecialConditionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, specialCondition_);
    }
    if (!getAccessoryExaminationBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, accessoryExamination_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, diagnosis_);
    }
    if (single_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, single_);
    }
    if (diseaseTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(17, diseaseTime_);
    }
    if (disposition_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, disposition_);
    }
    if (treatmentCase_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, treatmentCase_);
    }
    if (treatmentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(20, treatmentStatus_);
    }
    if (!getDiseaseEvaluationBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, diseaseEvaluation_);
    }
    if (!getIcdCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, icdCode_);
    }
    if (!getManagementBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, management_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, doctorName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, deptName_);
    }
    if (!getRemarkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, remark_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(27, createTime_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (hasResult() == other.hasResult());
    if (hasResult()) {
      result = result && getResult()
          .equals(other.getResult());
    }
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getPatientSex()
        == other.getPatientSex());
    result = result && (getPatientAge()
        == other.getPatientAge());
    result = result && getPatientMobile()
        .equals(other.getPatientMobile());
    result = result && getChiefComplaint()
        .equals(other.getChiefComplaint());
    result = result && getPresentHistory()
        .equals(other.getPresentHistory());
    result = result && getPastHistory()
        .equals(other.getPastHistory());
    result = result && getAllergicHistory()
        .equals(other.getAllergicHistory());
    result = result && getPersonalHistory()
        .equals(other.getPersonalHistory());
    result = result && getPhyExam()
        .equals(other.getPhyExam());
    result = result && (
        java.lang.Double.doubleToLongBits(getBodyTemperature())
        == java.lang.Double.doubleToLongBits(
            other.getBodyTemperature()));
    result = result && getSpecialCondition()
        .equals(other.getSpecialCondition());
    result = result && getAccessoryExamination()
        .equals(other.getAccessoryExamination());
    result = result && getDiagnosis()
        .equals(other.getDiagnosis());
    result = result && (getSingle()
        == other.getSingle());
    result = result && (getDiseaseTime()
        == other.getDiseaseTime());
    result = result && (getDisposition()
        == other.getDisposition());
    result = result && (getTreatmentCase()
        == other.getTreatmentCase());
    result = result && (getTreatmentStatus()
        == other.getTreatmentStatus());
    result = result && getDiseaseEvaluation()
        .equals(other.getDiseaseEvaluation());
    result = result && getIcdCode()
        .equals(other.getIcdCode());
    result = result && getManagement()
        .equals(other.getManagement());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getRemark()
        .equals(other.getRemark());
    result = result && (getCreateTime()
        == other.getCreateTime());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasResult()) {
      hash = (37 * hash) + RESULT_FIELD_NUMBER;
      hash = (53 * hash) + getResult().hashCode();
    }
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge();
    hash = (37 * hash) + PATIENTMOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientMobile().hashCode();
    hash = (37 * hash) + CHIEFCOMPLAINT_FIELD_NUMBER;
    hash = (53 * hash) + getChiefComplaint().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) + PHYEXAM_FIELD_NUMBER;
    hash = (53 * hash) + getPhyExam().hashCode();
    hash = (37 * hash) + BODYTEMPERATURE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getBodyTemperature()));
    hash = (37 * hash) + SPECIALCONDITION_FIELD_NUMBER;
    hash = (53 * hash) + getSpecialCondition().hashCode();
    hash = (37 * hash) + ACCESSORYEXAMINATION_FIELD_NUMBER;
    hash = (53 * hash) + getAccessoryExamination().hashCode();
    hash = (37 * hash) + DIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnosis().hashCode();
    hash = (37 * hash) + SINGLE_FIELD_NUMBER;
    hash = (53 * hash) + getSingle();
    hash = (37 * hash) + DISEASETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDiseaseTime());
    hash = (37 * hash) + DISPOSITION_FIELD_NUMBER;
    hash = (53 * hash) + getDisposition();
    hash = (37 * hash) + TREATMENTCASE_FIELD_NUMBER;
    hash = (53 * hash) + getTreatmentCase();
    hash = (37 * hash) + TREATMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getTreatmentStatus();
    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) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *获取病历详情Response
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse)
      com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetMedicalRecordsDetailByIdResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetMedicalRecordsDetailByIdResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse.class, com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      if (resultBuilder_ == null) {
        result_ = null;
      } else {
        result_ = null;
        resultBuilder_ = null;
      }
      patientName_ = "";

      patientSex_ = 0;

      patientAge_ = 0;

      patientMobile_ = "";

      chiefComplaint_ = "";

      presentHistory_ = "";

      pastHistory_ = "";

      allergicHistory_ = "";

      personalHistory_ = "";

      phyExam_ = "";

      bodyTemperature_ = 0D;

      specialCondition_ = "";

      accessoryExamination_ = "";

      diagnosis_ = "";

      single_ = 0;

      diseaseTime_ = 0L;

      disposition_ = 0;

      treatmentCase_ = 0;

      treatmentStatus_ = 0;

      diseaseEvaluation_ = "";

      icdCode_ = "";

      management_ = "";

      doctorName_ = "";

      deptName_ = "";

      remark_ = "";

      createTime_ = 0L;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetMedicalRecordsDetailByIdResponse_descriptor;
    }

    public com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse getDefaultInstanceForType() {
      return com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse.getDefaultInstance();
    }

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

    public com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse buildPartial() {
      com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse result = new com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse(this);
      if (resultBuilder_ == null) {
        result.result_ = result_;
      } else {
        result.result_ = resultBuilder_.build();
      }
      result.patientName_ = patientName_;
      result.patientSex_ = patientSex_;
      result.patientAge_ = patientAge_;
      result.patientMobile_ = patientMobile_;
      result.chiefComplaint_ = chiefComplaint_;
      result.presentHistory_ = presentHistory_;
      result.pastHistory_ = pastHistory_;
      result.allergicHistory_ = allergicHistory_;
      result.personalHistory_ = personalHistory_;
      result.phyExam_ = phyExam_;
      result.bodyTemperature_ = bodyTemperature_;
      result.specialCondition_ = specialCondition_;
      result.accessoryExamination_ = accessoryExamination_;
      result.diagnosis_ = diagnosis_;
      result.single_ = single_;
      result.diseaseTime_ = diseaseTime_;
      result.disposition_ = disposition_;
      result.treatmentCase_ = treatmentCase_;
      result.treatmentStatus_ = treatmentStatus_;
      result.diseaseEvaluation_ = diseaseEvaluation_;
      result.icdCode_ = icdCode_;
      result.management_ = management_;
      result.doctorName_ = doctorName_;
      result.deptName_ = deptName_;
      result.remark_ = remark_;
      result.createTime_ = createTime_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse other) {
      if (other == com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse.getDefaultInstance()) return this;
      if (other.hasResult()) {
        mergeResult(other.getResult());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getPatientSex() != 0) {
        setPatientSex(other.getPatientSex());
      }
      if (other.getPatientAge() != 0) {
        setPatientAge(other.getPatientAge());
      }
      if (!other.getPatientMobile().isEmpty()) {
        patientMobile_ = other.patientMobile_;
        onChanged();
      }
      if (!other.getChiefComplaint().isEmpty()) {
        chiefComplaint_ = other.chiefComplaint_;
        onChanged();
      }
      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.getPhyExam().isEmpty()) {
        phyExam_ = other.phyExam_;
        onChanged();
      }
      if (other.getBodyTemperature() != 0D) {
        setBodyTemperature(other.getBodyTemperature());
      }
      if (!other.getSpecialCondition().isEmpty()) {
        specialCondition_ = other.specialCondition_;
        onChanged();
      }
      if (!other.getAccessoryExamination().isEmpty()) {
        accessoryExamination_ = other.accessoryExamination_;
        onChanged();
      }
      if (!other.getDiagnosis().isEmpty()) {
        diagnosis_ = other.diagnosis_;
        onChanged();
      }
      if (other.getSingle() != 0) {
        setSingle(other.getSingle());
      }
      if (other.getDiseaseTime() != 0L) {
        setDiseaseTime(other.getDiseaseTime());
      }
      if (other.getDisposition() != 0) {
        setDisposition(other.getDisposition());
      }
      if (other.getTreatmentCase() != 0) {
        setTreatmentCase(other.getTreatmentCase());
      }
      if (other.getTreatmentStatus() != 0) {
        setTreatmentStatus(other.getTreatmentStatus());
      }
      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.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private com.ywt.gapi.Result result_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.Result, com.ywt.gapi.Result.Builder, com.ywt.gapi.ResultOrBuilder> resultBuilder_;
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public boolean hasResult() {
      return resultBuilder_ != null || result_ != null;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public com.ywt.gapi.Result getResult() {
      if (resultBuilder_ == null) {
        return result_ == null ? com.ywt.gapi.Result.getDefaultInstance() : result_;
      } else {
        return resultBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder setResult(com.ywt.gapi.Result value) {
      if (resultBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        resultBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder setResult(
        com.ywt.gapi.Result.Builder builderForValue) {
      if (resultBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        resultBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder mergeResult(com.ywt.gapi.Result value) {
      if (resultBuilder_ == null) {
        if (result_ != null) {
          result_ =
            com.ywt.gapi.Result.newBuilder(result_).mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        resultBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder clearResult() {
      if (resultBuilder_ == null) {
        result_ = null;
        onChanged();
      } else {
        result_ = null;
        resultBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public com.ywt.gapi.Result.Builder getResultBuilder() {
      
      onChanged();
      return getResultFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public com.ywt.gapi.ResultOrBuilder getResultOrBuilder() {
      if (resultBuilder_ != null) {
        return resultBuilder_.getMessageOrBuilder();
      } else {
        return result_ == null ?
            com.ywt.gapi.Result.getDefaultInstance() : result_;
      }
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.Result, com.ywt.gapi.Result.Builder, com.ywt.gapi.ResultOrBuilder> 
        getResultFieldBuilder() {
      if (resultBuilder_ == null) {
        resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.Result, com.ywt.gapi.Result.Builder, com.ywt.gapi.ResultOrBuilder>(
                getResult(),
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      return resultBuilder_;
    }

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

    private int patientSex_ ;
    /**
     * <code>int32 patientSex = 3;</code>
     */
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <code>int32 patientSex = 3;</code>
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSex = 3;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private int patientAge_ ;
    /**
     * <code>int32 patientAge = 4;</code>
     */
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 4;</code>
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 4;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object chiefComplaint_ = "";
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string chiefComplaint = 6;</code>
     */
    public java.lang.String getChiefComplaint() {
      java.lang.Object ref = chiefComplaint_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        chiefComplaint_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string chiefComplaint = 6;</code>
     */
    public com.google.protobuf.ByteString
        getChiefComplaintBytes() {
      java.lang.Object ref = chiefComplaint_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        chiefComplaint_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string chiefComplaint = 6;</code>
     */
    public Builder setChiefComplaint(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      chiefComplaint_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string chiefComplaint = 6;</code>
     */
    public Builder clearChiefComplaint() {
      
      chiefComplaint_ = getDefaultInstance().getChiefComplaint();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string chiefComplaint = 6;</code>
     */
    public Builder setChiefComplaintBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      chiefComplaint_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object presentHistory_ = "";
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 7;</code>
     */
    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 = 7;</code>
     */
    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 = 7;</code>
     */
    public Builder setPresentHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      presentHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 7;</code>
     */
    public Builder clearPresentHistory() {
      
      presentHistory_ = getDefaultInstance().getPresentHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *现病史
     * </pre>
     *
     * <code>string presentHistory = 7;</code>
     */
    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 = 8;</code>
     */
    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 = 8;</code>
     */
    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 = 8;</code>
     */
    public Builder setPastHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pastHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 8;</code>
     */
    public Builder clearPastHistory() {
      
      pastHistory_ = getDefaultInstance().getPastHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *既往史
     * </pre>
     *
     * <code>string pastHistory = 8;</code>
     */
    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 = 9;</code>
     */
    public java.lang.String getAllergicHistory() {
      java.lang.Object ref = allergicHistory_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        allergicHistory_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 9;</code>
     */
    public com.google.protobuf.ByteString
        getAllergicHistoryBytes() {
      java.lang.Object ref = allergicHistory_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        allergicHistory_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 9;</code>
     */
    public Builder setAllergicHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      allergicHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 9;</code>
     */
    public Builder clearAllergicHistory() {
      
      allergicHistory_ = getDefaultInstance().getAllergicHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *过敏史
     * </pre>
     *
     * <code>string allergicHistory = 9;</code>
     */
    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 = 10;</code>
     */
    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 = 10;</code>
     */
    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 = 10;</code>
     */
    public Builder setPersonalHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      personalHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 10;</code>
     */
    public Builder clearPersonalHistory() {
      
      personalHistory_ = getDefaultInstance().getPersonalHistory();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *个人史
     * </pre>
     *
     * <code>string personalHistory = 10;</code>
     */
    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 phyExam_ = "";
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 11;</code>
     */
    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 = 11;</code>
     */
    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 = 11;</code>
     */
    public Builder setPhyExam(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      phyExam_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 11;</code>
     */
    public Builder clearPhyExam() {
      
      phyExam_ = getDefaultInstance().getPhyExam();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 11;</code>
     */
    public Builder setPhyExamBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      phyExam_ = value;
      onChanged();
      return this;
    }

    private double bodyTemperature_ ;
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>double bodyTemperature = 12;</code>
     */
    public double getBodyTemperature() {
      return bodyTemperature_;
    }
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>double bodyTemperature = 12;</code>
     */
    public Builder setBodyTemperature(double value) {
      
      bodyTemperature_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人体温
     * </pre>
     *
     * <code>double bodyTemperature = 12;</code>
     */
    public Builder clearBodyTemperature() {
      
      bodyTemperature_ = 0D;
      onChanged();
      return this;
    }

    private java.lang.Object specialCondition_ = "";
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 13;</code>
     */
    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 = 13;</code>
     */
    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 = 13;</code>
     */
    public Builder setSpecialCondition(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      specialCondition_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 13;</code>
     */
    public Builder clearSpecialCondition() {
      
      specialCondition_ = getDefaultInstance().getSpecialCondition();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *专科情况
     * </pre>
     *
     * <code>string specialCondition = 13;</code>
     */
    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 accessoryExamination_ = "";
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 14;</code>
     */
    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 = 14;</code>
     */
    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 = 14;</code>
     */
    public Builder setAccessoryExamination(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      accessoryExamination_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 14;</code>
     */
    public Builder clearAccessoryExamination() {
      
      accessoryExamination_ = getDefaultInstance().getAccessoryExamination();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *辅助检查
     * </pre>
     *
     * <code>string accessoryExamination = 14;</code>
     */
    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 diagnosis_ = "";
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 15;</code>
     */
    public java.lang.String getDiagnosis() {
      java.lang.Object ref = diagnosis_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnosis_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 15;</code>
     */
    public com.google.protobuf.ByteString
        getDiagnosisBytes() {
      java.lang.Object ref = diagnosis_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnosis_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 15;</code>
     */
    public Builder setDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 15;</code>
     */
    public Builder clearDiagnosis() {
      
      diagnosis_ = getDefaultInstance().getDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 15;</code>
     */
    public Builder setDiagnosisBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnosis_ = value;
      onChanged();
      return this;
    }

    private int single_ ;
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>int32 single = 16;</code>
     */
    public int getSingle() {
      return single_;
    }
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>int32 single = 16;</code>
     */
    public Builder setSingle(int value) {
      
      single_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单病种，1-是，0-否
     * </pre>
     *
     * <code>int32 single = 16;</code>
     */
    public Builder clearSingle() {
      
      single_ = 0;
      onChanged();
      return this;
    }

    private long diseaseTime_ ;
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>int64 diseaseTime = 17;</code>
     */
    public long getDiseaseTime() {
      return diseaseTime_;
    }
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>int64 diseaseTime = 17;</code>
     */
    public Builder setDiseaseTime(long value) {
      
      diseaseTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发病时间
     * </pre>
     *
     * <code>int64 diseaseTime = 17;</code>
     */
    public Builder clearDiseaseTime() {
      
      diseaseTime_ = 0L;
      onChanged();
      return this;
    }

    private int disposition_ ;
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>int32 disposition = 18;</code>
     */
    public int getDisposition() {
      return disposition_;
    }
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>int32 disposition = 18;</code>
     */
    public Builder setDisposition(int value) {
      
      disposition_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人去向
     * </pre>
     *
     * <code>int32 disposition = 18;</code>
     */
    public Builder clearDisposition() {
      
      disposition_ = 0;
      onChanged();
      return this;
    }

    private int treatmentCase_ ;
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>int32 treatmentCase = 19;</code>
     */
    public int getTreatmentCase() {
      return treatmentCase_;
    }
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>int32 treatmentCase = 19;</code>
     */
    public Builder setTreatmentCase(int value) {
      
      treatmentCase_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *抢救病人
     * </pre>
     *
     * <code>int32 treatmentCase = 19;</code>
     */
    public Builder clearTreatmentCase() {
      
      treatmentCase_ = 0;
      onChanged();
      return this;
    }

    private int treatmentStatus_ ;
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>int32 treatmentStatus = 20;</code>
     */
    public int getTreatmentStatus() {
      return treatmentStatus_;
    }
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>int32 treatmentStatus = 20;</code>
     */
    public Builder setTreatmentStatus(int value) {
      
      treatmentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *是否抢救成功
     * </pre>
     *
     * <code>int32 treatmentStatus = 20;</code>
     */
    public Builder clearTreatmentStatus() {
      
      treatmentStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object diseaseEvaluation_ = "";
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 21;</code>
     */
    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 = 21;</code>
     */
    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 = 21;</code>
     */
    public Builder setDiseaseEvaluation(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diseaseEvaluation_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 21;</code>
     */
    public Builder clearDiseaseEvaluation() {
      
      diseaseEvaluation_ = getDefaultInstance().getDiseaseEvaluation();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病情评估
     * </pre>
     *
     * <code>string diseaseEvaluation = 21;</code>
     */
    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 = 22;</code>
     */
    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 = 22;</code>
     */
    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 = 22;</code>
     */
    public Builder setIcdCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      icdCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 22;</code>
     */
    public Builder clearIcdCode() {
      
      icdCode_ = getDefaultInstance().getIcdCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *ICD编码
     * </pre>
     *
     * <code>string icdCode = 22;</code>
     */
    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 = 23;</code>
     */
    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 = 23;</code>
     */
    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 = 23;</code>
     */
    public Builder setManagement(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      management_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 23;</code>
     */
    public Builder clearManagement() {
      
      management_ = getDefaultInstance().getManagement();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处置
     * </pre>
     *
     * <code>string management = 23;</code>
     */
    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 doctorName_ = "";
    /**
     * <code>string doctorName = 24;</code>
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorName = 24;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 24;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 24;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 24;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

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

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

    private long createTime_ ;
    /**
     * <pre>
     *病历创建时间，就诊日期
     * </pre>
     *
     * <code>int64 createTime = 27;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <pre>
     *病历创建时间，就诊日期
     * </pre>
     *
     * <code>int64 createTime = 27;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病历创建时间，就诊日期
     * </pre>
     *
     * <code>int64 createTime = 27;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse)
  }

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

  public static com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.user.GetMedicalRecordsDetailByIdResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

