health_check_record.dart 832 B

12345678910111213141516171819202122232425262728
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. import 'package:vitalapp/managers/interfaces/health_check_record.dart';
  3. import 'package:vitalapp/rpc.dart';
  4. import 'package:vitalapp/store/store.dart';
  5. class HealthCheckRecordManager implements IHealthCehckRecordManager {
  6. @override
  7. Future<List<ExamRecordDTO>?> getExamRecordList(String patientCode) async {
  8. try {
  9. GetExamRecordListRequest request = GetExamRecordListRequest(
  10. patientCode: patientCode,
  11. keys: [
  12. "ZZYBZK",
  13. "SHFS",
  14. "ZQCT",
  15. "FZJC",
  16. "XCZYWT",
  17. "ZYYYFMYGHYFJZS",
  18. "JKPJJZD",
  19. ],
  20. token: Store.user.token);
  21. final result = await rpc.vitalExam.getExamRecordListAsync(request);
  22. return result;
  23. } catch (e) {
  24. return null;
  25. }
  26. }
  27. }