浏览代码

Merge branch 'master' into his/yiwufubao

liuqq 3 年之前
父节点
当前提交
3e92ea0719

+ 929 - 0
doc/020.20211019其他值提醒和危急值提醒优化/med2021_init.sql

@@ -0,0 +1,929 @@
+USE `med_2021`;
+
+DROP TABLE IF EXISTS `kl_rule_plan`;
+CREATE TABLE `kl_rule_plan` (
+  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '资源ID',
+  `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除,N:未删除,Y:删除',
+  `gmt_create` datetime NOT NULL DEFAULT '1970-01-01 12:00:00' COMMENT '记录创建时间',
+  `gmt_modified` datetime NOT NULL DEFAULT '1970-01-01 12:00:00' COMMENT '记录修改时间,如果时间是1970年则表示纪录未修改',
+  `creator` varchar(20) NOT NULL DEFAULT '0' COMMENT '创建人,0表示无创建人值',
+  `modifier` varchar(20) NOT NULL DEFAULT '0' COMMENT '修改人,如果为0则表示纪录未修改',
+  `plan_code` varchar(255) DEFAULT NULL COMMENT '方案编码(rule规则dis诊断依据)',
+  `rule_type` bigint(20) DEFAULT NULL COMMENT '规则类型(1:开单合理性;2:高危;3:危急值;4:其他值提醒;5:其他值提醒输血;6:正常项目重复开立)',
+  `parent_id` bigint(20) DEFAULT NULL COMMENT '-1:表示顶级,其他值表示上级菜单的id',
+  `name` varchar(255) DEFAULT NULL COMMENT '基础规则类型',
+  `type` int(2) DEFAULT NULL,
+  `number` int(11) DEFAULT NULL COMMENT '条件数量',
+  `code` varchar(255) DEFAULT NULL COMMENT '类型编码',
+  `order_no` int(11) DEFAULT NULL COMMENT '显示顺序',
+  `remark` varchar(255) DEFAULT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=27094 DEFAULT CHARSET=utf8;
+
+-- ----------------------------
+-- Records of kl_rule_plan
+-- ----------------------------
+INSERT INTO `kl_rule_plan` VALUES ('1', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '-1', '开单合理性', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '-1', '高危', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('3', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '-1', '危急值', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('4', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '-1', '其他值提醒', '4', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('5', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '-1', '其他值提醒输血', '5', null, '', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('6', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '-1', '正常项目重复开立', '6', null, '', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('10', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '药品通用名', null, '1', '101', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('11', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '药品通用名集合', null, '1', '309', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('12', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '实验室检查套餐', null, '1', '107', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('13', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '实验室检查套餐集合', null, '1', '315', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('14', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '辅助检查项目', null, '1', '109', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('15', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '辅助检查项目集合', null, '1', '316', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('16', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '辅助检查子项目', null, '1', '110', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('17', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '辅助检查子项目集合', null, '1', '317', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('18', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '手术和操作', null, '1', '106', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('19', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '手术和操作集合', null, '1', '314', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('20', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1', '输血类型', null, '1', '113', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('21', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '2', '药品通用名', null, '1', '101', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('22', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '2', '药品通用名集合', null, '1', '309', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('23', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '2', '手术和操作', null, '0', '106', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('24', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '2', '手术和操作集合', null, '0', '314', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('30', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '3', '实验室检查子项目', null, '2', '108', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('31', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '3', '辅助检查结果', null, '0', '112', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('32', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '3', '辅助检查结果集合', null, '0', '319', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('40', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '4', '实验室检查子项目', null, '2', '108', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('41', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '4', '辅助检查结果', null, '2', '112', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('42', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '4', '辅助检查结果集合', null, '2', '319', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('43', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '4', '辅助检查描述', null, '3', '111', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('50', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '5', '实验室检查子项目', null, '2', '108', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('60', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '6', '辅助检查项目', null, '1', '109', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('61', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '6', '辅助检查项目集合', null, '1', '316', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('62', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '6', '辅助检查子项目', null, '1', '110', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('63', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '6', '辅助检查子项目集合', null, '1', '317', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('64', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '6', '实验室检查套餐', null, '1', '107', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('65', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '6', '实验室检查套餐集合', null, '1', '315', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('100', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '10', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('101', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '10', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('102', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '10', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('103', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('104', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('105', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('106', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('107', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('108', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('109', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('110', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('111', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('112', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('113', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('114', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('115', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('116', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('117', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('118', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('119', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '101', '年龄', null, null, '410', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('120', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '101', '体格检查项目', null, null, '104', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('121', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '101', '体格检查项目集合', null, null, '312', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('122', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '101', '实验室检查子项目', null, null, '108', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('123', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '药品通用名', null, null, '101', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('124', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '药品通用名集合', null, null, '309', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('125', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '药品化学物质类别', null, null, '301', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('126', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '药品治疗学类别', null, null, '302', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('127', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '药品药理学类别', null, null, '303', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('128', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '药品解剖学类别', null, null, '304', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('129', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '其他过敏原', null, null, '119', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('130', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '102', '其他过敏原集合', null, null, '323', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('200', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '11', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('201', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '11', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('202', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '11', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('203', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('204', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('205', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('206', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('207', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('208', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('209', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('210', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('211', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('212', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('213', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('214', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('215', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('216', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('217', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('218', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('219', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '201', '年龄', null, null, '410', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('220', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '201', '体格检查项目', null, null, '104', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('221', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '201', '体格检查项目集合', null, null, '312', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('222', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '201', '实验室检查子项目', null, null, '108', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('223', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '药品通用名', null, null, '101', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('224', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '药品通用名集合', null, null, '309', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('225', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '药品化学物质类别', null, null, '301', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('226', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '药品治疗学类别', null, null, '302', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('227', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '药品药理学类别', null, null, '303', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('228', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '药品解剖学类别', null, null, '304', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('229', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '其他过敏原', null, null, '119', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('230', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '202', '其他过敏原集合', null, null, '323', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('300', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '12', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('301', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '12', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('302', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '12', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('303', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '12', '开单项', '5', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('304', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('305', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('306', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('307', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('308', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('309', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('310', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('311', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('312', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('313', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('314', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('315', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('316', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('317', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('318', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('319', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '300', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('320', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '301', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('321', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '301', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('322', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '301', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('323', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '301', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('324', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('325', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('326', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('327', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('328', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('329', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('330', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('331', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '302', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('332', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '303', '实验室检查套餐', null, null, '107', '29', null);
+INSERT INTO `kl_rule_plan` VALUES ('333', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '303', '实验室检查套餐集合', null, null, '315', '30', null);
+INSERT INTO `kl_rule_plan` VALUES ('400', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '13', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('401', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '13', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('402', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '13', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('403', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '13', '开单项', '5', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('404', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('405', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('406', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('407', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('408', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('409', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('410', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('411', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('412', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('413', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('414', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('415', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('416', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('417', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('418', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('419', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '400', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('420', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '401', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('421', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '401', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('422', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '401', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('423', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '401', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('424', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('425', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('426', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('427', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('428', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('429', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('430', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('431', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '402', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('432', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '403', '实验室检查套餐', null, null, '107', '29', null);
+INSERT INTO `kl_rule_plan` VALUES ('433', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '403', '实验室检查套餐集合', null, null, '315', '30', null);
+INSERT INTO `kl_rule_plan` VALUES ('500', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '14', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('501', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '14', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('502', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '14', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('503', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '14', '开单项', '5', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('504', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('505', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('506', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('507', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('508', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('509', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('510', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('511', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('512', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('513', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('514', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('515', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('516', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('517', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('518', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('519', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '500', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('520', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '501', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('521', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '501', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('522', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '501', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('523', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '501', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('524', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('525', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('526', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('527', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('528', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('529', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('530', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('531', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '502', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('532', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '503', '辅助检查项目', null, null, '109', '29', null);
+INSERT INTO `kl_rule_plan` VALUES ('533', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '503', '辅助检查项目集合', null, null, '316', '30', null);
+INSERT INTO `kl_rule_plan` VALUES ('534', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '503', '辅助检查子项目', null, null, '110', '31', null);
+INSERT INTO `kl_rule_plan` VALUES ('535', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '503', '辅助检查子项目集合', null, null, '317', '32', null);
+INSERT INTO `kl_rule_plan` VALUES ('600', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '15', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('601', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '15', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('602', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '15', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('603', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '15', '开单项', '5', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('604', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('605', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('606', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('607', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('608', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('609', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('610', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('611', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('612', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('613', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('614', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('615', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('616', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('617', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('618', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('619', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '600', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('620', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '601', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('621', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '601', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('622', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '601', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('623', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '601', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('624', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('625', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('626', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('627', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('628', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('629', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('630', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('631', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '602', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('632', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '603', '辅助检查项目', null, null, '109', '29', null);
+INSERT INTO `kl_rule_plan` VALUES ('633', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '603', '辅助检查项目集合', null, null, '316', '30', null);
+INSERT INTO `kl_rule_plan` VALUES ('634', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '603', '辅助检查子项目', null, null, '110', '31', null);
+INSERT INTO `kl_rule_plan` VALUES ('635', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '603', '辅助检查子项目集合', null, null, '317', '32', null);
+INSERT INTO `kl_rule_plan` VALUES ('700', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '16', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('701', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '16', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('702', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '16', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('703', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '16', '开单项', '5', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('704', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('705', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('706', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('707', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('708', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('709', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('710', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('711', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('712', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('713', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('714', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('715', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('716', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('717', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('718', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('719', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '700', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('720', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '701', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('721', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '701', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('722', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '701', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('723', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '701', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('724', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('725', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('726', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('727', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('728', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('729', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('730', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('731', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '702', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('732', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '703', '辅助检查项目', null, null, '109', '29', null);
+INSERT INTO `kl_rule_plan` VALUES ('733', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '703', '辅助检查项目集合', null, null, '316', '30', null);
+INSERT INTO `kl_rule_plan` VALUES ('734', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '703', '辅助检查子项目', null, null, '110', '31', null);
+INSERT INTO `kl_rule_plan` VALUES ('735', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '703', '辅助检查子项目集合', null, null, '317', '32', null);
+INSERT INTO `kl_rule_plan` VALUES ('800', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '17', '开单外等于术语本身', '1', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('801', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '17', '开单外存在比较', '2', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('802', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '17', '过敏原', '4', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('803', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '17', '开单项', '5', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('804', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('805', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('806', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('807', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('808', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('809', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('810', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('811', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('812', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('813', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('814', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('815', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('816', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('817', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('818', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('819', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '800', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('820', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '801', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('821', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '801', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('822', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '801', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('823', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '801', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('824', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('825', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('826', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('827', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('828', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('829', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('830', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('831', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '802', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('832', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '803', '辅助检查项目', null, null, '109', '29', null);
+INSERT INTO `kl_rule_plan` VALUES ('833', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '803', '辅助检查项目集合', null, null, '316', '30', null);
+INSERT INTO `kl_rule_plan` VALUES ('834', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '803', '辅助检查子项目', null, null, '110', '31', null);
+INSERT INTO `kl_rule_plan` VALUES ('835', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '803', '辅助检查子项目集合', null, null, '317', '32', null);
+INSERT INTO `kl_rule_plan` VALUES ('900', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '18', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('901', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '18', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('902', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '18', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('903', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('904', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('905', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('906', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('907', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('908', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('909', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('910', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('911', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('912', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('913', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('914', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('915', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('916', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('917', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('918', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '900', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('919', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '901', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('920', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '901', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('921', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '901', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('922', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '901', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('923', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('924', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('925', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('926', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('927', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('928', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('929', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('930', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '902', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('1000', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '19', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1001', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '19', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1002', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '19', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1003', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1004', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1005', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1006', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1007', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1008', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1009', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1010', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1011', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('1012', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('1013', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('1014', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('1015', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('1016', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('1017', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('1018', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1000', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('1019', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1001', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('1020', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1001', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('1021', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1001', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('1022', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1001', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('1023', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('1024', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('1025', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('1026', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('1027', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('1028', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('1029', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('1030', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1002', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('1100', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '20', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1101', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '20', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1102', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '20', '过敏原', '4', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1103', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1104', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '性别', null, null, '116', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1105', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1106', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1107', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '医疗器械及物品', null, null, '120', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1108', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '医疗器械及物品集合', null, null, '324', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1109', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '药品通用名', null, null, '101', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1110', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '药品通用名集合', null, null, '309', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1111', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '症状', null, null, '103', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('1112', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '症状集合', null, null, '311', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('1113', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '辅助检查结果', null, null, '112', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('1114', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '辅助检查结果集合', null, null, '319', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('1115', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '体格检查结果', null, null, '105', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('1116', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '体格检查结果集合', null, null, '313', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('1117', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '手术和操作', null, null, '106', '15', null);
+INSERT INTO `kl_rule_plan` VALUES ('1118', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1100', '手术和操作集合', null, null, '314', '16', null);
+INSERT INTO `kl_rule_plan` VALUES ('1119', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1101', '年龄', null, null, '410', '17', null);
+INSERT INTO `kl_rule_plan` VALUES ('1120', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1101', '体格检查项目', null, null, '104', '18', null);
+INSERT INTO `kl_rule_plan` VALUES ('1121', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1101', '体格检查项目集合', null, null, '312', '19', null);
+INSERT INTO `kl_rule_plan` VALUES ('1122', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1101', '实验室检查子项目', null, null, '108', '20', null);
+INSERT INTO `kl_rule_plan` VALUES ('1123', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '药品通用名', null, null, '101', '21', null);
+INSERT INTO `kl_rule_plan` VALUES ('1124', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '药品通用名集合', null, null, '309', '22', null);
+INSERT INTO `kl_rule_plan` VALUES ('1125', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '药品化学物质类别', null, null, '301', '23', null);
+INSERT INTO `kl_rule_plan` VALUES ('1126', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '药品治疗学类别', null, null, '302', '24', null);
+INSERT INTO `kl_rule_plan` VALUES ('1127', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '药品药理学类别', null, null, '303', '25', null);
+INSERT INTO `kl_rule_plan` VALUES ('1128', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '药品解剖学类别', null, null, '304', '26', null);
+INSERT INTO `kl_rule_plan` VALUES ('1129', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '其他过敏原', null, null, '119', '27', null);
+INSERT INTO `kl_rule_plan` VALUES ('1130', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '1102', '其他过敏原集合', null, null, '323', '28', null);
+INSERT INTO `kl_rule_plan` VALUES ('1200', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '21', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1201', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1200', '药品剂型', null, null, '102', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1202', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1200', '药品剂型集合', null, null, '310', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1220', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '22', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1221', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1220', '药品剂型', null, null, '102', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1222', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1220', '药品剂型集合', null, null, '310', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1300', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '23', '开单外等于术语本身', '1', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1301', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '23', '开单外存在比较', '2', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1302', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1300', '体格检查结果', null, null, '105', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1303', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1300', '体格检查结果集合', null, null, '313', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1304', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1300', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1305', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1300', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1306', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1300', '辅助检查结果', null, null, '112', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1307', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1300', '辅助检查结果集合', null, null, '319', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1308', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1301', '年龄', null, null, '410', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1309', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1301', '体格检查项目', null, null, '104', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1310', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1301', '体格检查项目集合', null, null, '312', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('1311', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1301', '实验室检查子项目', null, null, '108', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('1350', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '24', '开单外等于术语本身', '1', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1351', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '24', '开单外存在比较', '2', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1352', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1350', '体格检查结果', null, null, '105', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1353', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1350', '体格检查结果集合', null, null, '313', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1354', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1350', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1355', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1350', '疾病集合', null, null, '308', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1356', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1350', '辅助检查结果', null, null, '112', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1357', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1350', '辅助检查结果集合', null, null, '319', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1358', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1351', '年龄', null, null, '410', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1359', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1351', '体格检查项目', null, null, '104', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1360', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1351', '体格检查项目集合', null, null, '312', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('1361', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '2', '1351', '实验室检查子项目', null, null, '108', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('1400', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '30', '开单外等于术语本身', '1', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1401', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '30', '开单外存在比较', '2', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1402', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '1400', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1403', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '1401', '实验室检查子项目', null, null, '108', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1404', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '3', '1401', '年龄', null, null, '410', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1500', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '40', '开单外等于术语本身', '1', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1501', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '40', '开单外存在比较', '2', null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1502', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1500', '疾病', null, null, '100', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1503', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1500', '疾病集合', null, null, '308', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1504', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1500', '药品通用名', null, null, '101', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1505', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1500', '药品通用名集合', null, null, '309', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1506', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1500', '人群', null, null, '117', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1507', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1501', '实验室检查子项目', null, null, '108', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1508', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1500', '性别', null, null, '116', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1550', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '41', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1551', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '41', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1552', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '41', '开单外不等于术语本身', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1553', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1554', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '辅助检查结果', null, null, '112', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1555', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '辅助检查结果集合', null, null, '319', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1556', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '性别', null, null, '116', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1557', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '体格检查结果', null, null, '105', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1558', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '体格检查结果集合', null, null, '313', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1559', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '疾病', null, null, '100', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1560', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1550', '疾病集合', null, null, '308', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1561', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1551', '年龄', null, null, '410', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('1562', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1551', '实验室检查子项目', null, null, '108', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('1563', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1551', '体格检查项目', null, null, '104', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('1564', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1551', '体格检查项目集合', null, null, '312', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('1565', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1552', '辅助检查结果', null, null, '112', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('1566', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1552', '辅助检查结果集合', null, null, '319', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('1580', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '42', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1581', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '42', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1582', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '42', '开单外不等于术语本身', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1583', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1584', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '辅助检查结果', null, null, '112', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1585', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '辅助检查结果集合', null, null, '319', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1586', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '性别', null, null, '116', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1587', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '体格检查结果', null, null, '105', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1588', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '体格检查结果集合', null, null, '313', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1589', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '疾病', null, null, '100', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1590', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1580', '疾病集合', null, null, '308', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1591', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1581', '年龄', null, null, '410', '9', null);
+INSERT INTO `kl_rule_plan` VALUES ('1592', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1581', '实验室检查子项目', null, null, '108', '10', null);
+INSERT INTO `kl_rule_plan` VALUES ('1593', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1581', '体格检查项目', null, null, '104', '11', null);
+INSERT INTO `kl_rule_plan` VALUES ('1594', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1581', '体格检查项目集合', null, null, '312', '12', null);
+INSERT INTO `kl_rule_plan` VALUES ('1595', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1582', '辅助检查结果', null, null, '112', '13', null);
+INSERT INTO `kl_rule_plan` VALUES ('1596', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1582', '辅助检查结果集合', null, null, '319', '14', null);
+INSERT INTO `kl_rule_plan` VALUES ('1597', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '43', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1598', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '43', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1599', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '43', '开单外不等于术语本身', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1600', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '人群', null, null, '117', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1601', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '辅助检查结果', null, null, '112', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1602', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '辅助检查结果集合', null, null, '319', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1603', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '性别', null, null, '116', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1604', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '体格检查结果', null, null, '105', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1605', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '体格检查结果集合', null, null, '313', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('1606', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '疾病', null, null, '100', '7', null);
+INSERT INTO `kl_rule_plan` VALUES ('1607', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1597', '疾病集合', null, null, '308', '8', null);
+INSERT INTO `kl_rule_plan` VALUES ('1608', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1598', '年龄', null, null, '410', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1609', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1598', '实验室检查子项目', null, null, '108', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1610', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '50', '开单外等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1611', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '50', '开单外存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1612', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '1610', '疾病', null, null, '100', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1613', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '1610', '疾病集合', null, null, '308', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1614', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '1610', '手术和操作', null, null, '106', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('1615', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '1610', '手术和操作集合', null, null, '314', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('1616', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '5', '1611', '实验室检查子项目', null, null, '108', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('1700', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '60', '检查结果正则表达式', '6', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1701', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1700', '辅助检查项目', null, null, '109', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1702', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1700', '辅助检查项目集合', null, null, '316', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('1750', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '61', '检查结果正则表达式', '6', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1751', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1750', '辅助检查项目', null, null, '109', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1752', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1750', '辅助检查项目集合', null, null, '316', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1800', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '62', '检查结果正则表达式', '6', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1801', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1800', '辅助检查子项目', null, null, '110', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1802', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1800', '辅助检查子项目集合', null, null, '317', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1850', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '63', '检查结果正则表达式', '6', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1851', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1850', '辅助检查子项目', null, null, '110', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1852', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1850', '辅助检查子项目集合', null, null, '317', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1900', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '64', '开单外存在比较', '2', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1901', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1900', '实验室检查子项目', null, null, '108', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('1950', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '65', '开单外存在比较', '2', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('1951', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '6', '1950', '实验室检查子项目', null, null, '108', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2200', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '-1', '拟诊', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2210', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2200', '等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2211', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2200', '存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2212', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2200', '主诉现病史正则', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2213', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2200', '既往史正则', '4', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('2214', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2200', '查体正则', '5', null, '', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('2215', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2200', '辅检结果正则', '6', null, '', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('2216', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2210', '症状', null, null, '103', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2217', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2210', '体格检查结果', null, null, '105', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2218', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2210', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2219', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2210', '人群', null, null, '117', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('2220', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2210', '辅助检查结果', null, null, '112', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('2221', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2211', '年龄', null, null, '410', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2222', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2211', '体格检查项目', null, null, '104', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2223', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2211', '实验室检查子项目', null, null, '108', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2224', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2212', '主诉现病史正则', null, null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2225', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2213', '既往史正则', null, null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2226', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2214', '查体正则', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2227', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '2', '2215', '辅检结果正则', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2300', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '-1', '确诊', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2310', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2300', '等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2311', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2300', '存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2312', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2300', '主诉现病史正则', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2313', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2300', '既往史正则', '4', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('2314', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2300', '查体正则', '5', null, '', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('2315', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2300', '辅检结果正则', '6', null, '', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('2316', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2310', '症状', null, null, '103', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2317', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2310', '体格检查结果', null, null, '105', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2318', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2310', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2319', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2310', '人群', null, null, '117', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('2320', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2310', '辅助检查结果', null, null, '112', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('2321', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2311', '年龄', null, null, '410', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2322', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2311', '体格检查项目', null, null, '104', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2323', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2311', '实验室检查子项目', null, null, '108', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2324', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2312', '主诉现病史正则', null, null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2325', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2313', '既往史正则', null, null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2326', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2314', '查体正则', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2327', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '3', '2315', '辅检结果正则', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2400', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '-1', '警惕', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2410', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2400', '等于术语本身', '1', null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2411', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2400', '存在比较', '2', null, '', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2412', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2400', '主诉现病史正则', '3', null, '', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2413', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2400', '既往史正则', '4', null, '', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('2414', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2400', '查体正则', '5', null, '', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('2415', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2400', '辅检结果正则', '6', null, '', '6', null);
+INSERT INTO `kl_rule_plan` VALUES ('2416', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2410', '症状', null, null, '103', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2417', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2410', '体格检查结果', null, null, '105', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2418', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2410', '疾病', null, null, '100', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2419', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2410', '人群', null, null, '117', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('2420', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2410', '辅助检查结果', null, null, '112', '5', null);
+INSERT INTO `kl_rule_plan` VALUES ('2421', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2411', '年龄', null, null, '410', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2422', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2411', '体格检查项目', null, null, '104', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('2423', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2411', '实验室检查子项目', null, null, '108', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('2424', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2412', '主诉现病史正则', null, null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2425', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2413', '既往史正则', null, null, '', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('2426', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2414', '查体正则', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('2427', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'dis', '4', '2415', '辅检结果正则', null, null, '', null, null);
+INSERT INTO `kl_rule_plan` VALUES ('16090', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1598', '体格检查项目', null, null, '104', '3', null);
+INSERT INTO `kl_rule_plan` VALUES ('16091', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1598', '辅助检查描述', null, null, '111', '4', null);
+INSERT INTO `kl_rule_plan` VALUES ('16092', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1599', '辅助检查结果', null, null, '112', '1', null);
+INSERT INTO `kl_rule_plan` VALUES ('16093', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '4', '1599', '辅助检查结果集合', null, null, '319', '2', null);
+INSERT INTO `kl_rule_plan` VALUES ('17090', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '剂型', null, null, '102', '17', '');
+INSERT INTO `kl_rule_plan` VALUES ('17091', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '剂型集合', null, null, '310', '18', '');
+INSERT INTO `kl_rule_plan` VALUES ('17092', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '给药途径', null, null, '121', '19', '');
+INSERT INTO `kl_rule_plan` VALUES ('17093', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '100', '给药途径集合', null, null, '329', '20', '');
+INSERT INTO `kl_rule_plan` VALUES ('27090', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '剂型', null, null, '102', '17', '');
+INSERT INTO `kl_rule_plan` VALUES ('27091', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '剂型集合', null, null, '310', '18', '');
+INSERT INTO `kl_rule_plan` VALUES ('27092', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '给药途径', null, null, '121', '19', '');
+INSERT INTO `kl_rule_plan` VALUES ('27093', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', 'rule', '1', '200', '给药途径集合', null, null, '329', '20', '');
+
+
+
+/*
+Navicat MySQL Data Transfer
+
+Source Server         : 192.168.2.236
+Source Server Version : 50735
+Source Host           : 192.168.2.236:3306
+Source Database       : med_2021
+
+Target Server Type    : MYSQL
+Target Server Version : 50735
+File Encoding         : 65001
+
+Date: 2021-10-25 14:43:33
+*/
+
+SET FOREIGN_KEY_CHECKS=0;
+
+-- ----------------------------
+-- Table structure for kl_dictionary_info
+-- ----------------------------
+DROP TABLE IF EXISTS `kl_dictionary_info`;
+CREATE TABLE `kl_dictionary_info` (
+  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+  `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除,N:未删除,Y:删除',
+  `gmt_create` datetime NOT NULL DEFAULT '1970-01-01 12:00:00' COMMENT '记录创建时间',
+  `gmt_modified` datetime NOT NULL DEFAULT '1970-01-01 12:00:00' COMMENT '记录修改时间,如果时间是1970年则表示纪录未修改',
+  `creator` varchar(20) NOT NULL DEFAULT '0' COMMENT '创建人,0表示无创建人值',
+  `modifier` varchar(20) NOT NULL DEFAULT '0' COMMENT '修改人,如果为0则表示纪录未修改',
+  `group_type` bigint(20) NOT NULL DEFAULT '0' COMMENT '分组(值自定义)\r\n20:子规则首条固定\r\n21:附加信息\r\n22:只有数字没有文本\r\n23:无子条件',
+  `name` varchar(100) NOT NULL DEFAULT '' COMMENT '内容',
+  `val` varchar(255) NOT NULL DEFAULT '' COMMENT '值',
+  `return_type` int(11) NOT NULL DEFAULT '1' COMMENT '返回类型(0: 都返回,1:后台维护返回 2:界面返回)',
+  `order_no` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
+  `remark` varchar(300) DEFAULT NULL COMMENT '备注',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=365 DEFAULT CHARSET=utf8 COMMENT='字典表';
+
+-- ----------------------------
+-- Records of kl_dictionary_info
+-- ----------------------------
+INSERT INTO `kl_dictionary_info` VALUES ('1', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '全部', '0', '2', '1', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('2', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '诊断', '1', '2', '10', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('3', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '药品', '2', '2', '20', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('4', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '检验', '3', '2', '30', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('5', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '检查', '5', '2', '40', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('6', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '手术和操作', '6', '2', '50', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('7', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '量表', '8', '2', '80', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('80', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '诊断', '疾病', '1', '100', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('81', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品', '药品通用名', '1', '101', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('82', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品剂型', '药品剂型', '1', '102', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('83', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '症状', '症状', '1', '103', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('84', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '体格检查项目', '体格检查项目', '1', '104', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('85', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '体格检查结果', '体格检查结果', '1', '105', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('86', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '手术和操作', '手术和操作', '1', '106', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('87', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '检验套餐', '实验室检查套餐', '1', '107', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('88', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '检验细项', '实验室检查子项目', '1', '108', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('89', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '检查', '辅助检查项目', '1', '109', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('90', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '检查子项', '辅助检查子项目', '1', '110', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('91', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '辅助检查描述', '辅助检查描述', '1', '111', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('92', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '辅助检查结果', '辅助检查结果', '1', '112', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('93', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '输血类型', '输血类型', '1', '113', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('94', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '麻醉', '麻醉', '1', '114', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('95', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '科室', '科室', '1', '115', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('96', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '性别', '性别', '1', '116', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('97', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '人群', '人群', '1', '117', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('98', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '食物', '食物', '1', '118', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('99', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '其他过敏原', '其他过敏原', '1', '119', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('100', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '医疗器械及物品', '医疗器械及物品', '1', '120', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('101', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '给药途径', '给药途径', '1', '121', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('102', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '部位', '部位', '1', '122', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('103', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '护理', '护理', '1', '123', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('104', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '量表', '量表', '1', '124', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('105', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '单位', '单位', '1', '125', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('106', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', 'ICD10疾病类别', 'ICD10疾病类别', '1', '300', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('107', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品化学物质类别', '药品化学物质类别', '1', '301', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('108', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品治疗学类别', '药品治疗学类别', '1', '302', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('109', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品药理学类别', '药品药理学类别', '1', '303', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('110', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品解剖学类别', '药品解剖学类别', '1', '304', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('111', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '症状类别', '症状类别', '1', '305', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('112', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '手术和操作类别', '手术和操作类别', '1', '306', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('113', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', 'ICD10疾病类别根节点', 'ICD10疾病类别根节点', '1', '400', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('114', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '科室疾病类别根节点', '科室疾病类别根节点', '1', '401', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('115', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品化学物质类别根节点', '药品化学物质类别根节点', '1', '402', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('116', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品治疗学类别根节点', '药品治疗学类别根节点', '1', '403', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('117', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品药理学类别根节点', '药品药理学类别根节点', '1', '404', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('118', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '药品解剖学类别根节点', '药品解剖学类别根节点', '1', '405', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('119', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '症状类别根节点', '症状类别根节点', '1', '406', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('120', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '手术和操作类别根节点', '手术和操作类别根节点', '1', '407', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('121', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '实验室检查类别根节点', '实验室检查类别根节点', '1', '408', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('122', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '辅助检查类别根节点', '辅助检查类别根节点', '1', '409', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('123', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '年龄', '年龄', '1', '410', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('124', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '20', '危急值-实验室检查子项目', '3-108-2', '1', '0', '化验规则维护特殊处理-子规则首尾固定');
+INSERT INTO `kl_dictionary_info` VALUES ('125', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '20', '其他值提醒-实验室检查子项目', '4-108-2', '1', '0', '化验规则维护特殊处理-子规则首尾固定');
+INSERT INTO `kl_dictionary_info` VALUES ('126', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '20', '其他值提醒输血-实验室检查子项目', '5-108-2', '1', '0', '化验规则维护特殊处理-子规则首尾固定');
+INSERT INTO `kl_dictionary_info` VALUES ('127', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '高危-药品通用名', '2-101-1', '1', '0', '附加信息特殊处理(必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('128', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '其他值提醒-辅助检查结果', '4-112-1', '1', '0', '附加信息特殊处理(必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('129', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '其他值提醒输血-实验室检查子项目', '5-108-1', '1', '0', '附加信息特殊处理(必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('132', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '31', '开单外等于术语本身', '1', '1', '0', '基础规则类型');
+INSERT INTO `kl_dictionary_info` VALUES ('133', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '31', '开单外存在比较', '2', '1', '0', '基础规则类型');
+INSERT INTO `kl_dictionary_info` VALUES ('134', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '31', '开单外不等于术语本身', '3', '1', '0', '基础规则类型');
+INSERT INTO `kl_dictionary_info` VALUES ('135', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '31', '过敏原', '4', '1', '0', '基础规则类型');
+INSERT INTO `kl_dictionary_info` VALUES ('136', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '31', '开单项', '5', '1', '0', '基础规则类型');
+INSERT INTO `kl_dictionary_info` VALUES ('137', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '31', '检查结果正则表达式', '6', '1', '0', '基础规则类型');
+INSERT INTO `kl_dictionary_info` VALUES ('138', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '22', '开单合理性-年龄-体格检查项目', '410,104', '1', '0', '开单合理性只有数字没有文本');
+INSERT INTO `kl_dictionary_info` VALUES ('139', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '23', '复杂情况下高风险手术-手术和操作', '2-106', '1', '0', '高危手术存在(无子条件特殊处理)');
+INSERT INTO `kl_dictionary_info` VALUES ('140', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '24', '诊断依据存在比较-年龄-体格检查项目', '410,104', '1', '0', '诊断依据存在比较只有数字没有文本');
+INSERT INTO `kl_dictionary_info` VALUES ('141', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '25', '诊断依据存在比较-实验室检查子项目', '108', '1', '0', '诊断依据存在比较只有文本');
+INSERT INTO `kl_dictionary_info` VALUES ('143', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '护理', '9', '2', '90', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('144', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '7', '政策法规', '10', '2', '100', '静态知识检索类型');
+INSERT INTO `kl_dictionary_info` VALUES ('145', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '13', '政策法规', '政策法规', '1', '411', '页面显示词性');
+INSERT INTO `kl_dictionary_info` VALUES ('146', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '50', '静态知识', '1', '1', '10', '静态知识类型');
+INSERT INTO `kl_dictionary_info` VALUES ('147', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '50', '注意事项', '2', '1', '20', '静态知识类型');
+INSERT INTO `kl_dictionary_info` VALUES ('148', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '50', '临床路径', '3', '1', '30', '静态知识类型');
+INSERT INTO `kl_dictionary_info` VALUES ('149', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '50', '一般治疗', '4', '1', '40', '静态知识类型');
+INSERT INTO `kl_dictionary_info` VALUES ('150', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '1', '1,3,4', '1', '0', '诊断关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('151', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '2', '1', '1', '0', '药品关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('152', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '3', '1,2', '1', '0', '检验套餐关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('153', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '4', '1,2', '1', '0', '检验细项关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('154', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '5', '1,2', '1', '0', '检查关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('155', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '6', '1,2', '1', '0', '检查子项关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('156', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '7', '1', '1', '0', '手术和操作关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('157', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '8', '1', '1', '0', '量表关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('158', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '9', '1', '1', '0', '护理关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('159', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '10', '1', '1', '0', '法律法规关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('160', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '51', '999', '1,2,3,4', '1', '0', '其他关联的静态信息类型');
+INSERT INTO `kl_dictionary_info` VALUES ('161', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '40', '单次', '^(24小时维持|一次|1次|空)$|ALWAYS|BID|ONCE|每日', '1', '0', '开单频次');
+INSERT INTO `kl_dictionary_info` VALUES ('162', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '40', '持续', '每周|每月|每年|每半年|(一|二|三)月一次|qw|biw', '1', '0', '开单频次');
+INSERT INTO `kl_dictionary_info` VALUES ('163', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌人群', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('164', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌性别', '[匹配内容]性患者,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('165', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌疾病', '[匹配内容]患者,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('166', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌医疗器械及物品', '该患者具有[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('167', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌服用药品', '该患者正在使用[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('168', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌临床表现', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('169', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌检查结果', '该患者检查提示[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('170', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌查体结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('171', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌手术', '该患者有[匹配内容]史,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('172', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌年龄', '该患者年龄[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('173', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌检验结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('174', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌过敏药品', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('175', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '药品_禁忌其他过敏原', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('176', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌人群', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('177', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌性别', '[匹配内容]性患者,不宜开[开单名称],[开单名称]为针对[性别取反]性患者的检验项目', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('178', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌疾病', '[匹配内容]患者,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('180', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌医疗器械及物品', '该患者具有[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('181', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌服用药品', '该患者正在使用[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('182', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌临床表现', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('183', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌检查结果', '该患者检查提示[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('184', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌查体结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('185', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌手术', '该患者有[匹配内容]史,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('186', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌年龄', '该患者年龄[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('187', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌检验结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('188', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌过敏药品', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('189', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_禁忌其他过敏原', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('190', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_开单项互斥', '检验项目互斥:[匹配内容]与[开单名称]不宜同时进行[原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('191', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌人群', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('192', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌性别', '[匹配内容]性患者,不宜开[开单名称],[开单名称]为针对[性别取反]性患者的检查项目', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('193', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌疾病', '[匹配内容]患者,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('194', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌医疗器械及物品', '该患者具有[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('195', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌服用药品', '该患者正在使用[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('196', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌临床表现', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('197', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌检查结果', '该患者检查提示[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('198', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌查体结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('199', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌手术', '该患者有[匹配内容]史,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('200', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌年龄', '该患者年龄[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('201', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌检验结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('202', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌过敏药品', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('203', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_禁忌其他过敏原', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('204', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_开单项互斥', '检查项目互斥:[匹配内容]与[开单名称]不宜同时进行[原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('205', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌人群', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('206', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌性别', '[匹配内容]性患者,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('207', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌疾病', '[匹配内容]患者,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('208', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌医疗器械及物品', '该患者具有[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('209', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌服用药品', '该患者正在使用[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('210', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌临床表现', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('211', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌检查结果', '该患者检查提示[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('212', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌查体结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('213', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌手术', '该患者有[匹配内容]史,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('214', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌年龄', '该患者年龄[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('215', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌检验结果', '该患者[匹配内容],不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('216', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌过敏药品', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('217', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '手术_禁忌其他过敏原', '该患者[匹配内容]过敏,不宜开[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('218', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌人群', '该患者[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('219', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌性别', '[匹配内容]性患者,谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('220', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌疾病', '[匹配内容]患者,谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('221', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌医疗器械及物品', '该患者具有[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('222', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌服用药品', '该患者正在使用[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('223', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌临床表现', '该患者[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('224', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌检查结果', '该患者检查提示[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('225', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌查体结果', '该患者[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('226', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌手术', '该患者有[匹配内容]史,谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('227', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌年龄', '该患者年龄[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('228', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌检验结果', '该患者[匹配内容],谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('229', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌过敏药品', '该患者[匹配内容]过敏,谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('230', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '输血_禁忌其他过敏原', '该患者[匹配内容]过敏,谨慎输注[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('231', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_正常项目重复开立', '该患者近期做过[项目名称],检查结果[匹配内容],请谨慎开立[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('232', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_正常项目重复开立', '该患者近期做过[匹配内容],请谨慎开立[开单名称][原因及建议]', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('233', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '化验_24小时重复开立', '[开单名称]重复开立', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('234', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '41', '辅检_24小时重复开立', '[开单名称]重复开立', '1', '0', '开单提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('235', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-药品通用名', '1-101-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('236', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-实验室检查套餐', '1-107-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('237', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-辅助检查项目', '1-109-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('238', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-辅助检查子项目', '1-110-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('239', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-手术和操作', '1-106-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('240', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-输血类型', '1-113-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('241', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '正常项目重复开立-辅助检查项目', '6-109-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('242', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '正常项目重复开立-辅助检查子项目', '6-110-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('243', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '正常项目重复开立-实验室检查套餐', '6-107-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('244', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '疾病集合', '308-600-100', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('245', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '药品通用名集合', '309-600-101', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('246', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '药品剂型集合', '310-600-102', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('247', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '症状集合', '311-600-103', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('248', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '体格检查项目集合', '312-600-104', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('249', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '体格检查结果集合', '313-600-105', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('250', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '手术和操作集合', '314-600-106', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('251', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '实验室检查套餐集合', '315-600-107', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('252', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '辅助检查项目集合', '316-600-109', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('253', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '辅助检查子项目集合', '317-600-110', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('254', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '辅助检查描述集合', '318-600-111', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('255', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '辅助检查结果集合', '319-600-112', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('256', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '麻醉集合', '320-600-114', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('257', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '科室集合', '321-600-115', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('258', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '食物集合', '322-600-118', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('259', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '其他过敏原集合', '323-600-119', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('260', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '医疗器械及物品集合', '324-600-120', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('261', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '部位集合', '325-600-122', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('262', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '中医疾病集合', '326-600-127', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('263', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '中医证候集合', '327-600-128', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('264', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '61', '诱因集合', '328-600-129', '1', '0', '术语集合相关子类');
+INSERT INTO `kl_dictionary_info` VALUES ('265', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '全部', '0', '1', '1', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('266', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '疾病集合', '308', '1', '2', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('267', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '药品通用名集合', '309', '1', '3', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('268', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '药品剂型集合', '310', '1', '4', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('269', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '症状集合', '311', '1', '5', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('270', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '体格检查项目集合', '312', '1', '6', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('271', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '体格检查结果集合', '313', '1', '7', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('272', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '手术和操作集合', '314', '1', '8', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('273', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '实验室检查套餐集合', '315', '1', '9', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('274', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '辅助检查项目集合', '316', '1', '10', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('275', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '辅助检查子项目集合', '317', '1', '11', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('276', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '辅助检查描述集合', '318', '1', '12', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('277', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '辅助检查结果集合', '319', '1', '13', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('278', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '麻醉集合', '320', '1', '14', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('279', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '科室集合', '321', '1', '15', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('280', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '食物集合', '322', '1', '16', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('281', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '其他过敏原集合', '323', '1', '17', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('282', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '医疗器械及物品集合', '324', '1', '18', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('283', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '部位集合', '325', '1', '19', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('284', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '中医疾病集合', '326', '1', '20', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('285', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '中医证候集合', '327', '1', '21', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('286', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '62', '诱因集合', '328', '1', '22', '术语集合类型');
+INSERT INTO `kl_dictionary_info` VALUES ('297', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '疾病集合', '308', '1', '1', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('298', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '药品通用名集合', '309', '1', '2', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('299', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '药品剂型集合', '310', '1', '3', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('300', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '症状集合', '311', '1', '4', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('301', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '体格检查项目集合', '312', '1', '5', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('302', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '体格检查结果集合', '313', '1', '6', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('303', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '手术和操作集合', '314', '1', '7', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('304', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '实验室检查套餐集合', '315', '1', '8', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('305', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '辅助检查项目集合', '316', '1', '9', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('306', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '辅助检查子项目集合', '317', '1', '10', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('307', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '辅助检查描述集合', '318', '1', '11', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('308', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '辅助检查结果集合', '319', '1', '12', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('309', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '麻醉集合', '320', '1', '13', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('310', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '科室集合', '321', '1', '14', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('311', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '食物集合', '322', '1', '15', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('312', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '其他过敏原集合', '323', '1', '16', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('313', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '医疗器械及物品集合', '324', '1', '17', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('314', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '部位集合', '325', '1', '18', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('315', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '中医疾病集合', '326', '1', '19', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('316', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '中医证候集合', '327', '1', '20', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('317', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '63', '诱因集合', '328', '1', '21', '术语集合类型(添加)');
+INSERT INTO `kl_dictionary_info` VALUES ('318', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '23', '复杂情况下高风险手术-手术和操作集合', '2-314', '1', '0', '高危手术存在(无子条件特殊处理)');
+INSERT INTO `kl_dictionary_info` VALUES ('319', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '高危-药品通用名集合', '2-309-1', '1', '0', '附加信息特殊处理(必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('320', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '其他值提醒-辅助检查结果集合', '4-319-1', '1', '0', '附加信息特殊处理(必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('321', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-药品通用名集合', '1-309-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('322', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-实验室检查套餐集合', '1-315-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('323', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-辅助检查项目集合', '1-316-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('324', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-辅助检查子项目集合', '1-317-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('325', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '开单合理性-手术和操作集合', '1-314-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('326', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '正常项目重复开立-辅助检查项目集合', '6-316-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('327', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '正常项目重复开立-辅助检查子项目集合', '6-317-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('328', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '正常项目重复开立-实验室检查套餐集合', '6-315-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('331', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '机械医嘱', '足底静脉泵(气压治疗)', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('332', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '机械医嘱', '间歇充气加压(气压治疗)', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('333', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '机械医嘱', '医用压力弹力袜', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('334', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '机械医嘱', '气压治疗(肢体正负压治疗>=3部位', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('335', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '普通肝素', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('336', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '进口依诺肝素', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('337', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '国产依诺肝素', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('338', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '利伐沙班', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('339', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '低分子肝素', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('340', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '速碧林', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('341', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '达肝素', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('342', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '磺达肝癸钠', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('343', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '达比加群酯', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('344', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '阿加曲班', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('345', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '比伐卢定', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('346', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '100', '药物医嘱', '华法林1', '1', '0', 'VTE医嘱数据');
+INSERT INTO `kl_dictionary_info` VALUES ('347', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '化验_药品', '该患者[化验结果],可能正在服用[匹配内容],请留意[原因及建议]', '1', '0', '其他值提醒化验提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('348', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '化验_诊断', '该患者[化验结果],患有[匹配内容],请留意[原因及建议]', '1', '0', '其他值提醒化验提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('349', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '化验_人群', '该患者[化验结果],[匹配内容],请留意[原因及建议]', '1', '0', '其他值提醒化验提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('350', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '化验_化验', '该患者[化验结果],[匹配内容],请留意[原因及建议]', '1', '0', '其他值提醒化验提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('351', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '化验_化验本身', '该患者[化验结果],请留意[原因及建议]', '1', '0', '其他值提醒化验提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('352', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '其他指标提醒-实验室检查子项目', '4-108-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('353', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '化验_性别', '该患者[化验结果],[匹配内容],请留意[原因及建议]', '1', '0', '其他值提醒化验提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('354', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '21', '其他值提醒_辅助检查描述', '4-111-0', '1', '0', '附加信息特殊处理(非必填)');
+INSERT INTO `kl_dictionary_info` VALUES ('355', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '20', '其他值提醒-辅助检查描述', '4-111-2', '1', '0', '辅检规则维护特殊处理-子规则首尾固定');
+INSERT INTO `kl_dictionary_info` VALUES ('356', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '23', '检查5级/6级-辅助检查结果', '3-112', '1', '0', '检查(5级)单危急值/(6级)多危急值和异常值存在(无子条件特殊处理)');
+INSERT INTO `kl_dictionary_info` VALUES ('357', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '23', '检查5级/6级-辅助检查结果集合', '3-329', '1', '0', '检查(5级)单危急值/(6级)多危急值和异常值存在(无子条件特殊处理)');
+INSERT INTO `kl_dictionary_info` VALUES ('358', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '43', '化验_化验本身', '该患者[化验结果],请留意[原因及建议]', '1', '0', '化验危急值提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('359', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '43', '化验_人群', '该患者[化验结果],[匹配内容],请留意[原因及建议]', '1', '0', '化验危急值提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('360', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '43', '化验_年龄', '该患者[化验结果],年龄[匹配内容],请留意[原因及建议]', '1', '0', '化验危急值提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('361', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '26', '危机值-实验室检查子项目-开单外存在比较-实验室检查子项目[隐藏]', '3-108-2-108', '1', '0', '危机值-实验室检查子项目-开单外存在比较-实验室检查子项目[隐藏]');
+INSERT INTO `kl_dictionary_info` VALUES ('362', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '42', '辅检_辅助检查描述', '该患者检查提示[辅助检查描述],请留意[原因及建议]', '1', '0', '其他值提醒辅助检查描述提示语');
+INSERT INTO `kl_dictionary_info` VALUES ('363', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '44', '[医疗器械及物品]', '具有#', '1', '0', '提示语前后缀,待用');
+INSERT INTO `kl_dictionary_info` VALUES ('364', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '44', '[手术]', '有#史', '1', '0', '提示语前后缀,待用');

+ 19 - 0
src/main/java/com/diagbot/dto/LisCtritalDTO.java

@@ -0,0 +1,19 @@
+package com.diagbot.dto;
+
+import lombok.Data;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @Description: 化验危急值提示语
+ * @Author:zhoutg
+ * @time: 2020/8/12 15:53
+ */
+@Data
+public class LisCtritalDTO {
+    private String name; // 化验拼接提示语
+    private String groupMsg = ""; // 人群拼接提示语
+    private String ageMsg = ""; // 年龄拼接提示语
+    private List<String> lisMsg = new ArrayList<>(); // 化验拼接提示语——暂无数据
+}

+ 1 - 0
src/main/java/com/diagbot/dto/LisOtherDTO.java

@@ -19,5 +19,6 @@ public class LisOtherDTO {
     private List<String> diseaseMsg = new ArrayList<>(); // 诊断拼接提示语
     private List<String> groupMsg = new ArrayList<>(); // 人群拼接提示语
     private List<String> operationMsg = new ArrayList<>(); // 手术拼接提示语
+    private String sexMsg = ""; // 性别拼接提示语
     private List<String> lisMsg = new ArrayList<>(); // 化验拼接提示语——暂无数据
 }

+ 16 - 0
src/main/java/com/diagbot/dto/PacsOtherDTO.java

@@ -0,0 +1,16 @@
+package com.diagbot.dto;
+
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @Description: 其他值提醒辅检提示语
+ * @Author:zhoutg
+ * @time: 2020/8/12 15:53
+ */
+@Data
+public class PacsOtherDTO {
+    // 主提示语
+    private List<String> mainMsg;
+}

+ 3 - 1
src/main/java/com/diagbot/enums/RedisEnum.java

@@ -30,7 +30,9 @@ public enum RedisEnum implements KeyedNamed {
     msg(21, "msg"),
     vteAdvice(22, "vteAdvice:"),
     drugAllergen(23, "drugAllergen"),
-    otherMsg(24, "otherMsg");
+    otherMsg(24, "otherMsg"),
+    criticalMsg(25, "criticalMsg");
+
 
     @Setter
     private int key;

+ 4 - 1
src/main/java/com/diagbot/enums/RegularConfigEnum.java

@@ -10,7 +10,10 @@ import lombok.Setter;
  */
 public enum RegularConfigEnum implements KeyedNamed {
     lis(1, "化验"),
-    allergy(2, "过敏源");
+    allergy(2, "过敏源"),
+    pacs(3, "辅检"),
+    vital(4, "体征"),
+    ;
 
     @Setter
     private int key;

+ 2 - 1
src/main/java/com/diagbot/enums/TypeEnum.java

@@ -22,7 +22,8 @@ public enum TypeEnum implements KeyedNamed {
     age(9,"年龄"),
     group(10, "人群"),
     lisSelf(1, "化验本身"),
-    other(11, "其他特殊规则");
+    other(11, "其他特殊规则"),
+    gender(12, "性别");
 
     @Setter
     private int key;

+ 25 - 2
src/main/java/com/diagbot/facade/CacheFacade.java

@@ -13,6 +13,7 @@ import com.diagbot.util.EntityUtil;
 import com.diagbot.util.ListUtil;
 import com.diagbot.util.RedisUtil;
 import com.diagbot.util.StringUtil;
+import com.google.common.collect.Lists;
 import org.apache.commons.collections4.map.LinkedMap;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;
@@ -236,7 +237,9 @@ public class CacheFacade {
     public void loadMsg() {
         // 开单提示语
         redisUtil.delete(RedisEnum.msg.getName());
-        List<DictionaryInfoDTO> dictionaryInfoDTOList = klDictionaryInfoFacade.getListByGroupType(41);
+        List<DictionaryInfoDTO> msgList = klDictionaryInfoFacade.getListByGroupType(Lists.newArrayList(41, 42, 43, 44));
+        Map<Long, List<DictionaryInfoDTO>> groupTypeMap = EntityUtil.makeEntityListMap(msgList, "groupType");
+        List<DictionaryInfoDTO> dictionaryInfoDTOList = groupTypeMap.get(41L);
         if (ListUtil.isNotEmpty(dictionaryInfoDTOList)) {
             // 提示语
             Map<String, Object> msgMap = new LinkedMap<>();
@@ -248,7 +251,7 @@ public class CacheFacade {
 
         // 其他值提醒化验提示语
         redisUtil.delete(RedisEnum.otherMsg.getName());
-        List<DictionaryInfoDTO> otherLisList = klDictionaryInfoFacade.getListByGroupType(42);
+        List<DictionaryInfoDTO> otherLisList = groupTypeMap.get(42L);
         if (ListUtil.isNotEmpty(otherLisList)) {
             // 提示语
             Map<String, Object> msgMap = new LinkedMap<>();
@@ -257,5 +260,25 @@ public class CacheFacade {
             }
             redisUtil.putHashMap(RedisEnum.otherMsg.getName(), msgMap);
         }
+
+        // 其他值提醒化验提示语
+        redisUtil.delete(RedisEnum.criticalMsg.getName());
+        List<DictionaryInfoDTO> criticalLisList = groupTypeMap.get(43L);
+        if (ListUtil.isNotEmpty(criticalLisList)) {
+            // 提示语
+            Map<String, Object> msgMap = new LinkedMap<>();
+            for (DictionaryInfoDTO dic : criticalLisList) {
+                msgMap.put(dic.getName(), dic.getVal());
+            }
+            redisUtil.putHashMap(RedisEnum.criticalMsg.getName(), msgMap);
+        }
+
+        // 以后待用
+        // List<DictionaryInfoDTO> ma = groupTypeMap.get(44L);
+        // Map<String, String> placeholderMap = MsgNewUtil.placeholderMap;
+        // placeholderMap.clear();
+        // for (DictionaryInfoDTO dictionaryInfoDTO : ma) {
+        //     placeholderMap.put(dictionaryInfoDTO.getName(), dictionaryInfoDTO.getVal());
+        // }
     }
 }

+ 15 - 4
src/main/java/com/diagbot/facade/KlConceptStaticFacade.java

@@ -103,9 +103,10 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
         KlConcept concept = klConceptFacade.getOne(new QueryWrapper<KlConcept>()
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("lib_name", staticKnowledgeVO.getName())
+                .eq("status", StatusEnum.Enable.getKey())
                 .eq("lib_type", type), false);
 
-        Integer sameType = null;
+        Integer sameType = 0;
         //标准词不存在,同名的是否存在,仅检验检查
         if (concept == null) {
             //同名静态知识互取
@@ -118,7 +119,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
             } else if (type.equals(LexiconEnum.PacsSubName.getKey())) {
                 sameType = LexiconEnum.PacsName.getKey();
             }
-            if (sameType != null) {
+            if (!sameType.equals(0)) {
                 concept = klConceptFacade.getOne(new QueryWrapper<KlConcept>()
                         .eq("is_deleted", IsDeleteEnum.N.getKey())
                         .eq("lib_name", staticKnowledgeVO.getName())
@@ -138,7 +139,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
         }
 
         //标准术语存在静态知识不存在,取同名静态知识,仅检验检查
-        if (concept != null && staticInfo == null && sameType == null) {
+        if (concept != null && staticInfo == null && sameType.equals(0)) {
             //同名静态知识互取
             if (type.equals(LexiconEnum.LisName.getKey())) {
                 sameType = LexiconEnum.LisSubName.getKey();
@@ -153,6 +154,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
                 KlConcept sameConcept = klConceptFacade.getOne(new QueryWrapper<KlConcept>()
                         .eq("is_deleted", IsDeleteEnum.N.getKey())
                         .eq("lib_name", staticKnowledgeVO.getName())
+                        .eq("status", StatusEnum.Enable.getKey())
                         .eq("lib_type", sameType), false);
                 if (sameConcept != null) {
                     staticInfo = this.getOne(new QueryWrapper<KlConceptStatic>()
@@ -163,6 +165,13 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
                         //存在同名的项,替换原来的项
                         BeanUtil.copyProperties(sameConcept, concept);
                         staticKnowledgeVO.setType(sameType);
+                    } else {
+                        //存在同名细项
+                        if (sameType.equals(LexiconEnum.LisSubName.getKey())
+                                || sameType.equals(LexiconEnum.PacsSubName.getKey())) {
+                            BeanUtil.copyProperties(sameConcept, concept);
+                            staticKnowledgeVO.setType(sameType);
+                        }
                     }
                 }
             }
@@ -171,7 +180,9 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
         if (staticInfo == null) {
             //检验子项或检查子项向上级取静态知识
             if (type.equals(LexiconEnum.LisSubName.getKey())
-                    || type.equals(LexiconEnum.PacsSubName.getKey())) {
+                    || type.equals(LexiconEnum.PacsSubName.getKey())
+                    || sameType.equals(LexiconEnum.LisSubName.getKey())
+                    || sameType.equals(LexiconEnum.PacsSubName.getKey())) {
                 List<KlRelation> relations = klRelationFacade.list(new QueryWrapper<KlRelation>()
                         .eq("is_deleted", IsDeleteEnum.N.getKey())
                         .eq("end_id", concept.getId())

+ 134 - 3
src/main/java/com/diagbot/facade/KlRegularConfigFacade.java

@@ -11,20 +11,28 @@ import com.diagbot.enums.RegularConfigEnum;
 import com.diagbot.exception.CommonErrorCode;
 import com.diagbot.exception.CommonException;
 import com.diagbot.model.entity.AllergyMedicine;
+import com.diagbot.model.entity.PD;
+import com.diagbot.model.entity.PacsNum;
+import com.diagbot.model.entity.Vital;
+import com.diagbot.model.label.PacsLabel;
 import com.diagbot.model.label.PastLabel;
+import com.diagbot.model.label.VitalLabel;
 import com.diagbot.service.impl.KlRegularConfigServiceImpl;
 import com.diagbot.util.EntityUtil;
 import com.diagbot.util.ListUtil;
+import com.diagbot.util.RegexUtil;
 import com.diagbot.util.StringUtil;
 import com.diagbot.vo.IndicationPushVO;
 import com.diagbot.vo.RegularConfigSaveVO;
 import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
+import org.apache.commons.collections4.MapUtils;
 import org.springframework.stereotype.Component;
 
-import java.util.ArrayList;
-import java.util.List;
+import java.util.*;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
+import java.util.stream.Collectors;
 
 /**
  * @author wangfeng
@@ -109,7 +117,17 @@ public class KlRegularConfigFacade extends KlRegularConfigServiceImpl {
         String allergyStr = indicationPushVO.getAllergy();
         String symptom = wordCrfDTO.getSymptom();//现病史
         String pasts = wordCrfDTO.getPasts();//既往史
-        if (StringUtil.isBlank(symptom) && StringUtil.isBlank(pasts)) {
+        //辅检
+        PacsLabel pacsLabel = wordCrfDTO.getPacsLabel();
+        List<PacsNum> pacsNumList = pacsLabel.getPacsNumList();
+        String pacs = pacsLabel.getText();
+        //体征
+        String vital = wordCrfDTO.getVital();
+        VitalLabel vitalLabel = wordCrfDTO.getVitalLabel();
+        List<Vital> vitals = vitalLabel.getVitals();
+
+        if (StringUtil.isBlank(symptom) && StringUtil.isBlank(pasts) && StringUtil.isBlank(pacs)
+        && StringUtil.isBlank(vital)) {
             return wordCrfDTO;
         }
 
@@ -141,6 +159,79 @@ public class KlRegularConfigFacade extends KlRegularConfigServiceImpl {
             }
         }
 
+        //辅检
+        List<KlRegularConfig> rulesTepy = EntityUtil.makeEntityListMap(regularConfigs, "rulesTepy").get(RegularConfigEnum.pacs.getKey());
+        Map<String, String> rulePacsCompiles = ruleAllCompile(rulesTepy, pacs);
+        if (MapUtils.isNotEmpty(rulePacsCompiles)) {
+            if (ListUtil.isNotEmpty(pacsNumList)) {
+                ListIterator<PacsNum> pacsNumListIterator = pacsNumList.listIterator();
+                while (pacsNumListIterator.hasNext()) {
+                    PacsNum x = pacsNumListIterator.next();
+                    String name = x.getName();
+                    PD pd = x.getPd();
+                    if (pd != null) {
+                        String value = pd.getValue();
+                        String key = name + "_" + value;
+                        if (rulePacsCompiles.containsKey(key)) {
+                            if (StringUtil.isNotBlank(rulePacsCompiles.get(key))) {
+                                pd.setUnit(rulePacsCompiles.get(key));
+                            }
+                            rulePacsCompiles.remove(key);
+                        }
+                    }
+                }
+            }
+            if (MapUtils.isNotEmpty(rulePacsCompiles)) {
+                rulePacsCompiles.forEach((x, y) -> {
+                    String[] nameValue = x.split("_");
+                    PacsNum pacsNum = new PacsNum();
+                    pacsNum.setName(nameValue[0]);
+                    pacsNum.setStandName(nameValue[0]);
+                    PD pdnew = new PD();
+                    pdnew.setValue(nameValue[1]);
+                    pdnew.setUnit(y);
+                    pacsNum.setPd(pdnew);
+                    pacsNumList.add(pacsNum);
+                });
+            }
+        }
+
+        //体征
+        List<KlRegularConfig> rulesTepyVitals = EntityUtil.makeEntityListMap(regularConfigs, "rulesTepy").get(RegularConfigEnum.vital.getKey());
+        Map<String, String> rulevitalsCompiles = ruleAllCompile(rulesTepyVitals, vital);
+        if (MapUtils.isNotEmpty(rulevitalsCompiles)) {
+            if (ListUtil.isNotEmpty(vitals)) {
+                Iterator<Vital> vitalIterator = vitals.listIterator();
+                while (vitalIterator.hasNext()) {
+                    Vital next = vitalIterator.next();
+                    String name = next.getName();
+                    PD pd = next.getPd();
+                    if (pd != null) {
+                        String value = pd.getValue();
+                        String key = name + "_" + value;
+                        if (rulevitalsCompiles.containsKey(key)) {
+                            if (StringUtil.isNotBlank(rulevitalsCompiles.get(key))) {
+                                pd.setUnit(rulevitalsCompiles.get(key));
+                            }
+                            rulevitalsCompiles.remove(key);
+                        }
+                    }
+                }
+            }
+            if (MapUtils.isNotEmpty(rulevitalsCompiles)) {
+                rulevitalsCompiles.forEach((x, y) -> {
+                    String[] nameValue = x.split("_");
+                    Vital pacsNum = new Vital();
+                    pacsNum.setName(nameValue[0]);
+                    pacsNum.setStandName(nameValue[0]);
+                    PD pdnew = new PD();
+                    pdnew.setValue(nameValue[1]);
+                    pdnew.setUnit(y);
+                    pacsNum.setPd(pdnew);
+                    vitals.add(pacsNum);
+                });
+            }
+        }
         // 既往史过敏史
         List<RegularValueDTO> regularConfigPastss = getRegularConfigDatas(pasts,
                 EntityUtil.makeEntityListMap(regularConfigs, "rulesTepy").get(RegularConfigEnum.allergy.getKey()));
@@ -201,4 +292,44 @@ public class KlRegularConfigFacade extends KlRegularConfigServiceImpl {
         }
         return res;
     }
+
+    /**
+     * 把正则匹配出来的放在map里
+     * key:体温_37 value:℃
+     *
+     * @param regexGroupData
+     * @return
+     */
+    public Map<String, String> ruleCompile(List<List<String>> regexGroupData) {
+        Map<String, String> ruleCompileMap = Maps.newHashMap();
+        if (ListUtil.isNotEmpty(regexGroupData)) {
+            for (List<String> groupContents : regexGroupData) {
+                if (ListUtil.isNotEmpty(groupContents)) {
+                    String s = "";
+                    if (groupContents.size() > 2) {
+                        s = groupContents.get(2);
+                    }
+
+                    ruleCompileMap.put(groupContents.get(0) + "_" + groupContents.get(1), s);
+                }
+            }
+
+        }
+        return ruleCompileMap;
+    }
+
+    public Map<String, String> ruleAllCompile(List<KlRegularConfig> rulesTepy, String txt) {
+        Map<String, String> ruleAllCompileMap = Maps.newHashMap();
+        if (ListUtil.isNotEmpty(rulesTepy)) {
+            for (KlRegularConfig klrc : rulesTepy) {
+                String rulesValue = klrc.getRulesValue();
+                List<List<String>> regexGroupData = RegexUtil.getRegexGroupData(txt, rulesValue);
+                Map<String, String> ruleCompileMap = ruleCompile(regexGroupData);
+                if (MapUtils.isNotEmpty(ruleCompileMap)) {
+                    ruleAllCompileMap.putAll(ruleCompileMap);
+                }
+            }
+        }
+        return ruleAllCompileMap;
+    }
 }

+ 1 - 1
src/main/java/com/diagbot/process/CriticalProcess.java

@@ -61,7 +61,7 @@ public class CriticalProcess {
                 for (RuleConditionDTO ruleConditionDTO : ruleConditionDTOList) {
                     List<RuleBaseDTO> ruleBaseDTOList = ruleConditionDTO.getRuleBaseDTOList();
                     // 2、规则匹配
-                    lisRule.critical(lis, ruleBaseDTOList, criticalList, wordCrfDTO);
+                    lisRule.critical(lis, ruleBaseDTOList, criticalList, wordCrfDTO, ruleConditionDTO.getMsg());
                 }
             }
         }

+ 94 - 72
src/main/java/com/diagbot/process/OtherTipProcess.java

@@ -14,7 +14,6 @@ import com.diagbot.enums.RedisEnum;
 import com.diagbot.enums.RuleTypeEnum;
 import com.diagbot.enums.TypeEnum;
 import com.diagbot.facade.CommonFacade;
-import com.diagbot.model.entity.PD;
 import com.diagbot.model.entity.PacsNum;
 import com.diagbot.model.label.PacsLabel;
 import com.diagbot.rule.AgeRule;
@@ -30,6 +29,7 @@ import com.diagbot.util.RedisUtil;
 import com.diagbot.util.ReflectUtil;
 import com.diagbot.util.StringUtil;
 import com.diagbot.vo.RuleVO;
+import com.google.common.collect.Lists;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -94,10 +94,9 @@ public class OtherTipProcess {
      */
     public void processPacs(WordCrfDTO wordCrfDTO, IndicationDTO res) {
         PacsLabel pacsLabel = wordCrfDTO.getPacsLabel();
-        List<Item> itemList = pacsLabel.getRes();
+        List<RuleVO> ruleList = getRuleVO(pacsLabel);
         List<BillMsg> otherList = res.getOtherList();
-        for (Item item : itemList) {
-            RuleVO ruleVO = getRuleVO(item);
+        for (RuleVO ruleVO : ruleList) {
             // 1、获取相关数据
             if (ruleVO != null) {
                 RuleExtDTO ruleExtDTO = commonFacade.getRuleData(ruleVO);
@@ -108,66 +107,66 @@ public class OtherTipProcess {
                 for (RuleConditionDTO ruleConditionDTO : ruleConditionDTOList) {
                     List<RuleBaseDTO> ruleBaseDTOList = ruleConditionDTO.getRuleBaseDTOList();
                     // 2、规则匹配
-                    pacsRule.otherPacs(ruleBaseDTOList, ruleConditionDTO.getMsg(), otherList, wordCrfDTO);
+                    pacsRule.otherPacs(ruleBaseDTOList, ruleConditionDTO.getMsg(), otherList, wordCrfDTO, ruleExtDTO);
                 }
             }
         }
 
-        // TODO 后期删除 辅检数值型匹配
-        List<PacsNum> pacsNumList = pacsLabel.getPacsNumList();
-        for (PacsNum pacsNum : pacsNumList) {
-            if ("心率".equals(pacsNum.getStandName())) {
-                PD pd = pacsNum.getPd();
-                if (pd != null && StringUtil.isNotBlank(pd.getValue())) {
-                    double v = Double.parseDouble(pd.getValue());
-                    String content = pacsNum.getStandName() + pd.getValue() + pd.getUnit();
-                    Double ageNum = wordCrfDTO.getAgeNum();
-                    Double min = null, max = null;
-                    String suggest = "";
-                    if (ageNum < 0.019) {
-                        min = 110D;
-                        max = 170D;
-                        suggest = "年龄0-6天心率正常值为110-170bpm";
-                    } else if (ageNum < 0.164) {
-                        min = 90D;
-                        max = 160D;
-                        suggest = "年龄7-59天心率正常值为90-160bpm";
-                    } else if (ageNum < 2) {
-                        min = 90D;
-                        max = 150D;
-                        suggest = "年龄2-23月心率正常值为90-150bpm";
-                    } else if (ageNum < 3) {
-                        min = 80D;
-                        max = 140D;
-                        suggest = "年龄2-3岁心率正常值为80-140bpm";
-                    } else if (ageNum < 6) {
-                        min = 80D;
-                        max = 130D;
-                        suggest = "年龄3-5岁心率正常值为80-130bpm";
-                    } else if (ageNum < 11) {
-                        min = 70D;
-                        max = 120D;
-                        suggest = "年龄6-10岁心率正常值为70-120bpm";
-                    } else if (ageNum < 18) {
-                        min = 60D;
-                        max = 120D;
-                        suggest = "年龄11-17岁心率正常值为60-120bpm";
-                    } else if (ageNum <= 150) {
-                        min = 60D;
-                        max = 110D;
-                        suggest = "年龄18-150岁心率正常值为60-110bpm";
-                    }
-                    int flag = compareValue(min, max, v);
-                    if (flag == 0) {
-                        String msg = String.format("该患者%s,%s", content, suggest);
-                        BillMsg billMsg = new BillMsg();
-                        billMsg.setMsg(msg);
-                        billMsg.setContent(content);
-                        otherList.add(billMsg);
-                    }
-                }
-            }
-        }
+        // // TODO 后期删除 辅检数值型匹配
+        // List<PacsNum> pacsNumList = pacsLabel.getPacsNumList();
+        // for (PacsNum pacsNum : pacsNumList) {
+        //     if ("心率".equals(pacsNum.getStandName())) {
+        //         PD pd = pacsNum.getPd();
+        //         if (pd != null && StringUtil.isNotBlank(pd.getValue())) {
+        //             double v = Double.parseDouble(pd.getValue());
+        //             String content = pacsNum.getStandName() + pd.getValue() + pd.getUnit();
+        //             Double ageNum = wordCrfDTO.getAgeNum();
+        //             Double min = null, max = null;
+        //             String suggest = "";
+        //             if (ageNum < 0.019) {
+        //                 min = 110D;
+        //                 max = 170D;
+        //                 suggest = "年龄0-6天心率正常值为110-170bpm";
+        //             } else if (ageNum < 0.164) {
+        //                 min = 90D;
+        //                 max = 160D;
+        //                 suggest = "年龄7-59天心率正常值为90-160bpm";
+        //             } else if (ageNum < 2) {
+        //                 min = 90D;
+        //                 max = 150D;
+        //                 suggest = "年龄2-23月心率正常值为90-150bpm";
+        //             } else if (ageNum < 3) {
+        //                 min = 80D;
+        //                 max = 140D;
+        //                 suggest = "年龄2-3岁心率正常值为80-140bpm";
+        //             } else if (ageNum < 6) {
+        //                 min = 80D;
+        //                 max = 130D;
+        //                 suggest = "年龄3-5岁心率正常值为80-130bpm";
+        //             } else if (ageNum < 11) {
+        //                 min = 70D;
+        //                 max = 120D;
+        //                 suggest = "年龄6-10岁心率正常值为70-120bpm";
+        //             } else if (ageNum < 18) {
+        //                 min = 60D;
+        //                 max = 120D;
+        //                 suggest = "年龄11-17岁心率正常值为60-120bpm";
+        //             } else if (ageNum <= 150) {
+        //                 min = 60D;
+        //                 max = 110D;
+        //                 suggest = "年龄18-150岁心率正常值为60-110bpm";
+        //             }
+        //             int flag = compareValue(min, max, v);
+        //             if (flag == 0) {
+        //                 String msg = String.format("该患者%s,%s", content, suggest);
+        //                 BillMsg billMsg = new BillMsg();
+        //                 billMsg.setMsg(msg);
+        //                 billMsg.setContent(content);
+        //                 otherList.add(billMsg);
+        //             }
+        //         }
+        //     }
+        // }
     }
 
     public int compareValue(Double min, Double max, Double v) {
@@ -294,24 +293,47 @@ public class OtherTipProcess {
         return hasAdviceFlag;
     }
 
+
     /**
      * 获取其他值提醒入参——辅检
      *
-     * @param bean
+     * @param pacsLabel
      * @return
      */
-    public RuleVO getRuleVO(Item bean) {
-        if (StringUtil.isNotBlank(bean.getUniqueName())) {
-            RuleVO ruleVO = new RuleVO();
-            ruleVO.setInputName(bean.getName());
-            ruleVO.setLibName(bean.getUniqueName());
-            ruleVO.setLibType(LexiconEnum.PacsResult.getKey());
-            ruleVO.setLibTypeName(TypeEnum.pacs.getName());
-            ruleVO.setDateValue(bean.getDateValue());
-            ruleVO.setSuffix(String.valueOf(RuleTypeEnum.other.getKey()));
-            return ruleVO;
+    public List<RuleVO> getRuleVO(PacsLabel pacsLabel) {
+        List<RuleVO> ruleVOList = Lists.newArrayList();
+
+        // 辅检结果
+        List<Item> itemList = pacsLabel.getRes();
+        if (ListUtil.isNotEmpty(itemList)) {
+            for (Item bean : itemList) {
+                if (StringUtil.isNotBlank(bean.getUniqueName())) {
+                    RuleVO ruleVO = new RuleVO();
+                    ruleVO.setInputName(bean.getName());
+                    ruleVO.setLibName(bean.getUniqueName());
+                    ruleVO.setLibType(LexiconEnum.PacsResult.getKey());
+                    ruleVO.setLibTypeName(TypeEnum.pacs.getName());
+                    ruleVO.setDateValue(bean.getDateValue());
+                    ruleVO.setSuffix(String.valueOf(RuleTypeEnum.other.getKey()));
+                    ruleVOList.add(ruleVO);
+                }
+            }
         }
-        return null;
+
+        // 辅检描述
+        List<PacsNum> pacsNumList = pacsLabel.getPacsNumList();
+        if (ListUtil.isNotEmpty(pacsNumList)) {
+            for (PacsNum pacsNum : pacsNumList) {
+                RuleVO ruleVO = new RuleVO();
+                ruleVO.setInputName(pacsNum.getName());
+                ruleVO.setLibName(pacsNum.getStandName());
+                ruleVO.setLibType(LexiconEnum.PacsDescribe.getKey());
+                ruleVO.setLibTypeName(TypeEnum.pacs.getName());
+                ruleVO.setSuffix(String.valueOf(RuleTypeEnum.other.getKey()));
+                ruleVOList.add(ruleVO);
+            }
+        }
+        return ruleVOList;
     }
 
     /**

+ 5 - 0
src/main/java/com/diagbot/process/PushProcess.java

@@ -118,6 +118,11 @@ public class PushProcess {
                 || (StringUtils.isNotBlank(icssVo.getSymptom()) && icssVo.getSymptom().trim().equals("呼吸困难"))) {
             icssVo.setChief("呼吸困难。");
         }
+        String pasts = icssVo.getPasts();
+        if(StringUtils.isNotBlank(pasts)){
+            pasts = pasts.replaceAll("\\“","\"");
+            icssVo.setPasts(pasts);
+        }
         Response<ResponseData> annotation = icssPushServiceClient.getAnnotation(icssVo);
         if (annotation != null) {
             ResponseData data = annotation.getData();

+ 175 - 128
src/main/java/com/diagbot/rule/LisRule.java

@@ -2,6 +2,7 @@ package com.diagbot.rule;
 
 import com.diagbot.biz.push.entity.Lis;
 import com.diagbot.dto.BillMsg;
+import com.diagbot.dto.LisCtritalDTO;
 import com.diagbot.dto.LisOtherDTO;
 import com.diagbot.dto.MatchDTO;
 import com.diagbot.dto.RuleBaseDTO;
@@ -35,6 +36,10 @@ public class LisRule {
     CommonRule commonRule;
     @Autowired
     MsgNewUtil msgNewUtil;
+    @Autowired
+    SexRule sexRule;
+    @Autowired
+    AgeRule ageRule;
 
     /**
      * 比较化验——开单合理性
@@ -90,11 +95,11 @@ public class LisRule {
      */
     public void otherLis(Lis lisBean, List<RuleBaseDTO> ruleBaseDTOList, List<BillMsg> otherList, WordCrfDTO wordCrfDTO, String msg) {
         if (ListUtil.isEmpty(ruleBaseDTOList)) {
-            return ;
+            return;
         }
         LisOtherDTO lisOtherDTO = new LisOtherDTO();
-        int i = 0;
         for (RuleBaseDTO ruleBaseDTO : ruleBaseDTOList) {
+            boolean flag = false;
             if (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType()) != null) { // 避免空指针
                 Map<String, Object> map = null;
                 switch (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType())) {
@@ -103,93 +108,103 @@ public class LisRule {
                             // 化验自身
                             MatchDTO matchDTO = CoreUtil.compareLis(ruleBaseDTO, lisBean);
                             if (matchDTO != null) {
-                                i++;
                                 lisOtherDTO.setName(matchDTO.getContent());
                                 lisOtherDTO.setLisNameDetail(matchDTO.getLisNameDetail());
-                            } else {
-                                break;
+                                flag = true;
                             }
                         } else {
                             // 其他化验——暂无数据
                             List<MatchDTO> matchDTOList = CoreUtil.compareLis(ruleBaseDTO, wordCrfDTO.getLis());
                             if (ListUtil.isNotEmpty(matchDTOList)) {
-                                i++;
                                 List<String> msgLis = matchDTOList.stream().map(r -> r.getContent()).collect(Collectors.toList());
                                 lisOtherDTO.setLisMsg(msgLis);
-                            } else {
-                                break;
+                                flag = true;
                             }
                         }
                         break;
                     case Group: // 人群
                         map = groupRule.rule(wordCrfDTO, ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            lisOtherDTO.getGroupMsg().add((String)map.get("msg"));
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisOtherDTO.getGroupMsg().add((String) map.get("msg"));
                         }
                         break;
                     case Disease: // 诊断
                         map = commonRule.compareItem(wordCrfDTO.getDiag(), ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            lisOtherDTO.setDiseaseMsg((List<String>)map.get("msgList"));
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisOtherDTO.setDiseaseMsg((List<String>) map.get("msgList"));
                         }
                         break;
                     case Medicine: // 药品
                         map = commonRule.compareItem(wordCrfDTO.getDrugSource(), ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            lisOtherDTO.setDrugMsg((List<String>)map.get("msgList"));
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisOtherDTO.setDrugMsg((List<String>) map.get("msgList"));
+                        }
+                        break;
+                    case Gender: // 性别
+                        flag = sexRule.getFlag(wordCrfDTO, ruleBaseDTO);
+                        if (flag) {
+                            lisOtherDTO.setSexMsg(ruleBaseDTO.getBaseLibName());
                         }
                         break;
                     default:
                         break;
                 }
             }
+            // 有任一条件不满足,直接退出
+            if (!flag) {
+                return;
+            }
         }
         // 条件全部符合
-        if (i == ruleBaseDTOList.size()) {
-            if (StringUtil.isNotBlank(lisOtherDTO.getName())) {
-                String lisNameDetail = lisOtherDTO.getLisNameDetail(); // 化验套餐和明细
-                // 就化验本身一个条件符合
-                if (i == 1) {
-                    BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(),
-                            lisOtherDTO.getName(), "", TypeEnum.lisSelf.getName(), lisBean, msg, lisNameDetail);
-                    CoreUtil.addBeanToList(otherList, billMsg);
-                } else { // 有其他条件符合
-                    // 诊断
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getDiseaseMsg())) {
-                        for (String str : lisOtherDTO.getDiseaseMsg()) {
-                            BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
-                                    str, TypeEnum.disease.getName(), lisBean, msg, lisNameDetail);
-                            CoreUtil.addBeanToList(otherList, billMsg);
-                        }
+        if (StringUtil.isNotBlank(lisOtherDTO.getName())) {
+            String lisNameDetail = lisOtherDTO.getLisNameDetail(); // 化验套餐和明细
+            // 就化验本身一个条件符合
+            if (ruleBaseDTOList.size() == 1) {
+                BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(),
+                        lisOtherDTO.getName(), "", TypeEnum.lisSelf.getName(), lisBean, msg, lisNameDetail);
+                CoreUtil.addBeanToList(otherList, billMsg);
+            } else { // 有其他条件符合
+                // 诊断
+                if (ListUtil.isNotEmpty(lisOtherDTO.getDiseaseMsg())) {
+                    for (String str : lisOtherDTO.getDiseaseMsg()) {
+                        BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
+                                str, TypeEnum.disease.getName(), lisBean, msg, lisNameDetail);
+                        CoreUtil.addBeanToList(otherList, billMsg);
                     }
-                    // 药品
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getDrugMsg())) {
-                        for (String str : lisOtherDTO.getDrugMsg()) {
-                            BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
-                                    str, TypeEnum.drug.getName(), lisBean, msg, lisNameDetail);
-                            CoreUtil.addBeanToList(otherList, billMsg);
-                        }
+                }
+                // 药品
+                if (ListUtil.isNotEmpty(lisOtherDTO.getDrugMsg())) {
+                    for (String str : lisOtherDTO.getDrugMsg()) {
+                        BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
+                                str, TypeEnum.drug.getName(), lisBean, msg, lisNameDetail);
+                        CoreUtil.addBeanToList(otherList, billMsg);
                     }
-                    // 人群
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getGroupMsg())) {
-                        for (String str : lisOtherDTO.getGroupMsg()) {
-                            BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
-                                    str, TypeEnum.group.getName(), lisBean, msg, lisNameDetail);
-                            CoreUtil.addBeanToList(otherList, billMsg);
-                        }
+                }
+                // 人群
+                if (ListUtil.isNotEmpty(lisOtherDTO.getGroupMsg())) {
+                    for (String str : lisOtherDTO.getGroupMsg()) {
+                        BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
+                                str, TypeEnum.group.getName(), lisBean, msg, lisNameDetail);
+                        CoreUtil.addBeanToList(otherList, billMsg);
                     }
-                    // 化验——暂无数据
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getLisMsg())) {
-                        for (String str : lisOtherDTO.getLisMsg()) {
-                            BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
-                                    str, TypeEnum.lis.getName(), lisBean, msg, lisNameDetail);
-                            CoreUtil.addBeanToList(otherList, billMsg);
-                        }
+                }
+                // 化验——暂无数据
+                if (ListUtil.isNotEmpty(lisOtherDTO.getLisMsg())) {
+                    for (String str : lisOtherDTO.getLisMsg()) {
+                        BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
+                                str, TypeEnum.lis.getName(), lisBean, msg, lisNameDetail);
+                        CoreUtil.addBeanToList(otherList, billMsg);
                     }
                 }
+                // 性别
+                if (StringUtil.isNotBlank(lisOtherDTO.getSexMsg())) {
+                    BillMsg billMsg = msgNewUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(),
+                            lisOtherDTO.getSexMsg(), TypeEnum.gender.getName(), lisBean, msg, lisNameDetail);
+                    CoreUtil.addBeanToList(otherList, billMsg);
+                }
             }
         }
     }
@@ -204,12 +219,12 @@ public class LisRule {
      */
     public void otherTransfusion(Lis lisBean, List<RuleBaseDTO> ruleBaseDTOList, String msg, List<BillMsg> otherList, WordCrfDTO wordCrfDTO) {
         if (ListUtil.isEmpty(ruleBaseDTOList)) {
-            return ;
+            return;
         }
         LisOtherDTO lisOtherDTO = new LisOtherDTO();
         lisOtherDTO.setMsg(msg);
-        int i = 0;
         for (RuleBaseDTO ruleBaseDTO : ruleBaseDTOList) {
+            boolean flag = false;
             if (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType()) != null) { // 避免空指针
                 Map<String, Object> map = null;
                 switch (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType())) {
@@ -218,93 +233,91 @@ public class LisRule {
                             // 化验自身
                             MatchDTO matchDTO = CoreUtil.compareLis(ruleBaseDTO, lisBean);
                             if (matchDTO != null) {
-                                i++;
                                 lisOtherDTO.setName(matchDTO.getContent());
                                 lisOtherDTO.setLisNameDetail(matchDTO.getLisNameDetail());
-                            } else {
-                                break;
+                                flag = true;
                             }
                         } else {
                             // 其他化验——暂无数据
                             List<MatchDTO> matchDTOList = CoreUtil.compareLis(ruleBaseDTO, wordCrfDTO.getLis());
                             if (ListUtil.isNotEmpty(matchDTOList)) {
-                                i++;
                                 List<String> msgLis = matchDTOList.stream().map(r -> r.getContent()).collect(Collectors.toList());
                                 lisOtherDTO.setLisMsg(msgLis);
-                            } else {
-                                break;
+                                flag = true;
                             }
                         }
                         break;
                     case Disease: // 诊断
                         map = commonRule.compareItem(wordCrfDTO.getDiag(), ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            lisOtherDTO.setDiseaseMsg((List<String>)map.get("msgList"));
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisOtherDTO.setDiseaseMsg((List<String>) map.get("msgList"));
                         }
                         break;
                     case Medicine: // 药品
                         map = commonRule.compareItem(wordCrfDTO.getDrugSource(), ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            lisOtherDTO.setDrugMsg((List<String>)map.get("msgList"));
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisOtherDTO.setDrugMsg((List<String>) map.get("msgList"));
                         }
                     case Operation: // 手术
                         map = commonRule.compareItem(wordCrfDTO.getOperation(), ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            lisOtherDTO.setOperationMsg((List<String>)map.get("msgList"));
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisOtherDTO.setOperationMsg((List<String>) map.get("msgList"));
                         }
                         break;
                     default:
                         break;
                 }
             }
+            // 有任一条件不满足,直接退出
+            if (!flag) {
+                return;
+            }
         }
         // 条件全部符合
-        if (i == ruleBaseDTOList.size()) {
-            if (StringUtil.isNotBlank(lisOtherDTO.getName())) {
-                // 化验本身符合,其他不符合
-                if (ListUtil.isEmpty(lisOtherDTO.getDiseaseMsg())
-                        && ListUtil.isEmpty(lisOtherDTO.getOperationMsg())
-                        && ListUtil.isEmpty(lisOtherDTO.getLisMsg())) {
-                    BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
-                            lisOtherDTO.getName(), msg, TypeEnum.lis.getName(), lisBean);
-                    otherList.add(billMsg);
-                } else {
-                    // 诊断
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getDiseaseMsg())) {
-                        for (String str : lisOtherDTO.getDiseaseMsg()) {
-                            BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
-                                    "诊断" + str + "," + lisOtherDTO.getName(), msg, TypeEnum.disease.getName(), lisBean);
-                            otherList.add(billMsg);
-                        }
+        if (StringUtil.isNotBlank(lisOtherDTO.getName())) {
+            // 化验本身符合,其他不符合
+            if (ListUtil.isEmpty(lisOtherDTO.getDiseaseMsg())
+                    && ListUtil.isEmpty(lisOtherDTO.getOperationMsg())
+                    && ListUtil.isEmpty(lisOtherDTO.getLisMsg())) {
+                BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
+                        lisOtherDTO.getName(), msg, TypeEnum.lis.getName(), lisBean);
+                otherList.add(billMsg);
+            } else {
+                // 诊断
+                if (ListUtil.isNotEmpty(lisOtherDTO.getDiseaseMsg())) {
+                    for (String str : lisOtherDTO.getDiseaseMsg()) {
+                        BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
+                                "诊断" + str + "," + lisOtherDTO.getName(), msg, TypeEnum.disease.getName(), lisBean);
+                        otherList.add(billMsg);
                     }
-                    // 手术
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getOperationMsg())) {
-                        for (String str : lisOtherDTO.getOperationMsg()) {
-                            BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
-                                    lisOtherDTO.getName() + ",已开" + str, msg, TypeEnum.operation.getName(), lisBean);
-                            otherList.add(billMsg);
-                        }
+                }
+                // 手术
+                if (ListUtil.isNotEmpty(lisOtherDTO.getOperationMsg())) {
+                    for (String str : lisOtherDTO.getOperationMsg()) {
+                        BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
+                                lisOtherDTO.getName() + ",已开" + str, msg, TypeEnum.operation.getName(), lisBean);
+                        otherList.add(billMsg);
                     }
-                    // 化验化验本身符合,其他不符合
-                    if (ListUtil.isNotEmpty(lisOtherDTO.getLisMsg())) {
-                        for (String str : lisOtherDTO.getLisMsg()) {
-                            BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
-                                    lisOtherDTO.getName() + "," + str, msg, TypeEnum.lis.getName(), lisBean);
-                            otherList.add(billMsg);
-                        }
+                }
+                // 化验化验本身符合,其他不符合
+                if (ListUtil.isNotEmpty(lisOtherDTO.getLisMsg())) {
+                    for (String str : lisOtherDTO.getLisMsg()) {
+                        BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
+                                lisOtherDTO.getName() + "," + str, msg, TypeEnum.lis.getName(), lisBean);
+                        otherList.add(billMsg);
                     }
-                    // // 药品暂未用
-                    // if (ListUtil.isNotEmpty(lisOtherDTO.getDrugMsg())) {
-                    //     for (String str : lisOtherDTO.getDrugMsg()) {
-                    //         BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
-                    //                 lisOtherDTO.getName(), msg, TypeEnum.drug.getName(), lisBean);
-                    //         otherList.add(billMsg);
-                    //     }
-                    // }
                 }
+                // // 药品暂未用
+                // if (ListUtil.isNotEmpty(lisOtherDTO.getDrugMsg())) {
+                //     for (String str : lisOtherDTO.getDrugMsg()) {
+                //         BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.transfusion.getName(),
+                //                 lisOtherDTO.getName(), msg, TypeEnum.drug.getName(), lisBean);
+                //         otherList.add(billMsg);
+                //     }
+                // }
             }
         }
     }
@@ -316,49 +329,83 @@ public class LisRule {
      * @param ruleBaseDTOList
      * @param criticalList
      */
-    public void critical(Lis lisBean, List<RuleBaseDTO> ruleBaseDTOList, List<BillMsg> criticalList, WordCrfDTO wordCrfDTO) {
+    public void critical(Lis lisBean, List<RuleBaseDTO> ruleBaseDTOList, List<BillMsg> criticalList, WordCrfDTO wordCrfDTO, String msg) {
         if (ListUtil.isEmpty(ruleBaseDTOList)) {
-            return ;
+            return;
         }
-        String msg = "";
-        int i = 0;
+
+        LisCtritalDTO lisCtritalDTO = new LisCtritalDTO();
         for (RuleBaseDTO ruleBaseDTO : ruleBaseDTOList) {
+            boolean flag = false;
             if (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType()) != null) { // 避免空指针
-                Map map = null;
+                Map<String, Object> map = null;
                 switch (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType())) {
                     case LisSubName: // 化验细项
                         if (ruleBaseDTO.getBaseLibName().equals(lisBean.getUniqueName())) {
                             // 化验自身 【第一个】
                             MatchDTO matchDTO = CoreUtil.compareLis(ruleBaseDTO, lisBean);
                             if (matchDTO != null) {
-                                i++;
-                                msg = matchDTO.getContent();
-                            } else {
-                                break;
+                                lisCtritalDTO.setName(matchDTO.getContent());
+                                flag = true;
                             }
                         } else {
                             // 其他化验
                             List<MatchDTO> matchDTOList = CoreUtil.compareLis(ruleBaseDTO, wordCrfDTO.getLis());
                             if (ListUtil.isNotEmpty(matchDTOList)) {
-                                i++;
-                            } else {
-                                break;
+                                flag = true;
                             }
                         }
                         break;
                     case Group: // 人群
                         map = groupRule.rule(wordCrfDTO, ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        if (flag) {
+                            lisCtritalDTO.setGroupMsg(ruleBaseDTO.getBaseLibName());
+                        }
+                        break;
+                    case Age: // 年龄
+                        flag = ageRule.getFlag(wordCrfDTO, ruleBaseDTO);
+                        if (flag) {
+                            lisCtritalDTO.setAgeMsg(wordCrfDTO.getAge());
                         }
                         break;
-                    default: break;
+                    default:
+                        break;
                 }
             }
+            // 有任一条件不满足,直接退出
+            if (!flag) {
+                return;
+            }
         }
-        if (i == ruleBaseDTOList.size()) {
-            BillMsg criticalMsg = MsgUtil.getCommonCriticalMsg(msg, TypeEnum.lis.getName());
-            criticalList.add(criticalMsg);
+        if (StringUtil.isNotBlank(lisCtritalDTO.getName())) {
+            // 就化验本身一个条件符合
+            if (ruleBaseDTOList.size() == 1) {
+                BillMsg billMsg = msgNewUtil.getCriticalMsg(TypeEnum.lis.getName(),
+                        lisCtritalDTO.getName(), "", TypeEnum.lisSelf.getName(), msg);
+                CoreUtil.addBeanToList(criticalList, billMsg);
+            } else { // 有其他条件符合
+                // 化验——暂无数据
+                if (ListUtil.isNotEmpty(lisCtritalDTO.getLisMsg())) {
+                    for (String str : lisCtritalDTO.getLisMsg()) {
+                        BillMsg billMsg = msgNewUtil.getCriticalMsg(TypeEnum.lis.getName(), lisCtritalDTO.getName(),
+                                str, TypeEnum.lis.getName(), msg);
+                        CoreUtil.addBeanToList(criticalList, billMsg);
+                    }
+                }
+                // 人群
+                if (StringUtil.isNotBlank(lisCtritalDTO.getGroupMsg())) {
+                    BillMsg billMsg = msgNewUtil.getCriticalMsg(TypeEnum.lis.getName(), lisCtritalDTO.getName(),
+                            lisCtritalDTO.getGroupMsg(), TypeEnum.group.getName(), msg);
+                    CoreUtil.addBeanToList(criticalList, billMsg);
+                }
+                // 年龄
+                if (StringUtil.isNotBlank(lisCtritalDTO.getAgeMsg())) {
+                    BillMsg billMsg = msgNewUtil.getCriticalMsg(TypeEnum.lis.getName(), lisCtritalDTO.getName(),
+                            lisCtritalDTO.getAgeMsg(), TypeEnum.age.getName(), msg);
+                    CoreUtil.addBeanToList(criticalList, billMsg);
+                }
+            }
         }
     }
 

+ 44 - 26
src/main/java/com/diagbot/rule/PacsRule.java

@@ -2,7 +2,9 @@ package com.diagbot.rule;
 
 import com.diagbot.dto.BillMsg;
 import com.diagbot.dto.MatchDTO;
+import com.diagbot.dto.PacsOtherDTO;
 import com.diagbot.dto.RuleBaseDTO;
+import com.diagbot.dto.RuleExtDTO;
 import com.diagbot.dto.RuleSimpleDTO;
 import com.diagbot.dto.WordCrfDTO;
 import com.diagbot.enums.BaseTypeEnum;
@@ -18,6 +20,7 @@ import org.springframework.stereotype.Component;
 
 import java.util.List;
 import java.util.Map;
+import java.util.stream.Collectors;
 
 /**
  * @description: 辅检规则
@@ -81,77 +84,92 @@ public class PacsRule {
      * 比较辅检结果——其他提醒
      *
      * @param ruleBaseDTOList
-     * @param msg
+     * @param suggestMsg
      * @param otherList
      * @param wordCrfDTO
+     * @param ruleExtDTO
      */
-    public void otherPacs(List<RuleBaseDTO> ruleBaseDTOList, String msg, List<BillMsg> otherList, WordCrfDTO wordCrfDTO) {
+    public void otherPacs(List<RuleBaseDTO> ruleBaseDTOList, String suggestMsg, List<BillMsg> otherList,
+                          WordCrfDTO wordCrfDTO, RuleExtDTO ruleExtDTO) {
         if (ListUtil.isEmpty(ruleBaseDTOList)) {
-            return ;
+            return;
         }
-        int i = 0;
+        PacsOtherDTO pacsOtherDTO = new PacsOtherDTO();
         for (RuleBaseDTO ruleBaseDTO : ruleBaseDTOList) {
+            boolean flag = false;
             if (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType()) != null) { // 避免空指针
-                boolean flag = false;
+                Map<String, Object> map = null;
                 switch (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType())) {
                     case Age: // 年龄
                         flag = ageRule.getFlag(wordCrfDTO, ruleBaseDTO);
-                        if (flag) {
-                            i++;
-                        }
                         break;
                     case Gender: // 性别
                         flag = sexRule.getFlag(wordCrfDTO, ruleBaseDTO);
-                        if (flag) {
-                            i++;
-                        }
                         break;
                     case Group: // 人群
-                        Map map = groupRule.rule(wordCrfDTO, ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            i++;
-                        }
+                        map = groupRule.rule(wordCrfDTO, ruleBaseDTO);
+                        flag = CoreUtil.getMapFlag(map);
                         break;
                     case PacsResult: // 辅检结果
                         map = commonRule.compareItem(wordCrfDTO.getPacsLabel().getRes(), ruleBaseDTO);
+                        // 不等于术语本身,反向判断
                         if (ruleBaseDTO.getBaseType().equals(BaseTypeEnum.B3.getKey())) {
                             if (!CoreUtil.getMapFlag(map)) {
-                                i++;
+                                flag = true;
                             }
                         } else {
                             if (CoreUtil.getMapFlag(map)) {
-                                i++;
+                                flag = true;
                             }
                         }
                         break;
                     case Disease: // 诊断
                         map = commonRule.compareItem(wordCrfDTO.getDiag(), ruleBaseDTO);
-                        if (CoreUtil.getMapFlag(map)) {
-                            i++;
-                        }
+                        flag = CoreUtil.getMapFlag(map);
                         break;
                     case LisSubName: // 检验结果
                         List<MatchDTO> matchDTOList = CoreUtil.compareLis(ruleBaseDTO, wordCrfDTO.getLis());
                         if (ListUtil.isNotEmpty(matchDTOList)) {
-                            i++;
+                            flag = true;
                         }
                         break;
                     case VitalResult: //体格检查结果
                     case Vital: // 体格检查项目
                         map = CoreUtil.compareVital(ruleBaseDTO, wordCrfDTO.getVitalLabel());
-                        if (CoreUtil.getMapFlag(map)) {
-                            i++;
+                        flag = CoreUtil.getMapFlag(map);
+                        break;
+                    case PacsDescribe: // 辅助检查描述
+                        matchDTOList = CoreUtil.comparePacsDesc(ruleBaseDTO, wordCrfDTO.getPacsLabel().getPacsNumList());
+                        if (ListUtil.isNotEmpty(matchDTOList)) {
+                            flag = true;
+                            /**
+                             * redis中的基础数据顺序会变动,第一条基础数据不一定是后台首行固定数据,找首行固定数据的依据
+                             * 是:基础规则术语类型、名称与主规则一致
+                             */
+                            if (ruleExtDTO.getLibName().equals(ruleBaseDTO.getBaseLibName())
+                                    && ruleExtDTO.getLibType().equals(ruleBaseDTO.getBaseLibType())) {
+                                pacsOtherDTO.setMainMsg(matchDTOList.stream().map(r -> r.getContent()).collect(Collectors.toList()));
+                            }
                         }
                         break;
                     default:
                         break;
                 }
             }
+            // 有任一条件不满足,直接退出
+            if (!flag) {
+                return;
+            }
         }
         // 条件全部符合
-        if (i == ruleBaseDTOList.size()) {
-            BillMsg otherMsg = MsgUtil.getCommonOtherMsg(TypeEnum.pacs.getName(), msg, msg, null, null);
-            otherList.add(otherMsg);
+        if (ListUtil.isNotEmpty(pacsOtherDTO.getMainMsg())) { // 辅检描述走模板
+            for (String s : pacsOtherDTO.getMainMsg()) {
+                BillMsg otherMsg = msgNewUtil.getOtherPacsMsg(s, LexiconEnum.PacsDescribe.getName(), suggestMsg);
+                CoreUtil.addBeanToList(otherList, otherMsg);
+            }
+        } else { // 其他直接用提示语
+            BillMsg otherMsg = MsgUtil.getCommonOtherMsg(TypeEnum.pacs.getName(), suggestMsg, suggestMsg, null, null);
+            CoreUtil.addBeanToList(otherList, otherMsg);
         }
     }
 }

+ 30 - 0
src/main/java/com/diagbot/util/CoreUtil.java

@@ -10,6 +10,7 @@ import com.diagbot.model.entity.BodyPart;
 import com.diagbot.model.entity.Clinical;
 import com.diagbot.model.entity.Negative;
 import com.diagbot.model.entity.PD;
+import com.diagbot.model.entity.PacsNum;
 import com.diagbot.model.entity.Usual;
 import com.diagbot.model.entity.Vital;
 import com.diagbot.model.label.VitalLabel;
@@ -540,6 +541,35 @@ public class CoreUtil {
         return map;
     }
 
+    /**
+     * 比较辅检检查描述是否匹配
+     *
+     * @param ruleBaseDTO
+     * @param pacsNumList
+     * @return
+     */
+    public static List<MatchDTO> comparePacsDesc(RuleBaseDTO ruleBaseDTO, List<PacsNum> pacsNumList) {
+        if (ruleBaseDTO == null || ListUtil.isEmpty(pacsNumList)) {
+            return null;
+        }
+        List<MatchDTO> matchDTOList = new ArrayList<>();
+        // 辅助检查描述
+        for (PacsNum pacsNum : pacsNumList) {
+            if (ruleBaseDTO.getBaseLibName().equals(pacsNum.getStandName()) && pacsNum.getPd() != null
+                    && StringUtil.isNotBlank(pacsNum.getPd().getValue())) {
+                boolean flag = compareNum(ruleBaseDTO, Double.parseDouble(pacsNum.getPd().getValue()));
+                if (flag) {
+                    MatchDTO matchDTO = new MatchDTO();
+                    matchDTO.setContent(pacsNum.getName()
+                            + subZeroAndDot(String.valueOf(pacsNum.getPd().getValue()))
+                            + getJointUnits(pacsNum.getPd()));
+                    matchDTOList.add(matchDTO);
+                }
+            }
+        }
+        return matchDTOList;
+    }
+
     /**
      * 比较数值大小(double)
      *

+ 133 - 14
src/main/java/com/diagbot/util/MsgNewUtil.java

@@ -3,11 +3,14 @@ package com.diagbot.util;
 import com.diagbot.biz.push.entity.Lis;
 import com.diagbot.dto.BillMsg;
 import com.diagbot.dto.RuleSimpleDTO;
+import com.diagbot.enums.CommonEnum;
 import com.diagbot.enums.ConEnum;
 import com.diagbot.enums.RedisEnum;
 import com.diagbot.enums.TypeEnum;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
 
 /**
  * @description: 提示语工具类
@@ -17,6 +20,11 @@ import org.springframework.stereotype.Component;
 @Component
 public class MsgNewUtil {
 
+    /**
+     * 占位符静态变量,格式:“前缀#后缀”
+     */
+    public static Map<String, String> placeholderMap = new ConcurrentHashMap<>();
+
     @Autowired
     RedisUtil redisUtil;
 
@@ -43,27 +51,27 @@ public class MsgNewUtil {
         // 出现2个“具有”,去除一个为空
         if (ConEnum.medEqu.getName().equals(conType) && StringUtil.isNotBlank(content)
                 && content.startsWith("具有") && msg.startsWith("该患者具有")) {
-            msg = msg.replaceAll("具有", "");
+            msg = msg.replace("具有", "");
         }
         if (StringUtil.isNotBlank(unionMsg)) {
-            msg = msg.replaceAll("\\[原因及建议]", "," + unionMsg);
+            msg = msg.replace("[原因及建议]", "," + unionMsg);
         } else {
-            msg = msg.replaceAll("\\[原因及建议]", "");
+            msg = msg.replace("[原因及建议]", "");
         }
         // [性别取反]标签替换
         if (ConEnum.gender.getName().equals(conType)) {
             if ("男".equals(content)) {
-                msg = msg.replaceAll("\\[性别取反]", "女");
+                msg = msg.replace("[性别取反]", "女");
             } else if ("女".equals(content)) {
-                msg = msg.replaceAll("\\[性别取反]", "男");
+                msg = msg.replace("[性别取反]", "男");
             }
         }
 
         // 放到最后统一替换【多处匹配】
-        msg = msg.replaceAll("\\[匹配内容]", content);
-        String orderNameNew = orderName.replaceAll("\\\\","\\\\\\\\"); // 防止开单名称中有\\
-        msg = msg.replaceAll("\\[开单名称]", orderNameNew);
-        msg = msg.replaceAll("\\[项目名称]", structName);
+        msg = msg.replace("[匹配内容]", content);
+        msg = msg.replace("[开单名称]", orderName);
+        msg = msg.replace("[项目名称]", structName);
+
         billMsg.setMsg(msg);
         billMsg.setOrderName(orderName);
         billMsg.setOrderStandName(orderStandName);
@@ -92,15 +100,15 @@ public class MsgNewUtil {
                     return null;
                 }
                 if (StringUtil.isNotBlank(suggestMsg)) {
-                    msg = msg.replaceAll("\\[原因及建议]", "," + suggestMsg);
+                    msg = msg.replace("[原因及建议]", "," + suggestMsg);
                 } else {
-                    msg = msg.replaceAll("\\[原因及建议]", "");
+                    msg = msg.replace("[原因及建议]", "");
                 }
                 // 放到最后统一替换【多处匹配】
-                msg = msg.replaceAll("\\[化验结果]", content);
-                msg = msg.replaceAll("\\[匹配内容]", name);
+                msg = msg.replace("[化验结果]", content);
+                msg = msg.replace("[匹配内容]", name);
                 if (msg.contains("[化验套餐和明细]")) {
-                    msg = msg.replaceAll("\\[化验套餐和明细]", lisNameDetail);
+                    msg = msg.replace("[化验套餐和明细]", lisNameDetail);
                 }
                 billMsg.setType(type);
                 billMsg.setOrderName(lis.getName());
@@ -113,4 +121,115 @@ public class MsgNewUtil {
         billMsg.setContent(content);
         return billMsg;
     }
+
+    /**
+     * 其他值提醒辅检提示信息
+     *
+     * @param mainMsg
+     * @param templateType
+     * @param suggestMsg
+     * @return
+     */
+    public BillMsg getOtherPacsMsg(String mainMsg, String templateType, String suggestMsg) {
+        String msg = redisUtil.getByKeyAndField(RedisEnum.otherMsg.getName(), TypeEnum.pacs.getName() + "_" + templateType);
+        if (StringUtil.isBlank(msg)) { // 防止报空指针
+            return null;
+        }
+        BillMsg billMsg = new BillMsg();
+        if (StringUtil.isNotBlank(suggestMsg)) {
+            msg = msg.replace("[原因及建议]", "," + suggestMsg);
+        } else {
+            msg = msg.replace("[原因及建议]", "");
+        }
+        // 放到最后统一替换【多处匹配】
+        msg = msg.replace("[辅助检查描述]", mainMsg);
+        billMsg.setType(templateType);
+        billMsg.setMsg(msg);
+        billMsg.setContent(mainMsg);
+        return billMsg;
+    }
+
+    /**
+     * 危急值化验提示信息
+     *
+     * @param type          分类
+     * @param content       化验内容
+     * @param name          条件内容
+     * @param conditionType 条件类型
+     * @param suggestMsg
+     * @return
+     */
+    public BillMsg getCriticalMsg(String type, String content, String name, String conditionType, String suggestMsg) {
+        BillMsg billMsg = new BillMsg();
+        String msg = "";
+        switch (TypeEnum.getEnum(type)) {
+            case lis: // 危急值提醒——化验
+                msg = redisUtil.getByKeyAndField(RedisEnum.criticalMsg.getName(), type + "_" + conditionType);
+                if (StringUtil.isBlank(msg)) { // 防止报空指针
+                    return null;
+                }
+                if (StringUtil.isNotBlank(suggestMsg)) {
+                    msg = msg.replace("[原因及建议]", "," + suggestMsg);
+                } else {
+                    msg = msg.replace("[原因及建议]", "");
+                }
+                // 放到最后统一替换【多处匹配】
+                msg = msg.replace("[化验结果]", content);
+                msg = msg.replace("[匹配内容]", name);
+                billMsg.setType(conditionType);
+                break;
+            default:
+                break;
+        }
+        billMsg.setMsg(msg);
+        billMsg.setContent(content);
+        return billMsg;
+    }
+
+    /**
+     * 不使用正则,全部替换
+     *
+     * @param msg         文本
+     * @param placeholder 占位符
+     * @param replaceStr  替换字符串
+     * @return
+     */
+    public String replacePlaceholder(String msg, String placeholder, String replaceStr) {
+        if (StringUtil.isBlank(msg)) {
+            return null;
+        }
+        if (StringUtil.isBlank(placeholder)) {
+            return msg;
+        }
+        if (msg.contains(placeholder)) {
+            String prefixAndSuffix = placeholderMap.get(placeholder); // 前后缀,中间用#分隔
+            String prefix = ""; // 前缀
+            String suffix = ""; // 后缀
+            if (StringUtil.isNotBlank(prefixAndSuffix)) {
+                String[] split = prefixAndSuffix.split(CommonEnum.splitSymbol.getName());
+                prefix = split[0];
+                if (split.length == 2) {
+                    suffix = split[1];
+                } else {
+                    suffix = "";
+                }
+            }
+            // 拼接前缀
+            if (StringUtil.isNotBlank(prefix)) {
+                replaceStr = prefix + replaceStr;
+            }
+            // 拼接后缀
+            if (StringUtil.isNotBlank(suffix)) {
+                replaceStr = replaceStr + suffix;
+            }
+            // 后缀后面默认添加标点符号
+            replaceStr = replaceStr + ",";
+            msg = msg.replace(placeholder, replaceStr);
+            // 提示语如果以,结尾,去掉
+            if (msg.matches(".*[,|,]$")) {
+                msg = msg.substring(0, msg.length() - 1);
+            }
+        }
+        return msg;
+    }
 }

+ 52 - 17
src/main/java/com/diagbot/util/RegexUtil.java

@@ -2,11 +2,9 @@ package com.diagbot.util;
 
 import com.google.common.collect.Lists;
 
-import java.util.ArrayList;
 import java.util.List;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-import java.util.stream.Collectors;
 
 /**
  * @author zhoutg
@@ -235,27 +233,64 @@ public class RegexUtil {
         return list;
     }
 
+    /**
+     * 根据正则获取匹配的所有分组数据(公共方法)
+     *
+     * @param content
+     * @param regex
+     * @return
+     */
+    public static List<List<String>> getRegexGroupData(String content, String regex) {
+        return getRegexGroupDataCommon(content, regex, false);
+    }
+
+    /**
+     * 根据正则获取匹配的所有分组数据(公共方法)(大小写敏感)
+     *
+     * @param content
+     * @param regex
+     * @return
+     */
+    public static List<List<String>> getRegexGroupDataSen(String content, String regex) {
+        return getRegexGroupDataCommon(content, regex, true);
+    }
+
+    /**
+     * 根据正则获取匹配的所有分组数据(内部方法)
+     *
+     * @param content
+     * @param regex
+     * @return
+     */
+    private static List<List<String>> getRegexGroupDataCommon(String content, String regex, Boolean sensitive) {
+        List<List<String>> res = Lists.newArrayList();
+        try {
+            if (StringUtil.isBlank(content)) {
+                return res;
+            }
+            Pattern pattern = getPattern(regex, sensitive);
+            Matcher matcher = pattern.matcher(content);
+            while (matcher.find()) {
+                if (matcher.groupCount() > 0) {
+                    List<String> groupList = Lists.newArrayList();
+                    for (int i = 1; i <= matcher.groupCount(); i++) {
+                        groupList.add(matcher.group(i));
+                    }
+                    res.add(groupList);
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return res;
+    }
+
     /**
      * 测试
      *
      * @param args
      */
     public static void main(String[] args) {
-        String str = "1-2-3-4, 法法,0-0-1-0";
-        String regex = "(\\d+)-(\\d+)-(\\d+)-(\\d+)";
-        System.out.println(getRegexDataList(str, regex));
-
-        // String regex1 = "([1-9]\\d*\\.?\\d*)|(0\\.\\d*[1-9])";
-        // // System.out.println(getRegexData("血小板计数  30.3", regex1, 2));
-        // System.out.println(getRegexData("拟诊+(3.3/3.4)任一", regex1));
-        //
-        // String s1 = "ABC";
-        // System.out.println(getRegexRes(s1, "Abc", true));
-
-        System.out.println(getRegexDataAll("拟诊+(3.3/3.4)任一", "([1-9]\\d*\\.?\\d*)|(0\\.\\d*[1-9])"));
 
-        ArrayList<String> js = Lists.newArrayList("G.4", "G.1", "G.2", "G.3");
-        List<String> collect = js.stream().sorted().collect(Collectors.toList());
-        System.out.println(collect);
     }
 }

+ 12 - 0
src/main/java/com/diagbot/vo/RuleParamVO.java

@@ -0,0 +1,12 @@
+package com.diagbot.vo;
+
+/**
+ * @description:
+ * @author: zhoutg
+ * @time: 2021/10/20 11:40
+ */
+public class RuleParamVO {
+    private String name;
+    private String uniqueName;
+    private String dateValue;
+}

+ 102 - 0
src/main/resources/mapper/KlConceptMapper.xml

@@ -510,6 +510,108 @@
                 LOWER( concat('%',#{inputStr},'%')))
             </if>
         </if>
+        <if test="typeIds.contains(109) or typeIds.contains(110)">
+            UNION
+            SELECT DISTINCT
+            concat( '1', e.lib_type ) AS moduleNo,
+            e.id AS id,
+            e.lib_name AS NAME,
+            b.lib_name AS retrievalName,
+            1 AS isConcept,
+            e.lib_type AS type,
+            c.name AS typeName,
+            NULL AS code
+            FROM
+            kl_library_info a,
+            kl_concept b,
+            kl_lexicon c,
+            kl_relation d,
+            kl_concept e
+            WHERE
+            a.is_deleted = 'N'
+            AND b.is_deleted = 'N'
+            AND c.is_deleted = 'N'
+            AND d.is_deleted = 'N'
+            AND e.is_deleted = 'N'
+            AND a.concept_id = b.id
+            AND b.id = d.end_id
+            AND e.id = d.start_id
+            AND e.lib_type = c.code
+            AND b.lib_type = 110
+            AND e.lib_type = 109
+            AND d.relation_id = 600
+            AND b.`status` = 1
+            <if test="inputStr!=null and inputStr!=''">
+                AND ( a.name = #{inputStr} OR LOWER(a.spell) = LOWER(#{inputStr}))
+            </if>
+            UNION
+            SELECT DISTINCT
+            concat( '2', e.lib_type ) AS moduleNo,
+            e.id AS id,
+            e.lib_name AS NAME,
+            b.lib_name AS retrievalName,
+            1 AS isConcept,
+            e.lib_type AS type,
+            c.name AS typeName,
+            NULL AS code
+            FROM
+            kl_library_info a,
+            kl_concept b,
+            kl_lexicon c,
+            kl_relation d,
+            kl_concept e
+            WHERE
+            a.is_deleted = 'N'
+            AND b.is_deleted = 'N'
+            AND c.is_deleted = 'N'
+            AND d.is_deleted = 'N'
+            AND e.is_deleted = 'N'
+            AND a.concept_id = b.id
+            AND b.id = d.end_id
+            AND e.id = d.start_id
+            AND e.lib_type = c.code
+            AND b.lib_type = 110
+            AND e.lib_type = 109
+            AND d.relation_id = 600
+            AND b.`status` = 1
+            <if test="inputStr!=null and inputStr!=''">
+                AND ( a.name LIKE concat(#{inputStr},'%') OR LOWER(a.spell) LIKE LOWER( concat(#{inputStr},'%')))
+            </if>
+            UNION
+            SELECT DISTINCT
+            concat( '3', e.lib_type ) AS moduleNo,
+            e.id AS id,
+            e.lib_name AS NAME,
+            b.lib_name AS retrievalName,
+            1 AS isConcept,
+            e.lib_type AS type,
+            c.name AS typeName,
+            NULL AS code
+            FROM
+            kl_library_info a,
+            kl_concept b,
+            kl_lexicon c,
+            kl_relation d,
+            kl_concept e
+            WHERE
+            a.is_deleted = 'N'
+            AND b.is_deleted = 'N'
+            AND c.is_deleted = 'N'
+            AND d.is_deleted = 'N'
+            AND e.is_deleted = 'N'
+            AND a.concept_id = b.id
+            AND b.id = d.end_id
+            AND e.id = d.start_id
+            AND e.lib_type = c.code
+            AND b.lib_type = 110
+            AND e.lib_type = 109
+            AND d.relation_id = 600
+            AND b.`status` = 1
+            <if test="inputStr!=null and inputStr!=''">
+                AND ( a.name LIKE concat('%',#{inputStr},'%') OR LOWER(a.spell) LIKE
+                LOWER( concat('%',#{inputStr},'%')))
+            </if>
+        </if>
         <if test="typeIds.contains(100) ">
             UNION
             SELECT

+ 104 - 0
src/main/resources/mapper/KlConceptStaticMapper.xml

@@ -312,6 +312,110 @@
                 concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%')))
             </if>
         </if>
+        <if test="staticKnowledgeIndexPageVO.typeIds.contains(109) or staticKnowledgeIndexPageVO.typeIds.contains(110)">
+            UNION
+            SELECT DISTINCT
+            concat( '1', e.lib_type ) AS moduleNo,
+            e.id AS id,
+            e.lib_name AS NAME,
+            b.lib_name AS retrievalName,
+            1 AS isConcept,
+            e.lib_type AS type,
+            c.name AS typeName,
+            NULL AS code
+            FROM
+            kl_library_info a,
+            kl_concept b,
+            kl_lexicon c,
+            kl_relation d,
+            kl_concept e
+            WHERE
+            a.is_deleted = 'N'
+            AND b.is_deleted = 'N'
+            AND c.is_deleted = 'N'
+            AND d.is_deleted = 'N'
+            AND e.is_deleted = 'N'
+            AND a.concept_id = b.id
+            AND b.id = d.end_id
+            AND e.id = d.start_id
+            AND e.lib_type = c.code
+            AND b.lib_type = 110
+            AND e.lib_type = 109
+            AND d.relation_id = 600
+            AND b.`status` = 1
+            <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
+                AND ( a.name = #{staticKnowledgeIndexPageVO.inputStr} OR LOWER(a.spell) =
+                LOWER(#{staticKnowledgeIndexPageVO.inputStr}))
+            </if>
+            UNION
+            SELECT DISTINCT
+            concat( '2', e.lib_type ) AS moduleNo,
+            e.id AS id,
+            e.lib_name AS NAME,
+            b.lib_name AS retrievalName,
+            1 AS isConcept,
+            e.lib_type AS type,
+            c.name AS typeName,
+            NULL AS code
+            FROM
+            kl_library_info a,
+            kl_concept b,
+            kl_lexicon c,
+            kl_relation d,
+            kl_concept e
+            WHERE
+            a.is_deleted = 'N'
+            AND b.is_deleted = 'N'
+            AND c.is_deleted = 'N'
+            AND d.is_deleted = 'N'
+            AND e.is_deleted = 'N'
+            AND a.concept_id = b.id
+            AND b.id = d.end_id
+            AND e.id = d.start_id
+            AND e.lib_type = c.code
+            AND b.lib_type = 110
+            AND e.lib_type = 109
+            AND d.relation_id = 600
+            AND b.`status` = 1
+            <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
+                AND ( a.name LIKE concat(#{staticKnowledgeIndexPageVO.inputStr},'%') OR LOWER(a.spell) LIKE LOWER(
+                concat(#{staticKnowledgeIndexPageVO.inputStr},'%')))
+            </if>
+            UNION
+            SELECT DISTINCT
+            concat( '3', e.lib_type ) AS moduleNo,
+            e.id AS id,
+            e.lib_name AS NAME,
+            b.lib_name AS retrievalName,
+            1 AS isConcept,
+            e.lib_type AS type,
+            c.name AS typeName,
+            NULL AS code
+            FROM
+            kl_library_info a,
+            kl_concept b,
+            kl_lexicon c,
+            kl_relation d,
+            kl_concept e
+            WHERE
+            a.is_deleted = 'N'
+            AND b.is_deleted = 'N'
+            AND c.is_deleted = 'N'
+            AND d.is_deleted = 'N'
+            AND e.is_deleted = 'N'
+            AND a.concept_id = b.id
+            AND b.id = d.end_id
+            AND e.id = d.start_id
+            AND e.lib_type = c.code
+            AND b.lib_type = 110
+            AND e.lib_type = 109
+            AND d.relation_id = 600
+            AND b.`status` = 1
+            <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
+                AND ( a.name LIKE concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%') OR LOWER(a.spell) LIKE LOWER(
+                concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%')))
+            </if>
+        </if>
         <if test="staticKnowledgeIndexPageVO.typeIds.contains(100) ">
             UNION
             SELECT