patient.dart 570 B

123456789101112131415161718192021
  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. }