| | |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.DTO.MydTrendReqDTO; |
| | | import com.smartor.domain.DTO.MzMydScoreRankDTO; |
| | | import com.smartor.domain.DTO.QuestionCountKsOrBqDTO; |
| | | import com.smartor.domain.DTO.QuestionResultDTO; |
| | | import com.smartor.domain.ServiceSubtask; |
| | | import com.smartor.domain.VO.*; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | * @param serviceSubtaskVO 单一任务(随访) |
| | | * @return 单一任务(随访)集合 |
| | | */ |
| | | public List<ServiceSubtask> selectServiceSubtaskList(ServiceSubtaskVO serviceSubtaskVO); |
| | | public List<ServiceSubtask> selectServiceSubtaskList(ServiceSubtaskEntity serviceSubtaskVO); |
| | | |
| | | public List<ServiceSubtask> selectServiceSubtaskListAgain(ServiceSubtaskVO serviceSubtaskVO); |
| | | public List<ServiceSubtask> selectServiceSubtaskListAgain(ServiceSubtaskEntity serviceSubtaskVO); |
| | | |
| | | /** |
| | | * 根据条件查询任务信息 |
| | |
| | | /** |
| | | * 查询患者随访信息 |
| | | */ |
| | | public List<ServiceSubtask> patItem(ServiceSubtaskVO serviceSubtaskVO); |
| | | public List<ServiceSubtaskRes> patItem(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | public List<ServiceSubtask> patItem2(ServiceSubtaskVO serviceSubtaskVO); |
| | | public List<ServiceSubtask> getServiceSubtasks(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | public Map<String, Object> patItemCount(ServiceSubtaskVO serviceSubtaskVO); |
| | | /** |
| | | * 转移科室病区 |
| | | * |
| | | * @param transferDeptVO |
| | | * @return |
| | | */ |
| | | public Integer transferDept(TransferDeptVO transferDeptVO); |
| | | |
| | | public List<ServiceSubtask> patItem2(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | public Map<String, Object> patItemCount(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | public Map<String, Object> countByCondition(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | /** |
| | | * 新增单一任务(随访) |
| | |
| | | * @param ServiceSubtask 单一任务(随访) |
| | | * @return 结果 |
| | | */ |
| | | public int insertServiceSubtask(ServiceSubtask ServiceSubtask); |
| | | public Map<String, Object> insertServiceSubtask(ServiceSubtask ServiceSubtask); |
| | | |
| | | /** |
| | | * 再次新增单一任务(随访) |
| | |
| | | * @return 结果 |
| | | */ |
| | | public Boolean updateServiceSubtask(ServiceSubtask ServiceSubtask); |
| | | |
| | | /** |
| | | * 子任务模板修改 |
| | | * |
| | | * @param serviceSubtaskTemplateVO |
| | | * @return |
| | | */ |
| | | public Boolean updateTemplate(ServiceSubtaskTemplateVO serviceSubtaskTemplateVO); |
| | | |
| | | /** |
| | | * 批量删除单一任务(随访) |
| | |
| | | */ |
| | | public PhoneCallBackYQVO phoneCallBackYQ(PhoneCallReqYQVO phoneCallReqYQVO); |
| | | |
| | | public PhoneCallBackSHVO getFirstQues(PhoneCallReqYQVO phoneCallReqYQVO); |
| | | |
| | | public PhoneCallBackSHVO processResust(PhoneCallResultYQVO phoneCallReqYQVO); |
| | | |
| | | /** |
| | | * 问题结果占比 |
| | | * |
| | | * @param QuestionResultVO |
| | | * @param serviceSubtaskRes |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> getDetailRatio(SltdMydTotalVO sltdMydTotalVO, List<ServiceSubtaskRes> serviceSubtaskRes); |
| | | |
| | | |
| | | /** |
| | | * 雨绮任务拉取 |
| | | * |
| | |
| | | public List<ServiceSubtaskCount> getSfFzInfoEveryMonth(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<ServiceSubtaskStatistic> getSfStatistics(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<ServiceSubtaskStatistic> getSpecialSfStatistics(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | //导出随访 |
| | | public List<ServiceSubtaskStatistic> getSfStatisticsExport(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | //导出随访-异常 |
| | | public List<ServiceSubtaskIsAbnormalStatistic> getSfStatisticsIsAbnormalExport(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<ServiceSubtaskStatistic> getSfStatisticsJoy(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<ServiceSubtaskCount> getSfStatisticsJoydetails(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<ServiceSubtask> getSfStatisticsHyperlink(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<ServiceStatisticsResponse> getServiceStatistics(ServiceStatisticsRequest request); |
| | | |
| | | public List<ServiceSubtaskStatistic> getSfStatisticsScript(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public Map<String, ServiceSubtaskScriptCount> getSfStatisticsScriptDetails(ServiceSubtaskCountReq serviceSubtaskCountReq); |
| | | |
| | | public List<PatArchiveSrmVO> sendMsgTemplate(List<PatArchiveSrmVO> patArchiveSrmVOS); |
| | | |
| | | public List<ServiceSubtaskDiagname> convertToDiagnameList(List<ServiceSubtask> subtaskList) ; |
| | | } |
| | | public List<ServiceSubtaskDiagname> convertToDiagnameList(List<ServiceSubtask> subtaskList); |
| | | |
| | | public Map<String, Object> getCurrentUserServiceSubtaskCount(ServiceSubtaskEntity entity); |
| | | |
| | | /** |
| | | * 按病区或科室统计延续护理数量 |
| | | * 都不传时同时按病区和科室各统计一遍 |
| | | * |
| | | * @param vo 查询条件(leavehospitaldistrictcodes 与 deptcodes 互斥) |
| | | * @return noContinueCount、ContinueCount 及 detail 列表 |
| | | */ |
| | | Map<String, Object> getContinueNurseCount(ServiceSubtaskCotinueCountVO vo); |
| | | |
| | | /** |
| | | * 设置失败任务默认值,并将失败任务重新置为成功 |
| | | * <p> |
| | | * *@param failDay (失败天数:距离当前日期失败天数) |
| | | * |
| | | * @return |
| | | */ |
| | | public void setFailSubTaskDefalutVal(Long failDay); |
| | | |
| | | public Map<String, Object> getHeLibraryCount(@RequestBody HeLibraryCountVO heLibraryCountVO); |
| | | |
| | | public List<ServiceSubtask> gethelibraryCountHyperlink(@RequestBody HeLibraryCountVO heLibraryCountVO); |
| | | |
| | | Map<String, Object> smsSubTask(Long subid); |
| | | |
| | | /** |
| | | * 统计问题的选项的百分比 (用于服务类型 2) |
| | | * |
| | | * @param taskIds 任务 ID 列表 |
| | | * @param subtaskIds 子任务 ID 列表(可选):传了就只统计这批子任务(本次导出的患者),分母也用同一批数据 |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOption(List<Long> taskIds, Date startFinishTime, Date endFinishTime, Date startOutHospTime, Date endOutHospTime, String scriptContent, Double scoreStart, Double scoreEnd, String valueType, List<Long> subtaskIds); |
| | | |
| | | /** |
| | | * 导出「问题详情占比」专用统计(只统计本次导出的这批患者) |
| | | * <p> |
| | | * 数量 = 选择该选项的患者数;比例 = 数量 / 该题作答患者数;分数 = 该选项明细 score 之和; |
| | | * 任务名称/任务编号 = service_task.task_name / taskid。 |
| | | * |
| | | * @param subtaskIds 本次导出的子任务 ID |
| | | * @param questiontext 问题内容(可选) |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> statMydQuestionOptionForExport(List<Long> subtaskIds, String questiontext); |
| | | |
| | | /** |
| | | * 根据子任务 ID 统计问题的选项的百分比(用于满意度统计 serviceType=6) |
| | | * |
| | | * @param subtaskIds 子任务 ID 列表 |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(List<Long> subtaskIds, Date startOutHospTime, Date endOutHospTime, Date startFinishTime, Date endFinishTime, String scriptContent, Double scoreStart, Double scoreEnd, String valueType); |
| | | |
| | | public Map<String, Map<String, List<QuestionCountKsOrBqDTO>>> statQuestionOptionByKsOrBq(QuestionCountKsOrBqVO questionCountKsOrBqVO); |
| | | |
| | | public String scanGenerateSubtask(ServiceTask serviceTaskVo); |
| | | |
| | | public List<MydTrendReqDTO> mydTrend(MydTrendReqVO mydTrendReqVO); |
| | | |
| | | /** |
| | | * 根据时间给度进行对比满意度分数 |
| | | * @param mydTrendReqVO |
| | | * @return |
| | | */ |
| | | public List<MydTrendReqDTO> sltdMydTotalByDimension(MydTrendReqVO mydTrendReqVO); |
| | | |
| | | public Integer matchOptionIndex(String url, String questionText, String voiceText, List<IvrTaskTemplateTargetoption> options, String uuid); |
| | | |
| | | /** |
| | | * 门诊满意度综合得分排名(按科室或病区) |
| | | * <p> |
| | | * 综合满意度 = Σ(评分明细权重) / 评分明细条数 × 100%, |
| | | * 权重只取 1、0.8、0.6、0.4、0.2 五档。 |
| | | * |
| | | * @param mzMydScoreRankVO 查询条件 |
| | | * @return 排名结果,已按综合得分降序并填充名次(从 1 开始) |
| | | */ |
| | | public List<MzMydScoreRankDTO> mzMydScoreRank(MzMydScoreRankVO mzMydScoreRankVO); |
| | | } |