diagnosis.dart 641 B

123456789101112131415161718192021222324
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. class DiagnosisServiceMock extends VitalDiagnosisService {
  3. DiagnosisServiceMock(super.host);
  4. @override
  5. Future<bool> syncPatientAndDiagnosisDataAsync(
  6. SyncPatientAndDiagnosisDataRequest request) async {
  7. return true;
  8. }
  9. @override
  10. Future<PageCollection<DiagnosisAggregationRecord>>
  11. getDiagnosisAggregationPageAsync(DiagnosisPageRequest request) async {
  12. // 无数据
  13. final result = PageCollection<DiagnosisAggregationRecord>(
  14. dataCount: 0,
  15. pageIndex: request.pageIndex,
  16. pageSize: request.pageSize,
  17. pageData: [],
  18. );
  19. return result;
  20. }
  21. }