Browse Source

新预问诊脚本总结

gaodm 5 years ago
parent
commit
456f19459a
1 changed files with 22 additions and 1 deletions
  1. 22 1
      docs/030.预问诊交互方式改成QA/init_prec.sql

+ 22 - 1
docs/030.预问诊交互方式改成QA/init_prec.sql

@@ -1,3 +1,24 @@
 use `sys-prec`;
 
-alter table `prec_question_info` add  column `exclusion_detail` varchar(100) DEFAULT '' COMMENT '互斥选项(如1,2|3,4(1,2互斥,3,4互斥))' AFTER `required`;
+alter table `prec_question_info` add  column `exclusion_detail` varchar(100) DEFAULT '' COMMENT '互斥选项(如1,2|3,4(1,2互斥,3,4互斥))' AFTER `required`;
+
+DROP TABLE IF EXISTS `prec_statistical`;
+CREATE TABLE `prec_statistical` (
+  `id` bigint(20) NOT NULL AUTO_INCREMENT,
+  `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则表示纪录未修改',
+  `hospital_id` bigint(20) DEFAULT NULL COMMENT '医院id',
+  `hospital_dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
+  `doctor_id` bigint(20) DEFAULT NULL COMMENT '医生id',
+  `patient_id` bigint(20) DEFAULT NULL COMMENT '病人id',
+  `inquiry_code` varchar(255) DEFAULT NULL COMMENT '就诊号',
+  `label_id` int(10) DEFAULT NULL COMMENT '标签ID',
+  `label_name` varchar(100) DEFAULT NULL COMMENT '标签名',
+  `operation_type` varchar(100) DEFAULT NULL COMMENT '操作类型(1:常见标签点击, 2:搜索标签点击)',
+  `operation_num` int(5) DEFAULT NULL COMMENT '操作次数',
+  `status` int(5) DEFAULT '0' COMMENT '是否存在标签库(0:默认有,1:无)',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8 COMMENT='数据埋点统计表';