123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- import 'package:fis_jsonrpc/rpc.dart';
- import 'package:fis_common/event/event_type.dart';
- import 'package:vitalapp/managers/simple_Info.dart';
- import 'package:vitalapp/pages/patient/create/widgets/patient_info.dart';
- import 'models/process_arg.dart';
- abstract class IRemedicalManager {
- final processChange = FEventHandler<ProcessArg>();
- ///查找病人列表
- Future<PageResult<ClientPatientInfoBaseDTO>> findPatients({
- int pageIndex = 1,
- int pageSize = 20,
- String keyWord = '',
- DateTime? startDateTime,
- DateTime? endDateTime,
- PatientValidStatusEnum isValid = PatientValidStatusEnum.All,
- });
- ///实体转换为可提交至接口的病人信息
- List<DataItemDTO>? convertPatientInfoToPatientDatas(PatientInfo? patientInfo);
- /// 根据后端接口的key值取到对应的value
- ///
- /// [patientData] 后端数据
- ///
- /// [keys] 对应的Key值
- String getKeyValue(
- List<DataItemDTO> patientData,
- List<String> keys,
- );
- ///创建病人
- Future<bool> createPatientByUnregisteredAsync(String patientName,
- {String? code});
- ///查找病人列表
- Future<List<SimpleInfoItem>> findSimpleInfoPatients({
- int pageIndex = 1,
- int pageSize = 20,
- String keyWord = '',
- DateTime? startDateTime,
- DateTime? endDateTime,
- PatientValidStatusEnum isValid = PatientValidStatusEnum.All,
- bool isCounsultationPatient = false,
- });
- ///查找病人详情
- Future<ClientPatientInfoDTO> findPatientByCode(
- String patientCode,
- );
- ///未登记关联创建病人(返回病人code)
- Future<String> createUnregisteredPatient(String patientName, {String? code});
- /// 获取检查部位
- //Future<List<FSelectModel>> findScanPositions();
- ///查找测量图像
- Future<List<RemedicalMeasuredInfoDTO>> findRemedicalMeasuredInfoAsync(
- String recordCode,
- {BusinessTypeEnum businessType = BusinessTypeEnum.RemoteDiagnosis});
- ///查找AI图像
- Future<List<RemedicalAISelectedInfoDTO>> findAIImages(
- String recordCode, String patientId);
- ///打开图像测量页面
- void openImageMeasurePage(
- String imageUrl,
- int imageindex,
- String remedicalCode,
- String recordCode,
- String? remedicalAISelectedInfoCode,
- String patientCode,
- );
- ///查找检查报告
- Future<List<ReportDTO>> findExamReports(String recordCode);
- Future<QueryRecordResult?> queryRecordInfoAsync(String recordCode);
- ///检查是否有颈动脉图像
- bool checkCarotidList(
- RemedicalItemList remedicalItem, CarotidScanTypeEnum scanTypeEnum);
- ///查找检查记录页面
- Future<PageResult<SimpleRecordInfoDTO>> findRecordPages({
- List<String>? organizationCodes,
- List<String>? deviceCodes,
- RecordQueryStateEnum recordQueryState = RecordQueryStateEnum.All,
- RecordProcessStateEnum recordProcessState = RecordProcessStateEnum.All,
- String? keyWord,
- DateTime? startTime,
- DateTime? endTime,
- String patientCode,
- int pageIndex = 1,
- int pageSize = 20,
- });
- Future<RemedicalInfoDTO> findRemedicalByCode(String remedicalCode);
- }
|