12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- import 'package:fis_jsonrpc/rpc.dart';
- import 'package:vitalapp/managers/interfaces/models/patient_model_dto.dart';
- import 'package:vitalapp/pages/patient/info/widgets/ext_model.dart';
- import 'base.dart';
- import 'models/patient.dart';
- abstract class IPatientManager implements IManager {
- /// 创建居民
- ///
- /// 返回 Code
- Future<String?> create(CreatePatientRequest2 request);
- /// 获取居民分页列表
- Future<PageCollection<PatientModelDTO>?> getPagedList(
- PatientPageRequest request);
- /// 获取离线居民列表
- Future<List<PatientModelDTO>?> getPagedOfflineList(
- String? keyword,
- DateTime? startTime,
- DateTime? endTime,
- );
- ///创建病人扩展信息
- Future<String> createPatientExtension(
- String patientCode,
- PatientHealthInfoModel healthInfo,
- PatientDetailInfoModel detailInfo,
- String healthCode);
- /// 获取居民详情
- ///
- /// [isValidOperationDoctor] 是否根据操作医生验证
- ///
- /// [allowOfflineData] 允许离线数据
- Future<PatientDTO?> getDetail(
- String code, {
- bool isValidOperationDoctor = true,
- bool allowOfflineData = true,
- });
- /// 获取完整的离线居民数据
- Future<PatientFullInfoModel?> getOfflineFullInfo(String code);
- Future<bool> updatePatientAsync(UpdatePatientRequest2 request);
- ///创建居民健康信息
- Future<String> createPatientExtensionAsync(
- CreatePatientExtensionRequest request);
- ///获取居民健康信息
- Future<PatientExtensionDTO?> getPatientExtensionDetailByCodeAndKeyAsync(
- GetPatientExtensionByCodeAndKeyRequest request);
- ///更新居民健康信息
- Future<bool> updatePatientExtensionAsync(
- UpdatePatientExtensionRequest request);
- List<String> crowdLabelsConvert(List<String> labels);
- ///设置居民的人群分类
- Future<bool> setCrowdLabelsAsync(
- String patientCode, List<String> carowLabels);
- List<String> convertLabelsFormDto(List<String> labels);
- ///获取所有userCode等于空的数据,并赋值
- ///
- ///[userCode] 用户Code
- ///
- Future<void> resettingUsercodeIsEmptyData();
- /// 切换当前选中居民
- Future<void> switchCurrentPatient(PatientDTO dto);
- /// 根据code切换当前选中居民
- Future<void> switchCurrentPatientByCode(String code);
- /// 根据体检号获取体检者信息
- Future<RegisterPersonInfoDTO?>
- getRegisterPersonInfoByPhysicalExamNumberAsync({
- required String physicalExamNumber,
- });
- // /// 更新离线记录为同步成功
- // Future<void> updateOfflineSyncDone();
- /// 删除居民
- Future<bool> removePatient(String code);
- /// 获取统计信息
- Future<PatientStatisticDTO> getStatistic();
- }
|