import 'package:vitalapp/database/entities/defines.dart'; import 'package:vitalapp/database/entities/patient.dart'; import 'package:vitalapp/managers/interfaces/base.dart'; import 'models/common.dart'; import 'models/data_sync.dart'; /// 数据同步Mananger abstract class IDataSyncManager implements IManager { /// 获取病人分页列表 /// /// [pageIndex] 当前页,从 `1` 开始 /// /// [pageSize] 页码,默认 `50` /// /// [syncStates] 同步状态,为空时查询全部状态 /// /// [isReturnCountOnly] 是否只返回数量 Future> getPatientPagedList( int pageIndex, { int pageSize = 50, List? syncStates, bool isReturnCountOnly = false, }); /// 获取所有待上传居民列表 Future> getPatientWaitUploadAllList(); /// 同步病人所有模块数据 Future syncPatientAllData(String patientCode); /// 校验同步是否完成 bool checkPatientSyncCompleted(PatientEntity entity); /// 同步病人 Future syncPatient(PatientEntity entity); /// 同步居民的健康检测数据 Future syncPatientDiagnosis(String patientCode); /// 同步居民的随访数据 Future syncPatientFollowUp(String patientCode); /// 同步居民的健康体检 Future syncPatientExam(String patientCode); /// 同步居民的中医体质 Future syncPatientTCMConsitution(String patientCode); }