BehospitalInfoService.java 11 KB

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