// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'medical_record_entity.dart';

// **************************************************************************
// IsarCollectionGenerator
// **************************************************************************

// coverage:ignore-file
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters

extension GetMedicalRecordEntityCollection on Isar {
  IsarCollection<MedicalRecordEntity> get medicalRecordEntitys =>
      this.collection();
}

const MedicalRecordEntitySchema = CollectionSchema(
  name: r'MedicalRecordEntity',
  id: 8691723531884843761,
  properties: {
    r'cattleresumeId': PropertySchema(
      id: 0,
      name: r'cattleresumeId',
      type: IsarType.string,
    ),
    r'causeOf': PropertySchema(
      id: 1,
      name: r'causeOf',
      type: IsarType.string,
    ),
    r'createBy': PropertySchema(
      id: 2,
      name: r'createBy',
      type: IsarType.string,
    ),
    r'createTime': PropertySchema(
      id: 3,
      name: r'createTime',
      type: IsarType.string,
    ),
    r'deptId': PropertySchema(
      id: 4,
      name: r'deptId',
      type: IsarType.string,
    ),
    r'drugMethods': PropertySchema(
      id: 5,
      name: r'drugMethods',
      type: IsarType.string,
    ),
    r'drugName': PropertySchema(
      id: 6,
      name: r'drugName',
      type: IsarType.string,
    ),
    r'drugNumber': PropertySchema(
      id: 7,
      name: r'drugNumber',
      type: IsarType.double,
    ),
    r'individualNo': PropertySchema(
      id: 8,
      name: r'individualNo',
      type: IsarType.string,
    ),
    r'registrationNo': PropertySchema(
      id: 9,
      name: r'registrationNo',
      type: IsarType.string,
    ),
    r'remark': PropertySchema(
      id: 10,
      name: r'remark',
      type: IsarType.string,
    ),
    r'results': PropertySchema(
      id: 11,
      name: r'results',
      type: IsarType.string,
    ),
    r'searchValue': PropertySchema(
      id: 12,
      name: r'searchValue',
      type: IsarType.string,
    ),
    r'specifications': PropertySchema(
      id: 13,
      name: r'specifications',
      type: IsarType.string,
    ),
    r'treatDate': PropertySchema(
      id: 14,
      name: r'treatDate',
      type: IsarType.string,
    ),
    r'treatPersonnel': PropertySchema(
      id: 15,
      name: r'treatPersonnel',
      type: IsarType.string,
    ),
    r'unid': PropertySchema(
      id: 16,
      name: r'unid',
      type: IsarType.string,
    ),
    r'updateBy': PropertySchema(
      id: 17,
      name: r'updateBy',
      type: IsarType.string,
    ),
    r'updateTime': PropertySchema(
      id: 18,
      name: r'updateTime',
      type: IsarType.string,
    ),
    r'uploadStatus': PropertySchema(
      id: 19,
      name: r'uploadStatus',
      type: IsarType.string,
    )
  },
  estimateSize: _medicalRecordEntityEstimateSize,
  serialize: _medicalRecordEntitySerialize,
  deserialize: _medicalRecordEntityDeserialize,
  deserializeProp: _medicalRecordEntityDeserializeProp,
  idName: r'id',
  indexes: {
    r'unid': IndexSchema(
      id: 4581564109674551298,
      name: r'unid',
      unique: true,
      replace: true,
      properties: [
        IndexPropertySchema(
          name: r'unid',
          type: IndexType.hash,
          caseSensitive: true,
        )
      ],
    )
  },
  links: {},
  embeddedSchemas: {},
  getId: _medicalRecordEntityGetId,
  getLinks: _medicalRecordEntityGetLinks,
  attach: _medicalRecordEntityAttach,
  version: '3.0.5',
);

int _medicalRecordEntityEstimateSize(
  MedicalRecordEntity object,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  var bytesCount = offsets.last;
  {
    final value = object.cattleresumeId;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.causeOf;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.createBy;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.createTime;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.deptId;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.drugMethods;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.drugName;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.individualNo;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.registrationNo;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.remark;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.results;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.searchValue;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.specifications;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.treatDate;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.treatPersonnel;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.unid;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.updateBy;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.updateTime;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.uploadStatus;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  return bytesCount;
}

void _medicalRecordEntitySerialize(
  MedicalRecordEntity object,
  IsarWriter writer,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  writer.writeString(offsets[0], object.cattleresumeId);
  writer.writeString(offsets[1], object.causeOf);
  writer.writeString(offsets[2], object.createBy);
  writer.writeString(offsets[3], object.createTime);
  writer.writeString(offsets[4], object.deptId);
  writer.writeString(offsets[5], object.drugMethods);
  writer.writeString(offsets[6], object.drugName);
  writer.writeDouble(offsets[7], object.drugNumber);
  writer.writeString(offsets[8], object.individualNo);
  writer.writeString(offsets[9], object.registrationNo);
  writer.writeString(offsets[10], object.remark);
  writer.writeString(offsets[11], object.results);
  writer.writeString(offsets[12], object.searchValue);
  writer.writeString(offsets[13], object.specifications);
  writer.writeString(offsets[14], object.treatDate);
  writer.writeString(offsets[15], object.treatPersonnel);
  writer.writeString(offsets[16], object.unid);
  writer.writeString(offsets[17], object.updateBy);
  writer.writeString(offsets[18], object.updateTime);
  writer.writeString(offsets[19], object.uploadStatus);
}

MedicalRecordEntity _medicalRecordEntityDeserialize(
  Id id,
  IsarReader reader,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  final object = MedicalRecordEntity();
  object.cattleresumeId = reader.readStringOrNull(offsets[0]);
  object.causeOf = reader.readStringOrNull(offsets[1]);
  object.createBy = reader.readStringOrNull(offsets[2]);
  object.createTime = reader.readStringOrNull(offsets[3]);
  object.deptId = reader.readStringOrNull(offsets[4]);
  object.drugMethods = reader.readStringOrNull(offsets[5]);
  object.drugName = reader.readStringOrNull(offsets[6]);
  object.drugNumber = reader.readDoubleOrNull(offsets[7]);
  object.id = id;
  object.individualNo = reader.readStringOrNull(offsets[8]);
  object.registrationNo = reader.readStringOrNull(offsets[9]);
  object.remark = reader.readStringOrNull(offsets[10]);
  object.results = reader.readStringOrNull(offsets[11]);
  object.searchValue = reader.readStringOrNull(offsets[12]);
  object.specifications = reader.readStringOrNull(offsets[13]);
  object.treatDate = reader.readStringOrNull(offsets[14]);
  object.treatPersonnel = reader.readStringOrNull(offsets[15]);
  object.unid = reader.readStringOrNull(offsets[16]);
  object.updateBy = reader.readStringOrNull(offsets[17]);
  object.updateTime = reader.readStringOrNull(offsets[18]);
  object.uploadStatus = reader.readStringOrNull(offsets[19]);
  return object;
}

P _medicalRecordEntityDeserializeProp<P>(
  IsarReader reader,
  int propertyId,
  int offset,
  Map<Type, List<int>> allOffsets,
) {
  switch (propertyId) {
    case 0:
      return (reader.readStringOrNull(offset)) as P;
    case 1:
      return (reader.readStringOrNull(offset)) as P;
    case 2:
      return (reader.readStringOrNull(offset)) as P;
    case 3:
      return (reader.readStringOrNull(offset)) as P;
    case 4:
      return (reader.readStringOrNull(offset)) as P;
    case 5:
      return (reader.readStringOrNull(offset)) as P;
    case 6:
      return (reader.readStringOrNull(offset)) as P;
    case 7:
      return (reader.readDoubleOrNull(offset)) as P;
    case 8:
      return (reader.readStringOrNull(offset)) as P;
    case 9:
      return (reader.readStringOrNull(offset)) as P;
    case 10:
      return (reader.readStringOrNull(offset)) as P;
    case 11:
      return (reader.readStringOrNull(offset)) as P;
    case 12:
      return (reader.readStringOrNull(offset)) as P;
    case 13:
      return (reader.readStringOrNull(offset)) as P;
    case 14:
      return (reader.readStringOrNull(offset)) as P;
    case 15:
      return (reader.readStringOrNull(offset)) as P;
    case 16:
      return (reader.readStringOrNull(offset)) as P;
    case 17:
      return (reader.readStringOrNull(offset)) as P;
    case 18:
      return (reader.readStringOrNull(offset)) as P;
    case 19:
      return (reader.readStringOrNull(offset)) as P;
    default:
      throw IsarError('Unknown property with id $propertyId');
  }
}

Id _medicalRecordEntityGetId(MedicalRecordEntity object) {
  return object.id;
}

List<IsarLinkBase<dynamic>> _medicalRecordEntityGetLinks(
    MedicalRecordEntity object) {
  return [];
}

void _medicalRecordEntityAttach(
    IsarCollection<dynamic> col, Id id, MedicalRecordEntity object) {
  object.id = id;
}

extension MedicalRecordEntityByIndex on IsarCollection<MedicalRecordEntity> {
  Future<MedicalRecordEntity?> getByUnid(String? unid) {
    return getByIndex(r'unid', [unid]);
  }

  MedicalRecordEntity? getByUnidSync(String? unid) {
    return getByIndexSync(r'unid', [unid]);
  }

  Future<bool> deleteByUnid(String? unid) {
    return deleteByIndex(r'unid', [unid]);
  }

  bool deleteByUnidSync(String? unid) {
    return deleteByIndexSync(r'unid', [unid]);
  }

  Future<List<MedicalRecordEntity?>> getAllByUnid(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return getAllByIndex(r'unid', values);
  }

  List<MedicalRecordEntity?> getAllByUnidSync(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return getAllByIndexSync(r'unid', values);
  }

  Future<int> deleteAllByUnid(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return deleteAllByIndex(r'unid', values);
  }

  int deleteAllByUnidSync(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return deleteAllByIndexSync(r'unid', values);
  }

  Future<Id> putByUnid(MedicalRecordEntity object) {
    return putByIndex(r'unid', object);
  }

  Id putByUnidSync(MedicalRecordEntity object, {bool saveLinks = true}) {
    return putByIndexSync(r'unid', object, saveLinks: saveLinks);
  }

  Future<List<Id>> putAllByUnid(List<MedicalRecordEntity> objects) {
    return putAllByIndex(r'unid', objects);
  }

  List<Id> putAllByUnidSync(List<MedicalRecordEntity> objects,
      {bool saveLinks = true}) {
    return putAllByIndexSync(r'unid', objects, saveLinks: saveLinks);
  }
}

extension MedicalRecordEntityQueryWhereSort
    on QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QWhere> {
  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhere> anyId() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(const IdWhereClause.any());
    });
  }
}

extension MedicalRecordEntityQueryWhere
    on QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QWhereClause> {
  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      idEqualTo(Id id) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IdWhereClause.between(
        lower: id,
        upper: id,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      idNotEqualTo(Id id) {
    return QueryBuilder.apply(this, (query) {
      if (query.whereSort == Sort.asc) {
        return query
            .addWhereClause(
              IdWhereClause.lessThan(upper: id, includeUpper: false),
            )
            .addWhereClause(
              IdWhereClause.greaterThan(lower: id, includeLower: false),
            );
      } else {
        return query
            .addWhereClause(
              IdWhereClause.greaterThan(lower: id, includeLower: false),
            )
            .addWhereClause(
              IdWhereClause.lessThan(upper: id, includeUpper: false),
            );
      }
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      idGreaterThan(Id id, {bool include = false}) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(
        IdWhereClause.greaterThan(lower: id, includeLower: include),
      );
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      idLessThan(Id id, {bool include = false}) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(
        IdWhereClause.lessThan(upper: id, includeUpper: include),
      );
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      idBetween(
    Id lowerId,
    Id upperId, {
    bool includeLower = true,
    bool includeUpper = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IdWhereClause.between(
        lower: lowerId,
        includeLower: includeLower,
        upper: upperId,
        includeUpper: includeUpper,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      unidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.equalTo(
        indexName: r'unid',
        value: [null],
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      unidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.between(
        indexName: r'unid',
        lower: [null],
        includeLower: false,
        upper: [],
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      unidEqualTo(String? unid) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.equalTo(
        indexName: r'unid',
        value: [unid],
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterWhereClause>
      unidNotEqualTo(String? unid) {
    return QueryBuilder.apply(this, (query) {
      if (query.whereSort == Sort.asc) {
        return query
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [],
              upper: [unid],
              includeUpper: false,
            ))
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [unid],
              includeLower: false,
              upper: [],
            ));
      } else {
        return query
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [unid],
              includeLower: false,
              upper: [],
            ))
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [],
              upper: [unid],
              includeUpper: false,
            ));
      }
    });
  }
}

extension MedicalRecordEntityQueryFilter on QueryBuilder<MedicalRecordEntity,
    MedicalRecordEntity, QFilterCondition> {
  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'cattleresumeId',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'cattleresumeId',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'cattleresumeId',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'cattleresumeId',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'cattleresumeId',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      cattleresumeIdIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'cattleresumeId',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'causeOf',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'causeOf',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'causeOf',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'causeOf',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'causeOf',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'causeOf',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'causeOf',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'causeOf',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'causeOf',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'causeOf',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'causeOf',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      causeOfIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'causeOf',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'createBy',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'createBy',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'createBy',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'createBy',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createBy',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createByIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'createBy',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'createTime',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'createTime',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'createTime',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'createTime',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createTime',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      createTimeIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'createTime',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'deptId',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'deptId',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'deptId',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'deptId',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'deptId',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      deptIdIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'deptId',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'drugMethods',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'drugMethods',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'drugMethods',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'drugMethods',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'drugMethods',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'drugMethods',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'drugMethods',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'drugMethods',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'drugMethods',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'drugMethods',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'drugMethods',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugMethodsIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'drugMethods',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'drugName',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'drugName',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'drugName',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'drugName',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'drugName',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'drugName',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'drugName',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'drugName',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'drugName',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'drugName',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'drugName',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNameIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'drugName',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNumberIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'drugNumber',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNumberIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'drugNumber',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNumberEqualTo(
    double? value, {
    double epsilon = Query.epsilon,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'drugNumber',
        value: value,
        epsilon: epsilon,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNumberGreaterThan(
    double? value, {
    bool include = false,
    double epsilon = Query.epsilon,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'drugNumber',
        value: value,
        epsilon: epsilon,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNumberLessThan(
    double? value, {
    bool include = false,
    double epsilon = Query.epsilon,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'drugNumber',
        value: value,
        epsilon: epsilon,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      drugNumberBetween(
    double? lower,
    double? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    double epsilon = Query.epsilon,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'drugNumber',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        epsilon: epsilon,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      idEqualTo(Id value) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      idGreaterThan(
    Id value, {
    bool include = false,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      idLessThan(
    Id value, {
    bool include = false,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      idBetween(
    Id lower,
    Id upper, {
    bool includeLower = true,
    bool includeUpper = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'id',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'individualNo',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'individualNo',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'individualNo',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'individualNo',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'individualNo',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      individualNoIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'individualNo',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'registrationNo',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'registrationNo',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'registrationNo',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'registrationNo',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'registrationNo',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      registrationNoIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'registrationNo',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'remark',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'remark',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'remark',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'remark',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'remark',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      remarkIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'remark',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'results',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'results',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'results',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'results',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'results',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'results',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'results',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'results',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'results',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'results',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'results',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      resultsIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'results',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'searchValue',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'searchValue',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'searchValue',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'searchValue',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'searchValue',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      searchValueIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'searchValue',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'specifications',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'specifications',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'specifications',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'specifications',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'specifications',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'specifications',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'specifications',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'specifications',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'specifications',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'specifications',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'specifications',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      specificationsIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'specifications',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'treatDate',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'treatDate',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'treatDate',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'treatDate',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'treatDate',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'treatDate',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'treatDate',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'treatDate',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'treatDate',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'treatDate',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'treatDate',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatDateIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'treatDate',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'treatPersonnel',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'treatPersonnel',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'treatPersonnel',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'treatPersonnel',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'treatPersonnel',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'treatPersonnel',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'treatPersonnel',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'treatPersonnel',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'treatPersonnel',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'treatPersonnel',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'treatPersonnel',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      treatPersonnelIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'treatPersonnel',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'unid',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'unid',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'unid',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'unid',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'unid',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      unidIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'unid',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'updateBy',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'updateBy',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'updateBy',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'updateBy',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateBy',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateByIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'updateBy',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'updateTime',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'updateTime',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'updateTime',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'updateTime',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateTime',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      updateTimeIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'updateTime',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'uploadStatus',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'uploadStatus',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'uploadStatus',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'uploadStatus',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'uploadStatus',
        value: '',
      ));
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterFilterCondition>
      uploadStatusIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'uploadStatus',
        value: '',
      ));
    });
  }
}

extension MedicalRecordEntityQueryObject on QueryBuilder<MedicalRecordEntity,
    MedicalRecordEntity, QFilterCondition> {}

extension MedicalRecordEntityQueryLinks on QueryBuilder<MedicalRecordEntity,
    MedicalRecordEntity, QFilterCondition> {}

extension MedicalRecordEntityQuerySortBy
    on QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QSortBy> {
  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCattleresumeId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCattleresumeIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCauseOf() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'causeOf', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCauseOfDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'causeOf', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCreateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCreateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCreateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByCreateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDeptId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDeptIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDrugMethods() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugMethods', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDrugMethodsDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugMethods', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDrugName() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugName', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDrugNameDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugName', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDrugNumber() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugNumber', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByDrugNumberDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugNumber', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByIndividualNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByIndividualNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByRegistrationNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByRegistrationNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByRemark() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByRemarkDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByResults() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'results', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByResultsDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'results', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortBySearchValue() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortBySearchValueDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortBySpecifications() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'specifications', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortBySpecificationsDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'specifications', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByTreatDate() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatDate', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByTreatDateDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatDate', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByTreatPersonnel() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatPersonnel', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByTreatPersonnelDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatPersonnel', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUpdateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUpdateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUpdateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUpdateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUploadStatus() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      sortByUploadStatusDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.desc);
    });
  }
}

extension MedicalRecordEntityQuerySortThenBy
    on QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QSortThenBy> {
  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCattleresumeId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCattleresumeIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCauseOf() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'causeOf', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCauseOfDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'causeOf', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCreateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCreateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCreateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByCreateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDeptId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDeptIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDrugMethods() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugMethods', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDrugMethodsDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugMethods', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDrugName() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugName', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDrugNameDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugName', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDrugNumber() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugNumber', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByDrugNumberDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'drugNumber', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenById() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'id', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'id', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByIndividualNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByIndividualNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByRegistrationNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByRegistrationNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByRemark() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByRemarkDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByResults() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'results', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByResultsDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'results', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenBySearchValue() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenBySearchValueDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenBySpecifications() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'specifications', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenBySpecificationsDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'specifications', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByTreatDate() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatDate', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByTreatDateDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatDate', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByTreatPersonnel() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatPersonnel', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByTreatPersonnelDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'treatPersonnel', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUpdateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUpdateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUpdateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUpdateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.desc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUploadStatus() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.asc);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QAfterSortBy>
      thenByUploadStatusDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.desc);
    });
  }
}

extension MedicalRecordEntityQueryWhereDistinct
    on QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct> {
  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByCattleresumeId({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'cattleresumeId',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByCauseOf({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'causeOf', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByCreateBy({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'createBy', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByCreateTime({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'createTime', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByDeptId({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'deptId', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByDrugMethods({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'drugMethods', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByDrugName({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'drugName', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByDrugNumber() {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'drugNumber');
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByIndividualNo({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'individualNo', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByRegistrationNo({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'registrationNo',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByRemark({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'remark', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByResults({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'results', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctBySearchValue({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'searchValue', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctBySpecifications({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'specifications',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByTreatDate({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'treatDate', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByTreatPersonnel({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'treatPersonnel',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByUnid({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'unid', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByUpdateBy({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'updateBy', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByUpdateTime({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'updateTime', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QDistinct>
      distinctByUploadStatus({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'uploadStatus', caseSensitive: caseSensitive);
    });
  }
}

extension MedicalRecordEntityQueryProperty
    on QueryBuilder<MedicalRecordEntity, MedicalRecordEntity, QQueryProperty> {
  QueryBuilder<MedicalRecordEntity, int, QQueryOperations> idProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'id');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      cattleresumeIdProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'cattleresumeId');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      causeOfProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'causeOf');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      createByProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'createBy');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      createTimeProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'createTime');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      deptIdProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'deptId');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      drugMethodsProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'drugMethods');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      drugNameProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'drugName');
    });
  }

  QueryBuilder<MedicalRecordEntity, double?, QQueryOperations>
      drugNumberProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'drugNumber');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      individualNoProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'individualNo');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      registrationNoProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'registrationNo');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      remarkProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'remark');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      resultsProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'results');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      searchValueProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'searchValue');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      specificationsProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'specifications');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      treatDateProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'treatDate');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      treatPersonnelProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'treatPersonnel');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations> unidProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'unid');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      updateByProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'updateBy');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      updateTimeProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'updateTime');
    });
  }

  QueryBuilder<MedicalRecordEntity, String?, QQueryOperations>
      uploadStatusProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'uploadStatus');
    });
  }
}
