BehospitalInfoMapper.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. package com.diagbot.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.diagbot.dto.BehospitalInfoDTO;
  5. import com.diagbot.dto.DeptNumDTO;
  6. import com.diagbot.dto.EntryStatisticsDTO;
  7. import com.diagbot.dto.ExportExcelDTO;
  8. import com.diagbot.dto.HomePageImproveDTO;
  9. import com.diagbot.dto.HomePageNumDTO;
  10. import com.diagbot.dto.LevelStatisticsDTO;
  11. import com.diagbot.dto.LevelStatisticsTZDTO;
  12. import com.diagbot.dto.MsgDTO;
  13. import com.diagbot.dto.NumDTO;
  14. import com.diagbot.dto.QcResultShortDTO;
  15. import com.diagbot.dto.ReBeHosMergeDTO;
  16. import com.diagbot.dto.UnModifyMRDetailDTO;
  17. import com.diagbot.entity.BehospitalInfo;
  18. import com.diagbot.vo.*;
  19. import org.apache.ibatis.annotations.Param;
  20. import java.util.List;
  21. import java.util.Map;
  22. import java.util.Set;
  23. /**
  24. * <p>
  25. * 住院病历信息 Mapper 接口
  26. * </p>
  27. *
  28. * @author zhoutg
  29. * @since 2020-04-13
  30. */
  31. public interface BehospitalInfoMapper extends BaseMapper<BehospitalInfo> {
  32. public IPage<BehospitalInfoDTO> getPage(BehospitalPageVO behospitalPageVO);
  33. public List<MsgDTO> getMsg(AnalyzeVO analyzeVO);
  34. public List<MsgDTO> getMsgByEntryCode(AnalyzeCodeVO analyzeCodeVO);
  35. /**
  36. * 各科室缺陷占比-全院-首页
  37. *
  38. * @param filterVO
  39. * @return
  40. */
  41. public List<NumDTO> entryByDept(FilterVO filterVO);
  42. /**
  43. * 质控结果缺陷总数查询
  44. *
  45. * @param filterVO
  46. * @return
  47. */
  48. public int getTotleResultNum(FilterVO filterVO);
  49. public List<BehospitalInfo> getNoGrade(TaskVO taskVO);
  50. IPage<BehospitalInfoDTO> getPageByDept(BehospitalPageVO behospitalPageVO);
  51. IPage<BehospitalInfoDTO> getPageByPerson(BehospitalPageVO behospitalPageVO);
  52. IPage<BehospitalInfoDTO> getPageByGroup(BehospitalPageVO behospitalPageVO);
  53. /**
  54. * 出院总人数统计-全院-首页
  55. *
  56. * @param filterVO
  57. * @return
  58. */
  59. public int leaveHosCount(FilterVO filterVO);
  60. /**
  61. * 新生儿出院人数统计-全院-首页
  62. *
  63. * @param filterVO
  64. * @return
  65. */
  66. public int newBornCount(FilterVO filterVO);
  67. /**
  68. * 死亡人数统计-全院-首页
  69. *
  70. * @param filterVO
  71. * @return
  72. */
  73. public int deathCount(FilterVO filterVO);
  74. /**
  75. * 手术人数统计-全院-首页
  76. *
  77. * @param filterVO
  78. * @return
  79. */
  80. public int operationCount(FilterVO filterVO);
  81. /**
  82. * 出院总人数统计-科室-首页
  83. *
  84. * @param filterVO
  85. * @return
  86. */
  87. public List<NumDTO> leaveHosCountByDept(FilterVO filterVO);
  88. /**
  89. * 新生儿出院人数统计-科室-首页
  90. *
  91. * @param filterVO
  92. * @return
  93. */
  94. public List<NumDTO> newBornCountByDept(FilterVO filterVO);
  95. /**
  96. * 死亡人数统计-科室-首页
  97. *
  98. * @param filterVO
  99. * @return
  100. */
  101. public List<NumDTO> deathCountByDept(FilterVO filterVO);
  102. /**
  103. * 手术人数统计-科室-首页
  104. *
  105. * @param filterVO
  106. * @return
  107. */
  108. public List<NumDTO> operationCountByDept(FilterVO filterVO);
  109. /**
  110. * 各科室缺陷占比排行(分页)
  111. *
  112. * @param filterPageVO
  113. * @return
  114. */
  115. public IPage<NumDTO> resultStatisticsByDeptPage(@Param("filterPageVO") FilterPageVO filterPageVO);
  116. /**
  117. * 各科室缺陷占比(组合)
  118. *
  119. * @param filterOrderVO
  120. * @return
  121. */
  122. public List<LevelStatisticsDTO> levelStatistics(FilterOrderVO filterOrderVO);
  123. /**
  124. * 病案首页合格率占比
  125. *
  126. * @param filterOrderVO
  127. * @return
  128. */
  129. public List<HomePageNumDTO> homePageLevelStatistics(FilterOrderVO filterOrderVO);
  130. /**
  131. * 各科室缺陷占比(主任医生)
  132. *
  133. * @param filterOrderByDeptVO
  134. * @return
  135. */
  136. public List<LevelStatisticsDTO> levelStatisticsByDept(FilterOrderByDeptVO filterOrderByDeptVO);
  137. /**
  138. * 病案首页合格率占比(主任医生)
  139. *
  140. * @param filterOrderByDeptVO
  141. * @return
  142. */
  143. public List<HomePageNumDTO> homePageLevelStatisticsByDept(FilterOrderByDeptVO filterOrderByDeptVO);
  144. /**
  145. * 科室缺陷占比-科室(分页)
  146. *
  147. * @param filterPageByDeptVO
  148. * @return
  149. */
  150. public IPage<DeptNumDTO> resultStatisticsByDeptAndDoctorPage(@Param("filterPageByDeptVO") FilterPageByDeptVO filterPageByDeptVO);
  151. /**
  152. * 各科室缺陷占比(组合)-全院-根据内外科系统统计-关联上级科室
  153. *
  154. * @param filterOrderVO
  155. * @return
  156. */
  157. public List<LevelStatisticsTZDTO> levelStatisticsByDeptClass(FilterOrderVO filterOrderVO);
  158. /**
  159. * 各科室缺陷占比(组合)-全院-根据内外科系统统计(台州)
  160. *
  161. * @param filterOrderVO
  162. * @return
  163. */
  164. public List<LevelStatisticsTZDTO> levelStatisticsByDeptClass_TZ(FilterOrderVO filterOrderVO);
  165. List<ExportExcelDTO> exportExcel();
  166. /**
  167. * 质控评分导出到excel
  168. *
  169. * @param exportQcresultVO
  170. * @return
  171. */
  172. public List<ExportExcelDTO> exportQcresult(ExportQcresultVO exportQcresultVO);
  173. /**
  174. * 科室质控评分导出到excel
  175. *
  176. * @param exportQcresultVO
  177. * @return
  178. */
  179. public List<ExportExcelDTO> exportQcresultByDept(ExportQcresultVO exportQcresultVO);
  180. /**
  181. * 医疗组质控评分导出到excel
  182. *
  183. * @param exportQcresultVO
  184. * @return
  185. */
  186. public List<ExportExcelDTO> exportQcresultByGroup(ExportQcresultVO exportQcresultVO);
  187. /**
  188. * 条目缺陷质控评分页(内页)
  189. *
  190. * @param qcResultShortPageVO
  191. * @return
  192. */
  193. public IPage<QcResultShortDTO> qcResultShortPage(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  194. /**
  195. * 条目缺陷质控评分页-科室(内页)
  196. *
  197. * @param qcResultShortPageVO
  198. * @return
  199. */
  200. public IPage<QcResultShortDTO> qcResultShortByDeptPage(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  201. /**
  202. * 根据两个主键-批量修改
  203. *
  204. * @param list
  205. */
  206. public void updateBatchByKey(List<BehospitalInfo> list);
  207. /**
  208. * 关键条目缺陷占比统计
  209. *
  210. * @param entryStatisticsVO
  211. * @return
  212. */
  213. public List<EntryStatisticsDTO> entryStatistics(EntryStatisticsVO entryStatisticsVO);
  214. /**
  215. * 非医嘱离院病人记录
  216. *
  217. * @param filterVO
  218. * @return
  219. */
  220. public int nonAdviceCount(FilterVO filterVO);
  221. /**
  222. * 31天内再入院记录
  223. *
  224. * @param filterVO
  225. * @return
  226. */
  227. public int get31DaysBehospitalCount(FilterVO filterVO);
  228. /**
  229. * 病案首页质控病历数统计-全院(首页)
  230. *
  231. * @param filterVO
  232. * @return
  233. */
  234. public HomePageNumDTO homePageQcPercent(FilterVO filterVO);
  235. /**
  236. * 病案首页完整率统计-全院(首页)
  237. *
  238. * @param filterVO
  239. * @return
  240. */
  241. public HomePageNumDTO hmEmptyEntryPercent(FilterVO filterVO);
  242. /**
  243. * 离院病人质控评分详情页
  244. *
  245. * @param qcResultShortPageVO
  246. * @return
  247. */
  248. public IPage<QcResultShortDTO> leaveHosMRPage(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  249. /**
  250. * 离院病人质控评分年龄单独查询详情页
  251. *
  252. * @param
  253. * @return
  254. */
  255. List<Map<String,Object>>getAge(@Param("hospitalId")String hospitalId, @Param("behospitalCodes")Set<String> behospitalCodes);
  256. /**
  257. * 改善率统计-全院(首页)
  258. *
  259. * @param filterVO
  260. * @return
  261. */
  262. public HomePageImproveDTO homePageImproveCount(FilterVO filterVO);
  263. /**
  264. * 质控核查统计(内页)
  265. *
  266. * @param filterOrderVO
  267. * @return
  268. */
  269. public List<HomePageImproveDTO> qcCheckStatistics(FilterOrderVO filterOrderVO);
  270. /**
  271. * 离院病人质控评分详情页导出到excel
  272. *
  273. * @param qcResultShortPageVO
  274. * @return
  275. */
  276. public List<ExportExcelDTO> leaveHosMRPageExport(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  277. /**
  278. * 条目缺陷质控评分详情页导出到excel
  279. *
  280. * @param qcResultShortPageVO
  281. * @return
  282. */
  283. public List<ExportExcelDTO> qcResultShortPageExport(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  284. /**
  285. * 未整改病历统计
  286. *
  287. * @param filterUnModifyMRVO
  288. * @return
  289. */
  290. public List<UnModifyMRDetailDTO> unModifyMRStatistics(FilterUnModifyMRVO filterUnModifyMRVO);
  291. /**
  292. * 运行病历稽查表
  293. *
  294. * @param filterVO
  295. * @return
  296. */
  297. public IPage<Map<String, Object>> getMedicalCheck(@Param("filterVO")FilterMedicalCheckVO filterVO,@Param("infos")List<Long> infos);
  298. /**
  299. * 未整改病历质控评分页(内页)
  300. *
  301. * @param qcResultShortPageVO
  302. * @return
  303. */
  304. public IPage<QcResultShortDTO> unModifyMRPage(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  305. /**
  306. * 未整改病历缺陷评分详情页导出
  307. *
  308. * @param qcResultShortPageVO
  309. * @return
  310. */
  311. public List<ExportExcelDTO> unModifyMRPageExport(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  312. /**
  313. * 31天再入院详情页
  314. *
  315. * @param reBeHosPageVO
  316. * @return
  317. */
  318. public IPage<ReBeHosMergeDTO> reHos31DaysPage(@Param("reBeHosPageVO") ReBeHosPageVO reBeHosPageVO);
  319. /**
  320. * 入院人数统计-首页
  321. *
  322. * @param filterVO
  323. * @return
  324. */
  325. public List<NumDTO> beHosCount(FilterVO filterVO);
  326. /**
  327. * 单条条目缺陷统计-首页
  328. *
  329. * @param filterVO
  330. * @return
  331. */
  332. public List<NumDTO> casesEntryStatisticsById(FilterVO filterVO);
  333. /**
  334. * 病案首页改善率质控评分页(内页)
  335. *
  336. * @param qcResultShortPageVO
  337. * @return
  338. */
  339. public IPage<QcResultShortDTO> hmImproveMRPage(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  340. /**
  341. * 病案首页改善率质控评分页导出
  342. *
  343. * @param qcResultShortPageVO
  344. * @return
  345. */
  346. public List<ExportExcelDTO> hmImproveMRPageExport(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  347. /**
  348. * 质控核查质控评分页(内页)
  349. *
  350. * @param qcResultShortPageVO
  351. * @return
  352. */
  353. public IPage<QcResultShortDTO> qcCheckMRPage(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  354. /**
  355. * 质控核查质控评分页导出
  356. *
  357. * @param qcResultShortPageVO
  358. * @return
  359. */
  360. public List<ExportExcelDTO> qcCheckMRPageExport(@Param("qcResultShortPageVO") QcResultShortPageVO qcResultShortPageVO);
  361. }