/* SQLyog v10.2 MySQL - 5.6.29 : Database - wlyy ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`wlyy` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `wlyy`; /*Table structure for table `dm_city` */ DROP TABLE IF EXISTS `dm_city`; CREATE TABLE `dm_city` ( `id` int(11) NOT NULL AUTO_INCREMENT, `province` varchar(10) DEFAULT NULL COMMENT '省编码', `code` varchar(50) DEFAULT NULL COMMENT '城市编码', `name` varchar(50) DEFAULT NULL COMMENT '城市名称', PRIMARY KEY (`id`), KEY `idx_dm_city_province` (`province`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='城市字典表'; /*Data for the table `dm_city` */ insert into `dm_city`(`id`,`province`,`code`,`name`) values (1,'1','1','厦门市'); /*Table structure for table `dm_device_category` */ DROP TABLE IF EXISTS `dm_device_category`; CREATE TABLE `dm_device_category` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '设备类型标识', `name` varchar(50) NOT NULL COMMENT '设备类型名称', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='设备分类表'; /*Data for the table `dm_device_category` */ insert into `dm_device_category`(`id`,`code`,`name`,`czrq`,`del`) values (1,'1','血糖仪','2016-05-09 06:28:27','1'),(2,'2','血压仪','2016-05-09 06:28:32','1'); /*Table structure for table `dm_disease` */ DROP TABLE IF EXISTS `dm_disease`; CREATE TABLE `dm_disease` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '疾病标识', `name` varchar(100) DEFAULT NULL COMMENT '疾病名称', `dept` varchar(20) DEFAULT NULL COMMENT '科室标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0删除', PRIMARY KEY (`id`), KEY `idx_dm_disease_1` (`dept`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='疾病字典表'; /*Data for the table `dm_disease` */ /*Table structure for table `dm_error_code` */ DROP TABLE IF EXISTS `dm_error_code`; CREATE TABLE `dm_error_code` ( `code` varchar(50) NOT NULL COMMENT '错误编码', `des` varchar(200) NOT NULL COMMENT '错误描述' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='错误代码表'; /*Data for the table `dm_error_code` */ /*Table structure for table `dm_hospital` */ DROP TABLE IF EXISTS `dm_hospital`; CREATE TABLE `dm_hospital` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '医院标识', `province` varchar(50) DEFAULT NULL COMMENT '省份标识', `city` varchar(50) DEFAULT NULL COMMENT '城市标识', `town` varchar(50) DEFAULT NULL COMMENT '区县标识', `name` varchar(100) NOT NULL COMMENT '医院名称', `level` int(11) NOT NULL DEFAULT '1' COMMENT '级别,1医院,2社区医院', `address` varchar(300) NOT NULL COMMENT '医院详细地址', `intro` text COMMENT '医院简介', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', `province_name` varchar(50) DEFAULT NULL COMMENT '省份名称', `city_name` varchar(50) DEFAULT NULL COMMENT '城市名称', `town_name` varchar(50) DEFAULT NULL COMMENT '区县名称', `photo` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_dm_hospital_1` (`province`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='医院字典表'; /*Data for the table `dm_hospital` */ insert into `dm_hospital`(`id`,`code`,`province`,`city`,`town`,`name`,`level`,`address`,`intro`,`del`,`province_name`,`city_name`,`town_name`,`photo`) values (1,'1','1','1','1','厦门莲前街道社区卫生中心',2,'文兴东路398号',NULL,'1','省份名称','城市名称','区县名称',NULL),(2,'2','1','1','2','厦门湖里区金山街道社区卫生服务中心',2,'金山街道后坑后社389号',NULL,'1','省份名称','城市名称','区县名称',NULL),(3,'3','1','1','1','厦门嘉莲社区医疗服务中心',2,'思明区莲景路62号',NULL,'1','省份名称','城市名称','区县名称',NULL),(4,'4','1','1','1','厦门市第一医院莲前第一社区医疗服务中心',2,'前埔前村557号',NULL,'1','省份名称','城市名称','区县名称',NULL),(5,'5','1','1','1','思明区中华街道社区卫生服务中心',2,'厦门市思明区定安路60号',NULL,'1','省份名称','城市名称','区县名称',NULL),(6,'6','1','1','1','思明区开元街道社区卫生服务中心',2,'白鹤山路3号',NULL,'1','省份名称','城市名称','区县名称',NULL),(7,'7','1','1','4','海沧街道海沧社区卫生服务中心',2,'福建省厦门市海沧区松榆南路118号',NULL,'1','省份名称','城市名称','区县名称',NULL),(8,'8','1','1','4','海沧区海沧街道石塘社区卫生服务中心',2,'福建省厦门市海沧区',NULL,'1','省份名称','城市名称','区县名称',NULL),(9,'9','1','1','4','厦门市海沧区东孚卫生院',2,'厦门市海沧区新阳街道新景西三路8号',NULL,'1','省份名称','城市名称','区县名称',NULL); /*Table structure for table `dm_hospital_dept` */ DROP TABLE IF EXISTS `dm_hospital_dept`; CREATE TABLE `dm_hospital_dept` ( `code` varchar(50) NOT NULL COMMENT '科室标识', `name` varchar(50) NOT NULL COMMENT '科室名称', `del` varchar(1) DEFAULT '1' COMMENT '删除标识,1正常,0删除', `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '非业务主键', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医院科室字典表'; /*Data for the table `dm_hospital_dept` */ insert into `dm_hospital_dept`(`code`,`name`,`del`,`id`) values ('1','妇科','1',1),('2','心脑血管','1',2),('3','耳鼻喉外科','1',3); /*Table structure for table `dm_intervene_item_type` */ DROP TABLE IF EXISTS `dm_intervene_item_type`; CREATE TABLE `dm_intervene_item_type` ( `code` varchar(50) NOT NULL COMMENT '血糖记录类型标识', `name` varchar(50) NOT NULL COMMENT '血糖记录类型名称', `type` int(11) NOT NULL COMMENT '健康指标类型(1血糖,2血压,3体重,4腰围,5运动,6用药)', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1否,0是' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康干预选项类型表'; /*Data for the table `dm_intervene_item_type` */ /*Table structure for table `dm_job` */ DROP TABLE IF EXISTS `dm_job`; CREATE TABLE `dm_job` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '非业务主键', `code` varchar(50) DEFAULT NULL COMMENT '职称标识', `name` varchar(20) DEFAULT NULL COMMENT '职称名', `del` varchar(1) DEFAULT NULL COMMENT '是否正常 1正常 0异常', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*Data for the table `dm_job` */ insert into `dm_job`(`id`,`code`,`name`,`del`) values (1,'1','主任医师','1'),(2,'2','副主任医师','1'); /*Table structure for table `dm_medicines` */ DROP TABLE IF EXISTS `dm_medicines`; CREATE TABLE `dm_medicines` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '药品编码', `name` varchar(50) NOT NULL COMMENT '药品名称', `type` int(11) DEFAULT NULL COMMENT '药品类型:1健康记录', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_dm_medicines_1` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='药品字典'; /*Data for the table `dm_medicines` */ insert into `dm_medicines`(`id`,`code`,`name`,`type`,`del`) values (1,'1','基础胰岛素',1,'1'),(2,'2','预混胰岛素',1,'1'),(3,'3','阿司匹林',1,'1'); /*Table structure for table `dm_province` */ DROP TABLE IF EXISTS `dm_province`; CREATE TABLE `dm_province` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(50) NOT NULL COMMENT '省份编码', `name` varchar(50) NOT NULL COMMENT '省份名称', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='省份表'; /*Data for the table `dm_province` */ insert into `dm_province`(`id`,`code`,`name`) values (1,'1','福建省'); /*Table structure for table `dm_relationship` */ DROP TABLE IF EXISTS `dm_relationship`; CREATE TABLE `dm_relationship` ( `code` varchar(50) NOT NULL COMMENT '关系标识', `name` varchar(50) NOT NULL COMMENT '关系名称', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', KEY `idx_dm_relationship_1` (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='家族关系字典表'; /*Data for the table `dm_relationship` */ /*Table structure for table `dm_rsa` */ DROP TABLE IF EXISTS `dm_rsa`; CREATE TABLE `dm_rsa` ( `id` int(11) NOT NULL AUTO_INCREMENT, `data` blob, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='RSA加密信息'; /*Data for the table `dm_rsa` */ insert into `dm_rsa`(`id`,`data`) values (1,'\0sr\0java.security.KeyPair :\0L\0\nprivateKeyt\0\ZLjava/security/PrivateKey;L\0 publicKeyt\0Ljava/security/PublicKey;xpsr\01org.bouncycastle.jce.provider.JCERSAPrivateCrtKeylsU.\0L\0crtCoefficientt\0Ljava/math/BigInteger;L\0primeExponentPq\0~\0L\0primeExponentQq\0~\0L\0primePq\0~\0L\0primeQq\0~\0L\0publicExponentq\0~\0xr\0.org.bouncycastle.jce.provider.JCERSAPrivateKeyF A\0L\0 attrCarriert\0=Lorg/bouncycastle/jce/provider/PKCS12BagAttributeCarrierImpl;L\0modulusq\0~\0L\0privateExponentq\0~\0xpsr\0java.math.BigInteger;\0I\0bitCountI\0 bitLengthI\0firstNonzeroByteNumI\0 lowestSetBitI\0signum[\0 magnitudet\0[Bxr\0java.lang.Number \0\0xp\0\0\0ur\0[BT\0\0xp\0\0\0xքxشݐV 3X׸uL2N#(c|*9HJV̐ÒҞ@iq\'˦q޺ܟs3SԃfFpj7\0\ZEܻ`ztAxsr\0java.util.Hashtable%!J\0F\0\nloadFactorI\0 thresholdxp?@\0\0\0\0\0w\0\0\0 \0\0\0\0xsr\0java.util.Vectorٗ}[;\0I\0capacityIncrementI\0 elementCount[\0 elementDatat\0[Ljava/lang/Object;xp\0\0\0\0\0\0\0\0ur\0[Ljava.lang.Object;Xs)l\0\0xp\0\0\0\nppppppppppxsq\0~\0 \0\0\0uq\0~\0\r\0\0\0%NZy] ,W,&?2D_\' L%5*~0ImS#Vgb0c67Oՙc[i|e @4aɖҗcJgyz}q\"ysO\neOXi@;,Axxsq\0~\0 \0\0\0uq\0~\0\r\0\0\0@ #.ܿw$?i GrPD+[2jպV%˽A#xsq\0~\0 \0\0\0uq\0~\0\r\0\0\0@U$b=w?*jS!0.~=xsq\0~\0 \0\0\0uq\0~\0\r\0\0\0\0xsr\0-org.bouncycastle.jce.provider.JCERSAPublicKey%\"j[l\0L\0modulusq\0~\0L\0publicExponentq\0~\0xpq\0~\0 q\0~\0\"'); /*Table structure for table `dm_sequence` */ DROP TABLE IF EXISTS `dm_sequence`; CREATE TABLE `dm_sequence` ( `id` int(11) NOT NULL AUTO_INCREMENT, `prefix` varchar(10) NOT NULL COMMENT '前缀,如DOC', `time` varchar(8) NOT NULL COMMENT '日期,如20160301', `seq` int(8) NOT NULL COMMENT '当前序号', `len` int(11) NOT NULL COMMENT '序号长度,不足默认补0', `flag` int(11) DEFAULT NULL COMMENT '是否要包含前缀,1包含,0不包含', PRIMARY KEY (`id`), UNIQUE KEY `idx_dm_sequence_1` (`prefix`,`time`) ) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8mb4 COMMENT='序列生成记录表'; /*Data for the table `dm_sequence` */ insert into `dm_sequence`(`id`,`prefix`,`time`,`seq`,`len`,`flag`) values (15,'PATIENT','20160322',2,6,0),(45,'FUP','20160323',3,8,1),(46,'MSG','20160323',3,8,1),(47,'PHA','20160324',1,6,1),(49,'PRE','20160326',3,8,1),(53,'PRIN','20160326',2,8,1),(54,'TEMP','20160326',1,8,1),(57,'CONS','20160326',5,6,0),(59,'REF','20160326',2,8,1),(60,'INS','20160326',1,8,1),(61,'INSI','20160326',2,8,1),(62,'FUP','20160326',1,8,1),(63,'PAR','20160328',2,8,1),(64,'CHK','20160328',1,8,1),(66,'IMG','20160328',3,8,1),(67,'POS','20160328',1,8,1),(68,'INS','20160328',1,8,1),(69,'IMG','20160329',55,8,1),(81,'CONS','20160329',36,6,0),(82,'PAR','20160330',11,8,1),(83,'CONS','20160330',23,8,1),(84,'IMG','20160330',18,8,1),(85,'INS','20160330',13,8,1),(89,'ORD','20160330',5,8,1),(91,'CONS','20160331',96,6,0),(92,'PRE','20160331',2,8,1),(93,'PRIN','20160331',4,8,1),(94,'ORD','20160331',4,8,1),(95,'CHK','20160331',13,8,1),(96,'INS','20160331',2,8,1),(97,'IMG','20160331',1,8,1),(98,'CONS','20160401',36,6,0),(99,'PRE','20160401',5,8,1),(100,'PRIN','20160401',10,8,1),(101,'CHK','20160401',12,8,1),(107,'INS','20160401',3,8,1),(108,'IMG','20160401',1,8,1),(109,'PAR','20160401',1,8,1),(115,'CHK','20160402',4,8,1),(116,'PRE','20160402',1,8,1),(117,'PRIN','20160402',2,8,1),(123,'CONS','20160405',9,6,0),(129,'PAR','20160405',5,8,1),(135,'INS','20160406',1,8,1),(136,'CONS','20160406',3,6,0),(139,'ORD','20160406',9,8,1),(140,'IMG','20160406',1,8,1),(141,'PAR','20160406',7,8,1),(142,'CONS','20160407',46,6,0),(143,'INS','20160407',5,8,1),(144,'PAR','20160407',7,8,1),(145,'ORD','20160407',15,8,1),(146,'PRE','20160407',1,8,1),(147,'PRIN','20160407',2,8,1),(148,'IMG','20160407',16,8,1),(149,'CHK','20160408',2,8,1),(150,'PAR','20160408',1,8,1),(151,'CONS','20160408',7,6,0),(152,'IMG','20160408',1,8,1),(153,'CONS','20160411',1,6,0),(154,'PAR','20160411',9,8,1),(155,'CONS','20160412',27,6,0),(156,'ORD','20160408',11,8,1),(157,'PRE','20160412',4,8,1),(158,'PRIN','20160412',8,8,1),(159,'PAR','20160412',1,8,1),(160,'PRE','20160413',1,8,1),(161,'PRIN','20160413',2,8,1); /*Table structure for table `dm_sports` */ DROP TABLE IF EXISTS `dm_sports`; CREATE TABLE `dm_sports` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '运动编码', `name` varchar(100) DEFAULT NULL COMMENT '运动名称', `type` varchar(20) DEFAULT NULL COMMENT '运动强度类型标识', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_dm_sports_1` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='运动类型字典表'; /*Data for the table `dm_sports` */ insert into `dm_sports`(`id`,`code`,`name`,`type`,`del`) values (1,'1','购物',NULL,'1'),(2,'2','散步',NULL,'1'),(3,'3','做操',NULL,'1'),(4,'4','太极拳',NULL,'1'),(5,'5','气功',NULL,'1'),(6,'6','跑步',NULL,'1'); /*Table structure for table `dm_sports_type` */ DROP TABLE IF EXISTS `dm_sports_type`; CREATE TABLE `dm_sports_type` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '强度编码', `name` varchar(100) DEFAULT NULL COMMENT '强度名称', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_dm_sports_type_1` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='运动强度字典表'; /*Data for the table `dm_sports_type` */ insert into `dm_sports_type`(`id`,`code`,`name`,`del`) values (1,'1','轻度运动','1'),(2,'2','中度运动','1'),(3,'3','稍强运动','1'),(4,'4','强度运动','1'); /*Table structure for table `dm_town` */ DROP TABLE IF EXISTS `dm_town`; CREATE TABLE `dm_town` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `province` varchar(50) DEFAULT NULL COMMENT '省编码', `city` varchar(50) DEFAULT NULL COMMENT '城市编码', `code` varchar(50) DEFAULT NULL COMMENT '区县编码', `name` varchar(50) DEFAULT NULL COMMENT '区县名称', PRIMARY KEY (`id`), KEY `idx_dm_town_1` (`city`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='区县字典表'; /*Data for the table `dm_town` */ insert into `dm_town`(`id`,`province`,`city`,`code`,`name`) values (1,'1','1','1','思明区'),(2,'1','1','2','湖里区'),(3,'1','1','3','集美区'),(4,'1','1','4','海沧区'),(5,'1','1','5','同安区'),(6,'1','1','6','翔安区'); /*Table structure for table `wlyy_advert` */ DROP TABLE IF EXISTS `wlyy_advert`; CREATE TABLE `wlyy_advert` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `title` varchar(100) DEFAULT NULL COMMENT '广告标题', `from` varchar(100) DEFAULT NULL COMMENT '广告来源', `photo` varchar(100) DEFAULT NULL COMMENT '广告图片', `url` varchar(100) DEFAULT NULL COMMENT '广告链接地址', `seq` int(11) DEFAULT NULL COMMENT '广告显示顺序', `type` int(11) DEFAULT NULL COMMENT '广告类型(如主页广告)', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '发布时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', `czy` varchar(20) NOT NULL COMMENT '操作员,关联wlyy_user表', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统广告表'; /*Data for the table `wlyy_advert` */ /*Table structure for table `wlyy_chat_log` */ DROP TABLE IF EXISTS `wlyy_chat_log`; CREATE TABLE `wlyy_chat_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `msgid` varchar(50) DEFAULT NULL COMMENT '消息ID', `sender` varchar(50) DEFAULT NULL COMMENT '发送人', `receiver` varchar(50) DEFAULT NULL COMMENT '接收人', `msg_type` int(11) DEFAULT NULL COMMENT '消息类型(1文本,2图片、3语音)', `chat_type` int(11) DEFAULT NULL COMMENT '聊天类型(1单聊,2群聊)', `content` varchar(1000) DEFAULT NULL COMMENT '消息内容', `state` int(11) DEFAULT NULL COMMENT '消息状态(1已发送,2已接收,3已读)', `platform` int(11) DEFAULT NULL COMMENT '消息平台,1微信,2医生APP', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '发送时间', `del` varchar(1) DEFAULT NULL COMMENT '是否已作废(1正常,0已作废)', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='聊天记录表'; /*Data for the table `wlyy_chat_log` */ /*Table structure for table `wlyy_complaint_doctor` */ DROP TABLE IF EXISTS `wlyy_complaint_doctor`; CREATE TABLE `wlyy_complaint_doctor` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '投诉标识', `user` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `content` varchar(3000) DEFAULT NULL COMMENT '投诉内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '投诉时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='投诉医生表'; /*Data for the table `wlyy_complaint_doctor` */ /*Table structure for table `wlyy_consult` */ DROP TABLE IF EXISTS `wlyy_consult`; CREATE TABLE `wlyy_consult` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '咨询标识', `patient` varchar(50) NOT NULL COMMENT '咨询患者标识', `type` int(11) NOT NULL COMMENT '咨询类型:1三师咨询,2视频咨询,3图文咨询,4公共咨询,5病友圈', `title` varchar(300) DEFAULT NULL COMMENT '咨询标题', `symptoms` varchar(500) DEFAULT NULL COMMENT '主诉', `images` varchar(3000) DEFAULT NULL COMMENT '咨询图片URL,多图以逗号分隔', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_1` (`patient`,`type`) ) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COMMENT='患者视频、三师、公共、病友等咨询记录表'; /*Data for the table `wlyy_consult` */ insert into `wlyy_consult`(`id`,`code`,`patient`,`type`,`title`,`symptoms`,`images`,`czrq`,`del`) values (1,'647e1753eb1d477cbdc1bab392191a8e','U20160322000001',4,'this is question title','this is queston content','','2016-05-19 14:50:22','1'),(2,'eaf5f669c720403bb35966f6ae1d3680','U20160322000001',1,NULL,'咳嗽','','2016-05-19 14:52:09','1'),(3,'3b7cc158bdb942dab55f5ed2913f5652','U20160322000001',5,'this is question title','this is question content','','2016-05-19 15:06:38','1'),(4,'484bcbf413b24002b86627eb2b182c60','U20160322000001',4,'咳嗽','特别是晚上','','2016-05-19 19:46:19','1'),(5,'f8ae771460d24ad6b95d5403d7964a11','U20160322000001',1,NULL,'咳嗽咳嗽,头晕难受的','','2016-05-25 08:50:40','1'),(6,'a2adbea1eecb40508f837ac5030bd022','U20160322000003',1,NULL,'sdfsdfsdfsd','','2016-05-31 06:07:25','1'),(7,'2a234400ab5147c9b8fb4a083bcad063','U20160322000003',4,'sdfsdfdgfdg','dfgdfgdfgdf','','2016-06-01 01:10:15','1'),(8,'3549b82a65cc4fd886ef9a545789b2e5','U20160322000003',4,'sdfsdfsdfsdfsd','fsdfsdfsdfsd','','2016-06-01 01:19:46','1'),(9,'64e2286583fe4098bd1a97b11cb812fb','U20160322000003',4,'dfsdfsdfs','dgdfgdfgdf','','2016-06-01 01:21:33','1'),(10,'44ffc8c295094b358f2b6b02eded79d2','U20160322000003',4,'dfsdfsdfs','dgdfgdfgdf','','2016-06-01 01:25:09','1'),(11,'1eb6e1bce3cc463880d66b51b9e552e0','U20160322000003',4,'sdfsdf','aadfsdfsdfsdfdf','','2016-06-01 01:26:56','1'),(12,'52edf47291484bcd977a23cd19189567','U20160322000003',5,'sdfsdfsdfsdfsdfsdf','sdfsdfsdfsdfdsf','','2016-06-01 01:42:16','1'),(13,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003',5,'testtesttest','aaaaaaaaaaaaaaaaaaaaaaaa','','2016-06-01 01:43:06','1'),(14,'e24844b1fff145cb9223a6059822eef1','U20160322000003',4,'teststwsssdfsdfsdfsdf','aaaaaasdfsdfsdfsd','','2016-06-01 01:44:04','1'),(15,'2c752ce1faef48b2acc1492d4880e514','U20160322000003',4,'sdfsdfsdfdsdgs','sdfsdfsdfsdf','','2016-06-01 01:45:52','1'),(16,'e9d56a61565c44fe98af9a85277b9871','U20160322000003',4,'fsdfsdfsdgdgsgda','gsdgsdgsdgfdgd','','2016-06-01 01:47:11','1'),(17,'96126447705c481d9aaae751fe056515','U20160322000003',4,'sdfsdfsadfassd','fsdfsdfsdfsdfsdfs','','2016-06-01 01:48:57','1'),(18,'b0dec98ee6e14d9b89cbc56a5e4ee1c1','U20160322000003',4,'aaaaaaaa','aaaaaaaaaaaaaa','','2016-06-01 01:52:45','1'),(19,'97aaf2113e8648929b5a90d66e9f3796','U20160322000003',4,'111112221','1111111111','','2016-06-01 01:58:40','1'),(20,'0f5bb688f5ca465ca070d1a72037e6bf','U20160322000003',4,'00000000000000000','111111111111111111111111111','','2016-06-01 02:01:23','1'),(21,'3e7f3a5a250545268c50b2674f6a20cc','U20160322000003',4,'00000000000000000','111111111111111111111111111','','2016-06-01 02:07:47','1'),(22,'a0829f9a84374f07934dbe465fc599d4','U20160322000003',4,'7777777777777777777777777777','7777777777777777777777777777777','','2016-06-01 02:11:49','1'),(23,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001',5,'我的测试我的测试士大夫士大夫','士大夫士大夫士大夫似的','','2016-06-01 05:37:33','1'),(32,'6521abc096424ce68a33ae88905492d8','U20160322000001',4,'惊讶于iyouiofhghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh','发士大夫士大夫撒大锅饭该管管','','2016-06-01 06:08:24','1'),(33,'dea69050f0ec42d1afe6f78503664dbf','U20160322000002',4,'发烧感冒流鼻涕','发烧发烧法华寺撒恐辐女啊数据开发卡死','','2016-06-01 07:50:06','1'),(34,'f05ba96c5b784ec8b101ee7221586600','U20160322000002',4,'咯Hey1红你定定','空位子定额1为您忒您','','2016-06-01 07:57:13','1'),(35,'be279a617d7f40cc9f90aa311991ff0f','U20160322000002',4,'13232dsdsadsadsadsada','13212323ddddddddddddd','','2016-06-01 10:56:46','1'),(36,'533778533efa47e6a3014b0e80431b4e','U20160322000002',5,'111111111111111111111','222222222222222222','','2016-06-02 01:11:48','1'),(37,'7ed92f3f63a64839a5da16b3f735a84a','U20160322000001',5,'11123的十大十大多少','133213达到多少的的多少啊','','2016-06-02 02:06:15','1'),(38,'f719821bae6b4fa4a0fb853d3adfea65','U20160322000004',5,'123233323233232131232','323123123123231231231','','2016-06-02 05:37:47','1'),(39,'e864c4f39b7742f0969bcfb6245c4988','U20160322000004',4,'23132131233232','332312dsadadsadsadsadad','','2016-06-02 13:03:47','1'),(40,'36fbd94c9eb841b6844d027ac991d741','U20160322000004',4,'23132131233232','332312dsadadsadsadsadadsdad','','2016-06-02 13:06:12','1'),(41,'9265bf0f00154497bbdd7accd4daa557','U20160322000004',4,'23132131233232','111111111qwdqwdwqdsad','','2016-06-02 13:06:45','1'),(42,'c61a4b166e9e49c882ae851cec7b3f1c','U20160322000004',4,'12332312312321313','2323131231321','','2016-06-03 02:41:36','1'),(43,'37206ac4955040ef81e4a135ca244e77','U20160322000004',4,'111111111111111111111111111','11111111111111111111111111111','','2016-06-03 02:42:00','1'),(44,'96c381487d4f4db7ad497b45f86fb7ff','U20160322000004',4,'22222222222222222222222222','2222222222222222','','2016-06-03 02:42:18','1'),(45,'7add9f0372134c95abeca4636f2c28a5','U20160322000004',4,'22222222222222222222222222','2222222222222222','','2016-06-03 02:42:28','1'),(46,'7963d4b88cc640fc809b50d2f6c8dd73','U20160322000004',4,'3333333333333333333333333','333333333333333333333333','','2016-06-03 02:43:22','1'),(47,'7e6ec67ffdd74d768c85f86ac70d6acb','U20160322000004',4,'33333333333333333333','213323123132','','2016-06-03 02:44:02','1'),(48,'bb269725677f4e718e4ea184d07555c4','U20160322000004',4,'33333333333333333333','2133231231321','','2016-06-03 02:45:05','1'),(49,'f1726917fdfe47c6881a59507da409c2','U20160322000004',4,'111111111111111111111','32313313131231','','2016-06-03 07:00:44','1'),(50,'d45ba09008f84c5791609c7384a0c52d','U20160322000004',4,'3123333333333333333333','111333333333333333333','','2016-06-03 07:02:26','1'),(51,'456090ffc94c42d98c005a3a1e349329','U20160322000004',5,'111111111111111111111111111','111111111111111111111','','2016-06-03 07:02:42','1'),(52,'f2b8ea5984dc4df0b894225b2ebedc52','U20160322000004',4,'111111111111111111111111','11111111111111111111','','2016-06-03 07:03:01','1'),(53,'e00214ef3704435b8639a76eb86ae820','U20160322000004',4,'2222222222222','33333333333333','','2016-06-03 07:08:14','1'),(54,'ae24efd6c3cd4305a4bb86bd1a3c1747','U20160322000004',4,'11111111111111111','2222222222222222','','2016-06-03 07:09:01','1'),(55,'1e618fc268a04a3a8e2ac507f2922ca3','U20160322000004',4,'111111111111111','1111111111111','','2016-06-03 07:30:40','1'),(56,'920d543363fc4bcb9de38cc3c94c1e4a','U20160322000004',4,'32321321321321312312','32321321312312312','','2016-06-03 07:35:57','1'),(57,'b61e51ea081447f680700513f10aad70','U20160322000004',4,'111111111111111111111111111111111','222222222222222222222222','','2016-06-03 07:36:18','1'); /*Table structure for table `wlyy_consult_communication` */ DROP TABLE IF EXISTS `wlyy_consult_communication`; CREATE TABLE `wlyy_consult_communication` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识', `patient` varchar(50) DEFAULT NULL COMMENT '咨询患者标识', `name` varchar(50) DEFAULT NULL COMMENT '患者姓名', `photo` varchar(300) DEFAULT NULL COMMENT '患者头像', `title` varchar(300) DEFAULT NULL COMMENT '问题标题', `content` varchar(1000) DEFAULT NULL COMMENT '问题描述', `images` varchar(3000) DEFAULT NULL COMMENT '图片URL,多图以逗号分隔', `amount` int(11) DEFAULT NULL COMMENT '回复数量', `unread` int(11) DEFAULT NULL COMMENT '未读数量', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间', `del` varchar(1) DEFAULT NULL COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_text_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='病友圈表'; /*Data for the table `wlyy_consult_communication` */ insert into `wlyy_consult_communication`(`id`,`consult`,`patient`,`name`,`photo`,`title`,`content`,`images`,`amount`,`unread`,`czrq`,`del`) values (1,'3b7cc158bdb942dab55f5ed2913f5652','U20160322000001','李碧玉','','this is question title','this is question content','',1,0,'2016-05-19 08:54:31','1'),(2,'52edf47291484bcd977a23cd19189567','U20160322000003','窦怡宁','','sdfsdfsdfsdfsdfsdf','sdfsdfsdfsdfdsf','',2,0,'2016-06-01 03:11:51','1'),(3,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','','testtesttest','aaaaaaaaaaaaaaaaaaaaaaaa','',6,0,'2016-06-01 03:20:45','1'),(4,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','我的测试我的测试士大夫士大夫','士大夫士大夫士大夫似的','',9,0,'2016-06-01 05:49:17','1'),(5,'533778533efa47e6a3014b0e80431b4e','U20160322000002','黄晓明','2016/06/01/20160601102451_820.jpg','111111111111111111111','222222222222222222','',0,0,'2016-06-02 01:11:48','1'),(6,'7ed92f3f63a64839a5da16b3f735a84a','U20160322000001','李碧玉','2016/06/01/20160601140418_38.jpg','11123的十大十大多少','133213达到多少的的多少啊','',1,1,'2016-06-02 03:56:39','1'),(7,'f719821bae6b4fa4a0fb853d3adfea65','U20160322000004','赖小娜','','123233323233232131232','323123123123231231231','',1,0,'2016-06-02 13:02:24','1'),(8,'456090ffc94c42d98c005a3a1e349329','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','111111111111111111111111111','111111111111111111111','',0,0,'2016-06-03 07:02:42','1'); /*Table structure for table `wlyy_consult_communication_reply` */ DROP TABLE IF EXISTS `wlyy_consult_communication_reply`; CREATE TABLE `wlyy_consult_communication_reply` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) NOT NULL COMMENT '咨询标识', `patient` varchar(50) NOT NULL COMMENT '回复患者标识', `name` varchar(50) DEFAULT NULL COMMENT '回复者姓名', `photo` varchar(300) DEFAULT NULL COMMENT '回复者头像', `content` varchar(3000) NOT NULL COMMENT '回复内容', `images` varchar(1000) DEFAULT NULL COMMENT '回复图片URL地址,多图以逗号分隔', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '回复时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_text_reply_1` (`consult`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COMMENT='病友圈回复记录表'; /*Data for the table `wlyy_consult_communication_reply` */ insert into `wlyy_consult_communication_reply`(`id`,`consult`,`patient`,`name`,`photo`,`content`,`images`,`czrq`,`del`) values (1,'3b7cc158bdb942dab55f5ed2913f5652','U20160322000001','李碧玉','http://172.19.103.77:8080/wlyy/uploadFiles/images/2016/05/17/20160517005825_389.jpg','this is reply content',NULL,'2016-05-19 15:08:28','1'),(2,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','','sdfsdfsdf','','2016-06-01 02:20:35','1'),(3,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','','sdf','','2016-06-01 02:20:55','1'),(4,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','','999999999999999999999','','2016-06-01 02:35:07','1'),(5,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','','aewrwerwerwerwer','','2016-06-01 02:35:53','1'),(6,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','2016/06/01/20160601030004_249.jpg','dsfsdfsdf','','2016-06-01 03:06:33','1'),(7,'52edf47291484bcd977a23cd19189567','U20160322000003','窦怡宁','2016/06/01/20160601030004_249.jpg','aaaaaaaaaaaaaaaaaaaaaaaaaaaa','','2016-06-01 03:06:57','1'),(8,'52edf47291484bcd977a23cd19189567','U20160322000003','窦怡宁','2016/06/01/20160601030922_687.jpg','7777777777777777777777777','','2016-06-01 03:11:51','1'),(9,'5694c85a066941cfb906779c0d9ea0f4','U20160322000003','窦怡宁','2016/06/01/20160601031535_437.jpg','sdfsdfsdgfdgfdg','','2016-06-01 03:20:45','1'),(10,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','士大夫士大夫士大夫','','2016-06-01 05:37:58','1'),(11,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫士大夫士大夫撒 发士大夫','','2016-06-01 05:44:27','1'),(12,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫士大夫士大夫撒 发士大夫','','2016-06-01 05:44:32','1'),(13,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫士大夫士大夫撒 发士大夫','','2016-06-01 05:44:36','1'),(14,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫士大夫士大夫撒 发士大夫','','2016-06-01 05:44:43','1'),(15,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫士大夫士大夫撒 发士大夫','','2016-06-01 05:44:47','1'),(16,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫士大夫士大夫撒 发士大夫地方电饭锅电饭锅电饭锅','','2016-06-01 05:44:54','1'),(17,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','梵蒂冈地方个人格瑞特瑞特人','','2016-06-01 05:48:49','1'),(18,'6e9a66cafc6d4c59be53b58be8807da2','U20160322000001','李碧玉','','发士大夫大锅饭的规范电饭锅电饭锅大锅饭电饭锅大富大贵个电饭锅','','2016-06-01 05:49:17','1'),(19,'7ed92f3f63a64839a5da16b3f735a84a','U20160322000004','赖小娜','','大','','2016-06-02 03:56:39','1'),(20,'f719821bae6b4fa4a0fb853d3adfea65','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','dsadsadas dsa ','','2016-06-02 13:02:24','1'); /*Table structure for table `wlyy_consult_movi` */ DROP TABLE IF EXISTS `wlyy_consult_movi`; CREATE TABLE `wlyy_consult_movi` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `doctor_name` varchar(100) DEFAULT NULL COMMENT '医生姓名', `team` varchar(50) DEFAULT NULL COMMENT '三师团队标识', `team_name` varchar(100) DEFAULT NULL COMMENT '三师团队名称', `target` int(11) DEFAULT NULL COMMENT '预约类型:1指定医生,2三师预约', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `family` varchar(50) DEFAULT NULL COMMENT '家人标识', `name` varchar(100) DEFAULT NULL COMMENT '姓名', `sex` int(11) DEFAULT NULL COMMENT '性别', `photo` varchar(300) DEFAULT NULL COMMENT '头像', `birthday` date DEFAULT NULL COMMENT '头像', `type` int(11) DEFAULT NULL COMMENT '咨询类型,1电话咨询,2视频咨询', `content` varchar(3000) DEFAULT NULL COMMENT '咨询内容说明', `scheduling` varchar(50) DEFAULT NULL COMMENT '排班标识', `appo_date` datetime DEFAULT NULL COMMENT '预约日期', `appo_week` int(11) DEFAULT NULL COMMENT '预约星期', `hour_begin` time DEFAULT NULL COMMENT '预约开始时间', `hour_end` time DEFAULT NULL COMMENT '预约结束时间', `images` varchar(3000) DEFAULT NULL COMMENT '图片URL,多图逗号分隔', `status` int(11) DEFAULT NULL COMMENT '咨询状态:0待医生同意,-1医生拒绝,1医生同意,2咨询完成', `comment` varchar(50) DEFAULT NULL COMMENT '评论标识', `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_consult_movi_1` (`consult`), KEY `idx_wlyy_consult_movi_2` (`doctor`), KEY `idx_wlyy_consult_movi_3` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='电话、视频咨询表'; /*Data for the table `wlyy_consult_movi` */ /*Table structure for table `wlyy_consult_movi_referral` */ DROP TABLE IF EXISTS `wlyy_consult_movi_referral`; CREATE TABLE `wlyy_consult_movi_referral` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) NOT NULL COMMENT '视频咨询标识', `form_doctor` varchar(50) DEFAULT NULL COMMENT '转出医生标识', `form_doctor_name` varchar(100) NOT NULL COMMENT '转出医生姓名', `to_doctor` varchar(50) NOT NULL COMMENT '转入医生标识', `scheduling` varchar(50) DEFAULT NULL COMMENT '排班标识', `appo_date` date DEFAULT NULL COMMENT '预约日期', `appo_week` int(11) DEFAULT NULL COMMENT '预约星期', `hour_begin` time DEFAULT NULL COMMENT '预约开始时间', `hour_end` time DEFAULT NULL COMMENT '预约结束时间', `talk_time` int(11) DEFAULT '0' COMMENT '通话时长:分钟', `content` varchar(500) DEFAULT NULL COMMENT '转诊说明', `flag` int(11) DEFAULT '0' COMMENT '是否已转诊:1是,0否', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '转诊时间', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_consult_movi_referral_2` (`consult`,`to_doctor`), KEY `idx_wlyy_consult_movi_referral_1` (`consult`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='视频咨询转诊记录表'; /*Data for the table `wlyy_consult_movi_referral` */ /*Table structure for table `wlyy_consult_public` */ DROP TABLE IF EXISTS `wlyy_consult_public`; CREATE TABLE `wlyy_consult_public` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识', `patient` varchar(50) DEFAULT NULL COMMENT '咨询患者标识', `name` varchar(50) DEFAULT NULL COMMENT '患者姓名', `photo` varchar(300) DEFAULT NULL COMMENT '患者头像', `fbsj` varchar(50) DEFAULT NULL COMMENT '发病时间(如:1小时前)', `title` varchar(300) DEFAULT NULL COMMENT '问题标题', `content` varchar(1000) DEFAULT NULL COMMENT '问题描述', `images` varchar(3000) DEFAULT NULL COMMENT '图片URL,多图以逗号分隔', `amount` int(11) DEFAULT NULL COMMENT '回复数量', `unread` int(11) DEFAULT NULL COMMENT '未读数量', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间', `del` varchar(1) DEFAULT NULL COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_public_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COMMENT='公共咨询记录表'; /*Data for the table `wlyy_consult_public` */ insert into `wlyy_consult_public`(`id`,`consult`,`patient`,`name`,`photo`,`fbsj`,`title`,`content`,`images`,`amount`,`unread`,`czrq`,`del`) values (1,'647e1753eb1d477cbdc1bab392191a8e','U20160322000001','李碧玉','','one week ago','this is question title','this is queston content','',4,3,'2016-05-25 09:19:16','1'),(2,'484bcbf413b24002b86627eb2b182c60','U20160322000001','李碧玉','','最近24小时','咳嗽','特别是晚上','http://120.41.251.85:8080/wlyy/uploadFiles\\wx_images\\2016\\05\\19\\20160519195820_148.png',4,4,'2016-05-25 09:21:52','1'),(3,'2a234400ab5147c9b8fb4a083bcad063','U20160322000003','窦怡宁','','最近24小时','sdfsdfdgfdg','dfgdfgdfgdf','',0,0,'2016-06-01 01:10:15','1'),(4,'3549b82a65cc4fd886ef9a545789b2e5','U20160322000003','窦怡宁','','最近24小时','sdfsdfsdfsdfsd','fsdfsdfsdfsd','',0,0,'2016-06-01 01:19:46','1'),(5,'64e2286583fe4098bd1a97b11cb812fb','U20160322000003','窦怡宁','','最近24小时','dfsdfsdfs','dgdfgdfgdf','',0,0,'2016-06-01 01:21:33','1'),(6,'44ffc8c295094b358f2b6b02eded79d2','U20160322000003','窦怡宁','','最近24小时','dfsdfsdfs','dgdfgdfgdf','',0,0,'2016-06-01 01:25:09','1'),(7,'1eb6e1bce3cc463880d66b51b9e552e0','U20160322000003','窦怡宁','','最近24小时','sdfsdf','aadfsdfsdfsdfdf','',0,0,'2016-06-01 01:26:56','1'),(8,'e24844b1fff145cb9223a6059822eef1','U20160322000003','窦怡宁','','最近三个月','teststwsssdfsdfsdfsdf','aaaaaasdfsdfsdfsd','',0,0,'2016-06-01 01:44:04','1'),(9,'2c752ce1faef48b2acc1492d4880e514','U20160322000003','窦怡宁','','最近24小时','sdfsdfsdfdsdgs','sdfsdfsdfsdf','',0,0,'2016-06-01 01:45:52','1'),(10,'e9d56a61565c44fe98af9a85277b9871','U20160322000003','窦怡宁','','最近24小时','fsdfsdfsdgdgsgda','gsdgsdgsdgfdgd','',0,0,'2016-06-01 01:47:11','1'),(11,'96126447705c481d9aaae751fe056515','U20160322000003','窦怡宁','','最近24小时','sdfsdfsadfassd','fsdfsdfsdfsdfsdfs','',0,0,'2016-06-01 01:48:57','1'),(12,'b0dec98ee6e14d9b89cbc56a5e4ee1c1','U20160322000003','窦怡宁','','最近24小时','aaaaaaaa','aaaaaaaaaaaaaa','',0,0,'2016-06-01 01:52:45','1'),(13,'97aaf2113e8648929b5a90d66e9f3796','U20160322000003','窦怡宁','','最近24小时','111112221','1111111111','',0,0,'2016-06-01 01:58:40','1'),(14,'0f5bb688f5ca465ca070d1a72037e6bf','U20160322000003','窦怡宁','','最近24小时','00000000000000000','111111111111111111111111111','',0,0,'2016-06-01 02:01:23','1'),(15,'3e7f3a5a250545268c50b2674f6a20cc','U20160322000003','窦怡宁','','最近24小时','00000000000000000','111111111111111111111111111','',0,0,'2016-06-01 02:07:47','1'),(16,'a0829f9a84374f07934dbe465fc599d4','U20160322000003','窦怡宁','','最近24小时','7777777777777777777777777777','7777777777777777777777777777777','',0,0,'2016-06-01 02:11:49','1'),(17,'6521abc096424ce68a33ae88905492d8','U20160322000001','李碧玉','','最近24小时','惊讶于iyouiofhghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh','发士大夫士大夫撒大锅饭该管管','',0,0,'2016-06-01 06:08:24','1'),(18,'dea69050f0ec42d1afe6f78503664dbf','U20160322000002','张华','','最近24小时','发烧感冒流鼻涕','发烧发烧法华寺撒恐辐女啊数据开发卡死','',0,0,'2016-06-01 07:50:06','1'),(19,'f05ba96c5b784ec8b101ee7221586600','U20160322000002','张华','','最近24小时','咯Hey1红你定定','空位子定额1为您忒您','',0,0,'2016-06-01 07:57:13','1'),(20,'be279a617d7f40cc9f90aa311991ff0f','U20160322000002','黄晓明','2016/06/01/20160601102451_820.jpg','最近24小时','13232dsdsadsadsadsada','13212323ddddddddddddd','',1,1,'2016-06-02 15:20:02','1'),(21,'e864c4f39b7742f0969bcfb6245c4988','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','23132131233232','332312dsadadsadsadsadad','',0,0,'2016-06-02 13:03:47','1'),(22,'36fbd94c9eb841b6844d027ac991d741','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','23132131233232','332312dsadadsadsadsadadsdad','',0,0,'2016-06-02 13:06:12','1'),(23,'9265bf0f00154497bbdd7accd4daa557','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','23132131233232','111111111qwdqwdwqdsad','',0,0,'2016-06-02 13:06:45','1'),(24,'c61a4b166e9e49c882ae851cec7b3f1c','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','12332312312321313','2323131231321','',0,0,'2016-06-03 02:41:36','1'),(25,'37206ac4955040ef81e4a135ca244e77','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','111111111111111111111111111','11111111111111111111111111111','',0,0,'2016-06-03 02:42:00','1'),(26,'96c381487d4f4db7ad497b45f86fb7ff','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','22222222222222222222222222','2222222222222222','',0,0,'2016-06-03 02:42:18','1'),(27,'7add9f0372134c95abeca4636f2c28a5','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','22222222222222222222222222','2222222222222222','',0,0,'2016-06-03 02:42:28','1'),(28,'7963d4b88cc640fc809b50d2f6c8dd73','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','3333333333333333333333333','333333333333333333333333','',0,0,'2016-06-03 02:43:22','1'),(29,'7e6ec67ffdd74d768c85f86ac70d6acb','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','33333333333333333333','213323123132','',0,0,'2016-06-03 02:44:02','1'),(30,'bb269725677f4e718e4ea184d07555c4','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','33333333333333333333','2133231231321','',0,0,'2016-06-03 02:45:05','1'),(31,'f1726917fdfe47c6881a59507da409c2','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','111111111111111111111','32313313131231','',0,0,'2016-06-03 07:00:44','1'),(32,'d45ba09008f84c5791609c7384a0c52d','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','3123333333333333333333','111333333333333333333','',0,0,'2016-06-03 07:02:26','1'),(33,'f2b8ea5984dc4df0b894225b2ebedc52','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','111111111111111111111111','11111111111111111111','',0,0,'2016-06-03 07:03:01','1'),(34,'e00214ef3704435b8639a76eb86ae820','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','2222222222222','33333333333333','',0,0,'2016-06-03 07:08:14','1'),(35,'ae24efd6c3cd4305a4bb86bd1a3c1747','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','11111111111111111','2222222222222222','',0,0,'2016-06-03 07:09:01','1'),(36,'1e618fc268a04a3a8e2ac507f2922ca3','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','111111111111111','1111111111111','',0,0,'2016-06-03 07:30:40','1'),(37,'920d543363fc4bcb9de38cc3c94c1e4a','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','32321321321321312312','32321321312312312','',0,0,'2016-06-03 07:35:57','1'),(38,'b61e51ea081447f680700513f10aad70','U20160322000004','赖小娜','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg','最近24小时','111111111111111111111111111111111','222222222222222222222222','',0,0,'2016-06-03 07:36:18','1'); /*Table structure for table `wlyy_consult_public_reply` */ DROP TABLE IF EXISTS `wlyy_consult_public_reply`; CREATE TABLE `wlyy_consult_public_reply` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) NOT NULL COMMENT '交流标识', `patient` varchar(50) DEFAULT NULL COMMENT '回复患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '回复医生标识', `name` varchar(50) DEFAULT NULL COMMENT '回复者姓名', `photo` varchar(300) DEFAULT NULL COMMENT '回复者头像', `content` varchar(3000) NOT NULL COMMENT '回复内容', `images` varchar(1000) DEFAULT NULL COMMENT '回复图片URL地址,多图以逗号分隔', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '回复时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_public_reply_1` (`consult`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='图文咨询、公共咨询、病友圈咨询回复记录表'; /*Data for the table `wlyy_consult_public_reply` */ insert into `wlyy_consult_public_reply`(`id`,`consult`,`patient`,`doctor`,`name`,`photo`,`content`,`images`,`czrq`,`del`) values (1,'647e1753eb1d477cbdc1bab392191a8e',NULL,'D20160322000002','聂青\r\n','','this is reply content',NULL,'2016-05-19 08:52:04','1'),(2,'647e1753eb1d477cbdc1bab392191a8e',NULL,'D20160322000002','聂青\r\n','http://192.168.3.128/res/images/2016\\05\\20\\20160520085011_970.jpg','哈哈哈','http://172.19.103.77/res/images/2016/05/25/20160525005034_123.jpg','2016-05-25 00:50:34','1'),(3,'484bcbf413b24002b86627eb2b182c60',NULL,'D20160322000002','聂青\r\n','','发到啊啊','','2016-05-25 06:33:09','1'),(4,'647e1753eb1d477cbdc1bab392191a8e',NULL,'D20160322000002','聂青\r\n','','发疯','http://172.19.103.77/res/images/2016/05/25/20160525064326_352.jpg','2016-05-25 06:43:26','1'),(5,'647e1753eb1d477cbdc1bab392191a8e',NULL,'D20160322000002','聂青\r\n','','测试刷新数','http://172.19.103.77/res/images/2016/05/25/20160525091916_962.jpg','2016-05-25 09:19:16','1'),(6,'484bcbf413b24002b86627eb2b182c60',NULL,'D20160322000002','聂青\r\n','','天天爱测试','http://172.19.103.77/res/images/2016/05/25/20160525092024_953.jpg','2016-05-25 09:20:24','1'),(7,'484bcbf413b24002b86627eb2b182c60',NULL,'D20160322000002','聂青\r\n','','哎测试1','','2016-05-25 09:21:09','1'),(8,'484bcbf413b24002b86627eb2b182c60',NULL,'D20160322000002','聂青\r\n','','发疯','','2016-05-25 09:21:52','1'),(9,'be279a617d7f40cc9f90aa311991ff0f',NULL,'D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','其二','http://172.19.103.77/res/images/2016/06/02/20160602152002_447.jpg,http://172.19.103.77/res/images/2016/06/02/20160602152002_118.jpg','2016-06-02 15:20:02','1'); /*Table structure for table `wlyy_consult_team` */ DROP TABLE IF EXISTS `wlyy_consult_team`; CREATE TABLE `wlyy_consult_team` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) NOT NULL COMMENT '咨询标识', `doctor` varchar(50) DEFAULT NULL COMMENT '健康管理师标识', `team` varchar(50) DEFAULT NULL COMMENT '三师团队标识', `type` int(11) DEFAULT '2' COMMENT '1指定医生,2三师咨询', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `name` varchar(50) DEFAULT NULL COMMENT '患者姓名', `birthday` date DEFAULT NULL COMMENT '患者生日', `photo` varchar(300) DEFAULT NULL COMMENT '患者头像', `fbsj` varchar(30) DEFAULT NULL COMMENT '发病时间(如:最近3个月)', `symptoms` varchar(500) DEFAULT NULL COMMENT '主要症状', `status` int(11) DEFAULT NULL COMMENT '咨询状态(0进行中,1已完成,-1患者取消)', `images` varchar(3000) DEFAULT NULL COMMENT '咨询图片URL,多图以逗号分隔', `voice` varchar(300) DEFAULT NULL COMMENT '咨询语音URL', `comment` varchar(50) DEFAULT NULL COMMENT '用户评价标识', `comment_content` varchar(500) DEFAULT NULL COMMENT '用户评价内容', `comment_star` int(11) DEFAULT NULL COMMENT '用户评价星级', `doctor_read` int(11) DEFAULT NULL COMMENT '医生未读数量', `patient_read` int(11) DEFAULT NULL COMMENT '患者未读数量', `del` varchar(1) DEFAULT NULL COMMENT '作废标识,1正常,0作废', `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_team_1` (`doctor`), KEY `idx_wlyy_consult_team_2` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='三师咨询'; /*Data for the table `wlyy_consult_team` */ insert into `wlyy_consult_team`(`id`,`consult`,`doctor`,`team`,`type`,`patient`,`name`,`birthday`,`photo`,`fbsj`,`symptoms`,`status`,`images`,`voice`,`comment`,`comment_content`,`comment_star`,`doctor_read`,`patient_read`,`del`,`czrq`) values (1,'eaf5f669c720403bb35966f6ae1d3680','D20160322000002','2',2,'U20160322000001','李碧玉','1982-06-11','http://172.19.103.77:8080/wlyy/uploadFiles/images/2016/05/17/20160517005825_389.jpg','最近24小时','咳嗽',1,'','',NULL,NULL,0,7,0,'1','2016-05-19 07:26:28'),(2,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','2',2,'U20160322000001','李碧玉','1982-06-11','','最近24小时','咳嗽咳嗽,头晕难受的',0,'','',NULL,NULL,0,0,37,'1','2016-05-30 08:24:49'),(3,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','1',2,'U20160322000003','窦怡宁','1971-09-23','','最近24小时','sdfsdfsdfsd',0,'','',NULL,NULL,0,0,6,'1','2016-06-02 15:19:21'); /*Table structure for table `wlyy_consult_team_doctor` */ DROP TABLE IF EXISTS `wlyy_consult_team_doctor`; CREATE TABLE `wlyy_consult_team_doctor` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) DEFAULT NULL COMMENT '图文咨询标识', `form_doctor` varchar(50) DEFAULT NULL COMMENT '转出医生标识', `form_doctor_name` varchar(100) DEFAULT NULL COMMENT '转出医生姓名', `to_doctor` varchar(50) DEFAULT NULL COMMENT '接收医生标识', `reply` int(11) DEFAULT NULL COMMENT '是否有回复过', `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '转接时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='三师咨询转接给的医生记录'; /*Data for the table `wlyy_consult_team_doctor` */ insert into `wlyy_consult_team_doctor`(`id`,`consult`,`form_doctor`,`form_doctor_name`,`to_doctor`,`reply`,`czrq`,`del`) values (1,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,'D20160322000002',0,'2016-05-19 14:52:09','1'),(2,'f8ae771460d24ad6b95d5403d7964a11',NULL,NULL,'D20160322000002',1,'2016-05-25 05:36:45','1'),(3,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n',NULL,0,'2016-05-30 08:04:53','1'),(4,'a2adbea1eecb40508f837ac5030bd022',NULL,NULL,'D20160322000002',1,'2016-06-02 15:07:14','1'); /*Table structure for table `wlyy_consult_team_log` */ DROP TABLE IF EXISTS `wlyy_consult_team_log`; CREATE TABLE `wlyy_consult_team_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识', `doctor` varchar(50) DEFAULT NULL COMMENT '回复医生标识', `doctor_name` varchar(50) DEFAULT NULL COMMENT '回复医生姓名', `photo` varchar(300) DEFAULT NULL COMMENT '回复人头像', `content` varchar(3000) DEFAULT NULL COMMENT '回复内容/追问内容', `type` int(11) DEFAULT NULL COMMENT '类型,0问,1回复,2追问,3评价', `chat_type` int(11) DEFAULT '1' COMMENT '记录类型:1文字,2图片,3语音', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间', `del` varchar(1) DEFAULT NULL COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_consult_team_log_1` (`consult`) ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COMMENT='三师咨询日志表'; /*Data for the table `wlyy_consult_team_log` */ insert into `wlyy_consult_team_log`(`id`,`consult`,`doctor`,`doctor_name`,`photo`,`content`,`type`,`chat_type`,`czrq`,`del`) values (1,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'发病时间:最近24小时
主要症状:咳嗽',0,1,'2016-05-19 06:52:06','1'),(2,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'咳嗽',2,1,'2016-05-19 14:52:49','1'),(3,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'咳嗽',2,1,'2016-05-19 14:52:58','1'),(4,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'咳嗽',2,1,'2016-05-19 14:53:05','1'),(5,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'咳嗽',2,1,'2016-05-19 14:53:14','1'),(6,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'咳嗽',2,1,'2016-05-19 14:53:21','1'),(7,'eaf5f669c720403bb35966f6ae1d3680',NULL,NULL,NULL,'咳嗽',2,1,'2016-05-19 14:53:32','1'),(8,NULL,NULL,NULL,NULL,'d\'d',2,1,'2016-05-21 11:26:47','1'),(9,NULL,NULL,NULL,NULL,'ddd',2,1,'2016-05-21 11:36:45','1'),(10,NULL,NULL,NULL,NULL,'ddd',2,1,'2016-05-21 11:37:32','1'),(11,'f8ae771460d24ad6b95d5403d7964a11',NULL,NULL,NULL,'发病时间:最近24小时
主要症状:咳嗽咳嗽,头晕难受的',0,1,'2016-05-25 00:50:33','1'),(12,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 05:36:45','1'),(13,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','_doc/audio/1464154633228.amr',1,3,'2016-05-25 05:37:05','1'),(14,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','好的',1,1,'2016-05-25 05:37:20','1'),(15,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','恩恩额',1,1,'2016-05-25 05:37:32','1'),(16,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','_doc/audio/1464160054157.amr',1,3,'2016-05-25 07:07:28','1'),(17,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','_doc/audio/1464160069214.amr',1,3,'2016-05-25 07:07:41','1'),(18,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 07:07:51','1'),(19,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 07:10:34','1'),(20,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','啊打发',1,1,'2016-05-25 07:11:18','1'),(21,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 07:12:34','1'),(22,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','_doc/audio/1464160376966.amr',1,3,'2016-05-25 07:12:49','1'),(23,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 08:48:40','1'),(24,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 08:48:56','1'),(25,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///mnt/sdcard/haimawan/download/advert.jpg',1,2,'2016-05-25 08:49:45','1'),(26,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','啊啊的身份阿斯顿阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬额发士大夫阿斯蒂芬',1,1,'2016-05-27 06:59:35','1'),(27,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','士大夫阿斯蒂芬阿斯蒂芬阿斯顿',1,1,'2016-05-27 07:01:04','1'),(28,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','地方爱的色放',1,1,'2016-05-27 07:01:18','1'),(29,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','啊啊对方啊',1,1,'2016-05-27 07:39:53','1'),(30,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','第三方',1,1,'2016-05-30 01:19:11','1'),(31,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','阿凡达',1,1,'2016-05-30 01:19:24','1'),(32,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','啊',1,1,'2016-05-30 01:20:20','1'),(33,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','大大',1,1,'2016-05-30 01:20:25','1'),(34,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','阿德',1,1,'2016-05-30 01:20:58','1'),(35,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/.HBuilder/apps/HBuilder/doc/1464571381173.jpg',1,2,'2016-05-30 01:22:52','1'),(36,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','_doc/audio/1464571406022.amr',1,3,'2016-05-30 01:23:15','1'),(37,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','天天',1,1,'2016-05-30 01:25:55','1'),(38,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','谔谔阿道夫阿斯顿发士大夫阿斯蒂芬阿斯蒂芬阿瑟瑞发阿斯蒂芬阿斯蒂芬阿斯蒂芬啊俄方',1,1,'2016-05-30 01:26:02','1'),(39,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','啊啊啊',1,1,'2016-05-30 01:31:01','1'),(40,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','微软犬瘟热犬瘟热请问对方爱的色放',1,1,'2016-05-30 01:31:06','1'),(41,'undefined','D20160322000002','聂青\r\n','','阿道夫',1,1,'2016-05-30 01:44:39','1'),(42,'undefined','D20160322000002','聂青\r\n','','谔谔',1,1,'2016-05-30 01:44:42','1'),(43,'undefined','D20160322000002','聂青\r\n','','阿德阿德啊',1,1,'2016-05-30 01:44:47','1'),(44,'undefined','D20160322000002','聂青\r\n','','爱的色放阿',1,1,'2016-05-30 01:47:59','1'),(45,'undefined','D20160322000002','聂青\r\n','','谔谔 额',1,1,'2016-05-30 01:48:02','1'),(46,'undefined','D20160322000002','聂青\r\n','','额阿德啊',1,1,'2016-05-30 01:48:04','1'),(47,'undefined','D20160322000002','聂青\r\n','','地方阿道夫爱的色放阿斯蒂芬阿斯蒂芬爱的色放',1,1,'2016-05-30 01:48:30','1'),(48,'undefined','D20160322000002','聂青\r\n','','阿爱的色放阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬爱的色放士大夫分为发射点发射点发阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬啊沙发沙发',1,1,'2016-05-30 01:48:39','1'),(49,'undefined','D20160322000002','聂青\r\n','','file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/.HBuilder/apps/HBuilder/doc/1464572960231.jpg',1,2,'2016-05-30 01:49:13','1'),(50,'undefined','D20160322000002','聂青\r\n','','啊',1,1,'2016-05-30 01:59:02','1'),(51,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','',1,2,'2016-05-30 07:50:51','1'),(52,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','',1,2,'2016-05-30 07:52:55','1'),(53,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','',1,2,'2016-05-30 07:53:27','1'),(54,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','',1,2,'2016-05-30 07:54:29','1'),(55,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','',1,3,'2016-05-30 07:55:49','1'),(56,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','哈哈哈',1,1,'2016-05-30 07:56:09','1'),(57,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','',1,2,'2016-05-30 08:10:32','1'),(58,'f8ae771460d24ad6b95d5403d7964a11','D20160322000002','聂青\r\n','','就',1,1,'2016-05-30 08:24:49','1'),(59,'a2adbea1eecb40508f837ac5030bd022',NULL,NULL,NULL,'发病时间:最近24小时
主要症状:sdfsdfsdfsd',0,1,'2016-05-31 06:07:25','1'),(60,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','发啊',1,1,'2016-06-02 15:07:14','1'),(61,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','',1,2,'2016-06-02 15:09:25','1'),(62,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','',1,2,'2016-06-02 15:14:07','1'),(63,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','http://172.19.103.77/res/images/2016/06/02/20160602151537_603.jpg',1,2,'2016-06-02 15:15:38','1'),(64,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','http://172.19.103.77/res/images/2016/06/02/20160602151908_496.jpg',1,2,'2016-06-02 15:19:08','1'),(65,'a2adbea1eecb40508f837ac5030bd022','D20160322000002','聂青\r\n','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','2016/06/02/20160602151921_979.amr',1,3,'2016-06-02 15:19:21','1'); /*Table structure for table `wlyy_doctor` */ DROP TABLE IF EXISTS `wlyy_doctor`; CREATE TABLE `wlyy_doctor` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '医生标识', `name` varchar(50) DEFAULT NULL COMMENT '姓名', `sex` int(11) DEFAULT NULL COMMENT '性别(1男,2女)', `birthday` date DEFAULT NULL COMMENT '生日', `photo` varchar(100) DEFAULT NULL COMMENT '头像http地址', `mobile` varchar(20) NOT NULL COMMENT '手机号', `password` varchar(50) NOT NULL COMMENT '密码', `salt` varchar(50) DEFAULT NULL, `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态(1正常,0禁用)', `province` varchar(50) DEFAULT NULL COMMENT '省', `city` varchar(50) DEFAULT NULL COMMENT '市', `hospital` varchar(50) DEFAULT NULL COMMENT '医院标识', `dept` varchar(50) DEFAULT NULL COMMENT '科室标识', `job` varchar(50) DEFAULT NULL COMMENT '职称', `expertise` varchar(300) DEFAULT NULL COMMENT '医生专长', `introduce` varchar(3000) DEFAULT NULL COMMENT '医生介绍', `level` int(11) DEFAULT '0' COMMENT '类型:1专科医生,2全科医生,3健康管理师', `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `iscertified` int(11) NOT NULL DEFAULT '0' COMMENT '资格是否认证通过,1是,0否', `qrcode` varchar(30) DEFAULT NULL COMMENT '二维码', `province_name` varchar(50) DEFAULT NULL COMMENT '省名称', `city_name` varchar(50) DEFAULT NULL COMMENT '市名称', `hospital_name` varchar(50) DEFAULT NULL COMMENT '医院名称', `dept_name` varchar(50) DEFAULT NULL COMMENT '科室名称', `job_name` varchar(50) DEFAULT NULL COMMENT '职称名称', `town` varchar(50) DEFAULT NULL COMMENT '区县标识', `town_name` varchar(50) DEFAULT NULL COMMENT '区县名称', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_doctor_info_uid` (`code`), UNIQUE KEY `idx_wlyy_doctor_info_2` (`mobile`,`password`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医生信息表'; /*Data for the table `wlyy_doctor` */ insert into `wlyy_doctor`(`id`,`code`,`name`,`sex`,`birthday`,`photo`,`mobile`,`password`,`salt`,`status`,`province`,`city`,`hospital`,`dept`,`job`,`expertise`,`introduce`,`level`,`czrq`,`iscertified`,`qrcode`,`province_name`,`city_name`,`hospital_name`,`dept_name`,`job_name`,`town`,`town_name`) values (1,'D20160322000001','徐小鹏',1,'1955-07-15','','13693066634','6e335b853b1ed99622d2cbdaed37d3424f36f6fe','e17354680a03a774',1,'1','1','1','','','在高血压、冠心病、风心、心肌炎等领域具有较深造诣,尤其在高血压和冠心病的介入诊疗技术形成了自己的专业技术特色。\r\n','能熟练内科操作,对常见的心脏病的超声特点和诊断较熟悉。近来担任\"诊断学\"及\"内科学\"的教学工作,取得较好成绩。已发表\"上海市部分居民高血压的调查\"、\"老年收缩期高血压患者超声心动图特点\"、\"西拉普利的降压疗效\"、\"24小时动态血压监测评估硝苯啶缓释片降压效果\"等学术论文。',1,'2016-05-25 18:43:13',0,'1','福建省','厦门市','厦门莲前街道社区卫生中心','心血管内科','主任医师','1','思明区'),(2,'D20160322000002','聂青\r\n',1,'1955-07-15','http://172.19.103.77/res/images/2016/06/02/20160602150608_745.jpg','18512345678','6e335b853b1ed99622d2cbdaed37d3424f36f6fe','e17354680a03a774',1,'1','1','2','','','呼吸系统的常见病、多发病如上呼吸道感染、支气管哮喘、慢性阻塞性肺疾病、支气管扩张等能够较为熟练地结合中医辨证与西医辨病两套方法进行诊治','从事呼吸病临床及实验研究工作十年余,先后参加国家级、省部级多项课题的研究,在科室积极开展的中医特色疗法如穴位注射和敷贴、中药雾化等,疗效显著,对疑难疾病的诊治能坚持自己的观点,和科室同仁一道成功抢救许多肺心病、肺性脑病和呼吸衰竭等危重患者。',1,'2016-05-25 18:43:16',0,NULL,'福建省','厦门市','厦门湖里区金山街道社区卫生服务中心','呼吸内科','主任医师','2','湖里区'),(3,'D20160322000003','江燕\r\n',1,'1955-07-15','','13245678978','6e335b853b1ed99622d2cbdaed37d3424f36f6fe','e17354680a03a774',1,'1','1','3','','','多胎妊娠。高危产科。胎儿异常。母胎血型不合。优生咨询及孕期用药咨询。产前筛查、产前诊断、胎儿宫内健康评估、宫内治疗(宫内输血,激光手术,减胎,羊水减量,羊水灌注,胎儿引流,胎儿活检等)。\r\n','英国胎儿医学基金会评审专家及培训专家。中华围产医学会胎儿学组委员,广东省围产医学会产前诊断学组副组长。国内第一位赴英国接受规范化胎儿医学培训的专家。\r\n',1,'2016-05-26 03:09:26',0,NULL,'福建省','厦门市','厦门嘉莲社区医疗服务中心','产科门诊','主任医师','1','思明区'); /*Table structure for table `wlyy_doctor_address` */ DROP TABLE IF EXISTS `wlyy_doctor_address`; CREATE TABLE `wlyy_doctor_address` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '地址标识', `doctor` varchar(50) NOT NULL COMMENT '医生标识,关联wlyy_doctor表', `dept` varchar(50) NOT NULL COMMENT '所在科室', `province` varchar(50) DEFAULT NULL COMMENT '省标识', `city` varchar(50) DEFAULT NULL COMMENT '市标识', `town` varchar(50) DEFAULT NULL COMMENT '区县标识', `address` varchar(100) NOT NULL COMMENT '地址', `state` int(11) DEFAULT NULL COMMENT '当前所在位置,1是,0否', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_address_uid` (`doctor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生工作地址'; /*Data for the table `wlyy_doctor_address` */ /*Table structure for table `wlyy_doctor_comment` */ DROP TABLE IF EXISTS `wlyy_doctor_comment`; CREATE TABLE `wlyy_doctor_comment` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '评价标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识,关联wlyy_doctor表', `dname` varchar(100) DEFAULT NULL COMMENT '医生姓名', `user` varchar(50) DEFAULT NULL COMMENT '用户标识,关联wlyy_patient表', `uname` varchar(50) DEFAULT NULL COMMENT '评价人姓名', `content` varchar(300) DEFAULT NULL COMMENT '评价内容', `star` int(11) DEFAULT NULL COMMENT '星级', `type` int(11) DEFAULT NULL COMMENT '评价类型:1视频咨询评价、2图文咨询评价', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '评价时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_comment_doctor` (`doctor`), KEY `wlyy_doctor_comment_user` (`user`) ) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb4 COMMENT='医生评价表'; /*Data for the table `wlyy_doctor_comment` */ /*Table structure for table `wlyy_doctor_medical_records_part` */ DROP TABLE IF EXISTS `wlyy_doctor_medical_records_part`; CREATE TABLE `wlyy_doctor_medical_records_part` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '片段标识', `doctor` varchar(50) NOT NULL COMMENT '医生标识,空表示是系统片段', `name` varchar(100) NOT NULL COMMENT '片段名称', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) NOT NULL DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_medical_records_part_1` (`doctor`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COMMENT='医生病历片段类型表'; /*Data for the table `wlyy_doctor_medical_records_part` */ insert into `wlyy_doctor_medical_records_part`(`id`,`code`,`doctor`,`name`,`czrq`,`del`) values (1,'1','D20160322000002','高血压','2016-05-14 06:31:18','1'),(2,'4a131dbc9f4f4ab5af55482f7df4cf32','D20160322000002','糖尿病','2016-05-17 10:58:22','1'),(3,'8338f8d680cb408780a01ee84dee0080','D20160322000002','糖尿病','2016-05-17 10:58:40','1'),(4,'cde05335f82143e8afebb1f29724cd29','D20160322000002','糖尿病','2016-05-17 11:01:42','1'),(5,'329bf10449704b3296840aed0f94b017','D20160322000002','糖尿病','2016-05-17 11:02:11','1'),(6,'c55c0322137b4d209a82045dabd74556','D20160322000002','糖尿病','2016-05-17 11:12:15','1'),(7,'988eee2d07ec4779aa7b86fcb1b980d6','D20160322000002','aa','2016-05-17 11:14:43','1'),(8,'224649589e72473ebe2c7d1b5fe47c30','D20160322000002','tangniaobing','2016-05-17 11:15:53','1'),(9,'e2cf5dcf687843ea8c0f7cec069cf153','D20160322000002','tangniaobing','2016-05-17 11:17:38','1'),(10,'c9b41b71d6f345d8bdd7d94e3066a2ac','D20160322000002','xue','2016-05-17 11:22:16','1'),(11,'c8adba69ed434627bce7f332933d60ff','D20160322000002','xue','2016-05-17 11:23:04','1'),(12,'c8f6a00cce924df59448a47e94f4221e','D20160322000002','糖尿病','2016-05-17 13:27:20','1'),(13,'a8ccfbcc606f4c9390f27da34040f687','D20160322000002','糖尿病','2016-05-17 13:29:12','1'),(14,'9f8da2229da9421b9f4939f653b2640c','D20160322000002','糖尿病','2016-05-18 01:38:42','1'),(15,'c6a42cac50a84a1ebd9294c50ee97baa','D20160322000002','糖尿病','2016-05-18 01:38:50','1'),(24,'832baad956064a2684b70b27282fc06e','D20160322000002','天天爱测试','2016-05-24 12:53:23','1'),(25,'45d89ea7ac8445c0b427cbebd129c8a9','D20160322000002','天天斗地主','2016-05-24 13:00:13','1'),(26,'46ce036ca487427381f950a68a197c22','D20160322000002','我的命发发发大地方阿斯蒂芬阿斯啊的说法阿','2016-05-25 09:34:02','1'); /*Table structure for table `wlyy_doctor_medical_records_part_item` */ DROP TABLE IF EXISTS `wlyy_doctor_medical_records_part_item`; CREATE TABLE `wlyy_doctor_medical_records_part_item` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识,为空为系统定义', `part` varchar(50) NOT NULL COMMENT '片段标识', `part_name` varchar(100) NOT NULL COMMENT '片段名称', `content` varchar(500) NOT NULL COMMENT '片段内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) NOT NULL DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_medical_records_part_item_1` (`part`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='医生病历片段明细表'; /*Data for the table `wlyy_doctor_medical_records_part_item` */ insert into `wlyy_doctor_medical_records_part_item`(`id`,`doctor`,`part`,`part_name`,`content`,`czrq`,`del`) values (1,'D20160322000002','1','高血压','保持良好心态!','2016-05-14 06:31:46','1'),(2,'D20160322000002','12eae0d0dabb4d0395c79279051be167','tan','faf','2016-05-18 01:48:58','1'),(3,'D20160322000002','343ebfd2eb2c47818703c9a616cff2e2','tang','a糖尿病','2016-05-18 01:50:43','1'),(4,'D20160322000002','15309e9f32d24ec79268069d1226c356','20160517片段记录','糖尿病患者应以低糖或无糖为主,平时多运动锻炼','2016-05-18 02:28:37','1'),(5,'D20160322000002','15309e9f32d24ec79268069d1226c356','20160517片段记录','糖尿病患者应以低糖或无糖为主,平时多运动锻炼','2016-05-18 02:31:30','1'),(6,'D20160322000002','15309e9f32d24ec79268069d1226c356','20160517片段记录','糖尿病患者应以低糖或无糖为主,平时多运动锻炼','2016-05-18 02:44:52','1'),(7,'D20160322000002','15309e9f32d24ec79268069d1226c356','20160517片段记录','糖尿病患者应以低糖或无糖为主,平时多运动锻炼','2016-05-18 02:46:19','1'),(8,'D20160322000002','08de64e31b6848bb8154185ec08629e5','片段记录1','片段记录内容:糖尿病的注意内容是。。。','2016-05-19 09:56:47','1'),(9,'D20160322000002','46ce036ca487427381f950a68a197c22','我的命发发发大地方阿斯蒂芬阿斯啊的说法阿','啊打发发到阿道夫大大','2016-05-25 09:44:53','1'),(10,'D20160322000002','9f8da2229da9421b9f4939f653b2640c','糖尿病','糖尿病','2016-05-25 09:50:57','1'),(11,'D20160322000002','9f8da2229da9421b9f4939f653b2640c','糖尿病','糖尿病','2016-05-25 09:55:09','1'),(12,'D20160322000002','224649589e72473ebe2c7d1b5fe47c30','tangniaobing','天天糖尿病','2016-05-25 09:55:29','1'); /*Table structure for table `wlyy_doctor_patient_group` */ DROP TABLE IF EXISTS `wlyy_doctor_patient_group`; CREATE TABLE `wlyy_doctor_patient_group` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '业务主键', `name` varchar(50) NOT NULL COMMENT '组名', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `status` int(11) DEFAULT '1' COMMENT '状态(1正常,0删除)', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_patient_group_1` (`doctor`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COMMENT='患者分组表'; /*Data for the table `wlyy_doctor_patient_group` */ insert into `wlyy_doctor_patient_group`(`id`,`code`,`name`,`doctor`,`czrq`,`status`) values (1,'1','高血压',NULL,'2016-05-05 11:38:18',1),(2,'2','糖尿病',NULL,'2016-05-05 11:39:17',1),(3,'other','我的患者',NULL,'2016-05-05 11:40:17',1),(18,'85702905d1674b3889ed00789ad8a674','分组1','D20160322000002','2016-05-13 01:23:44',0),(19,'f5107689a6814b45b734a9d767078094','把','D20160322000002','2016-05-17 12:23:16',0),(20,'31d7cf0ddef04ea98e42a68fe246aa05','高压1','D20160322000002','2016-05-18 01:25:03',0),(21,'f40890172a3f40d493ed926dc9e4a7cd','*********','D20160322000002','2016-05-17 12:40:32',0),(22,'7a8e25b05fdd46f3b5feb2d11a323eea','放寒假火凤凰哼哼唧唧姐姐姐夫法国红酒枋湖计划经济句u','D20160322000002','2016-05-17 12:40:27',0),(23,'9018b9418d2743c2ac781a84dfcedbae','~哼哼唧唧计划经济喝牛奶你扭扭捏捏扭扭捏捏扭扭捏捏','D20160322000002','2016-05-17 12:40:30',0),(24,'ebca055600c24c65970b757e6895705e','收拾收拾','D20160322000002','2016-05-18 01:24:56',0),(25,'7a3d922b24924ad1842f4ba728901871','泪流满面了泪流满面','D20160322000002','2016-05-18 01:24:06',0),(26,'071e9cfaa0de4f6991976bdb287fb8f1','123456789012345678901234567890','D20160322000002','2016-05-17 13:50:41',0),(27,'9cb23649a7db4b1b880ff6a6647c0b85','1234567890123456789012345678901','D20160322000002','2016-05-17 13:50:55',0),(28,'10a036c38839491bac5acddecf9f2995','12345678901234567890123456789012345','D20160322000002','2016-05-17 13:45:55',0),(29,'7e7e5d97016b4195938e7f8ac422eaff','还是上班不会好好说说宿舍睡觉斤哈哈哈事实','D20160322000002','2016-05-18 01:25:00',0),(30,'155cbd7f750a442abeac5df4ae7a5e8f','寿司君的店记得记得舅舅家看额呵呵呵斤是手','D20160322000002','2016-05-18 01:24:09',0),(31,'3ccd403823954aafa16445863f6dee00','事实是家电家具','D20160322000002','2016-05-19 08:45:41',0),(32,'9744332a6dd345d2a6148b5320635470','是手机','D20160322000002','2016-05-18 00:38:02',0),(33,'6992a8b2c4134691884bee21e79cb09e','faa','D20160322000002','2016-05-18 00:37:58',0),(34,'0c59840dfc63495bb89c6e5839023a89','467%','D20160322000002','2016-05-18 01:19:28',0),(35,'0867503b4b9b48da8d758d0454f2f24c','$#','D20160322000002','2016-05-18 01:19:33',0),(36,'2b4e03c7c91a47f495d9221a077e32d4','^','D20160322000002','2016-05-18 01:20:01',0),(37,'9e226d10181d456c83c4a0eab22d638e','223@','D20160322000002','2016-05-18 01:22:03',0),(38,'827ccefdf2264129b5274150f106fa6f','fadsfasdf','D20160322000002','2016-05-18 01:24:46',0),(39,'1d6ba756aa384513ac08885df9e869b3','df','D20160322000002','2016-05-18 01:19:57',0),(40,'d2afff3cc9024d1ab2e314f216d391da','aa','D20160322000002','2016-05-18 01:24:15',0),(41,'e32ca87dc91d4efd9dd43f4a30d9a043','aa','D20160322000002','2016-05-18 01:31:53',0),(42,'2281e72ab9bc4049912bbf615562385d','afa','D20160322000002','2016-05-18 01:31:56',0),(43,'6e931e25865642bebd308547123bfa28','dfa','D20160322000002','2016-05-18 01:31:44',0),(44,'ffbc81087ec84e46a054ee3330ff45b2','高压1组','D20160322000002','2016-05-18 01:33:39',1),(45,'80bf143ef574465caf73dc7558724f32','高压2组','D20160322000002','2016-05-18 01:34:32',1),(46,'5731b2c81a014209a0ce8daaec1dcd6e','1','D20160322000002','2016-05-18 02:27:40',0),(47,'033fa94c18f64ca98375e21970b4e1c7','2','D20160322000002','2016-05-18 02:27:42',0),(48,'cd9e0e58352d49f8beccd516205e26bf','3','D20160322000002','2016-05-18 02:27:44',0),(49,'d7006fc548094a20b4714a4c14535035','4','D20160322000002','2016-05-18 02:27:46',0),(50,'df7d318c133d44e38a150ff441f80245','5','D20160322000002','2016-05-18 02:27:48',0),(51,'b3b4cece181243a0b989d15fa23434a9','5','D20160322000002','2016-05-18 02:27:51',0),(52,'7352a7a4eb434b02b42debb9becf5140','高崎','D20160322000002','2016-05-18 11:25:28',0),(53,'4df2b52d817f47b1b2bf59fea7b14410','高崎','D20160322000002','2016-05-18 11:25:24',0),(54,'8b5a76c3f1b644b5984eb47cbe55cc23','高崎','D20160322000002','2016-05-18 11:25:21',0),(55,'1badb13d23dd4cd89896ff32b2cddb71','高崎','D20160322000002','2016-05-18 11:25:18',0),(56,'346748d499db43ea832adb056bff52e2','高糖','D20160322000002','2016-05-18 11:25:15',0),(57,'fab2857753ac4f4ca84dc1f315670abc','分组1','D20160322000002','2016-05-18 11:26:06',0),(58,'c56a56132dbd4184a5a033665bd37758','zazaza','D20160322000002','2016-05-19 08:44:36',0),(59,'17f127dd2f2e4a25b3a63015449bc848','fadf','D20160322000002','2016-05-19 08:45:36',0),(60,'ed1cd8422e984533a2717960e80da424','“”','D20160322000002','2016-05-19 08:45:57',0); /*Table structure for table `wlyy_doctor_patient_group_info` */ DROP TABLE IF EXISTS `wlyy_doctor_patient_group_info`; CREATE TABLE `wlyy_doctor_patient_group_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `pname` varchar(100) DEFAULT NULL COMMENT '患者姓名', `group_code` varchar(50) DEFAULT NULL COMMENT '组编号(wlyy_doctor_patient_group的业务主键code)', `record_amount` int(11) DEFAULT '0' COMMENT '病历记录数', `part_amount` int(11) DEFAULT '0' COMMENT '病历片段数', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `status` int(11) DEFAULT '1' COMMENT '状态(1正常,0删除)', `dqrq` date DEFAULT NULL COMMENT '到期时间', `qyrq` date DEFAULT NULL COMMENT '签约日期/已诊日期', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_patient_group_info_1` (`doctor`,`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='患者分组明细表'; /*Data for the table `wlyy_doctor_patient_group_info` */ insert into `wlyy_doctor_patient_group_info`(`id`,`doctor`,`patient`,`pname`,`group_code`,`record_amount`,`part_amount`,`czrq`,`status`,`dqrq`,`qyrq`) values (1,'D20160322000002','U20160322000001','李碧玉','1',0,16,'2016-05-25 09:55:29',1,NULL,'2016-04-27'),(2,'D20160322000002','U20160322000002','张华','other',0,0,'2016-05-19 08:44:36',1,NULL,'2016-04-27'),(3,'D20160322000002','U20160322000003','窦怡宁','other',0,0,'2016-05-19 08:44:36',1,NULL,'2016-04-27'),(4,'D20160322000002','U20160322000004','赖小娜','other',0,0,'2016-05-18 11:35:12',1,NULL,'2016-04-27'); /*Table structure for table `wlyy_doctor_scheduling` */ DROP TABLE IF EXISTS `wlyy_doctor_scheduling`; CREATE TABLE `wlyy_doctor_scheduling` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '排班标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识/团队标识', `week` int(11) DEFAULT NULL COMMENT '星期几(1~7)', `hour_begin` time DEFAULT NULL COMMENT '排班开始时间', `hour_end` time DEFAULT NULL COMMENT '排班结束时间', `times` int(11) DEFAULT '-1' COMMENT '可预约次数', `type` int(11) DEFAULT NULL COMMENT '排班类型:1视频预约', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '排班操作时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_doctor_scheduling_2` (`code`), KEY `idx_wlyy_doctor_scheduling_1` (`doctor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生排班表'; /*Data for the table `wlyy_doctor_scheduling` */ /*Table structure for table `wlyy_doctor_scheduling_times` */ DROP TABLE IF EXISTS `wlyy_doctor_scheduling_times`; CREATE TABLE `wlyy_doctor_scheduling_times` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `scheduling` varchar(50) DEFAULT NULL COMMENT '排班标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `appo_date` date DEFAULT NULL COMMENT '预约日期:如2016-04-23', `times` int(11) DEFAULT NULL COMMENT '预约次数', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_doctor_scheduling_times_1` (`scheduling`,`appo_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生排班预约次数表'; /*Data for the table `wlyy_doctor_scheduling_times` */ /*Table structure for table `wlyy_doctor_statistics` */ DROP TABLE IF EXISTS `wlyy_doctor_statistics`; CREATE TABLE `wlyy_doctor_statistics` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `doctor` varchar(50) NOT NULL COMMENT '医生标识,关联wlyy_doctor表', `patient` int(11) DEFAULT NULL COMMENT '患者总人数', `patient_ss` int(11) DEFAULT NULL COMMENT '三管共管人数', `patient_sign` int(11) DEFAULT NULL COMMENT '个人签约人数', `diabetes` int(11) DEFAULT NULL COMMENT '糖尿病总人数', `hypertension` int(11) DEFAULT NULL COMMENT '高血压总人数', `diabetes_hypertension` int(11) DEFAULT NULL COMMENT '糖尿病和高血压都有总人数', `followup_times` int(11) DEFAULT NULL COMMENT '随访总次数', `followup_members` int(11) DEFAULT NULL COMMENT '随访总人数', `followup_success` int(11) DEFAULT NULL COMMENT '随访成功次数', `intervene_times` int(11) DEFAULT NULL COMMENT '干预总次数', `intervene_members` int(11) DEFAULT NULL COMMENT '干预总人数', `consultation_times` int(11) DEFAULT NULL COMMENT '被咨询总次数', `consultation_members` int(11) DEFAULT NULL COMMENT '咨询总人次', `consultation_reply` int(11) DEFAULT NULL COMMENT '咨询回复次数', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_doctor_statistics_uid` (`doctor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生统计表'; /*Data for the table `wlyy_doctor_statistics` */ /*Table structure for table `wlyy_doctor_team` */ DROP TABLE IF EXISTS `wlyy_doctor_team`; CREATE TABLE `wlyy_doctor_team` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '团队编码,业务主键', `name` varchar(50) NOT NULL COMMENT '团队名称', `icon` varchar(100) DEFAULT NULL COMMENT '团队LOGO', `members` int(11) DEFAULT '0' COMMENT '团队人员数', `doctor` varchar(50) NOT NULL COMMENT '创建人,关联wlyy_doctor表', `doctor_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='三师团队表'; /*Data for the table `wlyy_doctor_team` */ insert into `wlyy_doctor_team`(`id`,`code`,`name`,`icon`,`members`,`doctor`,`doctor_name`,`czrq`,`del`) values (2,'1','糖尿病专家组','../images/face.png',3,'D20160322000001','徐小鹏','2016-05-12 13:25:37','1'),(3,'2','高血压专家组','../images/face.png',3,'D20160322000001','徐小鹏','2016-05-13 00:25:39','1'); /*Table structure for table `wlyy_doctor_team_info` */ DROP TABLE IF EXISTS `wlyy_doctor_team_info`; CREATE TABLE `wlyy_doctor_team_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `team` varchar(50) NOT NULL COMMENT '团队编码,关联wlyy_doctor_team表', `doctor` varchar(50) NOT NULL COMMENT '医生标识,关联wlyy_doctor表', `name` varchar(50) DEFAULT NULL COMMENT '医生姓名', `type` int(11) NOT NULL COMMENT '医生类型:1专科医生,2全科医生,3健康管理师,4营养师', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_doctor_team_info_uid` (`doctor`), KEY `idx_wlyy_doctor_team_info_team` (`team`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='医生团队详情表'; /*Data for the table `wlyy_doctor_team_info` */ insert into `wlyy_doctor_team_info`(`id`,`team`,`doctor`,`name`,`type`,`czrq`,`del`) values (1,'2','D20160322000001','徐小鹏',1,'2016-05-10 07:36:11','1'),(2,'2','D20160322000002','聂青',3,'2016-05-10 07:37:05','1'),(3,'2','D20160322000003','江燕',2,'2016-05-10 07:37:28','1'),(4,'1','D20160322000001','徐小鹏',1,'2016-05-10 07:37:39','1'),(5,'1','D20160322000002','聂青',3,'2016-05-10 07:37:55','1'),(6,'1','D20160322000003','江燕',2,'2016-05-10 07:38:04','1'),(7,'3','doctor','test',1,'2016-05-31 12:46:34','1'),(8,'3','D20160322000002','test2',1,'2016-06-01 13:36:30','1'); /*Table structure for table `wlyy_followup_item_record` */ DROP TABLE IF EXISTS `wlyy_followup_item_record`; CREATE TABLE `wlyy_followup_item_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '随访项记录标识', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识', `type` int(11) NOT NULL COMMENT '类型:1问卷,2体测', `title` varchar(200) NOT NULL COMMENT '标题', `status` int(11) NOT NULL COMMENT '状态:0未作答,1已作答,2已完成', `czrq` date NOT NULL COMMENT '生成日期', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_item_record_1` (`stage`) ) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COMMENT='生成的随访项记录'; /*Data for the table `wlyy_followup_item_record` */ insert into `wlyy_followup_item_record`(`id`,`code`,`plan`,`stage`,`item`,`type`,`title`,`status`,`czrq`) values (1,'record00001','plan00001','stage00001','item00001',1,'问卷随访1',1,'2016-05-28'),(3,'record00003','plan00001','stage00001','item00001',1,'问卷随访2',1,'2016-05-30'),(4,'record00004','plan00001','stage00001','item00002',2,'体测随访2',0,'2016-05-30'),(6,'record00006','plan00001','stage00001','item00001',1,'问卷随访',2,'2016-05-30'),(45,'15ff3a4039794b1aaf152ca3c6ed4eb3','222222222','000000101','00000010101',1,'随访计划推送测试1阶段1随访项1',0,'2016-05-31'),(46,'78dbb2cf3f5f47c8b2d162717f6142b7','0000001','000000101','00000010102',2,'随访计划推送测试1阶段1随访项2',0,'2016-05-31'),(47,'f786b7079c984680a155b8757d97009a','0000001','000000101','00000010101',1,'随访计划推送测试1阶段1随访项1',0,'2016-06-21'),(48,'4d939ee286f5419ab4d54cf2833ec110','0000001','000000102','00000010201',1,'随访计划推送测试1阶段2随访项1',0,'2016-06-21'),(49,'f3395cb9b5c24133b2913af9206dd71d','0000001','000000102','00000010201',1,'随访计划推送测试1阶段2随访项1',0,'2016-07-21'),(50,'c340e264b77540d8844a2a689a78ac81','plan00001','stage00001','item00001',1,'糖尿病随访问卷',2,'2016-06-01'); /*Table structure for table `wlyy_followup_item_record_answer` */ DROP TABLE IF EXISTS `wlyy_followup_item_record_answer`; CREATE TABLE `wlyy_followup_item_record_answer` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识', `record` varchar(50) NOT NULL COMMENT '记录标识', `doctor` varchar(50) DEFAULT NULL COMMENT '代填写医生标识', `doctor_name` varchar(50) DEFAULT NULL COMMENT '代填写医生姓名', `type` int(11) NOT NULL COMMENT '问题类型:1问卷,2体测', `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围', `question` varchar(50) NOT NULL COMMENT '问题标识', `option_code` varchar(50) DEFAULT NULL COMMENT '选项标识', `answer` varchar(300) NOT NULL COMMENT '回答内容', `czrq` datetime DEFAULT NULL COMMENT '回答时间', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_plan_stage_item_answer_1` (`record`) ) ENGINE=InnoDB AUTO_INCREMENT=244 DEFAULT CHARSET=utf8mb4 COMMENT='随访患者回答记录表'; /*Data for the table `wlyy_followup_item_record_answer` */ insert into `wlyy_followup_item_record_answer`(`id`,`plan`,`stage`,`item`,`record`,`doctor`,`doctor_name`,`type`,`tc_index`,`question`,`option_code`,`answer`,`czrq`) values (226,'plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','D20160322000002','聂青\r\n',1,0,'question00001','option00002','没吃','2016-06-02 11:27:35'),(227,'plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','D20160322000002','聂青\r\n',2,0,'question00003','option00003','喇叭丸','2016-06-02 11:27:35'),(228,'plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','D20160322000002','聂青\r\n',3,0,'question00002','','阿发阿道夫爱的色放阿飞啊','2016-06-02 11:27:35'),(236,'plan00001','stage00001','item00001','record00003','D20160322000002','聂青\r\n',1,0,'question00001','option00001','吃了','2016-06-02 11:55:04'),(237,'plan00001','stage00001','item00001','record00003','D20160322000002','聂青\r\n',2,0,'question00003','option00003','喇叭丸','2016-06-02 11:55:04'),(238,'plan00001','stage00001','item00001','record00003','D20160322000002','聂青\r\n',3,0,'question00002','','发测试文件我2打发','2016-06-02 11:55:04'),(239,'plan00001','stage00001','item00001','record00006','D20160322000002','聂青\r\n',1,0,'question00001','option00002','没吃','2016-06-02 11:55:25'),(240,'plan00001','stage00001','item00001','record00006','D20160322000002','聂青\r\n',2,0,'question00003','option00003','喇叭丸','2016-06-02 11:55:25'),(241,'plan00001','stage00001','item00001','record00006','D20160322000002','聂青\r\n',3,0,'question00002','','地方阿德发到付阿道夫阿水分昂问放假啊','2016-06-02 11:55:25'),(242,'plan00001','stage00001','item00001','record00001','D20160322000002','聂青\r\n',1,0,'question00001','option00002','没吃','2016-06-02 16:18:41'),(243,'plan00001','stage00001','item00001','record00001','D20160322000002','聂青\r\n',2,0,'question00003','option00004','胃散','2016-06-02 16:18:41'); /*Table structure for table `wlyy_followup_item_record_question` */ DROP TABLE IF EXISTS `wlyy_followup_item_record_question`; CREATE TABLE `wlyy_followup_item_record_question` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `code` varchar(50) NOT NULL COMMENT '问题标识(关联wlyy_followup_plan_stage_item_question表的code)', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识', `record` varchar(50) NOT NULL COMMENT '随访记录标识', `title` varchar(200) NOT NULL COMMENT '问题标题', `type` int(11) NOT NULL COMMENT '问题类型:1单选,2多选,3问答', `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_item_record_question_1` (`record`), KEY `idx_wlyy_followup_item_record_question_2` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=utf8mb4 COMMENT='随访项记录随访问题表'; /*Data for the table `wlyy_followup_item_record_question` */ insert into `wlyy_followup_item_record_question`(`id`,`code`,`plan`,`stage`,`item`,`record`,`title`,`type`,`tc_index`) values (1,'question00001','plan00001','stage00001','item00001','record00003','是否吃药了',1,2),(3,'question00003','plan00001','stage00001','item00001','record00003','吃了什么药',2,2),(5,'question00004','plan00001','stage00001','item00001','record00001','是否吃药了',1,2),(6,'question00006','plan00001','stage00001','item00001','record00001','吃了什么药',2,2),(7,'1111','plan00001','stage00001','item00002','record00004','血糖检测',0,1),(8,'2222','plan00001','stage00001','item00002','record00004','血压监测',0,2),(16,'question00016','plan00001','stage00001','item00001','record00006','是否吃药了',1,1),(17,'question00017','plan00001','stage00001','item00001','record00006','吃了什么药',2,1),(18,'question00018','plan00001','stage00001','item00001','record00006','感觉怎么样?',3,1),(45,'0000001010101','0000001','000000101','00000010101','15ff3a4039794b1aaf152ca3c6ed4eb3','随访计划推送测试1阶段1随访项1问题1',3,1),(46,'0000001010201','0000001','000000101','00000010102','78dbb2cf3f5f47c8b2d162717f6142b7','随访计划推送测试1阶段1随访项2问题1',3,0),(47,'0000001010101','0000001','000000101','00000010101','f786b7079c984680a155b8757d97009a','随访计划推送测试1阶段1随访项1问题1',3,1),(48,'0000001020101','0000001','000000102','00000010201','4d939ee286f5419ab4d54cf2833ec110','随访计划推送测试1阶段2随访项1问题1',3,0),(49,'0000001020101','0000001','000000102','00000010201','f3395cb9b5c24133b2913af9206dd71d','随访计划推送测试1阶段2随访项1问题1',3,0),(50,'question00001','plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','是否吃药了',1,2),(52,'question00003','plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','吃了什么药',2,2); /*Table structure for table `wlyy_followup_item_record_question_option` */ DROP TABLE IF EXISTS `wlyy_followup_item_record_question_option`; CREATE TABLE `wlyy_followup_item_record_question_option` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `code` varchar(50) NOT NULL COMMENT '选项标识', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识', `record` varchar(50) NOT NULL COMMENT '随访记录标识', `question` varchar(50) NOT NULL COMMENT '问题标识(关联wlyy_followup_item_record_question表的code)', `des` varchar(500) NOT NULL COMMENT '选项描述', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_item_record_question_option_1` (`question`) ) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8mb4 COMMENT='随访项记录随访问题选项表'; /*Data for the table `wlyy_followup_item_record_question_option` */ insert into `wlyy_followup_item_record_question_option`(`id`,`code`,`plan`,`stage`,`item`,`record`,`question`,`des`) values (1,'option00001','plan00001','stage00001','item00001','record00003','question00001','吃了'),(2,'option00002','plan00001','stage00001','item00001','record00003','question00001','没吃'),(3,'option00003','plan00001','stage00001','item00001','record00003','question00003','喇叭丸'),(4,'option00004','plan00001','stage00001','item00001','record00003','question00003','胃散'),(5,'option00005','plan00001','stage00001','item00001','record00003','question00003','泻立停'),(6,'option00006','plan00001','stage00001','item00001','record00001','question00004','吃了'),(7,'option00007','plan00001','stage00001','item00001','record00001','question00004','没吃'),(8,'option00008','plan00001','stage00001','item00001','record00001','question00006','喇叭丸'),(9,'option00009','plan00001','stage00001','item00001','record00001','question00006','胃散'),(10,'option00010','plan00001','stage00001','item00001','record00001','question00006','123'),(11,'option00011','plan00001','stage00001','item00002','record00004','1111','血糖(早餐前)'),(13,'option00013','plan00001','stage00001','item00002','record00004','2222','舒张压'),(14,'option00014','plan00001','stage00001','item00002','record00004','2222','收缩压'),(17,'option00017','plan00001','stage00001','item00001','record00006','question00016','吃了'),(18,'option00018','plan00001','stage00001','item00001','record00006','question00016','没吃'),(19,'option00019','plan00001','stage00001','item00001','record00006','question00017','维生素A'),(20,'option00020','plan00001','stage00001','item00001','record00006','question00017','维生素c'); /*Table structure for table `wlyy_followup_plan` */ DROP TABLE IF EXISTS `wlyy_followup_plan`; CREATE TABLE `wlyy_followup_plan` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `code` varchar(50) NOT NULL COMMENT '计划标识', `title` varchar(100) NOT NULL COMMENT '标题/随访计划名称', `doctor` varchar(50) NOT NULL COMMENT '医生标识', `doctor_name` varchar(50) NOT NULL COMMENT '医生姓名', `team` varchar(50) DEFAULT NULL COMMENT '三师团队标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `patient_name` varchar(50) NOT NULL COMMENT '患者姓名', `status` int(11) NOT NULL COMMENT '计划状态:-1暂停,0进行中,1已结束', `wj_amount` int(11) DEFAULT '0' COMMENT '总问卷随访数', `wj_finish_amount` int(11) DEFAULT '0' COMMENT '已完成问卷随访数', `tc_amount` int(11) DEFAULT '0' COMMENT '总体测随访数', `tc_finish_amount` int(11) DEFAULT '0' COMMENT '已完成体测随访数', `czrq` datetime NOT NULL COMMENT '制定日期', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_plan_1` (`doctor`), KEY `idx_wlyy_followup_plan_2` (`patient`), KEY `idx_wlyy_followup_plan_3` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划表'; /*Data for the table `wlyy_followup_plan` */ insert into `wlyy_followup_plan`(`id`,`code`,`title`,`doctor`,`doctor_name`,`team`,`patient`,`patient_name`,`status`,`wj_amount`,`wj_finish_amount`,`tc_amount`,`tc_finish_amount`,`czrq`) values (1,'plan00001','随访计划1','D20160322000002','聂青','2','U20160322000001','李碧玉',0,2,19,1,1,'2016-05-26 14:38:09'),(2,'plan00002','随访计划2','D20160322000002','聂青','2','U20160322000002','张华',0,0,0,0,0,'2016-05-26 14:41:46'),(3,'222222222','随访计划推送测试1','D20160322000002','聂青','2','U20160322000001','李碧玉',1,4,0,1,0,'2016-05-31 14:48:33'); /*Table structure for table `wlyy_followup_plan_doctor` */ DROP TABLE IF EXISTS `wlyy_followup_plan_doctor`; CREATE TABLE `wlyy_followup_plan_doctor` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `plan` varchar(50) DEFAULT NULL COMMENT '随访计划标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医生相关的随访计划表'; /*Data for the table `wlyy_followup_plan_doctor` */ insert into `wlyy_followup_plan_doctor`(`id`,`plan`,`doctor`) values (1,'plan00001','D20160322000002'),(2,'plan00002','D20160322000002'),(3,'0000001','D20160322000002'); /*Table structure for table `wlyy_followup_plan_stage` */ DROP TABLE IF EXISTS `wlyy_followup_plan_stage`; CREATE TABLE `wlyy_followup_plan_stage` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '阶段标识', `doctor` varchar(50) NOT NULL COMMENT '医生标识', `doctor_name` varchar(50) NOT NULL COMMENT '医生姓名', `plan` varchar(50) NOT NULL COMMENT '计划标识', `seq` int(11) NOT NULL COMMENT '阶段序号', `type` int(11) NOT NULL COMMENT '类型:1定时,2不定时', `end_date` date DEFAULT NULL COMMENT '结束日期', `target` varchar(200) NOT NULL COMMENT '目标', `status` int(11) DEFAULT NULL COMMENT '执行状态:-1暂停,0未开始,1进行中,2已结束', `czrq` datetime DEFAULT NULL COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_plan_stage_1` (`plan`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划阶段表'; /*Data for the table `wlyy_followup_plan_stage` */ insert into `wlyy_followup_plan_stage`(`id`,`code`,`doctor`,`doctor_name`,`plan`,`seq`,`type`,`end_date`,`target`,`status`,`czrq`) values (1,'stage00001','D20160322000002','聂青','plan00001',1,2,'2016-05-31','控制血糖',1,'2016-05-26 14:39:20'),(2,'000000101','D20160322000002','聂青','0000001',1,1,'2016-06-30','随访计划推送测试1阶段1',2,'2016-05-31 14:49:57'),(3,'000000102','D20160322000002','聂青','0000001',2,2,'2016-06-30','随访计划推送测试1阶段2',2,'2016-05-31 14:56:10'),(4,'stage00002','D20160322000002','聂青','plan00001',2,1,'2016-06-23','继续控制血糖',0,'2016-06-02 20:43:12'); /*Table structure for table `wlyy_followup_plan_stage_item` */ DROP TABLE IF EXISTS `wlyy_followup_plan_stage_item`; CREATE TABLE `wlyy_followup_plan_stage_item` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '随访项标识', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `type` int(11) NOT NULL COMMENT '随访项类型:1问卷,2体测', `title` varchar(200) NOT NULL COMMENT '标题', `push_type` int(11) NOT NULL COMMENT '推送类型:1按时间,2按次数', `push_times` int(11) DEFAULT NULL COMMENT '推送次数', `push_cycle` int(11) DEFAULT NULL COMMENT '推送周期', `push_cycle_unit` int(11) DEFAULT NULL COMMENT '推送周期单位:1天,2周,3月', `next_push_date` date DEFAULT NULL COMMENT '下一次推送日期', `push_begin` date DEFAULT NULL COMMENT '推送开始日期', `push_end` date DEFAULT NULL COMMENT '推送结束日期', `times` int(11) DEFAULT '0' COMMENT '已推送次数', `status` int(11) NOT NULL COMMENT '执行状态:-1暂停,0未开始,1进行中,2已结束', `czrq` datetime NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_plan_stage_item_1` (`stage`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划随访阶段随访项'; /*Data for the table `wlyy_followup_plan_stage_item` */ insert into `wlyy_followup_plan_stage_item`(`id`,`code`,`plan`,`stage`,`type`,`title`,`push_type`,`push_times`,`push_cycle`,`push_cycle_unit`,`next_push_date`,`push_begin`,`push_end`,`times`,`status`,`czrq`) values (1,'item00001','plan00001','stage00001',1,'糖尿病随访问卷',1,0,8,1,'2016-07-02','2016-07-02','2016-07-05',0,1,'2016-05-30 19:01:49'),(2,'item00002','plan00001','stage00001',2,'糖尿病随访体测',1,0,3,2,'2016-06-21','2016-06-02','2016-05-18',1,0,'2016-05-30 20:07:51'),(3,'00000010101','0000001','000000101',1,'随访计划推送测试1阶段1随访项1',1,0,3,2,'2016-07-12','2016-05-31','2016-06-30',2,2,'2016-05-31 14:51:24'),(4,'00000010102','0000001','000000101',2,'随访计划推送测试1阶段1随访项2',2,3,1,3,'2016-06-30','2016-05-31','2016-06-30',1,2,'2016-05-31 14:54:28'),(5,'00000010201','0000001','000000102',1,'随访计划推送测试1阶段2随访项1',1,0,1,3,'2016-08-21','2016-06-15','2016-07-31',2,2,'2016-05-31 14:57:28'),(6,'d7bfb473642a4171894dde45a035c925','plan00001','stage00001',1,'编辑测试',1,0,1,1,NULL,'2016-06-01','2016-06-05',2,2,'2016-05-31 15:17:51'); /*Table structure for table `wlyy_followup_plan_stage_item_question` */ DROP TABLE IF EXISTS `wlyy_followup_plan_stage_item_question`; CREATE TABLE `wlyy_followup_plan_stage_item_question` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `code` varchar(50) NOT NULL COMMENT '问题标识', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识', `title` varchar(200) NOT NULL COMMENT '问题标题', `type` int(11) NOT NULL COMMENT '问题类型:1单选,2多选,3问答', `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围', `options` varchar(3000) DEFAULT NULL COMMENT '问题选项jsonarray串,格式为:[{code:"",des:""}]', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_plan_stage_item_question_1` (`item`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划随访阶段随访项随访问题表'; /*Data for the table `wlyy_followup_plan_stage_item_question` */ insert into `wlyy_followup_plan_stage_item_question`(`id`,`code`,`plan`,`stage`,`item`,`title`,`type`,`tc_index`,`options`) values (1,'question00001','plan00001','stage00001','item00001','是否吃药了',1,2,NULL),(2,'1111','plan00001','stage00001','item00002','血糖检查',0,1,NULL),(3,'question00003','plan00001','stage00001','item00001','吃了什么药',2,2,NULL),(4,'0000001010101','0000001','000000101','00000010101','随访计划推送测试1阶段1随访项1问题1',3,1,NULL),(5,'0000001010201','0000001','000000101','00000010102','随访计划推送测试1阶段1随访项2问题1',3,0,NULL),(6,'0000001020101','0000001','000000102','00000010201','随访计划推送测试1阶段2随访项1问题1',3,0,NULL),(7,'2911f7bb86d449b7bb797839492b2170','plan00001','stage00001','d7bfb473642a4171894dde45a035c925','测试题目',1,0,'[{\"code\":\"34f2f0dffaf44af3b765bb1e3fcaa555\",\"des\":\"测试一\"},{\"code\":\"dee8c491ee0746b59847cf49cbaec90b\",\"des\":\"测试二\"}]'),(8,'2222','plan00001','stage00001','item00002','血压监测',0,2,NULL); /*Table structure for table `wlyy_followup_plan_stage_item_question_option` */ DROP TABLE IF EXISTS `wlyy_followup_plan_stage_item_question_option`; CREATE TABLE `wlyy_followup_plan_stage_item_question_option` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `code` varchar(50) NOT NULL COMMENT '选项标识', `plan` varchar(50) NOT NULL COMMENT '随访计划标识', `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识', `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识', `question` varchar(50) NOT NULL COMMENT '问题标识', `des` varchar(500) NOT NULL COMMENT '选项描述', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_plan_stage_item_question_option_1` (`item`) ) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划随访阶段随访项随访问题选项表'; /*Data for the table `wlyy_followup_plan_stage_item_question_option` */ insert into `wlyy_followup_plan_stage_item_question_option`(`id`,`code`,`plan`,`stage`,`item`,`question`,`des`) values (1,'option00001','plan00001','stage00001','item00001','question00001','吃了'),(2,'option00002','plan00001','stage00001','item00001','question00001','没吃'),(3,'option00003','plan00001','stage00001','item00001','question00003','喇叭丸'),(4,'option00004','plan00001','stage00001','item00001','question00003','胃散'),(5,'option00005','plan00001','stage00001','item00001','question00003','泻立停'),(6,'34f2f0dffaf44af3b765bb1e3fcaa555','plan00001','stage00001','d7bfb473642a4171894dde45a035c925','2911f7bb86d449b7bb797839492b2170','测试一'),(7,'dee8c491ee0746b59847cf49cbaec90b','plan00001','stage00001','d7bfb473642a4171894dde45a035c925','2911f7bb86d449b7bb797839492b2170','测试二'),(8,'1111','plan00001','stage00001','item00002','1111','早餐前血糖值'),(9,'opiton00008','plan00001','stage00001','item00001','question00008','血压值'),(10,'2222','plan00001','stage00001','item00002','2222','收缩压'),(111,'333','plan00001','stage00001','item00002','2222','舒张压'); /*Table structure for table `wlyy_followup_plan_stage_target` */ DROP TABLE IF EXISTS `wlyy_followup_plan_stage_target`; CREATE TABLE `wlyy_followup_plan_stage_target` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `content` varchar(200) NOT NULL COMMENT '目标内容', `czrq` datetime NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划阶段目标定义表'; /*Data for the table `wlyy_followup_plan_stage_target` */ insert into `wlyy_followup_plan_stage_target`(`id`,`content`,`czrq`) values (1,'控制血压','2016-05-28 10:16:48'),(2,'控制血糖','2016-05-28 10:16:50'); /*Table structure for table `wlyy_followup_question` */ DROP TABLE IF EXISTS `wlyy_followup_question`; CREATE TABLE `wlyy_followup_question` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '问题标识', `doctor` varchar(50) DEFAULT '0' COMMENT '医生标识,0代表为系统随访项', `title` varchar(200) NOT NULL COMMENT '标题', `type` int(11) NOT NULL COMMENT '随访项类型:1单选,2多选,3问答', `content` varchar(3000) DEFAULT NULL COMMENT '选项json串用于查询', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_question_1` (`doctor`), KEY `idx_wlyy_followup_question_2` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='问卷随访问题定义表'; /*Data for the table `wlyy_followup_question` */ insert into `wlyy_followup_question`(`id`,`code`,`doctor`,`title`,`type`,`content`,`czrq`,`del`) values (1,'111','0','是否按医生要求的次数服药?',1,'','2016-05-31 08:33:11','1'),(2,'222','0','测试复选题',2,'','2016-05-31 08:35:37','1'),(3,'333','0','测试内容',3,'','2016-05-31 08:36:18','1'); /*Table structure for table `wlyy_followup_question_option` */ DROP TABLE IF EXISTS `wlyy_followup_question_option`; CREATE TABLE `wlyy_followup_question_option` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `question` varchar(50) NOT NULL COMMENT '问题标识', `des` varchar(500) NOT NULL COMMENT '选项描述', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_question_1` (`question`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='问卷随访问题选项定义表'; /*Data for the table `wlyy_followup_question_option` */ insert into `wlyy_followup_question_option`(`id`,`question`,`des`,`czrq`,`del`) values (1,'111','单选内容1','2016-05-30 09:33:47','1'),(2,'111','单选内容2','2016-05-30 09:33:49','1'),(3,'111','单选内容3','2016-05-30 09:33:51','1'),(4,'111','单选内容4','2016-05-30 09:33:57','1'),(5,'222','复选内容1','2016-05-30 09:34:02','1'),(6,'222','复选内容2','2016-05-30 09:34:04','1'),(7,'222','复选内容3','2016-05-30 09:34:15','1'),(8,'222','复选内容4','2016-05-30 09:34:09','1'),(9,'333','文本框内容','2016-05-31 16:34:15','1'); /*Table structure for table `wlyy_followup_summary` */ DROP TABLE IF EXISTS `wlyy_followup_summary`; CREATE TABLE `wlyy_followup_summary` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `plan` varchar(50) DEFAULT NULL COMMENT '计划标识(计划总结)', `stage` varchar(50) DEFAULT NULL COMMENT '阶段标识(阶段总结)', `item` varchar(50) DEFAULT NULL COMMENT '随访项标识(随访项小结)', `record` varchar(50) DEFAULT NULL COMMENT '纪录标识(随访纪录总结)', `type` int(11) DEFAULT NULL COMMENT '小结类型:(1、计划 2、阶段 3、随访项 4、随访纪录)', `result` varchar(200) DEFAULT NULL COMMENT '控制结果', `summary` varchar(1000) NOT NULL COMMENT '总结内容', `doctor` varchar(50) NOT NULL COMMENT '总结医生标识', `doctor_name` varchar(50) NOT NULL COMMENT '总结医生姓名', `czrq` datetime NOT NULL COMMENT '总结时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COMMENT='随访总结'; /*Data for the table `wlyy_followup_summary` */ insert into `wlyy_followup_summary`(`id`,`plan`,`stage`,`item`,`record`,`type`,`result`,`summary`,`doctor`,`doctor_name`,`czrq`) values (2,'plan00001','stage00001','item00001','',3,'测试','情况良好,暂停计划','D20160322000002','聂青','2016-05-30 10:18:18'),(3,'plan00001','stage00001','','',2,'测试','情况良好,暂停计划','D20160322000002','聂青','2016-05-30 10:16:58'),(4,'plan00001','','','',1,'测试','情况良好,暂停计划','D20160322000002','聂青','2016-05-30 10:16:58'),(5,'plan00001','stage00001','item00001','record00003',4,'控制满意','测试小结','D20160322000002','聂青\r\n','2016-05-31 08:56:10'),(6,'plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81',4,'不满意','烦烦烦','D20160322000002','聂青\r\n','2016-06-02 06:07:41'),(12,'plan00001','stage00001','item00001','record00006',4,'不满意','发','D20160322000002','聂青\r\n','2016-06-02 11:37:28'); /*Table structure for table `wlyy_followup_tc` */ DROP TABLE IF EXISTS `wlyy_followup_tc`; CREATE TABLE `wlyy_followup_tc` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '体测类型标识', `doctor` varchar(50) DEFAULT '0' COMMENT '医生标识,0代表为系统随访项', `tc_index` int(11) NOT NULL COMMENT '体测指标类型(1血糖,2血压,3体重,4腰围)', `title` varchar(200) NOT NULL COMMENT '标题', `content` varchar(200) NOT NULL COMMENT '选项json串用于查询', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_tc_1` (`doctor`), KEY `idx_wlyy_followup_tc_2` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='体测随访体测类型定义表'; /*Data for the table `wlyy_followup_tc` */ insert into `wlyy_followup_tc`(`id`,`code`,`doctor`,`tc_index`,`title`,`content`,`czrq`,`del`) values (1,'1','0',1,'血糖测量','[{code:7,des:\"早餐前血糖\"}]','2016-05-30 09:48:50','1'),(2,'2','0',2,'血压测量','[{code:8,des:\"收缩压\"},{code:9,des:\"舒张压\"}]','2016-05-30 09:48:49','1'); /*Table structure for table `wlyy_followup_tc_option` */ DROP TABLE IF EXISTS `wlyy_followup_tc_option`; CREATE TABLE `wlyy_followup_tc_option` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `tc` varchar(50) NOT NULL COMMENT '体测类型标识', `des` varchar(500) NOT NULL COMMENT '选项描述', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_tc_option_1` (`tc`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='体测随访体测选项定义表'; /*Data for the table `wlyy_followup_tc_option` */ insert into `wlyy_followup_tc_option`(`id`,`tc`,`des`,`czrq`,`del`) values (1,'1','早餐前血糖','2016-05-30 09:31:55','1'),(2,'2','收缩压','2016-05-30 09:31:56','1'),(3,'2','舒张压','2016-05-30 09:31:57','1'); /*Table structure for table `wlyy_followup_template` */ DROP TABLE IF EXISTS `wlyy_followup_template`; CREATE TABLE `wlyy_followup_template` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '模板标识', `doctor` varchar(50) DEFAULT '0' COMMENT '医生标识,0表示为系统模板', `title` varchar(200) NOT NULL COMMENT '模板标题', `type` int(11) NOT NULL COMMENT '模板类型:1问卷模板,2体测模板', `push_type` int(11) NOT NULL COMMENT '推送类型:1按时间,2按次数', `push_times` int(11) NOT NULL COMMENT '推送次数', `push_cycle` int(11) NOT NULL COMMENT '推送周期', `push_cycle_unit` int(11) NOT NULL COMMENT '推送周期单位:1天,2周,3月', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建日期', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_template_tc_1` (`doctor`), KEY `idx_wlyy_followup_template_tc_2` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='体测随访模板表'; /*Data for the table `wlyy_followup_template` */ insert into `wlyy_followup_template`(`id`,`code`,`doctor`,`title`,`type`,`push_type`,`push_times`,`push_cycle`,`push_cycle_unit`,`czrq`) values (1,'1','0','问卷模板1',1,1,0,3,1,'2016-05-30 09:50:16'),(2,'2','0','体测模板1',2,1,0,3,1,'2016-05-30 09:50:17'); /*Table structure for table `wlyy_followup_template_plan` */ DROP TABLE IF EXISTS `wlyy_followup_template_plan`; CREATE TABLE `wlyy_followup_template_plan` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `code` varchar(50) NOT NULL COMMENT '计划标识', `title` varchar(100) NOT NULL COMMENT '标题/随访计划名称', `doctor` varchar(50) NOT NULL COMMENT '医生标识', `stages` text NOT NULL COMMENT '随访模板阶段内容', `czrq` datetime NOT NULL COMMENT '生成日期', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_template_plan_1` (`doctor`), KEY `idx_wlyy_followup_template_plan_2` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划模板表'; /*Data for the table `wlyy_followup_template_plan` */ insert into `wlyy_followup_template_plan`(`id`,`code`,`title`,`doctor`,`stages`,`czrq`) values (11,'0dcbcdee03f444a3b81113b166ae9b7a','test1','D20160322000002','[{\"type\":2,\"target\":\"控制血压\",\"end_date\":\"\",\"items\":[{\"tmplCode\":\"1\",\"title\":\"问卷模板1\",\"type\":1,\"push_type\":2,\"push_cycle\":3,\"push_cycle_unit\":1,\"push_times\":\"1\",\"push_begin\":\"2016-06-06\",\"push_end\":\"\",\"questions\":[{\"code\":\"1\",\"options\":[{\"code\":1,\"des\":\"选项1\"},{\"code\":2,\"des\":\"选项2\"},{\"code\":3,\"des\":\"选项3\"}],\"index\":1,\"title\":\"问题1:单选\",\"type\":1},{\"code\":\"2\",\"options\":[{\"code\":4,\"des\":\"选项4\"},{\"code\":5,\"des\":\"选项5\"},{\"code\":6,\"des\":\"选项6\"}],\"index\":2,\"title\":\"问题2:多选\",\"type\":2},{\"code\":\"3\",\"index\":3,\"title\":\"问题3:今天星期几\",\"type\":3}]}],\"overTime\":\"\"},{\"type\":1,\"target\":\"控制血压\",\"end_date\":\"2016-06-06\",\"items\":[{\"tmplCode\":\"2\",\"title\":\"体测模板1\",\"type\":2,\"push_type\":2,\"push_cycle\":3,\"push_cycle_unit\":1,\"push_times\":\"4\",\"push_begin\":\"2016-06-06\",\"push_end\":\"\",\"questions\":[{\"code\":\"4\",\"options\":[{\"code\":7,\"des\":\"早餐前血糖\"}],\"index\":1,\"title\":\"血糖测量\",\"type\":3,\"unitName\":\"kg\"},{\"code\":\"5\",\"options\":[{\"code\":8,\"des\":\"收缩压\"},{\"code\":9,\"des\":\"舒张压\"}],\"index\":2,\"title\":\"血压测量\",\"type\":3,\"unitName\":\"kg\"}]}]}]','1970-01-01 00:00:00'); /*Table structure for table `wlyy_followup_template_question` */ DROP TABLE IF EXISTS `wlyy_followup_template_question`; CREATE TABLE `wlyy_followup_template_question` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '问题标识', `template` varchar(50) NOT NULL COMMENT '模板标识', `title` varchar(200) NOT NULL COMMENT '问题标题', `type` int(11) NOT NULL COMMENT '问题类型:1单选,2多选,3问答', `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围', `options` varchar(3000) DEFAULT NULL COMMENT '问题选项jsonarray串,格式为:[{code:"",des:""}]', PRIMARY KEY (`id`), KEY `idx_wlyy_followup_wj_template_item_1` (`template`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='随访模板问题表'; /*Data for the table `wlyy_followup_template_question` */ insert into `wlyy_followup_template_question`(`id`,`code`,`template`,`title`,`type`,`tc_index`,`options`) values (1,'1','1','问题1:单选',1,1,'[{code:1,des:\"选项1\"},{code:2,des:\"选项2\"},{code:3,des:\"选项3\"}]'),(2,'2','1','问题2:多选',2,2,'[{code:4,des:\"选项4\"},{code:5,des:\"选项5\"},{code:6,des:\"选项6\"}]'),(3,'3','1','问题3:今天星期几',3,3,NULL),(4,'4','2','血糖测量',3,1,'[{code:7,des:\"早餐前血糖\"}]'),(5,'5','2','血压测量',3,2,'[{code:8,des:\"收缩压\"},{code:9,des:\"舒张压\"}]'); /*Table structure for table `wlyy_followup_template_question_option` */ DROP TABLE IF EXISTS `wlyy_followup_template_question_option`; CREATE TABLE `wlyy_followup_template_question_option` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `template` varchar(50) NOT NULL COMMENT '模板标识', `question` varchar(50) NOT NULL COMMENT '问题标识', `des` varchar(500) NOT NULL COMMENT '选项描述', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='随访模板问题选项表'; /*Data for the table `wlyy_followup_template_question_option` */ insert into `wlyy_followup_template_question_option`(`id`,`template`,`question`,`des`) values (1,'1','1','选项1'),(2,'1','1','选项2'),(3,'1','1','选项3'),(4,'1','2','选项4'),(5,'1','2','选项5'),(6,'1','2','选项6'),(7,'2','4','早餐前血糖'),(8,'2','5','收缩压'),(9,'2','5','舒张压'); /*Table structure for table `wlyy_friends_log` */ DROP TABLE IF EXISTS `wlyy_friends_log`; CREATE TABLE `wlyy_friends_log` ( `n_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `applicant` varchar(50) NOT NULL COMMENT '申请人标识', `target` varchar(50) NOT NULL COMMENT '申请对象标识', `state` int(11) NOT NULL COMMENT '状态:0待处理,1同意,-1拒绝', `platform` int(11) NOT NULL COMMENT '消息平台:1微信端,2医生端', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '申请时间', PRIMARY KEY (`n_id`), KEY `idx_wlyy_friends_log_1` (`target`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='添加好友记录'; /*Data for the table `wlyy_friends_log` */ /*Table structure for table `wlyy_group_chat_log` */ DROP TABLE IF EXISTS `wlyy_group_chat_log`; CREATE TABLE `wlyy_group_chat_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `msgid` varchar(50) NOT NULL COMMENT '消息ID', `group` varchar(50) NOT NULL COMMENT '群组标识', `receiver` varchar(50) NOT NULL COMMENT '接收人', `state` int(11) DEFAULT NULL COMMENT '消息状态(1已发送,2已接收,3已读)', `platform` int(11) DEFAULT NULL COMMENT '消息平台,1微信,2医生APP', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='群聊天记录状态表'; /*Data for the table `wlyy_group_chat_log` */ /*Table structure for table `wlyy_health_edu_article` */ DROP TABLE IF EXISTS `wlyy_health_edu_article`; CREATE TABLE `wlyy_health_edu_article` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '文章标识', `title` varchar(200) DEFAULT NULL COMMENT '标题', `url` varchar(300) DEFAULT NULL COMMENT '访问URL', `content` varchar(300) DEFAULT NULL COMMENT '文章内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_health_edu_article_1` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='健康教育文章'; /*Data for the table `wlyy_health_edu_article` */ insert into `wlyy_health_edu_article`(`id`,`code`,`title`,`url`,`content`,`czrq`) values (1,'1','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来','2016-05-14 09:17:33'),(2,'2','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。','2016-05-14 09:17:48'),(3,'3','30个省市购房难度排名:北京最难','http://news.sohu.com/20160513/n449180597.shtml','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。','2016-05-14 09:19:22'); /*Table structure for table `wlyy_health_edu_article_patient` */ DROP TABLE IF EXISTS `wlyy_health_edu_article_patient`; CREATE TABLE `wlyy_health_edu_article_patient` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `article` varchar(50) DEFAULT NULL COMMENT '文章标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `doctor_name` varchar(50) DEFAULT NULL COMMENT '医生姓名', `url` varchar(300) DEFAULT NULL COMMENT '文章访问URL', `title` varchar(200) DEFAULT NULL COMMENT '文章标识', `content` varchar(300) DEFAULT NULL COMMENT '文章简介', `is_read` int(11) DEFAULT '1' COMMENT '是否已读:0已读,1未读', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_wlyy_health_edu_article_patient_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康教育文章'; /*Data for the table `wlyy_health_edu_article_patient` */ insert into `wlyy_health_edu_article_patient`(`id`,`patient`,`article`,`doctor`,`doctor_name`,`url`,`title`,`content`,`is_read`,`czrq`) values (1,'U20160322000001','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','文章1文章1文章1文章1文章1文章1文章1文章1文章1文章1文章1',0,'2016-05-13 02:55:21'),(2,'U20160322000001','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','文章2文章2文章2文章2文章2文章2文章2',1,'2016-05-13 02:55:25'),(3,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','文章3文章3文章3文章3文章3文章3文章3文章3',1,'2016-05-13 02:55:33'),(4,'U20160322000002','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','文章1文章1文章1文章1文章1文章1文章1文章1文章1文章1文章1',1,'2016-05-17 04:35:01'),(5,'U20160322000002','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','文章2文章2文章2文章2文章2文章2文章2',1,'2016-05-13 02:55:58'),(6,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','文章3文章3文章3文章3文章3文章3文章3文章3',1,'2016-05-17 08:37:40'),(7,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-17 08:32:17'),(8,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-16 03:22:25'),(9,'U20160322000004','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-16 03:22:25'),(10,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-17 08:32:13'),(11,'U20160322000003','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-16 03:22:49'),(12,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-17 04:35:07'),(13,'U20160322000002','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-17 08:32:09'),(14,'U20160322000003','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-16 03:26:01'),(15,'U20160322000003','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-16 03:26:01'),(16,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-16 03:29:01'),(17,'U20160322000002','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-16 03:29:01'),(18,'U20160322000002','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-16 03:29:01'),(19,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-17 08:32:07'),(20,'U20160322000004','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-16 03:29:01'),(21,'U20160322000004','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-16 03:29:01'),(22,'U20160322000001','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-18 06:21:35'),(23,'U20160322000001','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-18 06:30:02'),(24,'U20160322000002','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-18 06:30:02'),(25,'U20160322000003','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-18 06:30:02'),(26,'U20160322000004','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-18 06:30:02'),(27,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-18 12:07:27'),(28,'U20160322000004','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-19 02:34:43'),(29,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-20 01:47:27'),(30,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-20 01:47:27'),(31,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-20 01:47:28'),(32,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-20 01:51:27'),(33,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-21 03:22:01'),(34,'U20160322000003','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-21 03:25:19'),(35,'U20160322000002','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-21 03:25:33'),(36,'U20160322000004','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-21 03:25:33'),(37,'U20160322000001','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-25 02:59:27'),(38,'U20160322000001','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-25 02:59:27'),(39,'U20160322000002','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-25 03:16:21'),(40,'U20160322000002','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-25 03:16:39'),(41,'U20160322000003','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-25 03:16:39'),(42,'U20160322000004','1','D20160322000002','聂青\r\n','http://news.sina.com.cn/o/2016-05-12/doc-ifxsehvu8800022.shtml','美国“黑寡妇”蜘蛛入侵伊拉克 农夫向政府求救','我们都知道,冠心病是心血管疾病中比较常见的一种,常常发生于中老年人群,当然随着近年来生活水平的提高,人们生活结构方式的改变,冠心病疾病已经慢慢年轻化,很多年轻人也渐渐加入了冠心病这个队伍中来',0,'2016-05-25 03:16:39'),(43,'U20160322000004','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-25 10:59:03'),(44,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-25 11:03:24'),(45,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-25 11:06:53'),(46,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-27 08:30:37'),(47,'U20160322000002','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-27 08:30:58'),(48,'U20160322000002','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-27 08:30:58'),(49,'U20160322000003','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-27 08:30:58'),(50,'U20160322000003','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-27 08:30:58'),(51,'U20160322000003','3','D20160322000002','聂青\r\n','http://news.sohu.com/20160513/n449180597.shtml','30个省市购房难度排名:北京最难','低血糖常见于糖尿病患者治疗过程中,是最常见的不良反应,它会直接导致心脑血管意外,以致危及生命。国外学者曾指出:“一次严重的医源性低血糖或由此诱发的心血管事件可能会抵消一生维持血糖在正常范围所带来的益处”。根据国际标准,只要血糖值≤3.9mmol/L就应按低血糖处理。',0,'2016-05-27 08:31:26'),(52,'U20160322000003','2','D20160322000002','聂青\r\n','http://cnews.chinadaily.com.cn/2016-05/13/content_25249255.htm','美国考古惊现神秘海怪 1.6亿年前神秘生物曝光','诺如病毒(Norovirus)是一组杯状病毒属病毒,1968年在美国诺瓦克市被分离发现。诺如病毒主要存活于受污染的水源,容易造成人类感染性腹泻。',0,'2016-05-27 08:31:26'); /*Table structure for table `wlyy_health_news` */ DROP TABLE IF EXISTS `wlyy_health_news`; CREATE TABLE `wlyy_health_news` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `photo` varchar(50) DEFAULT NULL COMMENT '资讯图片', `title` varchar(150) NOT NULL COMMENT '标题', `summary` varchar(300) NOT NULL COMMENT '概述', `url` varchar(300) NOT NULL COMMENT '查看URL', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康资讯'; /*Data for the table `wlyy_health_news` */ /*Table structure for table `wlyy_inspect` */ DROP TABLE IF EXISTS `wlyy_inspect`; CREATE TABLE `wlyy_inspect` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '检验检查标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='患者检查检验记录表'; /*Data for the table `wlyy_inspect` */ insert into `wlyy_inspect`(`id`,`code`,`doctor`,`patient`,`czrq`,`del`) values (1,'INS2016032600000001','20160322000001','20160322000001','2016-03-26 16:16:28','1'); /*Table structure for table `wlyy_inspect_info` */ DROP TABLE IF EXISTS `wlyy_inspect_info`; CREATE TABLE `wlyy_inspect_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '检查项标识', `inspect` varchar(50) DEFAULT NULL COMMENT '检查检验标识', `kind` varchar(100) DEFAULT NULL COMMENT '类别', `name` varchar(100) DEFAULT NULL COMMENT '名称', `times` int(11) DEFAULT NULL COMMENT '次数', `unit` varchar(100) DEFAULT NULL COMMENT '单位', `part` varchar(100) DEFAULT NULL COMMENT '检查部位', `specimen` varchar(100) DEFAULT NULL COMMENT '检验标本', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '0' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_swlyy_inspect_info_1` (`inspect`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='患者检查检验细项表'; /*Data for the table `wlyy_inspect_info` */ insert into `wlyy_inspect_info`(`id`,`code`,`inspect`,`kind`,`name`,`times`,`unit`,`part`,`specimen`,`czrq`,`del`) values (1,'INSI2016032600000001','INS2016032600000001','”1111”','”1111”',1,'”1111”','”1111”','”1111”','2016-03-26 16:16:28','1'),(2,'INSI2016032600000002','INS2016032600000001','”2222”','”2222”',1,'”2222”','”2222”','”2222”','2016-03-26 16:16:28','1'); /*Table structure for table `wlyy_intervene` */ DROP TABLE IF EXISTS `wlyy_intervene`; CREATE TABLE `wlyy_intervene` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务有关主键', `code` varchar(50) NOT NULL COMMENT '干预标识', `doctor` varchar(50) NOT NULL COMMENT '医生标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `title` varchar(20) NOT NULL COMMENT '干预标题', `cycle` int(11) NOT NULL COMMENT '执行周期(1每周,2每半个月,3每个月)', `begin_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '干预开始时间', `end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '干预结束时间', `bg` varchar(300) DEFAULT NULL COMMENT '血糖计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])', `bg_des` varchar(200) DEFAULT NULL COMMENT '血糖计划说明文字', `nibp` varchar(300) DEFAULT NULL COMMENT '血压计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])', `nibp_des` varchar(200) DEFAULT NULL COMMENT '血压计划文字说明', `weight` varchar(300) DEFAULT NULL COMMENT '体重计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])', `weight_des` varchar(200) DEFAULT NULL COMMENT '体重计划文字说明', `waistline` varchar(300) DEFAULT NULL COMMENT '腰围计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])', `waistline_des` varchar(200) DEFAULT NULL COMMENT '腰围计划文字说明', `sport` varchar(300) DEFAULT NULL COMMENT '运动计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])', `sport_des` varchar(200) DEFAULT NULL COMMENT '运动计划文字说明', `medicine` varchar(300) DEFAULT NULL COMMENT '用药计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])', `medicine_des` varchar(200) DEFAULT NULL COMMENT '用药计划文字说明', `diet` varchar(300) DEFAULT NULL COMMENT '饮食建议', `suggest` varchar(500) DEFAULT NULL COMMENT '健康指导建议', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建日期', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_intervene_1` (`doctor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='干预记录表'; /*Data for the table `wlyy_intervene` */ /*Table structure for table `wlyy_medical_edu_article` */ DROP TABLE IF EXISTS `wlyy_medical_edu_article`; CREATE TABLE `wlyy_medical_edu_article` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `code` varchar(50) NOT NULL COMMENT '文章标识', `category` varchar(50) DEFAULT NULL COMMENT '医学教育分类标识', `title` varchar(100) DEFAULT NULL COMMENT '文章标题', `logo` varchar(100) DEFAULT NULL COMMENT '文章LOGO', `url` varchar(100) DEFAULT NULL COMMENT '文章HTTP地址', `content` text COMMENT '文章内容', `oper` varchar(50) DEFAULT NULL COMMENT '操作员', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_medical_edu_article_1` (`category`), KEY `idx_wlyy_medical_edu_article_2` (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医学教育文章信息表'; /*Data for the table `wlyy_medical_edu_article` */ /*Table structure for table `wlyy_medical_edu_article_read` */ DROP TABLE IF EXISTS `wlyy_medical_edu_article_read`; CREATE TABLE `wlyy_medical_edu_article_read` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `article` varchar(50) DEFAULT NULL COMMENT '文章标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '查看时间', PRIMARY KEY (`id`), KEY `idx_wlyy_medical_edu_article_read_1` (`article`), KEY `idx_wlyy_medical_edu_article_read_2` (`doctor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*Data for the table `wlyy_medical_edu_article_read` */ /*Table structure for table `wlyy_medical_edu_category` */ DROP TABLE IF EXISTS `wlyy_medical_edu_category`; CREATE TABLE `wlyy_medical_edu_category` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '分类标识', `name` varchar(50) DEFAULT NULL COMMENT '分类名称', `default` int(11) DEFAULT '0' COMMENT '是否为推荐类型,1是,0否', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT NULL COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医学教育分类表'; /*Data for the table `wlyy_medical_edu_category` */ /*Table structure for table `wlyy_medical_edu_setting` */ DROP TABLE IF EXISTS `wlyy_medical_edu_setting`; CREATE TABLE `wlyy_medical_edu_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `med_edu` varchar(50) DEFAULT NULL COMMENT '医学教育分类标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '设置时间', PRIMARY KEY (`id`), KEY `idx_wlyy_medical_edu_setting_1` (`med_edu`), KEY `idx_wlyy_medical_edu_setting_2` (`doctor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医学教育设置表'; /*Data for the table `wlyy_medical_edu_setting` */ /*Table structure for table `wlyy_message` */ DROP TABLE IF EXISTS `wlyy_message`; CREATE TABLE `wlyy_message` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `code` varchar(50) NOT NULL COMMENT '消息标识', `receiver` varchar(50) NOT NULL COMMENT '消息接收人(微信平台为患者标识,医生APP平台为医生标识)', `sender` varchar(50) DEFAULT NULL COMMENT '消息发送人标识', `data` varchar(100) DEFAULT NULL COMMENT '群组标识\\网络咨询标识\\问卷随访标识', `title` varchar(50) NOT NULL COMMENT '消息标题', `content` varchar(200) NOT NULL COMMENT '消息内容', `type` int(11) DEFAULT NULL COMMENT '消息类型(101患者申请取消签约、102患者同意取消签约、103患者拒绝取消签约、104患者填写了血糖记录、105患者填写了血压记录、106患者填写了体重记录、107患者填写了腰围记录、108患者填写了运动记录、109患者填写了用药记录、110患者填写了饮食记录、111患者提交了问卷随访、112请求添加好友消息、113入群消息、114群解散消息、115踢出群消息、116新的网络咨询、117网络咨询追问、201医生拒绝签约、202医生同意签约、203医生申请取消签约、204医生同意取消签约、205医生拒绝取消签约、206新的问卷随访、207新的健康干预、208请求添加好友消息、209入群消息、210群解散消息、211踢出群消息、212聊天消息提醒、213群聊天消息、214医生回复了网络咨询、215请求添加为家人、216电话随访,217、上门随访)', `platform` int(11) DEFAULT NULL COMMENT '消息平台,1微信端/患者端,2医生APP端', `state` int(11) DEFAULT '0' COMMENT '消息状态,1已发送,0待发送,-1发送失败', `has_read` int(11) DEFAULT '1' COMMENT '查看状态,1未读,0已读', `readonly` int(11) DEFAULT NULL COMMENT '只读消息:1否,0是', `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '消息时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_message_uid` (`receiver`) ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COMMENT='消息表'; /*Data for the table `wlyy_message` */ insert into `wlyy_message`(`id`,`code`,`receiver`,`sender`,`data`,`title`,`content`,`type`,`platform`,`state`,`has_read`,`readonly`,`czrq`,`del`) values (1,'MSG2016032300000003','20160322000001','20160322000001','FUP2016032300000003','系统消息','您有新的问卷随访!',206,1,0,1,1,NULL,'1'),(2,'b16905e679904ee2a6c2d6eb55de9812','D20160322000002','U20160322000001','37199c9f15604160ad8abe041c4c22c8','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(3,'7082abe8a3f1479ea7ad6a516939689c','D20160322000002','U20160322000001','78c979c18b9e42748f6237ef381e4002','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(4,'f0c054cdd38a432d8f9ee898c6f8e618','D20160322000002','U20160322000001','456d48323a2641d08fd97a76c9ae0d95','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(5,'91563a5ada974445879d8f399263f1b0','D20160322000002','U20160322000001','ab6b30ed1b6c4c61b8e9a74835a6a539','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(6,'0f56b89ad40f4ce4807ad83a52e527e2','D20160322000002','U20160322000001','0a11e4000a6949d2b8b8486499592b2d','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(7,'a5ffae395dcb40c08827ba48b9d18a29','D20160322000002','U20160322000001','0a11e4000a6949d2b8b8486499592b2d','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(8,'60450c0353774a84b6563c3f85794845','D20160322000002','U20160322000001','0a11e4000a6949d2b8b8486499592b2d','图文咨询','您有新的图文咨询消息',116,1,0,0,0,NULL,'1'),(9,'7df318b4e75e4f1f95d280da250eb03c','U20160322000001','D20160322000002','0a11e4000a6949d2b8b8486499592b2d','图文咨询','聂青\r\n回复了您的咨询',214,1,0,0,0,NULL,'1'),(10,'0b60a9a273b140d1999176af2222fe51','D20160322000002','U20160322000001','0fcb8905d7dd47c7a5bdd5b619e39aca','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(11,'e93f369c3e4541f9afce6051f2eb599d','D20160322000002','U20160322000001','2d39e6d9393a450e999a023cbe02f460','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(12,'b7e0672166ac4b63a1fc0ab5647358bc','D20160322000002','U20160322000001','d125adf7d52d495da1251d2768634747','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(13,'8dc8081c88f54750811de1f4f0dce708','D20160322000002','U20160322000001','bc60196007c748d39fc905bca196760b','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(14,'490cfb8a55ff4794859acb2928508d6f','D20160322000002','U20160322000001','26a57cea0e424a9482e6f2bc7c1612f1','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(15,'88a148f41adb4a84be80fe2e6e976987','D20160322000002','U20160322000001','d51b824cad094742ac913a1894c2e3fe','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(16,'90a19a86141d4e7f9819eb6001cab7ab','D20160322000002','U20160322000001','664f4e4bd25d49e38d016976c75cce7d','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(17,'6884f2fa03e5411992609590abd7daa9','D20160322000002','U20160322000001','a2fb7952d22040efba7fbf407a9058b3','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(18,'bb2bbc747d844801a6136f8ec5cdbff4','D20160322000002','U20160322000001','3078fbecb4b445d7b7cbd20ee78620ca','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(19,'37155a9eaa49463aa4a52ffc90c3ab41','D20160322000002','U20160322000001','61eab1dda828412c88982caca0001d1d','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(20,'d8ccd37d8b7c41db9cd08e95b26d44c9','D20160322000002','U20160322000001','65170fff4c6e45f8b564c4a07a50f59b','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(21,'09c35fc6ca954621850dc5d12b07a5b6','D20160322000002','U20160322000001','c8f1c88b65e7476bbf71de300b47e97c','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(22,'1c52c1ebb4a74e0cbfe5b36d4286503a','D20160322000002','U20160322000001','c5348f47058a42b097256aa5d9c81f02','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(23,'509c8dc4d90043b4bfadb9c727648adf','D20160322000002','U20160322000001','72e41862bf974f2c99f2589f25c3f552','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(24,'15a9deff8f0643219e42e3b62dec9ea4','D20160322000002','U20160322000001','131fcb311d2e449d8871c200056c8785','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(25,'07d489b691124e41b951ce17ee4edc31','D20160322000002','U20160322000001','d7f0c000ad9d4c568580c55badda4bb7','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(26,'46c1f438073c44a7997fc8101113cd5a','D20160322000002','U20160322000001','6c3d723395d741e18d5aec0314870e1c','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(27,'9a7b09c66a844e8badb480d6620215a3','D20160322000002','U20160322000001','5a6949f8d060488782c6d657586f0ca6','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(28,'940fbb9f36d9408f88ed864338e52212','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(29,'d784dfc9e13a4824bc65c3b4ca679c28','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(30,'89f4cc98a1cb4a5b8535642a7986c321','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(31,'877a2534233b40849804024ebdd9f929','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(32,'d85346eea236463196aabc01f0eb2d5b','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(33,'f5af14f0b61d45f29ab4ead812ef84ce','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(34,'d58cd999562b4c5e8c9b4c0b02adbb0c','D20160322000002','U20160322000001','848bb7f0fcb946bba8af3b39e4ae53d5','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(35,'e54e4ce42f944034a3e77dd6496912ba','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(36,'89d5b3cd60864edfac97b408a96488ac','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(37,'0b846b5513344428aff4b36b7f745264','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(38,'abc6833fff92475b83aa8930fb428372','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(39,'62af310907be44e9a01798253e2ab2d0','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(40,'717a57a753344c2faa23208a4217ea16','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'),(41,'b45e2aa256604a8a9407ac1d128cfc40','D20160322000002','U20160322000001','eaf5f669c720403bb35966f6ae1d3680','三师咨询','您有新的三师咨询消息',116,1,0,0,0,NULL,'1'); /*Table structure for table `wlyy_orders` */ DROP TABLE IF EXISTS `wlyy_orders`; CREATE TABLE `wlyy_orders` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '订单标识', `pay_way` varchar(30) DEFAULT NULL COMMENT '支付方式 1 预交金 2支付宝 3微信 4其他', `status` int(2) NOT NULL COMMENT '支付状态 0未支付 1已支付 2已配药 3已复审 4已发货 5已接收 -1订单取消', `store` varchar(30) DEFAULT NULL COMMENT '店铺名称', `payable` varchar(20) DEFAULT NULL COMMENT '应付款', `czrq` timestamp NULL DEFAULT NULL COMMENT '下单时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `prescription` varchar(50) NOT NULL COMMENT '处方', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COMMENT='订单表'; /*Data for the table `wlyy_orders` */ insert into `wlyy_orders`(`id`,`code`,`pay_way`,`status`,`store`,`payable`,`czrq`,`del`,`patient`,`prescription`) values (1,'20160322000004','1',1,'厦门','24','2016-03-28 20:11:23','1','20160322000001',''),(3,'ORD2016033000000003','1',2,'HOS2016032600000001','36.6','2016-03-30 20:19:35','1','20160322000001','PRE2016032600000001'),(7,'ORD2016033100000002','1',4,'HOS2016032600000001','36.6','2016-03-31 18:06:48','1','20160322000001','PRE2016033100000002'),(8,'ORD2016033100000003','1',4,'HOS2016032600000001','36.6','2016-04-01 00:35:56','1','20160322000001','PRE2016040100000003'),(9,'ORD2016033100000004','1',5,'HOS2016032600000001','36.6','2016-04-01 11:24:29','1','20160322000001','PRE2016040100000004'),(15,'ORD2016040600000006','1',5,'HOS2016032600000001','36.6','2016-04-06 17:05:57','1','20160322000001','PRE2016040100000002'),(19,'ORD2016040700000001','1',3,'HOS2016032600000001','36.6','2016-04-07 17:11:41','1','20160322000001','PRE2016040100000002'),(20,'ORD2016040700000002','1',3,'HOS2016032600000001','36.6','2016-04-07 19:09:31','1','20160322000001','PRE2016040100000003'),(21,'ORD2016040700000003','1',5,'HOS2016032600000001','36.6','2016-04-07 19:09:39','1','20160322000001','PRE2016040100000003'),(24,'ORD2016040700000006','1',5,'HOS2016032600000001','36.6','2016-04-07 19:16:59','1','20160322000001','PRE2016040100000003'),(25,'ORD2016040700000007','1',2,'HOS2016032600000001','36.6','2016-04-07 19:17:33','1','20160322000001','PRE2016040100000002'),(26,'ORD2016040700000008','1',1,'HOS2016032600000001','36.6','2016-04-07 19:33:31','1','20160322000001','PRE2016040100000002'),(31,'ORD2016040700000015','1',0,'HOS2016032600000001','36.6','2016-04-07 22:59:31','1','20160322000001','PRE2016040100000003'),(32,'ORD2016040800000001','1',0,'HOS2016032600000001','36.6','2016-04-12 13:45:57','1','20160322000001','PRE2016040100000003'),(33,'ORD2016040800000002','1',0,'HOS2016032600000001','36.6','2016-04-12 14:07:26','1','20160322000001','PRE2016040100000003'),(34,'ORD2016040800000003','1',0,'HOS2016032600000001','36.6','2016-04-12 14:09:35','1','20160322000001','PRE2016040100000003'),(35,'ORD2016040800000004','1',0,'HOS2016032600000001','36.6','2016-04-12 14:09:37','1','20160322000001','PRE2016040100000003'),(36,'ORD2016040800000005','1',0,'HOS2016032600000001','32.3','2016-04-12 14:11:45','1','20160322000001','PRE2016040100000003'),(37,'ORD2016040800000006','1',0,'HOS2016032600000001','32.3','2016-04-12 14:11:47','1','20160322000001','PRE2016040100000003'),(38,'ORD2016040800000007','1',0,'HOS2016032600000001','32.3','2016-04-12 14:13:20','1','20160322000001','PRE2016040100000003'),(39,'ORD2016040800000008','1',0,'HOS2016032600000001','32.3','2016-04-12 14:17:56','1','20160322000001','PRE2016040100000003'),(40,'ORD2016040800000009','1',1,'HOS2016032600000001','32.3','2016-04-12 14:20:03','1','20160322000001','PRE2016040100000003'),(41,'ORD2016040800000010','1',1,'HOS2016032600000001','32.3','2016-04-12 14:20:31','1','20160322000001','PRE2016040100000003'),(42,'ORD2016040800000011','1',1,'HOS2016032600000001','32.3','2016-04-12 14:22:53','1','20160322000001','PRE2016040100000003'); /*Table structure for table `wlyy_orders_detail` */ DROP TABLE IF EXISTS `wlyy_orders_detail`; CREATE TABLE `wlyy_orders_detail` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `orders` varchar(50) NOT NULL COMMENT '订单标识', `medicines` varchar(50) NOT NULL COMMENT '商品名称', `number` int(10) DEFAULT NULL COMMENT '数量', `price` varchar(20) DEFAULT NULL COMMENT '单价', `czrq` timestamp NULL DEFAULT NULL COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4; /*Data for the table `wlyy_orders_detail` */ insert into `wlyy_orders_detail`(`id`,`orders`,`medicines`,`number`,`price`,`czrq`,`del`) values (2,'ORD2016033000000003','[江中]复方草珊瑚含片',3,'12.2','2016-03-30 20:19:35','1'),(6,'ORD2016033100000002','[江中]复方草珊瑚含片',3,'12.2','2016-03-31 18:06:48','1'),(7,'ORD2016033100000003','[江中]复方草珊瑚含片',3,'12.2','2016-04-01 00:35:56','1'),(8,'ORD2016033100000004','[江中]复方草珊瑚含片',3,'12.2','2016-04-01 11:24:29','1'),(25,'ORD2016040600000001','[江中]复方草珊瑚含片',3,'12.2','2016-04-06 14:14:15','1'),(26,'ORD2016040600000002','[江中]复方草珊瑚含片',3,'12.2','2016-04-06 16:22:58','1'),(28,'ORD2016040600000004','[江中]复方草珊瑚含片',3,'12.2','2016-04-06 16:49:34','1'),(29,'ORD2016040600000005','[江中]复方草珊瑚含片',3,'12.2','2016-04-06 16:56:36','1'),(30,'ORD2016040600000006','[江中]复方草珊瑚含片',3,'12.2','2016-04-06 16:58:48','1'),(31,'ORD2016040600000006','[江中]复方草珊瑚含片',3,'12.2','2016-04-06 17:05:57','1'),(32,'ORD2016040600000007','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 13:51:44','1'),(33,'ORD2016040600000008','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 16:03:57','1'),(34,'ORD2016040600000009','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 16:04:07','1'),(35,'ORD2016040700000001','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 17:11:41','1'),(36,'ORD2016040700000002','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:09:31','1'),(37,'ORD2016040700000003','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:09:39','1'),(38,'ORD2016040700000004','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:13:34','1'),(39,'ORD2016040700000005','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:16:14','1'),(40,'ORD2016040700000006','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:16:59','1'),(41,'ORD2016040700000007','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:17:33','1'),(42,'ORD2016040700000008','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 19:33:31','1'),(43,'ORD2016040700000009','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 20:12:34','1'),(45,'ORD2016040700000011','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 21:45:14','1'),(46,'ORD2016040700000012','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 21:45:38','1'),(47,'ORD2016040700000013','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 21:45:42','1'),(49,'ORD2016040700000015','[江中]复方草珊瑚含片',3,'12.2','2016-04-07 22:59:31','1'),(50,'ORD2016040800000001','[江中]复方草珊瑚含片',3,'12.2','2016-04-12 13:45:57','1'),(51,'ORD2016040800000002','[江中]复方草珊瑚含片',3,'12.2','2016-04-12 14:07:26','1'),(52,'ORD2016040800000003','[江中]复方草珊瑚含片',3,'12.2','2016-04-12 14:09:35','1'),(53,'ORD2016040800000004','[江中]复方草珊瑚含片',3,'12.2','2016-04-12 14:09:37','1'),(54,'ORD2016040800000005','卡托普利片',3,'12.2','2016-04-12 14:11:45','1'),(55,'ORD2016040800000006','卡托普利片',3,'12.2','2016-04-12 14:11:47','1'),(56,'ORD2016040800000007','卡托普利片',3,'12.2','2016-04-12 14:13:20','1'),(57,'ORD2016040800000008','卡托普利片',3,'12.2','2016-04-12 14:17:56','1'),(58,'ORD2016040800000009','卡托普利片',3,'12.2','2016-04-12 14:20:03','1'),(59,'ORD2016040800000010','卡托普利片',3,'12.2','2016-04-12 14:20:31','1'),(60,'ORD2016040800000011','卡托普利片',3,'12.2','2016-04-12 14:22:53','1'); /*Table structure for table `wlyy_patient` */ DROP TABLE IF EXISTS `wlyy_patient`; CREATE TABLE `wlyy_patient` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '业务主键', `idcard` varchar(20) NOT NULL COMMENT '身份证号', `password` varchar(50) NOT NULL COMMENT '登录密码', `salt` varchar(50) DEFAULT NULL, `name` varchar(50) DEFAULT NULL COMMENT '姓名', `birthday` date DEFAULT NULL COMMENT '生日', `sex` int(11) DEFAULT NULL COMMENT '性别,1男,2女', `mobile` varchar(20) DEFAULT NULL COMMENT '手机号', `phone` varchar(20) DEFAULT NULL COMMENT '联系电话', `ssc` varchar(50) DEFAULT NULL COMMENT '社保卡号', `photo` varchar(100) DEFAULT NULL COMMENT '头像http地址', `province` varchar(50) DEFAULT NULL COMMENT '省编码', `city` varchar(50) DEFAULT NULL COMMENT '市编码', `town` varchar(50) DEFAULT NULL COMMENT '区县编码', `street` varchar(10) DEFAULT NULL COMMENT '街道', `province_name` varchar(50) DEFAULT NULL COMMENT '省名称', `city_name` varchar(50) DEFAULT NULL COMMENT '城市名称', `town_name` varchar(50) DEFAULT NULL COMMENT '区县名称', `address` varchar(100) DEFAULT NULL COMMENT '详细地址', `disease` int(11) DEFAULT '0' COMMENT '疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病', `disease_condition` int(11) DEFAULT NULL COMMENT '病情:0绿标,1黄标,2红标', `points` int(11) DEFAULT NULL COMMENT '总积分', `record_amount` int(11) DEFAULT NULL COMMENT '病历总数', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `openid` varchar(50) DEFAULT NULL COMMENT '微信编号', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_patient_1` (`idcard`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COMMENT='患者信息表'; /*Data for the table `wlyy_patient` */ insert into `wlyy_patient`(`id`,`code`,`idcard`,`password`,`salt`,`name`,`birthday`,`sex`,`mobile`,`phone`,`ssc`,`photo`,`province`,`city`,`town`,`street`,`province_name`,`city_name`,`town_name`,`address`,`disease`,`disease_condition`,`points`,`record_amount`,`czrq`,`openid`) values (1,'U20160322000001','1','6e335b853b1ed99622d2cbdaed37d3424f36f6fe','e17354680a03a774','李晓毅','1982-06-11',2,'12345678901','0592-5982816\r\n','350204163650','2016/06/01/20160601140418_38.jpg','1','01','0101',NULL,'福建省','湖里区','新店镇','禾祥西路185号\r\n',1,0,0,3,'2016-06-06 03:42:19',''),(4,'U20160322000004','2','6e335b853b1ed99622d2cbdaed37d3424f36f6fe','e17354680a03a774','赖小娜','1989-10-25',2,'18256233705','0592-5635633','D87408301','http://172.19.103.77/res/images/2016/06/02/20160602094450_253.jpg',NULL,NULL,NULL,NULL,'福建省','厦门市','湖里区','殿前街道120号',2,2,0,0,'2016-06-02 02:45:16',NULL),(9,'U20160322000002','33','838448e686e2a71738065b8fb6d67efce05a4366','9c4baa5881338355','黄晓明','1965-07-04',1,'15859242576','0592-5982112','D87408301','2016/06/01/20160601102451_820.jpg',NULL,NULL,NULL,'航空商务广场','福建省','厦门市','湖里区','健康之路9层',0,0,0,0,'2016-06-01 09:52:39',''),(38,'d32a338511ac475c91861b2dc99cef07','350600198906041511','feeb692b9d44de3b120ed5e76f1dad8a2d8c1b95','d024f6224fb506a8',NULL,NULL,1,'18259633296',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,'2016-06-01 09:39:56',''); /*Table structure for table `wlyy_patient_course` */ DROP TABLE IF EXISTS `wlyy_patient_course`; CREATE TABLE `wlyy_patient_course` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '历程标识', `user` varchar(50) NOT NULL COMMENT '患者标识', `title` varchar(100) NOT NULL COMMENT '健康历程标题', `content` varchar(500) DEFAULT NULL COMMENT '内容', `table` varchar(50) NOT NULL COMMENT '对应的表', `tid` varchar(20) NOT NULL COMMENT '对应的表的code字段值', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_course_1` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康历程表'; /*Data for the table `wlyy_patient_course` */ /*Table structure for table `wlyy_patient_device` */ DROP TABLE IF EXISTS `wlyy_patient_device`; CREATE TABLE `wlyy_patient_device` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关键', `code` varchar(50) NOT NULL COMMENT '设备标识', `user` varchar(50) NOT NULL COMMENT '患者标识', `category` varchar(50) DEFAULT NULL COMMENT '设备类型标识', `category_name` varchar(100) DEFAULT NULL COMMENT '设备类型名称', `device_name` varchar(50) DEFAULT NULL COMMENT '设备名称', `sn` varchar(50) NOT NULL COMMENT '设备SN码', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_device_1` (`user`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COMMENT='患者设备表'; /*Data for the table `wlyy_patient_device` */ insert into `wlyy_patient_device`(`id`,`code`,`user`,`category`,`category_name`,`device_name`,`sn`,`czrq`,`del`) values (1,'1','U20160322000001','1','血糖仪','血糖仪01','sn11111','2016-05-18 02:02:15','0'),(2,'2','U20160322000001','1','血糖仪','血糖仪02128','sn222299128','2016-05-18 02:37:48','0'),(3,'3','U20160322000001','2','血压仪','血压仪0011','sn3333333341','2016-05-18 02:37:43','0'),(4,'5','U20160322000001','1','血糖仪','device031','6543211','2016-05-18 02:37:40','0'),(5,'7d9826ed56f4403093b0efca02c5308f','U20160322000001','1',NULL,'血糖仪5','sn555556777','2016-05-18 02:37:37','0'),(6,'4b718f44776a47c1a9180989a0c01f1f','U20160322000001','2',NULL,'血压仪6','sn66666','2016-05-17 09:36:07','0'),(7,'008a79bbec354a7f8bee233cbe0a7e6a','U20160322000001','2',NULL,'血压计123','SN12312323','2016-05-18 02:37:34','0'),(8,'cf48f8568c8a4bb79cb776b050f71ac0','U20160322000001','2',NULL,'血压计129','sn777777779','2016-05-18 02:09:37','0'),(9,'44e331a6e6ee4488b3b48ff87d77470d','U20160322000001','1',NULL,'血糖仪817','6817','2016-05-18 02:37:31','0'),(10,'ce2df9130190492c97280dad2677e9eb','U20160322000001','2',NULL,'血压计08','0000000000001','2016-05-11 08:16:13','0'),(11,'42951cfa706b4156b60aea6507b25c7f','U20160322000001','2',NULL,'血压计2228911','2228911','2016-05-18 02:37:29','0'),(12,'2b9b958384914aedaff499ffbc2ca78c','U20160322000001','2',NULL,'血压计33','33333333333333','2016-05-11 11:02:41','0'),(13,'81cdc79a05b7450398ff29409ee4e5ad','U20160322000001','1',NULL,'血糖仪44','44444444444','2016-05-11 08:21:35','0'),(14,'5d09e4cde162412eb526172d02b9b664','U20160322000001','1','血糖仪','ghj','rghjj','2016-05-13 09:38:22','0'),(15,'d2b5b72f38f44906aa9f3dace91669aa','U20160322000001','1','血糖仪','血糖仪a1','aaaaaa1','2016-05-18 02:36:46','0'),(16,'0e2406e68966434b8f28315b53904900','U20160322000001','1','血糖仪','血糖仪41','41414141','2016-05-18 02:09:33','0'),(17,'6a8fea920161468c932ab6214873c7ea','U20160322000001','2','血压仪','血压器11','11111111','2016-05-18 02:09:29','0'),(18,'ac7ab0c8791f4de1947625fbebf92d3f','U20160322000001','1','血糖仪','血糖仪1','111111111111','2016-05-18 02:41:48','0'),(19,'86b5e79752414163af5f6e6f7e8e1a03','U20160322000001','1','血糖仪','血糖仪1','111111111111','2016-05-18 03:04:10','1'),(20,'ede199ac61194cd2b2b1cf5d6a6e2763','U20160322000001','1','血糖仪','11111','11111111','2016-05-18 03:07:43','1'),(21,'52ad53e5ad414b70bd438c9eda596b37','U20160322000001','1','血糖仪','222211','22211','2016-05-18 03:09:44','1'),(22,'724431c3a40c4b3dbe25079c9b5c4f46','U20160322000003','1','血糖仪','11','11111','2016-05-31 08:06:34','1'),(23,'9bb2bedc4dc04ce08238676087a1e356','U20160322000003','1','血糖仪','11','11111','2016-05-31 08:06:36','1'),(24,'b636fa2c42564a77b3a96eae6ba5b0a7','U20160322000004','2','血压仪','达到','打打 ','2016-06-02 05:58:30','1'),(25,'2e2b2ee461974652b794cfad6d76082e','U20160322000004','1','血糖仪','的撒大十大','打算是','2016-06-02 07:48:04','1'),(26,'f31f71e5a2f742e3a9b7587e4c89d88b','U20160322000004','1','血糖仪','的撒旦都是','都是','2016-06-02 07:48:50','1'),(27,'dc2edd06086d48b781d4bee0273d9eb6','U20160322000001','1','血糖仪','1112','3231231','2016-06-02 07:49:49','1'),(28,'0450242555d84be2b73333fe6c7a1fdd','U20160322000004','1','血糖仪','131231313213','232321321312312','2016-06-02 08:42:05','1'); /*Table structure for table `wlyy_patient_family` */ DROP TABLE IF EXISTS `wlyy_patient_family`; CREATE TABLE `wlyy_patient_family` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `code` varchar(50) NOT NULL COMMENT '家人标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `name` varchar(100) DEFAULT NULL COMMENT '患者姓名', `relationship` varchar(50) NOT NULL COMMENT '关系标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_family_1` (`patient`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者家人信息表'; /*Data for the table `wlyy_patient_family` */ /*Table structure for table `wlyy_patient_friend` */ DROP TABLE IF EXISTS `wlyy_patient_friend`; CREATE TABLE `wlyy_patient_friend` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `user1` varchar(50) NOT NULL COMMENT '患者标识,与wlyy_patient表关联', `user2` varchar(50) NOT NULL COMMENT '患者标识,与wlyy_patient表关联', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_friend_1` (`user1`), KEY `idx_wlyy_patient_friend_2` (`user2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者好友表'; /*Data for the table `wlyy_patient_friend` */ /*Table structure for table `wlyy_patient_gift` */ DROP TABLE IF EXISTS `wlyy_patient_gift`; CREATE TABLE `wlyy_patient_gift` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `user` varchar(50) DEFAULT NULL COMMENT '患者标识', `gift` varchar(50) DEFAULT NULL COMMENT '礼品标识', `posints` int(11) DEFAULT NULL COMMENT '消费的积分数', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '兑换时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者兑换的礼品记录表'; /*Data for the table `wlyy_patient_gift` */ /*Table structure for table `wlyy_patient_group` */ DROP TABLE IF EXISTS `wlyy_patient_group`; CREATE TABLE `wlyy_patient_group` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '业务主键', `creater` varchar(50) NOT NULL COMMENT '创建人,与wlyy_patient表关联', `name` varchar(50) NOT NULL COMMENT '群名称', `icon` varchar(100) DEFAULT NULL COMMENT '群LOGO', `status` int(11) NOT NULL DEFAULT '1' COMMENT '是否作废,1正常,0解散', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_group_1` (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者群组信息'; /*Data for the table `wlyy_patient_group` */ /*Table structure for table `wlyy_patient_group_info` */ DROP TABLE IF EXISTS `wlyy_patient_group_info`; CREATE TABLE `wlyy_patient_group_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `team` varchar(50) NOT NULL COMMENT '群组标识,与wlyy_patient_group表关联', `user` varchar(50) NOT NULL COMMENT '患者标识,与wlyy_patient表关联', `admin` int(11) DEFAULT '0' COMMENT '管理员标识,1管理员,0普通组员', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_group_info_team` (`team`), KEY `idx_wlyy_patient_group_info_uid` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者群组详情表'; /*Data for the table `wlyy_patient_group_info` */ /*Table structure for table `wlyy_patient_health_guidance` */ DROP TABLE IF EXISTS `wlyy_patient_health_guidance`; CREATE TABLE `wlyy_patient_health_guidance` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `content` varchar(500) DEFAULT NULL COMMENT '指导内容', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_health_guidance_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康指导'; /*Data for the table `wlyy_patient_health_guidance` */ insert into `wlyy_patient_health_guidance`(`id`,`patient`,`doctor`,`content`,`del`,`czrq`) values (1,'U20160322000001','D20160322000002','guidance content','1','2016-05-12 15:42:47'),(6,'U20160322000001','D20160322000002','请多运动运动','1','2016-05-16 11:33:55'),(7,'U20160322000001','D20160322000002','提高心理调节能力,不要过度兴奋,激动或发怒。避免情绪激动、过度紧张、焦虑及各种不良刺激,多听音乐,陶冶情操。','1','2016-05-16 11:34:28'),(8,'U20160322000001','D20160322000002','您好您的运动量比较低,建议您每天进行一些体育锻炼,比如慢跑,跳绳,游泳,登山。但是不要做一些危险性的运动如攀岩,蹦极','1','2016-05-16 11:34:48'),(9,'U20160322000001','D20160322000002','以低盐、低脂肪饮食为宜,适当限制胆固醇,少吃或避免含饱和脂肪酸的动物脂肪,宜多食含维生素的食物。','1','2016-05-16 11:35:00'),(10,'U20160322000004','D20160322000002','请至少填写','1','2016-05-18 02:48:07'),(11,'U20160322000001','D20160322000002','清淡饮食!','1','2016-05-18 06:07:41'),(12,'U20160322000002','D20160322000002','请注意多运动','1','2016-05-20 05:23:09'),(13,'U20160322000002','D20160322000002','请您多喝水','1','2016-05-20 05:25:45'),(14,'U20160322000002','D20160322000002','请多进行轻度运动','1','2016-05-20 05:41:13'),(15,'U20160322000001','D20160322000002','请节制饮食','1','2016-05-20 05:57:32'),(16,'U20160322000001','D20160322000002','发士大夫','1','2016-05-20 10:06:54'),(17,'U20160322000001','D20160322000002','aafa','1','2016-05-21 03:14:39'),(18,'U20160322000002','D20160322000002','要以低糖食物,清淡,少吃油腻的东西','1','2016-05-25 05:41:54'),(19,'U20160322000003','D20160322000002','天天爱测血压','1','2016-05-25 06:09:58'),(20,'U20160322000002','D20160322000002','啦啦啦,我是快乐的小行家,灭天测测血压,吃吃药,快乐又逍遥','1','2016-05-25 06:19:45'),(21,'U20160322000002','D20160322000002','啦啦啦,我是快乐的小行家,每天测测血药,吃吃药,快乐又逍遥','1','2016-05-25 06:20:31'),(22,'U20160322000004','D20160322000002','南岸娜娜娜娜难1难拿','1','2016-05-25 06:23:17'),(23,'U20160322000004','D20160322000002','啦啦啦阿拉 啊阿道夫阿三阿发阿道夫阿斯顿发顺丰的','1','2016-05-25 06:23:39'),(24,'U20160322000003','D20160322000002','塔塔啊啊分啊阿发阿斯蒂芬违法阿斯蒂芬阿斯弗去啊俄方asda杀死对方阿斯蒂芬阿斯蒂芬啊额发','1','2016-05-25 06:31:13'),(25,'U20160322000001','D20160322000002','发到','1','2016-05-27 08:19:13'),(26,'U20160322000001','D20160322000002','测试翻译你','1','2016-05-27 08:20:31'),(27,'U20160322000003','D20160322000002','发射点','1','2016-05-27 08:21:12'),(28,'U20160322000001','D20160322000002','阿道夫阿','1','2016-05-27 08:27:22'),(29,'U20160322000001','D20160322000002','发啊发到发到','1','2016-05-27 08:28:02'),(30,'U20160322000004','D20160322000002','吞吞吐吐','1','2016-05-27 08:28:19'); /*Table structure for table `wlyy_patient_health_index` */ DROP TABLE IF EXISTS `wlyy_patient_health_index`; CREATE TABLE `wlyy_patient_health_index` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `user` varchar(50) DEFAULT NULL COMMENT '患者标识,与wlyy_patient关联', `intervene` varchar(50) DEFAULT NULL COMMENT '干预标识', `value1` decimal(6,2) DEFAULT NULL COMMENT '血糖/收缩压/体重/腰围/早餐前空腹', `value2` decimal(6,2) DEFAULT NULL COMMENT '舒张压/早餐后空腹', `value3` decimal(6,2) DEFAULT NULL COMMENT '午餐空腹', `value4` decimal(6,2) DEFAULT NULL COMMENT '午餐后', `value5` decimal(6,2) DEFAULT NULL COMMENT '晚餐空腹', `value6` decimal(6,2) DEFAULT NULL COMMENT '晚餐后', `value7` decimal(6,2) DEFAULT NULL COMMENT '睡前', `type` int(1) DEFAULT NULL COMMENT '健康指标类型(1血糖,2血压,3体重,4腰围)', `record_date` date DEFAULT NULL COMMENT '记录时间', `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_patient_health_index_2` (`user`,`type`,`record_date`), KEY `idx_wlyy_patient_health_index_1` (`user`) ) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康指标表'; /*Data for the table `wlyy_patient_health_index` */ insert into `wlyy_patient_health_index`(`id`,`user`,`intervene`,`value1`,`value2`,`value3`,`value4`,`value5`,`value6`,`value7`,`type`,`record_date`,`sort_date`,`czrq`,`del`) values (1,'U20160322000001','',NULL,'6.00',NULL,NULL,NULL,NULL,NULL,1,'2016-04-13',NULL,'2016-05-14 03:42:25','1'),(3,'U20160322000001','','5.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-15','2016-05-15 06:27:24','2016-05-16 06:27:24','1'),(4,'U20160322000001','','6.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-16','2016-05-16 06:56:03','2016-05-16 06:56:03','1'),(5,'U20160322000001','','6.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-14','2016-05-14 06:28:24','2016-05-16 06:28:24','1'),(6,'U20160322000001','','90.00','60.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-16','2016-05-16 06:31:50','2016-05-16 06:31:50','1'),(7,'U20160322000001',NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-14','2016-05-14 11:23:57','2016-05-18 11:23:57','1'),(8,'U20160322000001','','110.00',NULL,NULL,NULL,NULL,NULL,NULL,3,'2016-05-16','2016-05-16 06:35:49','2016-05-16 06:35:49','1'),(9,'U20160322000001',NULL,'83.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-16','2016-05-16 12:40:02','2016-05-18 12:40:02','1'),(10,'U20160322000001','','90.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-04-16','2016-04-16 06:36:33','2016-05-16 06:36:33','1'),(11,'U20160322000001','','87.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-15','2016-05-15 06:36:53','2016-05-16 06:36:53','1'),(16,'U20160322000001','','89.00','78.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-15','2016-05-15 06:59:05','2016-05-16 06:59:05','1'),(17,'U20160322000001',NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-18','2016-05-18 11:26:45','2016-05-18 11:26:45','1'),(18,'U20160322000001','','111.00',NULL,NULL,NULL,NULL,NULL,NULL,3,'2016-05-14','2016-05-14 06:59:58','2016-05-16 06:59:58','1'),(19,'U20160322000001','','90.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-14','2016-05-14 07:00:15','2016-05-16 07:00:15','1'),(20,'U20160322000001','','81.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-18','2016-05-18 07:11:50','2016-05-16 07:11:50','1'),(21,'U20160322000001','','82.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-19','2016-05-19 07:12:43','2016-05-16 07:12:43','1'),(23,'U20160322000001','','100.00','100.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-20','2016-05-20 07:22:39','2016-05-16 07:22:39','1'),(26,'U20160322000001','','7.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-13','2016-05-13 07:27:26','2016-05-16 07:27:26','1'),(27,'U20160322000001','','8.10',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-12','2016-05-12 07:30:08','2016-05-16 07:30:08','1'),(31,'U20160322000001',NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-11','2016-05-11 11:23:13','2016-05-18 11:23:13','1'),(32,'U20160322000001','','86.00','86.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-10','2016-05-10 07:51:05','2016-05-16 07:51:05','1'),(33,'U20160322000001','','6.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-11','2016-05-11 07:55:24','2016-05-16 07:55:24','1'),(34,'U20160322000001','','89.90','88.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-09','2016-05-09 07:57:08','2016-05-16 07:57:08','1'),(35,'U20160322000001',NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-12','2016-05-12 11:23:53','2016-05-18 11:23:53','1'),(36,'U20160322000001','','140.00',NULL,NULL,NULL,NULL,NULL,NULL,3,'2016-05-15','2016-05-15 08:00:01','2016-05-16 08:00:01','1'),(37,'U20160322000001','','87.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-13','2016-05-13 08:00:29','2016-05-16 08:00:29','1'),(38,'U20160322000001','','90.00',NULL,NULL,NULL,NULL,NULL,NULL,3,'2016-05-13','2016-05-13 08:08:56','2016-05-16 08:08:56','1'),(40,'U20160322000001','','97.00',NULL,NULL,NULL,NULL,NULL,NULL,4,'2016-05-12','2016-05-12 08:10:54','2016-05-16 08:10:54','1'),(41,'U20160322000001','',NULL,'12.00',NULL,NULL,NULL,NULL,NULL,1,'2016-05-18','2016-05-18 04:38:12','2016-05-18 04:38:12','1'),(43,'U20160322000001',NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-06','2016-05-06 11:08:52','2016-05-18 11:08:52','1'),(45,NULL,NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-11','2016-05-11 11:11:13','2016-05-18 11:11:13','1'),(49,NULL,NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-11','2016-05-11 11:23:26','2016-05-18 11:23:26','1'),(50,'U20160322000001',NULL,'83.00','93.00',NULL,NULL,NULL,NULL,NULL,2,'2016-05-17','2016-05-17 11:26:40','2016-05-18 11:26:40','1'),(51,NULL,'','111.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-31','2016-05-31 07:20:32','2016-05-31 07:20:32','1'),(52,NULL,'','4.40',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-31','2016-05-31 07:20:54','2016-05-31 07:20:54','1'),(53,NULL,'','7.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-31','2016-05-31 07:21:16','2016-05-31 07:21:16','1'),(54,'U20160322000003','','4.60',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-05-31','2016-05-31 07:51:33','2016-05-31 07:51:33','1'),(55,'U20160322000003','','1.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-01','2016-06-01 03:31:58','2016-06-01 03:31:58','1'),(56,'U20160322000004','','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 12:31:54','2016-06-02 12:31:54','1'),(57,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 10:31:56','2016-06-02 10:31:56','1'),(58,NULL,'','4.40',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 10:34:20','2016-06-02 10:34:20','1'),(59,NULL,'','1231.00',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 10:34:42','2016-06-02 10:34:42','1'),(60,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:29:29','2016-06-02 11:29:29','1'),(61,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:29:29','2016-06-02 11:29:29','1'),(62,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:30:25','2016-06-02 11:30:25','1'),(63,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:30:25','2016-06-02 11:30:25','1'),(64,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:30:45','2016-06-02 11:30:45','1'),(65,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:30:45','2016-06-02 11:30:45','1'),(66,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:31:22','2016-06-02 11:31:22','1'),(67,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:31:22','2016-06-02 11:31:22','1'),(68,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:33:46','2016-06-02 11:33:46','1'),(69,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:33:46','2016-06-02 11:33:46','1'),(70,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:34:26','2016-06-02 11:34:26','1'),(71,NULL,'','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-02','2016-06-02 11:34:26','2016-06-02 11:34:26','1'),(72,'U20160322000004','','91.00','61.00',NULL,NULL,NULL,NULL,NULL,2,'2016-06-02','2016-06-02 12:38:43','2016-06-02 12:38:43','1'),(73,NULL,'','90.00','60.00',NULL,NULL,NULL,NULL,NULL,2,'2016-06-02','2016-06-02 12:36:56','2016-06-02 12:36:56','1'),(74,NULL,'','100.00','61.00',NULL,NULL,NULL,NULL,NULL,2,'2016-06-02','2016-06-02 12:37:17','2016-06-02 12:37:17','1'),(75,'U20160322000004','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,'2016-06-02','2016-06-02 12:39:49','2016-06-02 12:39:49','1'),(76,'U20160322000004','','4.50',NULL,NULL,NULL,NULL,NULL,NULL,1,'2016-06-03','2016-06-03 08:11:28','2016-06-03 08:11:28','1'); /*Table structure for table `wlyy_patient_health_record_diet` */ DROP TABLE IF EXISTS `wlyy_patient_health_record_diet`; CREATE TABLE `wlyy_patient_health_record_diet` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '记录标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `record_date` date DEFAULT NULL COMMENT '记录时间', `content` varchar(500) DEFAULT NULL COMMENT '饮食内容', `images` varchar(3000) DEFAULT NULL COMMENT '图片HTTP地址,多图以逗号分隔', `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_health_record_diet_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康记录(饮食)表'; /*Data for the table `wlyy_patient_health_record_diet` */ insert into `wlyy_patient_health_record_diet`(`id`,`code`,`patient`,`record_date`,`content`,`images`,`sort_date`,`czrq`,`del`) values (63,'15679fd0ef064ed2bf4eecafbbeb3a3c','U20160322000001','2016-05-17','面条','http://172.19.103.77:8080/wlyy/uploadFiles/images/2016/05/18/20160518061120_176.jpg','2016-05-17 06:11:20','2016-05-18 06:11:20','1'),(64,'da0aa4110f1d4c798e9863cf0a9d1dc9','U20160322000001','2016-05-16','米饭','http://172.19.103.77:8080/wlyy/uploadFiles/images/2016/05/18/20160518061135_175.jpg','2016-05-16 06:11:35','2016-05-18 06:11:36','1'),(65,'e8017cec408949e9b98a7cd06393426d','U20160322000003','2016-06-01','7图','','2016-06-01 05:34:31','2016-06-01 05:34:31','1'),(66,'c6f4e4d1d0634c8b9a8ce1ab10bae4da','U20160322000001','2016-06-01','1111','','2016-06-01 05:40:58','2016-06-01 05:40:58','1'),(67,'af5a59bbd0fe4801b5fb5d338095d803','U20160322000001','2016-06-01','432','','2016-06-01 05:41:40','2016-06-01 05:41:40','1'),(68,'8be8f7a3cb7b41eb9485a4b6cefd471e','U20160322000001','2016-06-01','111111','','2016-06-01 05:42:21','2016-06-01 05:42:21','1'),(69,'26dff49d765e4d26a3baa32766df2f3f','U20160322000001','2016-06-01','的速度速度速度速度','','2016-06-01 05:48:06','2016-06-01 05:48:06','1'),(70,'32256949740b4eedb0e521e75e93c427','U20160322000001','2016-06-01','的十大','','2016-06-01 05:48:52','2016-06-01 05:48:52','1'),(71,'f04cc4ec00d844318e0946ffdbb10203','U20160322000001','2016-06-01','1','','2016-06-01 05:53:07','2016-06-01 05:53:07','1'),(72,'a6d9572046934da0b182d4f58a107a1a','U20160322000001','2016-06-01','1','','2016-06-01 05:54:03','2016-06-01 05:54:03','1'),(73,'5a0d2fb085994b939bac50d72852c52d','U20160322000001','2016-06-01','1231','','2016-06-01 05:55:27','2016-06-01 05:55:27','1'),(74,'7fc9439990434e68b61a8ab7a5dac461','U20160322000001','2016-06-01','1','','2016-06-01 05:57:33','2016-06-01 05:57:33','1'),(75,'c444e00da7524bd18315dec5ff7d90c8','U20160322000001','2016-06-01','13212','','2016-06-01 05:58:05','2016-06-01 05:58:05','1'),(76,'90cc3e9668044df58704787b1e89f0f3','U20160322000001','2016-06-01','dsdsd','','2016-06-01 05:58:50','2016-06-01 05:58:50','1'),(77,'6570ba4f34924e0bb14ce132eb8a46d7','U20160322000001','2016-06-01','2','','2016-06-01 05:59:59','2016-06-01 05:59:59','1'),(78,'e7a3fb6a5c2b421d8048faa9f0530a53','U20160322000001','2016-06-01','1','','2016-06-01 06:00:41','2016-06-01 06:00:41','1'),(79,'570b90a732bf43e8b588aa189b4b2b0d','U20160322000002','2016-06-01','dsadsa','','2016-06-01 10:26:02','2016-06-01 10:26:02','1'),(80,'a21960fc9dec450589ddff3a3c5e2040','U20160322000002','2016-06-01','ggggg','','2016-06-01 10:41:48','2016-06-01 10:41:48','1'),(81,'99f49b0cadee4a8a8ba7225eb644d135','U20160322000002','2016-06-01','hhhhh','','2016-06-01 10:45:59','2016-06-01 10:45:59','1'),(82,'a05fdbf2fdca42ee96fd7bdc4964fe06','U20160322000002','2016-06-01','55555','','2016-06-01 10:50:56','2016-06-01 10:50:56','1'),(83,'0495189dd2e04ce0b5e2586fcd75c44d','U20160322000002','2016-06-01','tttttt','','2016-06-01 10:52:09','2016-06-01 10:52:09','1'),(84,'721d9da25d40465b8e842ba213a8f105','U20160322000002','2016-06-01','dffdfdf','','2016-06-01 10:53:22','2016-06-01 10:53:22','1'),(85,'78c1bcab2953472195724333f0f3a63f','U20160322000002','2016-06-01','dffdf','','2016-06-01 10:53:55','2016-06-01 10:53:55','1'),(86,'2da58c2fd1354404b3b013be72c00391','U20160322000004','2016-06-02','31','','2016-06-02 12:44:42','2016-06-02 12:44:42','1'); /*Table structure for table `wlyy_patient_health_record_medication` */ DROP TABLE IF EXISTS `wlyy_patient_health_record_medication`; CREATE TABLE `wlyy_patient_health_record_medication` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '记录标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `record_date` date DEFAULT NULL COMMENT '记录时间', `medicines` varchar(50) DEFAULT NULL COMMENT '药品标识', `medicines_name` varchar(100) DEFAULT NULL COMMENT '药品名称', `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_health_record_medication_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康记录(用药)表'; /*Data for the table `wlyy_patient_health_record_medication` */ insert into `wlyy_patient_health_record_medication`(`id`,`code`,`patient`,`record_date`,`medicines`,`medicines_name`,`sort_date`,`czrq`,`del`) values (4,'70548dd416a14efe86e431db9a829891','U20160322000001','2016-05-13','1','基础胰岛素','2016-05-13 06:54:22','2016-05-14 06:54:22','1'),(5,'f02da48638da47f3af9657cc9f1bcf87','U20160322000001','2016-05-13','1','基础胰岛素','2016-05-13 06:55:17','2016-05-14 06:55:17','1'),(6,'fe8afaffd7224a34b344d4db3f7347c9','U20160322000001','2016-05-11','3','阿司匹林','2016-05-11 07:15:03','2016-05-14 07:15:03','1'),(7,'21a0935a02c24cf3a89beb81b4b88d20','U20160322000003','2016-05-31','1','基础胰岛素','2016-05-31 07:47:02','2016-05-31 07:47:02','1'),(8,'a33f866a5f3f49ef94d952e550ea38b3','U20160322000003','2016-05-31','1','基础胰岛素','2016-05-31 08:05:55','2016-05-31 08:05:55','1'); /*Table structure for table `wlyy_patient_health_record_sports` */ DROP TABLE IF EXISTS `wlyy_patient_health_record_sports`; CREATE TABLE `wlyy_patient_health_record_sports` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '记录标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `record_date` date DEFAULT NULL COMMENT '记录时间', `sports_time` int(11) DEFAULT NULL COMMENT '运动时长(分)', `sports_type` varchar(50) DEFAULT NULL COMMENT '运动强度', `sports_type_name` varchar(100) DEFAULT NULL COMMENT '运动强度名称', `sports` varchar(50) DEFAULT NULL COMMENT '运动类型', `sports_name` varchar(100) DEFAULT NULL COMMENT '运动类型名称', `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_health_record_sports_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康(运动)记录表'; /*Data for the table `wlyy_patient_health_record_sports` */ insert into `wlyy_patient_health_record_sports`(`id`,`code`,`patient`,`record_date`,`sports_time`,`sports_type`,`sports_type_name`,`sports`,`sports_name`,`sort_date`,`czrq`,`del`) values (7,'aa48faba827d4ee4a98eaf8e21b9f896','U20160322000001','2016-04-15',5,'4','强度运动','2','散步','2016-04-15 04:29:25','2016-05-14 04:29:25','1'),(8,'01b51db007244620990592cfe6149bf5','U20160322000001','2016-05-13',15,'3','稍强运动','2','散步','2016-05-13 04:31:36','2016-05-14 04:31:36','1'),(9,'cec942d8e9f24ce98277813f8997bbca','U20160322000001','2016-04-12',5,'4','强度运动','2','散步','2016-04-12 04:43:51','2016-05-14 06:00:47','1'),(10,'fa9b7d64881e457392a3f866728daf5f','U20160322000001','2016-04-12',5,'4','强度运动','2','散步','2016-04-12 04:43:55','2016-05-14 06:00:48','1'),(11,'f72c1a4fb3f7437aa33a0c913762cb4b','U20160322000001','2016-04-19',5,'4','强度运动','2','散步','2016-04-19 04:44:07','2016-05-14 06:00:49','1'),(12,'a24062f1ee8b476f8760ad3fa4d9be49','U20160322000001','2016-05-14',15,'2','中度运动','4','太极拳','2016-05-14 06:01:58','2016-05-14 06:01:58','1'),(13,'958634ad961b4676b767bec586322f7b','U20160322000001','2016-05-13',30,'1','轻度运动','6','跑步','2016-05-13 06:04:25','2016-05-14 06:04:25','1'),(14,'3ecd8443075e4382ae01eec7592a38fe','U20160322000001','2016-05-13',5,'4','强度运动','3','做操','2016-05-13 06:08:02','2016-05-14 06:08:02','1'),(15,'23677673557942209886571e75cc9cdd','U20160322000001','2016-05-13',5,'1','轻度运动','1','购物','2016-05-13 06:09:46','2016-05-14 06:09:46','1'),(16,'de6678f7cc5d456bafde2cbb8ed0eeb3','U20160322000001','2016-05-15',60,'1','轻度运动','1','购物','2016-05-15 06:11:55','2016-05-14 06:11:55','1'),(17,'a9e99e508a1c458db398fdfa44f7d8eb','U20160322000001','2016-05-12',30,'2','中度运动','1','购物','2016-05-12 06:12:47','2016-05-14 06:12:47','1'),(18,'f1fcf1ca93394c23a6c70c0c410ca3fa','U20160322000001','2016-05-12',5,'1','轻度运动','1','购物','2016-05-12 06:14:35','2016-05-14 06:14:35','1'),(19,'8bf34f26872346efa4d70fcf758e0bf5','U20160322000003','2016-05-31',5,'1','轻度运动','1','购物','2016-05-31 07:44:42','2016-05-31 07:44:42','1'),(20,'43d3f3843c1440caa26185b95ea15689','U20160322000003','2016-05-31',5,'1','轻度运动','2','散步','2016-05-31 08:05:41','2016-05-31 08:05:41','1'),(21,'ff1d1313ccd2418980df9819d0d88a04','U20160322000003','2016-06-01',5,'1','轻度运动','1','购物','2016-06-01 02:23:38','2016-06-01 02:23:38','1'),(22,'81909606b51a414faaf9f6219f6414f2','U20160322000003','2016-06-01',5,'1','轻度运动','1','购物','2016-06-01 02:23:40','2016-06-01 02:23:40','1'),(23,'add9802ec3594600aa9f3edeb9d7cf95','U20160322000004','2016-06-02',5,'1','轻度运动','1','购物','2016-06-02 12:40:50','2016-06-02 12:40:50','1'),(24,'6e18d5b33a6148fab5c8a1bd14cf3fe7','U20160322000004','2016-06-02',5,'1','轻度运动','1','购物','2016-06-02 12:42:58','2016-06-02 12:42:58','1'); /*Table structure for table `wlyy_patient_health_standard` */ DROP TABLE IF EXISTS `wlyy_patient_health_standard`; CREATE TABLE `wlyy_patient_health_standard` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `patient` varchar(50) NOT NULL COMMENT '患者标识', `type` int(11) NOT NULL COMMENT '健康指标类型:1血糖,2血压,3体重,4腰围', `min_value_1` double NOT NULL COMMENT '最低安全值(血糖餐前\\收缩压\\体重\\腰围)', `max_value_1` double NOT NULL COMMENT '最高安全值(血糖餐前\\收缩压\\体重\\腰围)', `min_value_2` double DEFAULT NULL COMMENT '最低安全值(血糖餐后\\舒张压)', `max_value_2` double DEFAULT NULL COMMENT '最高安全值(血糖餐后\\舒张压)', `doctor` varchar(50) NOT NULL COMMENT '设置医生', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '设置时间', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_health_standard_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康指标预警值'; /*Data for the table `wlyy_patient_health_standard` */ insert into `wlyy_patient_health_standard`(`id`,`patient`,`type`,`min_value_1`,`max_value_1`,`min_value_2`,`max_value_2`,`doctor`,`czrq`) values (45,'U20160322000002',1,3.9,6.1,4.4,7.8,'D20160322000002','2016-05-20 05:21:31'),(46,'U20160322000002',2,90,139,60,89,'D20160322000002','2016-05-20 05:21:31'),(47,'U20160322000002',3,80,100,0,0,'D20160322000002','2016-05-20 05:21:31'),(48,'U20160322000002',4,80,90,0,0,'D20160322000002','2016-05-20 05:21:31'),(73,'U20160322000001',1,7,8,11,13,'D20160322000002','2016-05-25 10:57:57'),(74,'U20160322000001',2,90,100,60,70,'D20160322000002','2016-05-25 10:57:57'),(75,'U20160322000001',3,100,120,0,0,'D20160322000002','2016-05-25 10:57:57'),(76,'U20160322000001',4,81,89,0,0,'D20160322000002','2016-05-25 10:57:57'); /*Table structure for table `wlyy_patient_inspection_suggest` */ DROP TABLE IF EXISTS `wlyy_patient_inspection_suggest`; CREATE TABLE `wlyy_patient_inspection_suggest` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `doctor_name` varchar(100) DEFAULT NULL COMMENT '医生姓名', `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识', `type` int(11) DEFAULT NULL COMMENT '咨询类型:1三师咨询(即时咨询),2视频咨询', `content` varchar(1000) DEFAULT NULL COMMENT '建议内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_inspection_suggest_1` (`patient`), KEY `idx_wlyy_patient_inspection_suggest_2` (`consult`,`type`), KEY `idx_wlyy_patient_inspection_suggest_3` (`doctor`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='患者检查建议表'; /*Data for the table `wlyy_patient_inspection_suggest` */ insert into `wlyy_patient_inspection_suggest`(`id`,`patient`,`doctor`,`doctor_name`,`consult`,`type`,`content`,`czrq`,`del`) values (1,'U20160322000001','D20160322000002','聂青\r\n','eaf5f669c720403bb35966f6ae1d3680',1,'CT、骨密度检查','2016-05-20 01:37:46','1'),(2,'U20160322000001','D20160322000002','聂青\r\n','eaf5f669c720403bb35966f6ae1d3680',1,'及时到医院进行心电图检查项目','2016-05-25 05:38:43','1'); /*Table structure for table `wlyy_patient_medical_records` */ DROP TABLE IF EXISTS `wlyy_patient_medical_records`; CREATE TABLE `wlyy_patient_medical_records` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '病历标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `doctor_name` varchar(50) DEFAULT NULL COMMENT '医生姓名', `type` int(11) DEFAULT NULL COMMENT '类型:1记录,2随手记', `title` varchar(200) DEFAULT NULL COMMENT '病历标题', `symptoms` varchar(500) DEFAULT NULL COMMENT '主诉', `images` varchar(3000) DEFAULT NULL COMMENT '咨询图片,多图以逗号分隔', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_medical_records_1` (`code`), KEY `idx_wlyy_patient_medical_records_2` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COMMENT='患者病历记录表'; /*Data for the table `wlyy_patient_medical_records` */ insert into `wlyy_patient_medical_records`(`id`,`code`,`patient`,`doctor`,`doctor_name`,`type`,`title`,`symptoms`,`images`,`czrq`,`del`) values (16,'43b9457b12844971805ad737eb8e6047','U20160322000001','D20160322000002','聂青\r\n',2,'片段记录1',NULL,NULL,'2016-05-19 11:06:15','1'),(17,'55c5b73d2aa9429483233c724ee715d2','U20160322000001','D20160322000002','聂青\r\n',1,'2016-05-19-三师咨询-病例记录','咳嗽','','2016-05-19 11:06:37','1'),(18,'77956ddd34f84a91a3a696a04392cbb6','U20160322000001','D20160322000002','聂青\r\n',2,'20160517片段记录',NULL,NULL,'2016-05-24 13:48:31','0'),(19,'2a56c57bd78a407da6f7589c61b0124e','U20160322000001','D20160322000002','聂青\r\n',2,'天天爱测试',NULL,NULL,'2016-05-24 13:49:21','0'),(20,'f1133a87276741ec95c6f2705706289f','U20160322000001','D20160322000002','聂青\r\n',2,'糖尿病',NULL,NULL,'2016-05-24 13:48:46','0'),(21,'48cfd9306b4f48909eecf13f51bbf18e','U20160322000001','D20160322000002','聂青\r\n',2,'天天斗地主',NULL,NULL,'2016-05-24 13:50:59','0'),(22,'d19258e740ee40df9179681cd17d05eb','U20160322000001','D20160322000002','聂青\r\n',2,'糖尿病',NULL,NULL,'2016-05-24 13:00:32','1'),(23,'d35dbf3422e44aa4a4f8d813bc17ca58','U20160322000001','D20160322000002','聂青\r\n',2,'天天斗地主',NULL,NULL,'2016-05-24 13:48:09','0'),(24,'7e14fb7e1ba0438381ca63f9eabdb24c','U20160322000001','D20160322000002','聂青\r\n',2,'我的命发发发大地方阿斯蒂芬阿斯啊的说法阿',NULL,NULL,'2016-05-25 09:34:37','1'),(25,'967d5fb62c5d44b09e3667e6ddf9636a','U20160322000001','D20160322000002','聂青\r\n',2,'我的命发发发大地方阿斯蒂芬阿斯啊的说法阿',NULL,NULL,'2016-05-25 09:35:17','1'),(26,'b4470fd192514b94ac67b45a2adc87d9','U20160322000001','D20160322000002','聂青\r\n',2,'我的命发发发大地方阿斯蒂芬阿斯啊的说法阿',NULL,NULL,'2016-05-25 09:44:54','1'),(27,'c5d21f1298064428b93a6442c205fea8','U20160322000001','D20160322000002','聂青\r\n',2,'糖尿病',NULL,NULL,'2016-05-25 09:50:57','1'),(28,'77e47eab35cf4062808a8ebc6acb8698','U20160322000001','D20160322000002','聂青\r\n',2,'糖尿病',NULL,NULL,'2016-05-25 09:55:09','1'),(29,'e839f5ea94f04700a2565d8dbd9131be','U20160322000001','D20160322000002','聂青\r\n',2,'tangniaobing',NULL,NULL,'2016-05-25 09:55:29','1'); /*Table structure for table `wlyy_patient_medical_records_item` */ DROP TABLE IF EXISTS `wlyy_patient_medical_records_item`; CREATE TABLE `wlyy_patient_medical_records_item` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `record` varchar(50) NOT NULL COMMENT '病历记录标识', `part` varchar(50) NOT NULL COMMENT '片段标识', `part_name` varchar(100) NOT NULL COMMENT '片段名称', `content` varchar(1000) NOT NULL COMMENT '片段内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_medical_records_item_1` (`record`) ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COMMENT='患者病历片断记录表'; /*Data for the table `wlyy_patient_medical_records_item` */ insert into `wlyy_patient_medical_records_item`(`id`,`record`,`part`,`part_name`,`content`,`czrq`) values (18,'43b9457b12844971805ad737eb8e6047','08de64e31b6848bb8154185ec08629e5','片段记录1','片段记录内容:糖尿病的注意内容是。。。','2016-05-19 11:06:15'),(19,'55c5b73d2aa9429483233c724ee715d2','15309e9f32d24ec79268069d1226c356','20160517片段记录','糖尿病患者应以低糖或无糖为主,平时多运动锻炼','2016-05-19 11:06:37'),(20,'55c5b73d2aa9429483233c724ee715d2','1','高血压','保持良好心态!','2016-05-19 11:06:37'),(21,'77956ddd34f84a91a3a696a04392cbb6','15309e9f32d24ec79268069d1226c356','20160517片段记录','糖尿病患者应以低糖或无糖为主,平时多运动锻炼','2016-05-19 11:14:53'),(22,'2a56c57bd78a407da6f7589c61b0124e','832baad956064a2684b70b27282fc06e','天天爱测试','天天测试的测试天天','2016-05-24 12:53:41'),(23,'f1133a87276741ec95c6f2705706289f','a8ccfbcc606f4c9390f27da34040f687','糖尿病','天天糖尿病','2016-05-24 12:59:43'),(24,'48cfd9306b4f48909eecf13f51bbf18e','45d89ea7ac8445c0b427cbebd129c8a9','天天斗地主','发','2016-05-24 13:00:18'),(25,'d19258e740ee40df9179681cd17d05eb','9f8da2229da9421b9f4939f653b2640c','糖尿病','哈哈','2016-05-24 13:00:32'),(26,'d35dbf3422e44aa4a4f8d813bc17ca58','45d89ea7ac8445c0b427cbebd129c8a9','天天斗地主','天天','2016-05-24 13:00:52'),(27,'7e14fb7e1ba0438381ca63f9eabdb24c','46ce036ca487427381f950a68a197c22','我的命发发发大地方阿斯蒂芬阿斯啊的说法阿','纠结啊楼上的房间阿斯蒂芬就啊撒旦解放拉萨的理解阿斯蒂芬嚼蜡说句地方了家啊手动阀手动阀手动阀手动阀手动','2016-05-25 09:34:37'),(28,'967d5fb62c5d44b09e3667e6ddf9636a','46ce036ca487427381f950a68a197c22','我的命发发发大地方阿斯蒂芬阿斯啊的说法阿','打发士大夫阿德','2016-05-25 09:35:17'),(29,'b4470fd192514b94ac67b45a2adc87d9','46ce036ca487427381f950a68a197c22','我的命发发发大地方阿斯蒂芬阿斯啊的说法阿','啊打发发到阿道夫大大','2016-05-25 09:44:54'),(30,'c5d21f1298064428b93a6442c205fea8','9f8da2229da9421b9f4939f653b2640c','糖尿病','糖尿病','2016-05-25 09:50:57'),(31,'77e47eab35cf4062808a8ebc6acb8698','9f8da2229da9421b9f4939f653b2640c','糖尿病','糖尿病','2016-05-25 09:55:09'),(32,'e839f5ea94f04700a2565d8dbd9131be','224649589e72473ebe2c7d1b5fe47c30','tangniaobing','天天糖尿病','2016-05-25 09:55:29'); /*Table structure for table `wlyy_patient_orders` */ DROP TABLE IF EXISTS `wlyy_patient_orders`; CREATE TABLE `wlyy_patient_orders` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '医嘱标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `treatment` varchar(50) DEFAULT NULL COMMENT '就诊标识', `content` varchar(500) DEFAULT NULL COMMENT '医嘱内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_orders_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医嘱信息表'; /*Data for the table `wlyy_patient_orders` */ insert into `wlyy_patient_orders`(`id`,`code`,`patient`,`doctor`,`treatment`,`content`,`czrq`,`del`) values (1,'1','20160322000001',NULL,'1','肌肉注射 头孢氨卞 一天一次 每次5mg','2016-04-08 12:50:43','1'),(2,'2','20160322000001',NULL,'2','口服 科素亚 氯沙坦钾片 一天二次 每次 50mg','2016-04-08 12:53:07','1'),(3,'POS2016032800000001','20160322000001','20160322000001','1','口服 头孢呋辛酯片 一天三次 每次2片 饭后服用','2016-04-07 23:57:31','1'); /*Table structure for table `wlyy_patient_remind` */ DROP TABLE IF EXISTS `wlyy_patient_remind`; CREATE TABLE `wlyy_patient_remind` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '提醒标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `visit_code` varchar(50) DEFAULT NULL COMMENT '就诊记录标识', `type` int(11) DEFAULT NULL COMMENT '提醒类型,1用药,2复诊', `content` varchar(1000) DEFAULT NULL COMMENT '提醒内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_remind_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COMMENT='患者提醒表'; /*Data for the table `wlyy_patient_remind` */ insert into `wlyy_patient_remind`(`id`,`code`,`doctor`,`patient`,`visit_code`,`type`,`content`,`czrq`,`del`) values (17,'PAR2016040500000003','20160322000001','20160322000001',NULL,1,'记得每天饭后才能吃药','2016-04-05 16:59:09','1'),(18,'PAR2016040500000004','20160322000001','20160322000001',NULL,1,'低盐,远离辛辣食物','2016-04-05 16:59:45','1'),(19,'PAR2016040500000005','20160322000001','20160322000001',NULL,1,'每天起床测量血压','2016-04-05 17:00:06','1'),(22,'PAR2016040600000003','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/06到我处进行复诊,请准时过来。','2016-04-08 01:06:46','1'),(24,'PAR2016040600000005','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/03/20到我处进行复诊,请准时过来。','2016-04-08 01:07:12','1'),(25,'PAR2016040600000006','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/03/03到我处进行复诊,请准时过来。','2016-04-08 01:07:04','1'),(33,'PAR2016040700000007','20160322000001','20160322000001',NULL,1,'多吃青菜,多补充水分','2016-04-07 20:37:33','1'),(35,'PAR2016041100000001','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/11到我处进行复诊,请准时过来。','2016-04-11 11:36:39','1'),(36,'PAR2016041100000002','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/11到我处进行复诊,请准时过来。','2016-04-11 11:37:02','1'),(37,'PAR2016041100000003','20160322000001','20160322000001',NULL,1,'降压药每天一次用药','2016-04-11 11:43:12','1'),(38,'PAR2016041100000004','20160322000001','20160322000001',NULL,1,'','2016-04-11 11:43:16','1'),(39,'PAR2016041100000005','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/11到我处进行复诊,请准时过来。','2016-04-11 15:07:24','1'),(40,'PAR2016041100000006','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/11到我处进行复诊,请准时过来。','2016-04-11 15:11:40','1'),(41,'PAR2016041100000007','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/07到我处进行复诊,请准时过来。','2016-04-11 15:17:05','1'),(42,'PAR2016041100000008','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/04/10到我处进行复诊,请准时过来。','2016-04-11 15:17:24','1'),(43,'PAR2016041100000009','20160322000001','20160322000001','7123766',2,'李碧玉小姐您预约了2016/01/11到我处进行复诊,请准时过来。','2016-04-11 15:38:16','1'),(44,'PAR2016041200000001','20160322000001','20160322000001',NULL,1,'','2016-04-12 15:11:52','1'); /*Table structure for table `wlyy_patient_reservation` */ DROP TABLE IF EXISTS `wlyy_patient_reservation`; CREATE TABLE `wlyy_patient_reservation` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '预约号/预约流水号', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识(医生帮患者预约时才会有值)', `dname` varchar(50) DEFAULT NULL COMMENT '医生姓名(医生帮患者预约时才会有值)', `patient` varchar(50) NOT NULL COMMENT '患者标识', `idcard` varchar(20) NOT NULL COMMENT '患者身份证', `name` varchar(50) NOT NULL COMMENT '患者姓名', `phone` varchar(20) NOT NULL COMMENT '患者手机号', `ssc` varchar(20) NOT NULL COMMENT '患者社保卡号', `section_type` varchar(4) NOT NULL COMMENT '预约时间段:AM (上午)或者PM (下午)', `start_time` varchar(20) NOT NULL COMMENT '一次预约段的开始时间', `org_code` varchar(50) NOT NULL COMMENT '医生所在医疗机构编码', `org_name` varchar(50) NOT NULL COMMENT '医院机构名称', `dept_code` varchar(50) NOT NULL COMMENT '科室编码', `dept_name` varchar(30) NOT NULL COMMENT '科室名称', `doctor_code` varchar(50) NOT NULL COMMENT '专家ID/编码', `doctor_name` varchar(50) NOT NULL COMMENT '专家姓名', `doctor_photo` varchar(300) DEFAULT NULL COMMENT '专家头像', `doctor_job` varchar(50) DEFAULT NULL COMMENT '专家职称', `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态:1预约成功,0预约取消', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '预约时间', `del` varchar(1) NOT NULL DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_reservation_1` (`patient`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者预约挂号记录表'; /*Data for the table `wlyy_patient_reservation` */ /*Table structure for table `wlyy_patient_reservation_doctors` */ DROP TABLE IF EXISTS `wlyy_patient_reservation_doctors`; CREATE TABLE `wlyy_patient_reservation_doctors` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `patient` varchar(50) NOT NULL COMMENT '患者标识', `org_code` varchar(50) NOT NULL COMMENT '医院编码', `org_name` varchar(100) NOT NULL COMMENT '医院名称', `dept_code` varchar(50) NOT NULL COMMENT '科室编码', `dept_name` varchar(30) NOT NULL COMMENT '科室名称', `doctor_code` varchar(50) NOT NULL COMMENT '专家ID/编码', `doctor_name` varchar(50) NOT NULL COMMENT '专家姓名', `doctor_photo` varchar(300) DEFAULT NULL COMMENT '专家头像', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_reservation_doctors_1` (`patient`), KEY `idx_wlyy_patient_reservation_doctors_2` (`patient`,`org_code`,`dept_code`,`doctor_code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者预约过的医生/专家'; /*Data for the table `wlyy_patient_reservation_doctors` */ /*Table structure for table `wlyy_patient_self_inspection` */ DROP TABLE IF EXISTS `wlyy_patient_self_inspection`; CREATE TABLE `wlyy_patient_self_inspection` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '自查标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `doctor_name` varchar(100) DEFAULT NULL COMMENT '医生姓名', `title` varchar(300) DEFAULT NULL COMMENT '标题', `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识', `type` int(11) DEFAULT NULL COMMENT '咨询类型:1三师咨询(即时咨询),2视频咨询', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_self_inspection_1` (`patient`), KEY `idx_wlyy_patient_self_inspection_2` (`doctor`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COMMENT='患者自查医生建议表'; /*Data for the table `wlyy_patient_self_inspection` */ insert into `wlyy_patient_self_inspection`(`id`,`code`,`patient`,`doctor`,`doctor_name`,`title`,`consult`,`type`,`czrq`,`del`) values (1,'4f39379e1eec473b9d8f27160fe95646','U20160322000001','D20160322000002','聂青\r\n',NULL,'eaf5f669c720403bb35966f6ae1d3680',1,'2016-05-19 13:04:12','1'),(2,'f86aad78318b44b4a81c8892572fd145','U20160322000001','D20160322000002','聂青\r\n',NULL,NULL,1,'2016-05-19 13:04:12','1'),(3,'141d7d1b9d9e4d23bb30e999761f857d','U20160322000001','D20160322000002','聂青\r\n',NULL,'eaf5f669c720403bb35966f6ae1d3680',1,'2016-05-19 13:08:35','1'),(4,'f465a831a02c4fe9bb6272b094aa5a3a','U20160322000001','D20160322000002','聂青\r\n',NULL,NULL,1,'2016-05-19 13:08:36','1'),(5,'f6fd1fa876fb4932a4367f7a9d80bf03','U20160322000001','D20160322000002','聂青\r\n',NULL,'eaf5f669c720403bb35966f6ae1d3680',1,'2016-05-19 13:14:20',NULL),(6,'2cee31a8929249ac9cea186b2cac304d','U20160322000001','D20160322000002','聂青\r\n',NULL,NULL,1,'2016-05-19 13:15:23',NULL),(7,'5f59a549a1074153b18499f894b9c61b','U20160322000001','D20160322000002','聂青\r\n',NULL,NULL,1,'2016-05-19 13:17:29',NULL),(8,'e440b0ac110c4efe92ee6145e17486e8','U20160322000001','D20160322000002','聂青\r\n','血糖仪1','eaf5f669c720403bb35966f6ae1d3680',1,'2016-05-23 08:58:18','1'),(9,'eb884d086c9844ecb050da3e71d2400a','U20160322000001','D20160322000002','聂青\r\n','血糖仪1',NULL,1,'2016-05-23 08:58:42','1'),(10,'b1569b56a33041978af7fd0b51853deb','U20160322000001','D20160322000002','聂青\r\n','血糖仪1、222211',NULL,1,'2016-05-25 02:34:48','1'),(11,'bdec160506cb4784adba06e9b8a9cd9b','U20160322000001','D20160322000002','聂青\r\n','血糖仪1、11111、222211',NULL,1,'2016-05-25 02:37:27','1'),(12,'99671ebd9b344defae04dce64bc82062','U20160322000001','D20160322000002','聂青\r\n','血糖仪1、11111、222211',NULL,1,'2016-05-25 02:38:56','1'),(13,'6043af05292b40dfa0d35e91e9fef1e7','U20160322000001','D20160322000002','聂青\r\n','血糖仪1','eaf5f669c720403bb35966f6ae1d3680',1,'2016-05-25 05:38:13','1'),(14,'59ea0e7805ca41798265503fdcd36951','U20160322000001','D20160322000002','聂青\r\n','血糖仪1',NULL,1,'2016-05-25 09:02:42','1'); /*Table structure for table `wlyy_patient_self_inspection_item` */ DROP TABLE IF EXISTS `wlyy_patient_self_inspection_item`; CREATE TABLE `wlyy_patient_self_inspection_item` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `inspection` varchar(50) DEFAULT NULL COMMENT '自查标识', `device` varchar(50) DEFAULT NULL COMMENT '设备标识', `device_name` varchar(100) DEFAULT NULL COMMENT '设备名称', `content` varchar(300) DEFAULT NULL COMMENT '备注内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_self_inspection_item_1` (`inspection`) ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COMMENT='患者自查医生建议细项表'; /*Data for the table `wlyy_patient_self_inspection_item` */ insert into `wlyy_patient_self_inspection_item`(`id`,`inspection`,`device`,`device_name`,`content`,`czrq`) values (1,'4f39379e1eec473b9d8f27160fe95646',NULL,'血糖仪1','餐前饭后测试','2016-05-19 12:56:55'),(2,'f86aad78318b44b4a81c8892572fd145',NULL,'血糖仪1','餐前饭后使用','2016-05-19 12:58:21'),(3,'141d7d1b9d9e4d23bb30e999761f857d',NULL,'222211','ffanqianchiefa','2016-05-19 13:06:20'),(4,'f465a831a02c4fe9bb6272b094aa5a3a',NULL,'血糖仪1','11111','2016-05-19 13:08:18'),(5,'f465a831a02c4fe9bb6272b094aa5a3a',NULL,'11111','11111ffff','2016-05-19 13:08:18'),(6,'f6fd1fa876fb4932a4367f7a9d80bf03',NULL,'血糖仪1','餐前饭后策划is,睡前醒后也要测试','2016-05-19 13:14:20'),(7,'f6fd1fa876fb4932a4367f7a9d80bf03',NULL,'11111','餐前饭后策划is,睡前醒后也要测试11','2016-05-19 13:14:20'),(8,'f6fd1fa876fb4932a4367f7a9d80bf03',NULL,'222211','餐前饭后策划is,睡前醒后也要测试11222','2016-05-19 13:14:20'),(9,'2cee31a8929249ac9cea186b2cac304d',NULL,'血糖仪1','aaa','2016-05-19 13:15:23'),(10,'2cee31a8929249ac9cea186b2cac304d',NULL,'11111','aaaaa','2016-05-19 13:15:23'),(11,'5f59a549a1074153b18499f894b9c61b',NULL,'血糖仪1','fafdadf','2016-05-19 13:17:29'),(12,'e440b0ac110c4efe92ee6145e17486e8',NULL,'血糖仪1','fa','2016-05-23 08:58:18'),(13,'eb884d086c9844ecb050da3e71d2400a',NULL,'血糖仪1','sdfasdfasdfasf','2016-05-23 08:58:42'),(14,'b1569b56a33041978af7fd0b51853deb',NULL,'血糖仪1','啊打发','2016-05-25 02:34:48'),(15,'b1569b56a33041978af7fd0b51853deb',NULL,'222211','啊打发发','2016-05-25 02:34:48'),(16,'bdec160506cb4784adba06e9b8a9cd9b',NULL,'血糖仪1','每天必须测量至少一次','2016-05-25 02:37:27'),(17,'bdec160506cb4784adba06e9b8a9cd9b',NULL,'11111','每天必须测量至少一次111','2016-05-25 02:37:27'),(18,'bdec160506cb4784adba06e9b8a9cd9b',NULL,'222211','每天必须测量至少一次12221','2016-05-25 02:37:27'),(19,'99671ebd9b344defae04dce64bc82062',NULL,'血糖仪1','每天必须测一测','2016-05-25 02:38:56'),(20,'99671ebd9b344defae04dce64bc82062',NULL,'11111','每天必须测一测','2016-05-25 02:38:56'),(21,'99671ebd9b344defae04dce64bc82062',NULL,'222211','每天必须测一测','2016-05-25 02:38:56'),(22,'6043af05292b40dfa0d35e91e9fef1e7',NULL,'血糖仪1','天天测血糖','2016-05-25 05:38:13'),(23,'59ea0e7805ca41798265503fdcd36951',NULL,'血糖仪1','爱的色放阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿斯蒂芬阿迪斯','2016-05-25 09:02:42'); /*Table structure for table `wlyy_patient_treatment` */ DROP TABLE IF EXISTS `wlyy_patient_treatment`; CREATE TABLE `wlyy_patient_treatment` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '就诊标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `hospital` varchar(100) DEFAULT NULL COMMENT '医院名称', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '就诊日期', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_patient_treatment_1` (`patient`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='就诊记录表'; /*Data for the table `wlyy_patient_treatment` */ insert into `wlyy_patient_treatment`(`id`,`code`,`patient`,`hospital`,`czrq`,`del`) values (1,'1','20160322000001','厦门中医院','2016-03-03 09:15:47','1'),(2,'2','20160322000001','厦门中医院','2016-02-10 09:16:07','1'),(3,'3','20160322000001','厦门中医院','2016-01-05 09:16:19','1'); /*Table structure for table `wlyy_pharmacist` */ DROP TABLE IF EXISTS `wlyy_pharmacist`; CREATE TABLE `wlyy_pharmacist` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '药师标识', `mobile` varchar(20) NOT NULL COMMENT '登录手机号', `password` varchar(50) NOT NULL COMMENT '登录密码', `name` varchar(50) DEFAULT NULL COMMENT '姓名', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '注册时间', `status` int(11) DEFAULT '1' COMMENT '用户状态,1正常,0禁用', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_pharmacist_1` (`code`), UNIQUE KEY `idx_wlyy_pharmacist_2` (`mobile`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='药师信息表'; /*Data for the table `wlyy_pharmacist` */ insert into `wlyy_pharmacist`(`id`,`code`,`mobile`,`password`,`name`,`czrq`,`status`) values (1,'PHA20160324000001','13693066634','123456','药师1','2016-03-24 09:31:17',0); /*Table structure for table `wlyy_pharmacist_checked` */ DROP TABLE IF EXISTS `wlyy_pharmacist_checked`; CREATE TABLE `wlyy_pharmacist_checked` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '审核标识', `pharmacist` varchar(50) DEFAULT NULL COMMENT '药师标识', `prescription` varchar(50) DEFAULT NULL COMMENT '处方标识', `status` int(11) DEFAULT NULL COMMENT '审核状态,-1审核未通过,0待审核,1审核通过,2复核通过', `content` varchar(1000) DEFAULT NULL COMMENT '审核结果说明内容', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '审核时间', `del` varchar(1) DEFAULT NULL COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COMMENT='药师处方审核记录表'; /*Data for the table `wlyy_pharmacist_checked` */ insert into `wlyy_pharmacist_checked`(`id`,`code`,`pharmacist`,`prescription`,`status`,`content`,`czrq`,`del`) values (1,'CHK2016032800000001','20160322000001','PRE2016032600000002',1,'checked pass','2016-03-31 20:33:47','1'),(2,'CHK2016033100000001','20160322000001','PRE2016032600000003',1,'退回','2016-03-31 20:09:21','1'),(3,'CHK2016033100000002','20160322000001','PRE2016032600000003',-1,'退回','2016-03-31 20:14:15','1'),(4,'CHK2016033100000003','20160322000001','PRE2016033100000003',-1,'初审退回','2016-03-31 20:15:43','1'),(5,'CHK2016033100000004','20160322000001','PRE2016033100000005',-1,'初审退回2','2016-03-31 20:17:35','1'),(6,'CHK2016033100000005','20160322000001','PRE2016032600000003',1,'初审通过2','2016-03-31 20:18:32','1'),(7,'CHK2016033100000006','20160322000001','PRE2016033100000002',-1,'复审退回','2016-03-31 20:19:39','1'),(8,'CHK2016033100000007','20160322000001','PRE2016032600000003',2,'复审通过','2016-03-31 20:20:07','1'),(9,'CHK2016033100000008','20160322000001','PRE2016033100000004',1,'check pass','2016-03-31 20:27:30','1'),(10,'CHK2016033100000009','20160322000001','PRE2016033100000004',2,'check fushen pass','2016-03-31 20:27:50','1'),(11,'CHK2016033100000010','20160322000001','PRE2016033100000005',1,'npass','2016-03-31 20:36:41','1'),(12,'CHK2016033100000011','20160322000001','PRE2016033100000004',1,'chushen pass','2016-03-31 20:46:45','1'),(13,'CHK2016033100000012','20160322000001','PRE2016032600000004',3,'fushen pass','2016-03-31 20:47:16','1'),(14,'CHK2016033100000013','20160322000001','PRE2016033100000003',-1,'tuihui','2016-03-31 20:47:47','1'),(15,'CHK2016040100000001','20160322000001','PRE2016040100000002',1,'','2016-04-01 10:23:46','1'),(16,'CHK2016040100000002','20160322000001','PRE2016032600000003',-1,'','2016-04-01 10:23:58','1'),(17,'CHK2016040100000003','20160322000001','PRE2016040100000001',1,'','2016-04-01 10:24:13','1'),(18,'CHK2016040100000004','20160322000001','PRE2016040100000004',1,'处方可行','2016-04-01 11:13:53','1'),(19,'CHK2016040100000005','20160322000001','PRE2016040100000004',3,'复审通过,完美','2016-04-01 11:34:19','1'),(20,'CHK2016040100000006','20160322000001','PRE2016040100000004',3,'正是好时候','2016-04-01 12:01:45','1'),(21,'CHK2016040100000007','20160322000001','PRE2016032600000002',3,'checked pass','2016-04-01 12:02:58','1'),(25,'CHK2016040100000008','20160322000001','PRE2016032600000002',2,'checked pass','2016-04-01 12:30:51','1'),(26,'CHK2016040100000009','20160322000001','PRE2016040100000004',2,'checked pass','2016-04-01 12:31:55','1'),(27,'CHK2016040100000010','20160322000001','PRE2016040100000004',3,'checked pass','2016-04-01 12:36:33','1'),(28,'CHK2016040100000011','20160322000001','PRE2016040100000004',3,'checked pass','2016-04-01 12:37:06','1'),(29,'CHK2016040100000012','20160322000001','PRE2016040100000004',3,'附属品','2016-04-01 12:53:38','1'),(30,'CHK2016040200000001','20160322000001','PRE2016040100000003',1,'','2016-04-02 10:50:13','1'),(31,'CHK2016040200000002','20160322000001','PRE2016040100000002',1,'','2016-04-02 12:36:18','1'),(32,'CHK2016040200000003','20160322000001','PRE2016040100000005',-1,'','2016-04-02 12:36:34','1'),(33,'CHK2016040200000004','20160322000001','PRE2016032600000002',-2,'','2016-04-02 12:39:58','1'),(34,'CHK2016040800000001','20160322000001','PRE2016040700000001',-1,'','2016-04-08 00:31:49','1'),(35,'CHK2016040800000002','20160322000001','PRE2016040200000001',1,'','2016-04-08 13:06:10','1'); /*Table structure for table `wlyy_points_gift` */ DROP TABLE IF EXISTS `wlyy_points_gift`; CREATE TABLE `wlyy_points_gift` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '礼品标识', `name` varchar(50) DEFAULT NULL COMMENT '礼品名称', `points` int(11) DEFAULT NULL COMMENT '兑换积分数', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分礼品表'; /*Data for the table `wlyy_points_gift` */ /*Table structure for table `wlyy_points_record` */ DROP TABLE IF EXISTS `wlyy_points_record`; CREATE TABLE `wlyy_points_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `user` varchar(50) NOT NULL COMMENT '患者标识', `points` int(11) DEFAULT NULL COMMENT '积分数', `table` varchar(100) DEFAULT NULL COMMENT '操作来源(对应数据库表名)', `oper_id` varchar(20) DEFAULT NULL COMMENT '操作来源标识', `des` varchar(500) DEFAULT NULL COMMENT '积分说明', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作日期', `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_points_record_1` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分明细表'; /*Data for the table `wlyy_points_record` */ /*Table structure for table `wlyy_prescription` */ DROP TABLE IF EXISTS `wlyy_prescription`; CREATE TABLE `wlyy_prescription` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '处方标识', `patient` varchar(50) NOT NULL COMMENT '患者标识', `doctor` varchar(50) NOT NULL COMMENT '医生标识', `name` varchar(50) DEFAULT NULL COMMENT '患者姓名', `sex` int(11) DEFAULT NULL COMMENT '患者性别', `age` int(11) DEFAULT NULL COMMENT '患者年龄', `allergy` varchar(200) DEFAULT NULL COMMENT '过敏史', `diagnosis` varchar(500) DEFAULT NULL COMMENT '临床诊断', `status` int(11) DEFAULT NULL COMMENT '处方状态,-1初审未通过,-2复审未通过,0待审核,1审核通过,2待复审 3复核通过', `amount` int(11) DEFAULT '0' COMMENT '续方次数', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '出处方时间', `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_prescription_1` (`code`), KEY `idx_wlyy_prescription_2` (`patient`), KEY `idx_wlyy_prescription_3` (`doctor`) ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COMMENT='患者处方记录表'; /*Data for the table `wlyy_prescription` */ insert into `wlyy_prescription`(`id`,`code`,`patient`,`doctor`,`name`,`sex`,`age`,`allergy`,`diagnosis`,`status`,`amount`,`czrq`,`del`) values (11,'PRE2016040100000002','20160322000001','20160322000001','李碧玉',2,33,'','扁桃体发炎引起发烧',0,0,'2016-04-12 17:15:07','1'),(12,'PRE2016040100000003','20160322000001','20160322000001','李碧玉',2,33,'','身体虚弱冒冷汗',1,0,'2016-04-10 16:10:08','1'),(13,'PRE2016040100000004','20160322000003','20160322000001','窦怡宁',2,45,'','晚上梦多睡眠质量差',3,0,'2016-04-13 09:39:50','1'),(14,'PRE2016040100000005','20160322000003','20160322000001','窦怡宁',2,45,'','最近老感觉恶心,食欲不佳',0,0,'2016-04-13 09:39:51','1'),(15,'PRE2016040200000001','20160322000002','20160322000001','张华',1,26,'','手脚关节处咔咔响',0,0,'2016-04-01 11:26:40','1'),(16,'PRE2016040700000001','20160322000002','20160322000001','张华',1,26,'','感冒一个星期了还没好',0,0,'2016-03-24 10:33:42','1'),(17,'PRE2016041200000001','20160322000001','20160322000001','李碧玉',2,33,'','扁桃体发炎引起发热',0,0,'2016-03-16 15:15:00','1'),(18,'PRE2016041200000002','20160322000001','20160322000001','李碧玉',2,33,'','扁桃体发炎引起发热',0,0,'2016-03-12 14:50:20','1'),(19,'PRE2016041200000003','20160322000001','20160322000001','李碧玉',2,33,'','扁桃体发炎引起发热',0,0,'2016-03-06 16:21:17','1'),(20,'PRE2016041200000004','20160322000001','20160322000001','李碧玉',2,33,'','扁桃体发炎引起发热',0,0,'2016-03-02 15:33:13','1'),(21,'PRE2016041300000001','20160322000001','20160322000001','李碧玉',2,33,'','扁桃体发炎引起发热',0,0,'2016-04-13 09:43:54','1'); /*Table structure for table `wlyy_prescription_continue` */ DROP TABLE IF EXISTS `wlyy_prescription_continue`; CREATE TABLE `wlyy_prescription_continue` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `prescription` varchar(50) DEFAULT NULL COMMENT '处方标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '续诊时间', `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_prescription_continue_1` (`prescription`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='处方续方记录表'; /*Data for the table `wlyy_prescription_continue` */ insert into `wlyy_prescription_continue`(`id`,`prescription`,`patient`,`doctor`,`czrq`,`del`) values (2,'PRE2016032600000001','20160322000001','20160322000001','2016-03-26 14:03:54','1'),(3,'PRE2016032600000001','20160322000001','20160322000001','2016-03-26 14:09:20','1'),(4,'PRE2016032600000002','20160322000001','20160322000001','2016-03-26 14:10:26','1'); /*Table structure for table `wlyy_prescription_info` */ DROP TABLE IF EXISTS `wlyy_prescription_info`; CREATE TABLE `wlyy_prescription_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '药品标识', `prescription` varchar(50) DEFAULT NULL COMMENT '处方标识', `name` varchar(100) DEFAULT NULL COMMENT '药品名称', `standard` varchar(50) DEFAULT NULL COMMENT '药品规格', `dosage` double DEFAULT NULL COMMENT '次剂量', `dosage_unit` varchar(50) DEFAULT NULL COMMENT '次剂量单位', `frequency` int(11) DEFAULT NULL COMMENT '频次', `days` int(11) DEFAULT NULL COMMENT '天数', `total` double DEFAULT NULL COMMENT '总量', `total_unit` varchar(50) DEFAULT NULL COMMENT '总量单位', `method` varchar(500) DEFAULT NULL COMMENT '用药方法', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_prescription_info_2` (`code`), KEY `idx_wlyy_prescription_info_1` (`prescription`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COMMENT='处方明细表'; /*Data for the table `wlyy_prescription_info` */ insert into `wlyy_prescription_info`(`id`,`code`,`prescription`,`name`,`standard`,`dosage`,`dosage_unit`,`frequency`,`days`,`total`,`total_unit`,`method`,`czrq`,`del`) values (1,'PRIN2016032600000001','PRE2016032600000003','”药品名称”','”xxx”',50,'”xx”',1,1,5,'”xxx”','”xxxxx”','2016-03-26 09:47:48','1'),(4,'PRIN2016033100000003','PRE2016033100000002','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-03-31 14:38:20','1'),(5,'PRIN2016033100000004','PRE2016033100000002','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-03-31 14:38:20','1'),(6,'PRIN2016040100000001','PRE2016040100000001','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-01 00:31:22','1'),(7,'PRIN2016040100000002','PRE2016040100000001','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-01 00:31:22','1'),(8,'PRIN2016040100000003','PRE2016040100000002','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-01 00:32:35','1'),(9,'PRIN2016040100000004','PRE2016040100000002','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-01 00:32:35','1'),(10,'PRIN2016040100000005','PRE2016040100000003','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-01 00:33:16','1'),(11,'PRIN2016040100000006','PRE2016040100000003','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-01 00:33:16','1'),(12,'PRIN2016040100000007','PRE2016040100000004','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-01 11:09:36','1'),(13,'PRIN2016040100000008','PRE2016040100000004','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-01 11:09:36','1'),(14,'PRIN2016040100000009','PRE2016040100000005','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-01 14:11:15','1'),(15,'PRIN2016040100000010','PRE2016040100000005','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-01 14:11:15','1'),(16,'PRIN2016040200000001','PRE2016040200000001','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-02 12:04:36','1'),(17,'PRIN2016040200000002','PRE2016040200000001','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-02 12:04:36','1'),(18,'PRIN2016040700000001','PRE2016040700000001','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-07 19:16:24','1'),(19,'PRIN2016040700000002','PRE2016040700000001','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-07 19:16:24','1'),(20,'PRIN2016041200000001','PRE2016041200000001','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-12 14:36:37','1'),(21,'PRIN2016041200000002','PRE2016041200000001','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-12 14:36:37','1'),(22,'PRIN2016041200000003','PRE2016041200000002','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-12 14:40:28','1'),(23,'PRIN2016041200000004','PRE2016041200000002','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-12 14:40:28','1'),(24,'PRIN2016041200000005','PRE2016041200000003','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-12 16:21:17','1'),(25,'PRIN2016041200000006','PRE2016041200000003','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-12 16:21:17','1'),(26,'PRIN2016041200000007','PRE2016041200000004','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-12 16:22:13','1'),(27,'PRIN2016041200000008','PRE2016041200000004','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-12 16:22:13','1'),(28,'PRIN2016041300000001','PRE2016041300000001','复方阿司匹林颗粒','6片',2,'片',3,9,9,'盒','饭后服用','2016-04-13 09:43:54','1'),(29,'PRIN2016041300000002','PRE2016041300000001','999感冒灵软胶囊','12粒',2,'粒',3,9,5,'盒','饭后服用','2016-04-13 09:43:54','1'); /*Table structure for table `wlyy_prescription_template` */ DROP TABLE IF EXISTS `wlyy_prescription_template`; CREATE TABLE `wlyy_prescription_template` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '模板标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `name` varchar(100) DEFAULT NULL COMMENT '模板标题', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常 0作废', PRIMARY KEY (`id`), KEY `idx_wlyy_prescription_template_1` (`doctor`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='处方模板表'; /*Data for the table `wlyy_prescription_template` */ insert into `wlyy_prescription_template`(`id`,`code`,`doctor`,`name`,`czrq`,`del`) values (1,'TEMP2016032600000001','20160322000001','this is title','2016-03-26 10:20:50','1'); /*Table structure for table `wlyy_prescription_template_info` */ DROP TABLE IF EXISTS `wlyy_prescription_template_info`; CREATE TABLE `wlyy_prescription_template_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `template` varchar(50) DEFAULT NULL COMMENT '模板标识', `code` varchar(50) DEFAULT NULL COMMENT '药品标识', `name` varchar(100) DEFAULT NULL COMMENT '药品名称', `standard` varchar(50) DEFAULT NULL COMMENT '药品规格', `dosage` double DEFAULT NULL COMMENT '次剂量', `dosage_unit` varchar(50) DEFAULT NULL COMMENT '次剂量单位', `frequency` int(11) DEFAULT NULL COMMENT '频次', `days` int(11) DEFAULT NULL COMMENT '天数', `total` double DEFAULT NULL COMMENT '总量', `total_unit` varchar(50) DEFAULT NULL COMMENT '总量单位', `method` varchar(500) DEFAULT NULL COMMENT '用药方法', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_prescription_template_info_2` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='处方模板明细表'; /*Data for the table `wlyy_prescription_template_info` */ insert into `wlyy_prescription_template_info`(`id`,`template`,`code`,`name`,`standard`,`dosage`,`dosage_unit`,`frequency`,`days`,`total`,`total_unit`,`method`,`czrq`,`del`) values (1,'TEMP2016032600000001','PRIN2016032600000002','”药品名称”','”xxx”',50,'”xx”',1,1,5,'”xxx”','”xxxxx”','2016-03-26 10:07:22','1'); /*Table structure for table `wlyy_referral` */ DROP TABLE IF EXISTS `wlyy_referral`; CREATE TABLE `wlyy_referral` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) DEFAULT NULL COMMENT '转诊标识', `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识', `patient` varchar(50) DEFAULT NULL COMMENT '患者标识', `hospital` varchar(100) DEFAULT NULL COMMENT '医院名称', `dept` varchar(100) DEFAULT NULL COMMENT '科室名称', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加转诊时间', `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='转疹信息表'; /*Data for the table `wlyy_referral` */ insert into `wlyy_referral`(`id`,`code`,`doctor`,`patient`,`hospital`,`dept`,`czrq`,`del`) values (1,'REF2016032600000001','20160322000001','20160322000001','zhongyiyuan','neike','2016-03-26 15:12:56','1'),(2,'REF2016032600000002','20160322000001','20160322000001','zhongyiyuan','neike','2016-03-26 15:13:33','1'); /*Table structure for table `wlyy_sign_contract` */ DROP TABLE IF EXISTS `wlyy_sign_contract`; CREATE TABLE `wlyy_sign_contract` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '签约标识', `team` varchar(50) DEFAULT NULL COMMENT '签约医生团队,关联wlyy_doctor表', `user` varchar(50) DEFAULT NULL COMMENT '签约患者,关联wlyy_patient表', `uname` varchar(100) DEFAULT NULL COMMENT '患者姓名', `disease_condition` int(11) DEFAULT '0' COMMENT '病情:0绿标,1黄标,2红标', `begin` date DEFAULT NULL COMMENT '开始时间', `end` date DEFAULT NULL COMMENT '结束时间', `months` int(11) DEFAULT NULL COMMENT '一共多少个月', `status` int(11) DEFAULT '1' COMMENT '签约状态,1正常,0取消', PRIMARY KEY (`id`), KEY `idx_wlyy_sign_contract_1` (`team`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='三师签约信息表'; /*Data for the table `wlyy_sign_contract` */ insert into `wlyy_sign_contract`(`id`,`code`,`team`,`user`,`uname`,`disease_condition`,`begin`,`end`,`months`,`status`) values (1,'1','2','U20160322000001','李碧玉',0,'2016-01-01','2016-12-31',12,1),(2,'2','1','U20160322000002','张华',0,'2016-05-07','2017-06-07',12,1),(3,'3','1','U20160322000003','窦怡宁',1,'2016-05-07','2017-06-07',12,1); /*Table structure for table `wlyy_sign_web` */ DROP TABLE IF EXISTS `wlyy_sign_web`; CREATE TABLE `wlyy_sign_web` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `code` varchar(50) NOT NULL COMMENT '签约标识', `doctor` varchar(50) NOT NULL COMMENT '签约医生', `user` varchar(50) NOT NULL COMMENT '签约用户', `oper` int(11) DEFAULT NULL COMMENT '操作人(1患者,2医生)', `status` int(11) DEFAULT NULL COMMENT '签约状态(0待签约,1已拒绝,2已签约,3患者申请取消签约,4医生申请取消签约,5已解约)', `begin` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '签约开始时间', `end` timestamp NULL DEFAULT NULL COMMENT '签约结束时间', `months` int(11) DEFAULT '0' COMMENT '签约时长(如:12个月)', `apply_date` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间', `release_speak` varchar(200) DEFAULT NULL COMMENT '解约说明', PRIMARY KEY (`id`), KEY `idx_wlyy_sign_web_1` (`doctor`), KEY `idx_wlyy_sign_web_2` (`user`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COMMENT='网络签约信息表'; /*Data for the table `wlyy_sign_web` */ insert into `wlyy_sign_web`(`id`,`code`,`doctor`,`user`,`oper`,`status`,`begin`,`end`,`months`,`apply_date`,`release_speak`) values (9,'efd015a2ef964423a813459fd95ba654','D20160322000002','U20160322000004',1,2,'2024-08-01 00:00:00','2025-08-01 00:00:00',0,'2016-05-30 07:40:20',NULL),(10,'efd015a2ef964423a813459fd95ba656','D20160322000002','U20160322000001',1,1,'2016-05-30 03:52:28',NULL,0,'2016-05-30 03:52:28',NULL),(11,'efd015a2ef964423a813459fd95ba657','D20160322000002','U20160322000002',1,4,'2016-05-30 03:54:34',NULL,0,'2016-05-30 07:44:07',NULL),(12,'efd015a2ef964423a813459fd95ba656','D20160322000002','U20160322000003',1,4,'2016-05-30 03:59:46',NULL,0,'2016-05-30 03:59:46','不治了'),(13,'0f4d5258b0e24f36bb6140e52240031f','D20160322000002','4363b660999c4450a3ae44c3aff55d53',1,4,'2024-11-10 00:00:00','2025-11-10 00:00:00',0,'2016-05-31 08:11:34',NULL); /*Table structure for table `wlyy_sms` */ DROP TABLE IF EXISTS `wlyy_sms`; CREATE TABLE `wlyy_sms` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `mobile` varchar(20) DEFAULT NULL COMMENT '接收手机号', `type` int(11) DEFAULT NULL COMMENT '消息类型:1微信端注册,2微信端找回密码,3医生端找回密码', `content` varchar(500) DEFAULT NULL COMMENT '消息内容', `deadline` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '过期时间', `czrq` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '发送时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='短信记录表'; /*Data for the table `wlyy_sms` */ /*Table structure for table `wlyy_token` */ DROP TABLE IF EXISTS `wlyy_token`; CREATE TABLE `wlyy_token` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `user` varchar(50) NOT NULL COMMENT '用户标识', `platform` int(11) DEFAULT NULL COMMENT '1患者APP,2医生APP,3患者微信公众号', `timeout` date NOT NULL COMMENT '登录超时时间', `imei` varchar(50) NOT NULL COMMENT '登录手机的IMEI', `token` varchar(300) NOT NULL COMMENT '登录信息标识', `czrq` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '更新时间', `del` varchar(1) DEFAULT '1' COMMENT '数据是否作废(1正常,0作废)', PRIMARY KEY (`id`), UNIQUE KEY `idx_wlyy_token_1` (`user`) ) ENGINE=InnoDB AUTO_INCREMENT=321 DEFAULT CHARSET=utf8mb4 COMMENT='用户登录信息表'; /*Data for the table `wlyy_token` */ insert into `wlyy_token`(`id`,`user`,`platform`,`timeout`,`imei`,`token`,`czrq`,`del`) values (45,'U20160322000002',1,'2016-06-04','864394107420848','6774845c827a2ff56c9fbf2f408d389869888a3bc22c1a8a52564e1473952cb5112dc258b77c5630f78fd7ee857fe080757b3abb63915b5ae728767dd98ab0f56dd84e061e931ae20b7427a9be44531c543e21410caf8a33e605d73478d882acf79b5860440416ed98079292513608fd7a0e62a37a13625cfd689494a4741fe0','2016-05-05 02:51:28','1'),(296,'U20160322000001',1,'2016-07-03','864895027331840','2bae67fcc55cbc773c1a395aa341f044','2016-06-03 08:57:45','1'),(314,'U20160322000004',1,'2016-07-03','864895027424645','6bc7c21cbe930a64288d4dfe515441ef','2016-06-03 09:59:03','1'),(320,'D20160322000002',2,'2016-07-06','6624231597ae6ea0','05e4c229008d596a6eedfe0164f607d1','2016-06-06 05:48:44','1'); /*Table structure for table `wlyy_wx_patient` */ DROP TABLE IF EXISTS `wlyy_wx_patient`; CREATE TABLE `wlyy_wx_patient` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键', `openid` varchar(50) NOT NULL COMMENT '微信openid', `patient` varchar(50) NOT NULL COMMENT '患者标识', `status` int(11) DEFAULT '1' COMMENT '状态(1正常,0注销)', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_wlyy_user_3` (`openid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信与患者关联表/微信登录信息表'; /*Data for the table `wlyy_wx_patient` */ /*Table structure for table `wx_access_token` */ DROP TABLE IF EXISTS `wx_access_token`; CREATE TABLE `wx_access_token` ( `access_token` varchar(300) NOT NULL COMMENT '微信中控服务器access_token', `add_timestamp` decimal(15,0) NOT NULL COMMENT '添加时的秒数', `expires_in` int(11) NOT NULL COMMENT ' 凭证有效时间(秒)', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间', `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4; /*Data for the table `wx_access_token` */ /*Table structure for table `wx_jsapi_ticket` */ DROP TABLE IF EXISTS `wx_jsapi_ticket`; CREATE TABLE `wx_jsapi_ticket` ( `jsapi_ticket` varchar(300) NOT NULL COMMENT '调用微信JS接口的临时票据', `add_timestamp` decimal(15,0) NOT NULL COMMENT '添加时的秒数', `expires_in` int(11) NOT NULL COMMENT ' 凭证有效时间(秒)', `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间', `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4; /*Data for the table `wx_jsapi_ticket` */ /*Table structure for table `wx_menu` */ DROP TABLE IF EXISTS `wx_menu`; CREATE TABLE `wx_menu` ( `sup_menuid` varchar(50) DEFAULT NULL, `menuid` varchar(50) DEFAULT NULL, `type` varchar(10) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `key` varchar(50) DEFAULT NULL, `url` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信自定义菜单表'; /*Data for the table `wx_menu` */ /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;