patient.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:vital_local_database/core/interface/repository.dart';
  2. import 'package:vitalapp/database/entities/patient.dart';
  3. abstract class IPatientRepository
  4. implements IDbRepositroy<PatientEntity, PatientColumnsDefine> {
  5. /// 根据code获取实体
  6. Future<PatientEntity?> singleByCode(
  7. String code,
  8. String userCode,
  9. );
  10. /// 根据居民Code查找未上传数据列表
  11. ///
  12. /// [patientCode] 居民Code
  13. ///
  14. /// [syncState] 同步状态,不传搜索全部
  15. Future<bool> isNotUploadedPatient(
  16. String code,
  17. String userCode,
  18. );
  19. /// 增加随访数量
  20. Future<bool> increaseFollowUpCount(String code, String userCode);
  21. /// 增加体检数量
  22. Future<bool> increaseExamCount(String code, String userCode);
  23. /// 增加检测数量
  24. Future<bool> increaseDiagnoissCount(String code, String userCode);
  25. /// 减少随访数量
  26. Future<bool> decreaseFollowUpCount(String code, String userCode);
  27. /// 减少体检数量
  28. Future<bool> decreaseExamCount(String code, String userCode);
  29. /// 减少检测数量
  30. Future<bool> decreaseDiagnoissCount(String code, String userCode);
  31. }