record_data_cache.dart 884 B

1234567891011121314151617181920212223242526
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. import 'package:vitalapp/database/entities/defines.dart';
  3. import 'package:vitalapp/database/entities/diagnosis.dart';
  4. import 'base.dart';
  5. abstract class IRecordDataCacheManager implements IManager {
  6. Future<bool> saveRecordData(String appDataId, String patientCode,
  7. Map<String, dynamic> diagnosisDataValue);
  8. Future<bool> recordSyncStateChange(
  9. String appDataId, {
  10. OfflineDataSyncState state = OfflineDataSyncState.success,
  11. });
  12. Future<DiagnosisEntity?> getLastRecordByPatientCode(String patientCode);
  13. Future<List<DiagnosisEntity>> getNoSubmitRecords(String patientCode);
  14. Future<List<DiagnosisItem>> convertDiagnosisDataToList(
  15. Map<String, dynamic> diagnosisDataValue);
  16. /// 校验是否有没有填写
  17. Future<List<DiagnosisItem>> verifyDiagnosisDataList(
  18. Map<String, dynamic> diagnosisDataValue);
  19. }