exam.dart 906 B

1234567891011121314151617181920212223242526272829303132333435
  1. import 'package:vital_local_database/index.dart';
  2. import 'package:vitalapp/database/entities/exam.dart';
  3. abstract class IExamRepository
  4. implements IDbRepositroy<ExamEntity, ExamColumnsDefine> {
  5. /// 根据code获取实体
  6. ///
  7. /// [code] 检查记录code
  8. ///
  9. /// [userCode] 医生Code
  10. Future<ExamEntity?> singleByCodeWithUserCode(String code, String userCode);
  11. /// 查询居民所有体检列表
  12. ///
  13. /// [patientCode] 居民Code
  14. ///
  15. /// [userCode] 医生Code
  16. ///
  17. /// [keys] 模板集合
  18. Future<List<ExamEntity>> queryPatientAllList(
  19. String patientCode, String userCode,
  20. {List<String>? keys});
  21. /// 查询居民下的体检分页列表
  22. ///
  23. /// [patientCode] 居民Code
  24. ///
  25. /// [userCode] 医生Code
  26. Future<DbPagedList<ExamEntity>> queryPatientPagedList(
  27. String patientCode,
  28. String userCode,
  29. int pageIndex, {
  30. int pageSize = 50,
  31. });
  32. }