Explorar el Código

指标更新优化

zhanghang hace 4 años
padre
commit
94d27f11de

+ 70 - 70
doc/031.20210326v2.0.3/qc_initv2.0.3.sql

@@ -77,77 +77,77 @@ INSERT INTO `qc_cases_relevance_entry` (`type`, `hospital_id`, `cases_name`, `re
 编码添加
  */
 
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3117', '241', '三级查房制度', '4', 'THR03117', '病理检查存在病程记录中无病理报告结果', '2', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 11:04:42', '2021-04-16 11:04:42', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3116', '283', '病历书写规范', '8', 'MEDI03116', '病理检查缺少病理检查报告单', '2', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 11:07:28', '2021-04-16 11:07:28', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3115', '241', '三级查房制度', '4', 'THR03115', '医嘱存在CT,病程记录未记录', '2', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 11:17:24', '2021-04-16 11:17:24', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3114', '283', '病历书写规范', '8', 'MEDI03114', '医嘱存在CT,报告单未记录', '2', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 11:16:51', '2021-04-16 11:16:51', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3113', '241', '三级查房制度', '4', 'THR3113', '医嘱存在MR,病程记录未记录', '2', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 11:17:46', '2021-04-16 11:17:46', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3112', '283', '病历书写规范', '8', 'MEDI03112', '医嘱存在MR,报告单未记录', '2', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 10:58:38', '2021-04-16 10:58:38', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3111', '248', '围手术期病历讨论', '17', 'OPE03111', '手术病理检查存在手术记录中无病理相关记录', '1', '1', '0', '0', '3', '', NULL, '', 'N', '2021-04-16 11:03:55', '2021-04-16 11:03:55', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3110', '243', '病案首页', '6', 'FIRP03110', '病案首页未在患者出院院24小时内完成', '1', '1', '0', '0', '1', '', NULL, '', 'N', '2021-04-07 17:13:57', '2021-04-07 17:13:57', '0', '医学人员');
-INSERT INTO `qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3107', '248', '围手术期病历讨论', '17', 'OPE03107', '手术记录次数与手术次数不一致', '2', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-15 14:18:44', '2021-04-15 14:18:44', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3107', '248', '围手术期病历讨论', '17', 'OPE03107', '手术记录次数与手术次数不一致', '2', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-19 11:54:19', '2021-04-19 11:54:19', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3110', '243', '病案首页', '6', 'FIRP03110', '病案首页未在患者出院院24小时内完成', '1', '1', '0', '1', '1', '', NULL, '', 'N', '2021-04-19 11:57:14', '2021-04-19 11:57:14', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3111', '248', '围手术期病历讨论', '17', 'OPE03111', '手术病理检查存在手术记录中无病理相关记录', '1', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-19 11:57:52', '2021-04-19 11:57:52', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3112', '283', '病历书写规范', '57', 'MEDI03112', '医嘱存在MR,报告单未记录', '2', '1', '0', '1', '3', '', NULL, '', 'N', '2021-04-20 17:45:41', '2021-04-20 17:45:41', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3113', '241', '三级查房制度', '4', 'THR3113', '医嘱存在MR,病程记录未记录', '2', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-19 11:55:18', '2021-04-19 11:55:18', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3114', '283', '病历书写规范', '57', 'MEDI03114', '医嘱存在CT,报告单未记录', '2', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-20 17:46:14', '2021-04-20 17:46:14', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3115', '241', '三级查房制度', '4', 'THR03115', '医嘱存在CT,病程记录未记录', '2', '1', '0', '1', '3', '', NULL, '', 'N', '2021-04-19 11:55:38', '2021-04-19 11:55:38', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3116', '283', '病历书写规范', '57', 'MEDI03116', '病理检查缺少病理检查报告单', '2', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-20 17:46:02', '2021-04-20 17:46:02', '0', '医学人员');
+INSERT INTO `qc`.`qc_cases_entry` (`id`, `cases_id`, `cases_name`, `mode_id`, `code`, `name`, `drgs`, `type`, `rule_type`, `dev_type`, `accuracy_type`, `precond`, `order_no`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('3117', '241', '三级查房制度', '4', 'THR03117', '病理检查存在病程记录中无病理报告结果', '2', '1', '0', '1', '2', '', NULL, '', 'N', '2021-04-19 11:56:50', '2021-04-19 11:56:50', '0', '医学人员');
 
 /**
 qc_cases_entry_hospital、qc_type_cases_entry 分值确定添加
  */
 INSERT INTO `qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:54:19', '2021-04-19 11:54:19', '0', '医学人员', '3107', '4', '1.0', '1.0', '手术记录次数与手术次数不一致', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21322', 'N', '2021-04-19 11:56:50', '2021-04-19 11:56:50', '0', '医学人员', '3117', '4', '1.0', '1.0', '病理检查存在病程记录中无病理报告结果', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21321', 'N', '2021-04-19 11:56:23', '2021-04-19 11:56:23', '0', '医学人员', '3116', '4', '1.0', '1.0', '病理检查缺少病理检查报告单', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21319', 'N', '2021-04-19 11:55:38', '2021-04-19 11:55:38', '0', '医学人员', '3115', '4', '1.0', '1.0', '医嘱存在CT,病程记录未记录', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21320', 'N', '2021-04-19 11:55:59', '2021-04-19 11:55:59', '0', '医学人员', '3114', '4', '1.0', '1.0', '医嘱存在CT,报告单未记录', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21318', 'N', '2021-04-19 11:55:18', '2021-04-19 11:55:18', '0', '医学人员', '3113', '4', '1.0', '1.0', '医嘱存在MR,病程记录未记录', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21324', 'N', '2021-04-19 11:57:30', '2021-04-19 11:57:30', '0', '医学人员', '3112', '4', '1.0', '1.0', '医嘱存在MR,报告单未记录', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21325', 'N', '2021-04-19 11:57:52', '2021-04-19 11:57:52', '0', '医学人员', '3111', '4', '1.0', '1.0', '手术病理检查存在手术记录中无病理相关记录', '1', '1', '0', '');
-INSERT INTO `qc`.`qc_cases_entry_hospital` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ('21323', 'N', '2021-04-19 11:57:14', '2021-04-19 11:57:14', '0', '医学人员', '3110', '4', '1.0', '1.0', '病案首页未在患者出院院24小时内完成', '1', '1', '0', '');
-
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329070', '65', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329071', '74', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329072', '66', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329073', '80', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329074', '109', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329075', '110', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329076', '65', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329077', '66', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329078', '74', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329079', '80', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329080', '109', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329081', '110', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329088', '66', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329089', '65', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329090', '74', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329091', '80', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329092', '109', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329093', '110', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329082', '65', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329083', '66', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329084', '74', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329085', '80', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329086', '109', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329087', '110', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329094', '65', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329095', '66', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329096', '74', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329097', '80', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329098', '109', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329099', '110', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329058', '65', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329059', '66', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329060', '74', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329061', '80', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329062', '109', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329063', '110', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329052', '65', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329053', '66', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329054', '74', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329055', '80', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329056', '109', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329057', '110', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329064', '65', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329065', '66', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329066', '74', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329067', '80', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329068', '109', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
-INSERT INTO `qc`.`qc_type_cases_entry` (`id`, `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ('329069', '110', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:56:50', '2021-04-19 11:56:50', '0', '医学人员', '3117', '4', '1.0', '1.0', '病理检查存在病程记录中无病理报告结果', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:56:23', '2021-04-19 11:56:23', '0', '医学人员', '3116', '4', '1.0', '1.0', '病理检查缺少病理检查报告单', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:55:38', '2021-04-19 11:55:38', '0', '医学人员', '3115', '4', '1.0', '1.0', '医嘱存在CT,病程记录未记录', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:55:59', '2021-04-19 11:55:59', '0', '医学人员', '3114', '4', '1.0', '1.0', '医嘱存在CT,报告单未记录', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:55:18', '2021-04-19 11:55:18', '0', '医学人员', '3113', '4', '1.0', '1.0', '医嘱存在MR,病程记录未记录', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:57:30', '2021-04-19 11:57:30', '0', '医学人员', '3112', '4', '1.0', '1.0', '医嘱存在MR,报告单未记录', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:57:52', '2021-04-19 11:57:52', '0', '医学人员', '3111', '4', '1.0', '1.0', '手术病理检查存在手术记录中无病理相关记录', '1', '1', '0', '');
+INSERT INTO `qc`.`qc_cases_entry_hospital` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `cases_entry_id`, `hospital_id`, `score`, `score_run`, `msg`, `is_used`, `is_used_run`, `is_reject`, `remark`) VALUES ( 'N', '2021-04-19 11:57:14', '2021-04-19 11:57:14', '0', '医学人员', '3110', '4', '1.0', '1.0', '病案首页未在患者出院院24小时内完成', '1', '1', '0', '');
+
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3117', NULL, 'N', '2021-04-19 12:47:51', '2021-04-19 12:47:51', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3116', NULL, 'N', '2021-04-19 12:48:09', '2021-04-19 12:48:09', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3115', NULL, 'N', '2021-04-19 12:48:57', '2021-04-19 12:48:57', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3114', NULL, 'N', '2021-04-19 12:48:42', '2021-04-19 12:48:42', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3113', NULL, 'N', '2021-04-19 12:49:11', '2021-04-19 12:49:11', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3112', NULL, 'N', '2021-04-19 12:47:20', '2021-04-19 12:47:20', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3111', NULL, 'N', '2021-04-19 12:47:02', '2021-04-19 12:47:02', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '65', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '66', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '74', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '80', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '109', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
+INSERT INTO `qc`.`qc_type_cases_entry` ( `type_id`, `case_entry_id`, `remark`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`) VALUES ( '110', '3110', NULL, 'N', '2021-04-19 12:47:35', '2021-04-19 12:47:35', '99', '99');
 
 
 
@@ -269,10 +269,10 @@ INSERT INTO `med_outpatient_info` VALUES ('200701106000029', '4', '马立站', '
 INSERT INTO `sys_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `name`, `parent_id`, `code`, `show_status`, `maintain_status`, `order_no`, `remark`) VALUES ('N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '医疗质量控制', '-1', 'YH-ZKK-YLZLKZ', '1', '1', '-4', '用户-医疗质量');
 INSERT INTO `sys_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `name`, `parent_id`, `code`, `show_status`, `maintain_status`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '医疗质量控制指标', '50', 'YH-ZKK-YLZLKZZB_XQ', '1', '1', '0', '用户-科室主任-医疗质量控制指标_详情');
 
-INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '1', '50', NULL);
-INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '50', NULL);
-INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '1', '51', NULL);
-INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '51', NULL);
+INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '1', '41', NULL);
+INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '41', NULL);
+INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '1', '42', NULL);
+INSERT INTO `sys_role_menu` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `role_id`, `menu_id`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '42', NULL);
 
 INSERT INTO `sys_permission` ( `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `name`, `code`, `permissionUrl`, `method`, `descritpion`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '医疗质量控制指标', 'FUNC000110', '/qc/behospitalInfo/getMedQualityCoList', 'ALL', '医疗质量控制指标表', NULL);
 

+ 38 - 0
src/main/java/com/diagbot/enums/QualityContent.java

@@ -13,6 +13,44 @@ public class QualityContent {
     public static final String NUMBER_OF_HOSPITAL = "入院人数";
     public static final String NO_RECORD_OPERATION = "无病案首页手术患者";
     public static final String NO_RECORD_OPERATION_PATHOLOGY = "无病案首页手术病理患者";
+    /**
+     * 是否需要用到医嘱的指标名称
+     */
+    public static List<String> NO_MEDICAL_ADVICE = Arrays.asList("全部",
+            "入院记录24小时内完成率","出院记录24小时内完成率","病案首页24小时内完成率"
+    );
+    public static List<String> NEED_MEDICAL_ADVICE = Arrays.asList("全部",
+            "手术记录24小时内完成率","CT检查记录符合率","MRI检查记录符合率","病理检查记录符合率"
+    );
+    /**
+     * 所有指标名称
+     */
+
+    public static final String QB = "全部";
+    public static final String ZYBA_CYHZ = "住院病案管理人员月均负担出院患者病历数";
+    public static final String BABM_CYHZ = "病案编码人员月均负担出院患者病历数";
+    public static final String MZBA_CYHZ = "门诊病案管理人员月均负担门诊患者病历数";
+    public static final String RYJL_24H_WCL = "入院记录24小时内完成率";
+    public static final String CYJL_24H_WCL = "出院记录24小时内完成率";
+    public static final String BASY_24H_WCL = "病案首页24小时内完成率";
+    public static final String SSJL_24H_WCL = "手术记录24小时内完成率";
+    public static final String CT_JCJL_FHL = "CT检查记录符合率";
+    public static final String MR_JCJL_FHL = "MRI检查记录符合率";
+    public static final String BL_JCJL_FHL = "病理检查记录符合率";
+    public static final String XJPY_JCJL_FHL = "细菌培养检查记录符合率";
+    public static final String KJYW_SY_FHL = "抗菌药物使用记录符合率";
+    public static final String EXZL_HXZL_FHL = "恶性肿瘤化学治疗记录符合率";
+    public static final String EXZL_FSZL_FHL = "恶性肿瘤放射治疗记录符合率";
+    public static final String SS_XGJL_WCL = "手术相关记录完成率";
+    public static final String ZRW_XGJL_WCL = "植入物相关记录符合率";
+    public static final String LCYX_XGJL_WCL = "临床用血相关记录符合率";
+    public static final String YSCF_JL_WCL = "医师查房记录完成率";
+    public static final String HZQJ_JLJS_WCL = "患者抢救记录及时完成率";
+    public static final String CCHZ_2DAY_GDL = "出院患者病历2日归档率";
+    public static final String CCHZ_GD_WZL = "出院患者病历归档完整率";
+    public static final String BHL_FZ_FSL = "不合理复制病历发生率";
+    public static final String ZQTYS_GF_QSL = "知情同意书规范签署率";
+    public static final String JJBLL = "甲级病历率";
     /**
      * 触发规则指标
      */

+ 190 - 205
src/main/java/com/diagbot/facade/ConsoleFacade.java

@@ -390,30 +390,13 @@ public class ConsoleFacade {
      */
     public List<Map<String, String>> medicalRecordIndicator(FilterVO filterVO) {
         filterFacade.filterVOSet(filterVO);
-        MedQualityControlDTO medQualityControlDTO = new MedQualityControlDTO();
+        String indexName = filterVO.getIndexName();
+        List<Map<String, String>> hashMapArrayList = new ArrayList<>();
         Map<String, Long> selectOperationNumMap = behospitalInfoFacade.selectOperationNum(filterVO);
         //出院人数
         Long startCount = selectOperationNumMap.get(QualityContent.DISCHARGED_PATIENTS);
         //入院人数
         Long endCount = selectOperationNumMap.get(QualityContent.NUMBER_OF_HOSPITAL);
-        Map<String, Integer> operationPathologyNumMap = getOperationPathologyNum(filterVO);
-        //手术人数
-        Long operationFeeNum = selectOperationNumMap.get("operationFee");
-        Integer operationNum = operationPathologyNumMap.get(QualityContent.NO_RECORD_OPERATION);
-        operationFeeNum = operationFeeNum + operationNum;
-        //抗菌人数
-        Long antibiosisFeeNum = selectOperationNumMap.get("antibiosisFee");
-        Integer antibiosis = Integer.valueOf(getAntibiosisNum(filterVO));
-        antibiosisFeeNum = antibiosisFeeNum + antibiosis;
-        //手术病理人数
-        Long operationPathologyFeeNum = selectOperationNumMap.get("operationPathologyFee");
-        Integer operationPathologyNum = operationPathologyNumMap.get(QualityContent.NO_RECORD_OPERATION_PATHOLOGY);
-        operationPathologyFeeNum = operationPathologyFeeNum + operationPathologyNum;
-        Map<String, Long> longMap = getCTNum(filterVO);
-        //CT人数
-        Long CTNum = longMap.get("CT");
-        //MR人数
-        Long MRNum = longMap.get("MR");
         //各指标未完成人数情况
         Map<String, Long> triggeringRulesMap = behospitalInfoFacade.triggeringRules(filterVO);
         Long operationCount = triggeringRulesMap.get(QualityContent.SSJLWCC_24H);
@@ -422,89 +405,118 @@ public class ConsoleFacade {
         Long recordHomePage = triggeringRulesMap.get(QualityContent.BASYWWC_24H);
         //病理手术
         Long antibiosisNum = triggeringRulesMap.get("antibiosisNum");
-        //细菌培养
-        Long bacterialCulture = triggeringRulesMap.get("bacterialCulture");
         //CT
         Long ct = triggeringRulesMap.get("CT");
         //MR
         Long mr = triggeringRulesMap.get("MR");
-        List<Map<String, String>> hashMapArrayList = new ArrayList<>();
-        //入院记录24小时完成率
-        //入院记录完成人数为
-        if (InHospitalRecords != null && startCount!=null) {
-         //   medQualityControlDTO.setAdmissionNum(Double.valueOf(startCount - InHospitalRecords));
-            //入院记录完成率
-        //    medQualityControlDTO.setAdmissionStr(getResult(startCount - InHospitalRecords, startCount));
-            Map<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","入院记录24小时内完成率");
-            stringStringHashMap.put("notCopiedStr",getResult(startCount - InHospitalRecords, startCount));
-            stringStringHashMap.put("num",Double.valueOf(startCount - InHospitalRecords).toString());
-            hashMapArrayList.add(stringStringHashMap);
-        }
-        //手术记录完成率
-        //手术完成人数为
-        if (operationCount != null && operationFeeNum!=null){
-        //    medQualityControlDTO.setOperationNum(Double.valueOf(operationFeeNum - operationCount));
-        //手术完成率
-       //      medQualityControlDTO.setOperationStr(getResult(operationFeeNum - operationCount, operationFeeNum));
-            LinkedHashMap<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","手术记录24小时内完成率");
-             stringStringHashMap.put("notCopiedStr",getResult(operationFeeNum - operationCount, operationFeeNum));
-             stringStringHashMap.put("num",Double.valueOf(operationFeeNum - operationCount).toString());
-            hashMapArrayList.add(stringStringHashMap);
-        }
-            //出院记录24小时完成率
-            //出院记录完成人数为
-        if (OutHospitalRecords != null && startCount!=null) {
-      //      medQualityControlDTO.setLeaveHospitalNum(Double.valueOf(startCount - OutHospitalRecords));
-            //出院记录完成率
-      //      medQualityControlDTO.setLeaveHospitalStr(getResult(startCount - OutHospitalRecords, startCount));
-            Map<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","出院记录24小时内完成率");
-            stringStringHashMap.put("notCopiedStr",getResult(startCount - OutHospitalRecords, startCount));
-            stringStringHashMap.put("num",Double.valueOf(startCount - OutHospitalRecords).toString());
-            hashMapArrayList.add(stringStringHashMap);
-        }
-            //病案首页24小时完成率
-            //病案首页完成人数为
-        if (recordHomePage != null && startCount!=null) {
-       //     medQualityControlDTO.setMedHomePageNum(Double.valueOf(startCount - recordHomePage));
-            //病案首页完成率
-        //    medQualityControlDTO.setMedHomePageStr(getResult(startCount - recordHomePage, startCount));
-            Map<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","病案首页24小时完成率");
-            stringStringHashMap.put("notCopiedStr",getResult(startCount - recordHomePage, startCount));
-            stringStringHashMap.put("num",Double.valueOf(startCount - recordHomePage).toString());
-            hashMapArrayList.add(stringStringHashMap);
-        }
-        //CT完成率
-        if(CTNum!=null && ct!=null) {
-        //    medQualityControlDTO.setCTExaminationConform(getResult(CTNum - ct, CTNum));
-            Map<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","CT检查记录符合率");
-            stringStringHashMap.put("notCopiedStr",getResult(CTNum - ct, CTNum));
-            stringStringHashMap.put("num",Double.valueOf(CTNum - ct).toString());
-            hashMapArrayList.add(stringStringHashMap);
-        }
-        //MR完成率
-        if(MRNum!=null && mr!=null) {
-        //    medQualityControlDTO.setMRIExaminationConform(getResult(MRNum - mr, MRNum));
-            Map<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","MRI检查记录符合率");
-            stringStringHashMap.put("notCopiedStr",getResult(MRNum - mr, MRNum));
-            stringStringHashMap.put("num",Double.valueOf(MRNum - mr).toString());
-            hashMapArrayList.add(stringStringHashMap);
-        }
-        if(operationPathologyFeeNum!=null && antibiosisNum!=null) {
-            //病理完成率为
-        //    medQualityControlDTO.setPathologicalExamination(getResult(operationPathologyFeeNum - antibiosisNum, operationPathologyFeeNum));
-            Map<String, String> stringStringHashMap = new LinkedHashMap<>();
-            stringStringHashMap.put("name","病理检查记录符合率");
-            stringStringHashMap.put("notCopiedStr",getResult(operationPathologyFeeNum - antibiosisNum, operationPathologyFeeNum));
-            stringStringHashMap.put("num",Double.valueOf(operationPathologyFeeNum - antibiosisNum).toString());
-            hashMapArrayList.add(stringStringHashMap);
+        if(StringUtil.isNotEmpty(indexName)) {
+            if(QualityContent.NO_MEDICAL_ADVICE.contains(indexName)){
+                //入院记录24小时完成率
+                //入院记录完成人数为
+                if(indexName.equals(QualityContent.RYJL_24H_WCL)||indexName.equals(QualityContent.QB)) {
+                    if (InHospitalRecords != null && startCount != null) {
+                        Map<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.RYJL_24H_WCL);
+                        stringStringHashMap.put("notCopiedStr", getResult(startCount - InHospitalRecords, startCount));
+                        stringStringHashMap.put("num", Double.valueOf(startCount).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+
+                //出院记录24小时完成率
+                //出院记录完成人数为
+                if(indexName.equals(QualityContent.CYJL_24H_WCL)||indexName.equals(QualityContent.QB)) {
+                    if (OutHospitalRecords != null && startCount != null) {
+                        Map<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.CYJL_24H_WCL);
+                        stringStringHashMap.put("notCopiedStr", getResult(startCount - OutHospitalRecords, startCount));
+                        stringStringHashMap.put("num", Double.valueOf(startCount).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+                //病案首页24小时完成率
+                //病案首页完成人数为
+                if(indexName.equals(QualityContent.BASY_24H_WCL)||indexName.equals(QualityContent.QB)) {
+                    if (recordHomePage != null && startCount != null) {
+                        Map<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.BASY_24H_WCL);
+                        stringStringHashMap.put("notCopiedStr", getResult(startCount - recordHomePage, startCount));
+                        stringStringHashMap.put("num", Double.valueOf(startCount).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+            }
+            if (QualityContent.NEED_MEDICAL_ADVICE.contains(indexName)) {
+                filterVO.setFlagStr("2");
+                List<MedManageParamsDTO> doctorAdviceMedManageParams = behospitalInfoFacade.getMedManageParams(filterVO);
+                Map<String, Integer> operationPathologyNumMap = getOperationPathologyNum(filterVO, doctorAdviceMedManageParams);
+                //手术人数
+                Long operationFeeNum = selectOperationNumMap.get("operationFee");
+                Integer operationNum = operationPathologyNumMap.get(QualityContent.NO_RECORD_OPERATION);
+                operationFeeNum = operationFeeNum + operationNum;
+                Map<String, Long> longMap = getCTNum(doctorAdviceMedManageParams);
+                //CT人数
+                Long CTNum = longMap.get("CT");
+                //MR人数
+                Long MRNum = longMap.get("MR");
+                //手术病理人数
+                Long operationPathologyFeeNum = selectOperationNumMap.get("operationPathologyFee");
+                Integer operationPathologyNum = operationPathologyNumMap.get(QualityContent.NO_RECORD_OPERATION_PATHOLOGY);
+                operationPathologyFeeNum = operationPathologyFeeNum + operationPathologyNum;
+                //手术记录完成率
+                //手术完成人数为
+                if (indexName.equals(QualityContent.SSJL_24H_WCL)||indexName.equals(QualityContent.QB)) {
+                    if (operationCount != null && operationFeeNum != null) {
+                        LinkedHashMap<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.SSJL_24H_WCL);
+                        stringStringHashMap.put("notCopiedStr", getResult(operationFeeNum - operationCount, operationFeeNum));
+                        stringStringHashMap.put("num", Double.valueOf(operationFeeNum).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+                //CT完成率
+                if (indexName.equals(QualityContent.CT_JCJL_FHL)||indexName.equals(QualityContent.QB)) {
+                    if (CTNum != null && ct != null) {
+                        Map<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.CT_JCJL_FHL);
+                        stringStringHashMap.put("notCopiedStr", getResult(CTNum - ct, CTNum));
+                        stringStringHashMap.put("num", Double.valueOf(CTNum).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+                //MRI完成率
+                if (indexName.equals(QualityContent.MR_JCJL_FHL)||indexName.equals(QualityContent.QB)) {
+                    if (MRNum != null && mr != null) {
+                        Map<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.MR_JCJL_FHL);
+                        stringStringHashMap.put("notCopiedStr", getResult(MRNum - mr, MRNum));
+                        stringStringHashMap.put("num", Double.valueOf(MRNum).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+                if (indexName.equals(QualityContent.BL_JCJL_FHL)||indexName.equals(QualityContent.QB)) {
+                    if (operationPathologyFeeNum != null && antibiosisNum != null) {
+                        //病理完成率为
+                        Map<String, String> stringStringHashMap = new LinkedHashMap<>();
+                        stringStringHashMap.put("name", QualityContent.BL_JCJL_FHL);
+                        stringStringHashMap.put("notCopiedStr", getResult(operationPathologyFeeNum - antibiosisNum, operationPathologyFeeNum));
+                        stringStringHashMap.put("num", Double.valueOf(operationPathologyFeeNum).toString());
+                        hashMapArrayList.add(stringStringHashMap);
+                    }
+                }
+            }
         }
 
+
+        //抗菌人数
+     //   Long antibiosisFeeNum = selectOperationNumMap.get("antibiosisFee");
+    //    Integer antibiosis = Integer.valueOf(getAntibiosisNum(filterVO));
+    //    antibiosisFeeNum = antibiosisFeeNum + antibiosis;
+
+
+        //细菌培养
+        Long bacterialCulture = triggeringRulesMap.get("bacterialCulture");
+
         //抗菌完成率
       //    medQualityControlDTO.setAdmissionStr(getResult(antibiosisFeeNum-0,antibiosisFeeNum));
 
@@ -512,7 +524,7 @@ public class ConsoleFacade {
         /**
          * =================================标示线========================================
          */
-        Map<String, Object> baseIndex = behospitalInfoFacade.getBaseIndex(filterVO);
+/*        Map<String, Object> baseIndex = behospitalInfoFacade.getBaseIndex(filterVO);
         //指标一、二、三、二十七
         List<Map<String, String>> retLists = ManageIndexMethod(hashMapArrayList, baseIndex, filterVO);
         //指标十七 医师查房记录
@@ -520,15 +532,15 @@ public class ConsoleFacade {
         //指标十八 抢救记录
         filterVO.setFlagStr("0");
         List<MedManageParamsDTO> medManageParams = behospitalInfoFacade.getMedManageParams(filterVO);
-                                  retLists = rescueMethod(medManageParams,retLists,triggeringRulesMap);
+        retLists = rescueMethod(medManageParams,retLists,triggeringRulesMap);
         //指标十九 出院患者病历2日归档
-                                  retLists = getfileSecAmount(filterVO,retLists, baseIndex);
+        retLists = getfileSecAmount(filterVO,retLists, baseIndex);
         //指标十四 手术记录
         retLists = operationMethod(retLists, operationFeeNum+"", triggeringRulesMap);
         //指标十六  临床用血相关记录符合率
         filterVO.setFlagStr("1");
-                                 medManageParams = behospitalInfoFacade.getMedManageParams(filterVO);
-                                  retLists = bloodMethod(retLists, medManageParams, triggeringRulesMap);
+        medManageParams = behospitalInfoFacade.getMedManageParams(filterVO);
+        retLists = bloodMethod(retLists, medManageParams, triggeringRulesMap);
 
          if(StringUtils.isNotEmpty(filterVO.getIndexName())){
              List<Map<String, String>> retData = new ArrayList<>();
@@ -539,9 +551,9 @@ public class ConsoleFacade {
                  }
              }
              return retData;
-         }
+         }*/
 
-        return retLists;
+        return hashMapArrayList;
     }
 
     /**
@@ -567,82 +579,66 @@ public class ConsoleFacade {
         List<Map<String, String>> medicalRecords = behospitalInfoFacade.getMedicalRecords(filterVO);
         List<String> behospitalCodeList = new ArrayList<>();
         for (Map<String, String> medicalRecord : medicalRecords) {
-            String b_code = medicalRecord.get("b_code");
             String behospitalCode = medicalRecord.get("behospital_code");
-            if(StringUtil.isEmpty(b_code)){
                 behospitalCodeList.add(behospitalCode);
-            }
         }
         return behospitalCodeList;
     }
     /**
-     * 医嘱表判断无病案首页是否为病理手术患者和手术患者的人数
+     * 医嘱表判断无病案首页是否为手术患者
      */
-    public Map<String,Integer> getOperationPathologyNum(FilterVO filterVO){
+    public List<String> getOperationNum(FilterVO filterVO,List<MedManageParamsDTO> doctorAdviceMedManageParams){
         List<String> behospitalCodeList = adviceVerify(filterVO);
-        int operationPathologyNum=0;
-        int operationNum=0;
-        HashMap<String, Integer> map = new HashMap<>();
+        ArrayList<String> stringList = new ArrayList<>();
         if(ListUtil.isNotEmpty(behospitalCodeList)&&behospitalCodeList.size()>0) {
         for (String behospitalCode : behospitalCodeList) {
-            QueryWrapper<DoctorAdvice> dtoQueryWrapper = new QueryWrapper<>();
-            dtoQueryWrapper.eq("behospital_code",behospitalCode)
-                    .eq("is_deleted", IsDeleteEnum.N.getKey())
-                    .eq("da_status",QualityContent.IN_USE);
-            //查医嘱表
-            List<DoctorAdvice> doctorAdvices = doctorAdviceFacade.getBaseMapper().selectList(dtoQueryWrapper);
-            //手术病理
-            if(ListUtil.isNotEmpty(doctorAdvices)&&doctorAdvices.size()>0) {
-                operationPathology:
-                for (DoctorAdvice doctorAdvice : doctorAdvices) {
-                    String name = doctorAdvice.getDaItemName();
+            //手术
+            for (MedManageParamsDTO doctorAdviceMedManageParam : doctorAdviceMedManageParams) {
+                    if (doctorAdviceMedManageParam.getBehospitalCode().equals(behospitalCode)) {
+                        String name = doctorAdviceMedManageParam.getDaItemName();
                     if (StringUtil.isNotEmpty(name)) {
                         String[][] operationList = QualityContent.OPERATION_LIST;
                         Boolean stair = stairCondition(name, operationList);
-                        if(stair){
+                        if(stair) {
                             String[][] operationArg = QualityContent.OPERATION_ARG;
                             Boolean levelCondition = secondLevelCondition(name, operationArg);
-                            if(levelCondition){
-                                operationNum++;
-                                for (DoctorAdvice advice : doctorAdvices) {
-                                    String daItemName = advice.getDaItemName();
-                                    if (daItemName.contains(QualityContent.PATHOLOGY)) {
-                                        operationPathologyNum++;
-                                        break operationPathology;
-                                    }
-                                }
+                            if (levelCondition) {
+                                stringList.add(behospitalCode);
+                                break;
                             }
                         }
+                        }
                     }
                 }
             }
-
-            //手术
-            if(ListUtil.isNotEmpty(doctorAdvices)&&doctorAdvices.size()>0) {
-                for (DoctorAdvice doctorAdvice : doctorAdvices) {
-                    String name = doctorAdvice.getDaItemName();
-                    if (StringUtil.isNotEmpty(name)) {
-                        String[][] operationList = QualityContent.OPERATION_LIST;
-                        Boolean stair = stairCondition(name, operationList);
-                        if(stair){
-                            String[][] operationArg = QualityContent.OPERATION_ARG;
-                            Boolean levelCondition = secondLevelCondition(name, operationArg);
-                            if(levelCondition){
-                                operationNum++;
-                                break ;
-                            }
-                        }
-
-
+            }
+        return stringList;
+    }
+    /**
+     * 医嘱表判断无病案首页为手术患者的前提下判断是否为病理手术患者
+     */
+    public Map<String,Integer> getOperationPathologyNum(FilterVO filterVO,List<MedManageParamsDTO> doctorAdviceMedManageParams){
+        Map<String, Integer> map = new HashMap<>();
+        List<String> operationBehospitalCode = getOperationNum(filterVO, doctorAdviceMedManageParams);
+        int operationPathologyNum=0;
+        int operationNum=operationBehospitalCode.size();
+        for (String behospitalCode : operationBehospitalCode) {
+            for (MedManageParamsDTO doctorAdviceMedManage : doctorAdviceMedManageParams) {
+                if (doctorAdviceMedManage.getBehospitalCode().equals(behospitalCode)) {
+                    String Name = doctorAdviceMedManage.getDaItemName();
+                    if (Name.contains(QualityContent.PATHOLOGY)) {
+                        operationPathologyNum++;
+                        break ;
                     }
                 }
             }
-            }
         }
         map.put(QualityContent.NO_RECORD_OPERATION_PATHOLOGY,operationPathologyNum);
         map.put(QualityContent.NO_RECORD_OPERATION,operationNum);
         return map;
     }
+
+
     /**
      * 医嘱二级条件判断 或且
      * @param name
@@ -689,73 +685,61 @@ public class ConsoleFacade {
         }
         return false;
     }
-    /**
-     * 医嘱条件判断 且或
-     * @param name
-     * @param arg
-     * @return
-     */
-    public  Boolean condition(String name,String[][] arg){
-        int z=0;
-        for (int i = 0; i < arg.length; i++) {
-            String[] strings = arg[i];
-            for (int y = 0; y < strings.length; y++) {
-                if(name.contains(strings[y])){
-                    z++;
-                    continue;
-                }
-            }
-        }
-        if(z==arg.length){
-            return true;
-        }
-        return false;
-    }
 
     /**
      * 获取CT/MRI人数
      */
-    public Map<String,Long> getCTNum(FilterVO filterVO){
-        filterVO.setFlagStr("1");
-        List<Map<String, String>> getDoctorAdviceNum = doctorAdviceFacade.getDoctorAdviceNum(filterVO);
+    public Map<String,Long> getCTNum( List<MedManageParamsDTO> doctorAdviceMedManageParams){
         Map<String, Long> map = new HashMap<>();
         List<String> codeList = new ArrayList<>();
-        for (Map<String, String> ctNumMap : getDoctorAdviceNum) {
-                    String behospitalCode = ctNumMap.get("behospital_code");
-                    if (!codeList.contains(behospitalCode)) {
-                        String daItemName = ctNumMap.get("da_item_name");
+        ArrayList<String> codeMri = new ArrayList<>();
+        for (MedManageParamsDTO doctorAdviceMedManageParam : doctorAdviceMedManageParams) {
+            String behospitalCode = doctorAdviceMedManageParam.getBehospitalCode();
+                if (!codeList.contains(behospitalCode)) {
+                    String doctorAdviceType = doctorAdviceMedManageParam.getDoctorAdviceType();
+                    if(StringUtil.isNotEmpty(doctorAdviceType)) {
+                        if(doctorAdviceType.equals(QualityContent.STAT_ORDER)){
+                        String daItemName = doctorAdviceMedManageParam.getDaItemName();
                         if (StringUtil.isNotEmpty(daItemName)) {
-                                String[][] ctList = QualityContent.CT_LIST;
-                                Boolean stair = stairCondition(daItemName, ctList);
-                                if(stair){
-                                    String[][] ctRegulation = QualityContent.CT_REGULATION;
-                                    Boolean levelCondition = secondLevelCondition(daItemName, ctRegulation);
-                                    if(levelCondition){
-                                        codeList.add(behospitalCode);
-                                        continue;
-                                    }
+                            String[][] ctList = QualityContent.CT_LIST;
+                            Boolean stair = stairCondition(daItemName, ctList);
+                            if (stair) {
+                                String[][] ctRegulation = QualityContent.CT_REGULATION;
+                                Boolean levelCondition = secondLevelCondition(daItemName, ctRegulation);
+                                if (levelCondition) {
+                                    codeList.add(behospitalCode);
+                                    continue;
                                 }
+                            }
+                        }
+                        }
+                    }
                 }
-            }
+
         }
-        ArrayList<String> codeMri = new ArrayList<>();
-        for (Map<String, String> MRINumMap : getDoctorAdviceNum) {
-            String behospitalCodeMri = MRINumMap.get("behospital_code");
-                    if (!codeMri.contains(behospitalCodeMri)) {
-                        String daItemName = MRINumMap.get("da_item_name");
-                        if (StringUtil.isNotEmpty(daItemName)) {
-                            String[][] mrList = QualityContent.MR_LIST;
-                            Boolean stair = stairCondition(daItemName, mrList);
-                            if(stair){
-                                String[][] mrRegulation = QualityContent.MR_REGULATION;
-                                Boolean levelCondition = secondLevelCondition(daItemName, mrRegulation);
-                                if(levelCondition){
-                                    codeMri.add(behospitalCodeMri);
-                                    continue;
+
+        for (MedManageParamsDTO doctorAdviceMedManageParam : doctorAdviceMedManageParams) {
+            String behospitalCodeMri = doctorAdviceMedManageParam.getBehospitalCode();
+                if (!codeMri.contains(behospitalCodeMri)) {
+                    String doctorAdviceType = doctorAdviceMedManageParam.getDoctorAdviceType();
+                    if(StringUtil.isNotEmpty(doctorAdviceType)) {
+                        if(doctorAdviceType.equals(QualityContent.STAT_ORDER)) {
+                            String daItemName = doctorAdviceMedManageParam.getDaItemName();
+                            if (StringUtil.isNotEmpty(daItemName)) {
+                                String[][] mrList = QualityContent.MR_LIST;
+                                Boolean stair = stairCondition(daItemName, mrList);
+                                if (stair) {
+                                    String[][] mrRegulation = QualityContent.MR_REGULATION;
+                                    Boolean levelCondition = secondLevelCondition(daItemName, mrRegulation);
+                                    if (levelCondition) {
+                                        codeMri.add(behospitalCodeMri);
+                                        continue;
+                                    }
                                 }
                             }
+                        }
+                    }
                 }
-            }
         }
         if(ListUtil.isEmpty(codeList)){
             map.put("CT",Long.valueOf(0));
@@ -767,6 +751,7 @@ public class ConsoleFacade {
         }else {
             map.put("MR",Long.valueOf(codeMri.size()));
         }
+
         return map;
     }
 

+ 4 - 2
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -812,10 +812,12 @@
             AND f1.hospitalId = f2.hospital_id
             AND f1.behospitalCode = f2.behospital_code
         </if>
+        <if test="flagStr != null and flagStr == 2">
             join  med_doctor_advice f3
         on  f3.is_deleted = 'N'
         AND f1.hospitalId = f3.hospital_id
         AND f1.behospitalCode = f3.behospital_code
+        </if>
     </select>
 
 
@@ -17806,7 +17808,7 @@
         AND a.hospital_id = q.hospital_id
     </select>
 
-<!--    跟病案首页关联的出院病历-->
+<!--    跟病案首页关联的无首页出院病历-->
     <select id="getMedicalRecords" parameterType="com.diagbot.vo.FilterVO" resultType="java.util.Map">
      SELECT
 	d.behospital_code,
@@ -17842,7 +17844,7 @@
     LEFT JOIN med_home_page b ON b.behospital_code = d.behospital_code
     AND d.hospital_id = b.hospital_id
     AND b.is_deleted = 'N'
-
+    where ISNULL(b.behospital_code)
     </select>
 
 <!--    首页恶性肿瘤-->

+ 2 - 2
src/test/java/com/diagbot/CodeGeneration.java

@@ -33,7 +33,7 @@ public class CodeGeneration {
         gc.setEnableCache(false);// XML 二级缓存
         gc.setBaseResultMap(true);// XML ResultMap
         gc.setBaseColumnList(false);// XML columList
-        gc.setAuthor("zhoutg");// 作者
+        gc.setAuthor("zhanghang");// 作者
 
         // 自定义文件命名,注意 %s 会自动填充表实体属性!
         gc.setControllerName("%sController");
@@ -56,7 +56,7 @@ public class CodeGeneration {
         StrategyConfig strategy = new StrategyConfig();
 //        strategy.setTablePrefix(new String[] { "med_" });// 此处可以修改为您的表前缀
         strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
-        strategy.setInclude(new String[] { "str_consultation_record"}); // 需要生成的表
+        strategy.setInclude(new String[] { "med_qcresult_info"}); // 需要生成的表
 
         strategy.setSuperServiceClass(null);
         strategy.setSuperServiceImplClass(null);