follow_up.dart 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import 'package:fis_common/event/event_type.dart';
  2. import 'package:fis_jsonrpc/rpc.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:vitalapp/managers/interfaces/base.dart';
  5. /// 随访管理
  6. abstract class IFollowUpManager implements IManager {
  7. final FEventHandler<String> onFollowMedicalData = FEventHandler<String>();
  8. /// 创建随访
  9. Future<String> createFollowUp(CreateFollowUpRequest createFollowUpRequest);
  10. Future<List<FollowUpDTO>?> getFollowUpPage(
  11. FollowUpPageRequest followUpPageRequest);
  12. ///根据patientCode获取随访记录
  13. Future<List<FollowUpRecordDTO>?> getFollowUpRecordList(
  14. List<String> keys, String patientCode);
  15. /// 根据年份获取数据
  16. Future<List<FollowUpRecordDTO>?> getFollowUpRecordListByYearAsync(
  17. GetFollowUpRecordListByYearRequest followUpRecordListByYearRequest);
  18. Future<bool?> updateFollowUp(UpdateFollowUpRequest followRequest);
  19. /// 获取居民未上传离线数据集合
  20. Future<List<FollowUpRecordDTO>> getPatientNotUploadedRecordList(
  21. String patientCode, String key);
  22. ///获取随访模式
  23. String getFollowUpMode(FollowUpModeEnum? modeEnum);
  24. //随访状态的颜色
  25. MaterialColor followUpStateColors(FollowUpStateEnum state);
  26. ///随访状态
  27. String followUpStateTransition(FollowUpStateEnum state);
  28. ///移除随访记录
  29. Future<bool> removeFollowUpAsync(String code, String key);
  30. }