wlyy_0602.sql 266 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517
  1. /*
  2. SQLyog v10.2
  3. MySQL - 5.6.29 : Database - wlyy
  4. *********************************************************************
  5. */
  6. /*!40101 SET NAMES utf8 */;
  7. /*!40101 SET SQL_MODE=''*/;
  8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  12. CREATE DATABASE /*!32312 IF NOT EXISTS*/`wlyy` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
  13. USE `wlyy`;
  14. /*Table structure for table `dm_city` */
  15. DROP TABLE IF EXISTS `dm_city`;
  16. CREATE TABLE `dm_city` (
  17. `id` int(11) NOT NULL AUTO_INCREMENT,
  18. `province` varchar(10) DEFAULT NULL COMMENT '省编码',
  19. `code` varchar(50) DEFAULT NULL COMMENT '城市编码',
  20. `name` varchar(50) DEFAULT NULL COMMENT '城市名称',
  21. PRIMARY KEY (`id`),
  22. KEY `idx_dm_city_province` (`province`)
  23. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='城市字典表';
  24. /*Data for the table `dm_city` */
  25. insert into `dm_city`(`id`,`province`,`code`,`name`) values (1,'1','1','厦门市');
  26. /*Table structure for table `dm_device_category` */
  27. DROP TABLE IF EXISTS `dm_device_category`;
  28. CREATE TABLE `dm_device_category` (
  29. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  30. `code` varchar(50) NOT NULL COMMENT '设备类型标识',
  31. `name` varchar(50) NOT NULL COMMENT '设备类型名称',
  32. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  33. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  34. PRIMARY KEY (`id`)
  35. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='设备分类表';
  36. /*Data for the table `dm_device_category` */
  37. 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');
  38. /*Table structure for table `dm_disease` */
  39. DROP TABLE IF EXISTS `dm_disease`;
  40. CREATE TABLE `dm_disease` (
  41. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  42. `code` varchar(50) DEFAULT NULL COMMENT '疾病标识',
  43. `name` varchar(100) DEFAULT NULL COMMENT '疾病名称',
  44. `dept` varchar(20) DEFAULT NULL COMMENT '科室标识',
  45. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  46. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0删除',
  47. PRIMARY KEY (`id`),
  48. KEY `idx_dm_disease_1` (`dept`)
  49. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='疾病字典表';
  50. /*Data for the table `dm_disease` */
  51. /*Table structure for table `dm_error_code` */
  52. DROP TABLE IF EXISTS `dm_error_code`;
  53. CREATE TABLE `dm_error_code` (
  54. `code` varchar(50) NOT NULL COMMENT '错误编码',
  55. `des` varchar(200) NOT NULL COMMENT '错误描述'
  56. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='错误代码表';
  57. /*Data for the table `dm_error_code` */
  58. /*Table structure for table `dm_hospital` */
  59. DROP TABLE IF EXISTS `dm_hospital`;
  60. CREATE TABLE `dm_hospital` (
  61. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  62. `code` varchar(50) NOT NULL COMMENT '医院标识',
  63. `province` varchar(50) DEFAULT NULL COMMENT '省份标识',
  64. `city` varchar(50) DEFAULT NULL COMMENT '城市标识',
  65. `town` varchar(50) DEFAULT NULL COMMENT '区县标识',
  66. `name` varchar(100) NOT NULL COMMENT '医院名称',
  67. `level` int(11) NOT NULL DEFAULT '1' COMMENT '级别,1医院,2社区医院',
  68. `address` varchar(300) NOT NULL COMMENT '医院详细地址',
  69. `intro` text COMMENT '医院简介',
  70. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  71. `province_name` varchar(50) DEFAULT NULL COMMENT '省份名称',
  72. `city_name` varchar(50) DEFAULT NULL COMMENT '城市名称',
  73. `town_name` varchar(50) DEFAULT NULL COMMENT '区县名称',
  74. `photo` varchar(200) DEFAULT NULL,
  75. PRIMARY KEY (`id`),
  76. KEY `idx_dm_hospital_1` (`province`)
  77. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='医院字典表';
  78. /*Data for the table `dm_hospital` */
  79. 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);
  80. /*Table structure for table `dm_hospital_dept` */
  81. DROP TABLE IF EXISTS `dm_hospital_dept`;
  82. CREATE TABLE `dm_hospital_dept` (
  83. `code` varchar(50) NOT NULL COMMENT '科室标识',
  84. `name` varchar(50) NOT NULL COMMENT '科室名称',
  85. `del` varchar(1) DEFAULT '1' COMMENT '删除标识,1正常,0删除',
  86. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '非业务主键',
  87. PRIMARY KEY (`id`)
  88. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医院科室字典表';
  89. /*Data for the table `dm_hospital_dept` */
  90. insert into `dm_hospital_dept`(`code`,`name`,`del`,`id`) values ('1','妇科','1',1),('2','心脑血管','1',2),('3','耳鼻喉外科','1',3);
  91. /*Table structure for table `dm_intervene_item_type` */
  92. DROP TABLE IF EXISTS `dm_intervene_item_type`;
  93. CREATE TABLE `dm_intervene_item_type` (
  94. `code` varchar(50) NOT NULL COMMENT '血糖记录类型标识',
  95. `name` varchar(50) NOT NULL COMMENT '血糖记录类型名称',
  96. `type` int(11) NOT NULL COMMENT '健康指标类型(1血糖,2血压,3体重,4腰围,5运动,6用药)',
  97. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1否,0是'
  98. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康干预选项类型表';
  99. /*Data for the table `dm_intervene_item_type` */
  100. /*Table structure for table `dm_job` */
  101. DROP TABLE IF EXISTS `dm_job`;
  102. CREATE TABLE `dm_job` (
  103. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '非业务主键',
  104. `code` varchar(50) DEFAULT NULL COMMENT '职称标识',
  105. `name` varchar(20) DEFAULT NULL COMMENT '职称名',
  106. `del` varchar(1) DEFAULT NULL COMMENT '是否正常 1正常 0异常',
  107. PRIMARY KEY (`id`)
  108. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
  109. /*Data for the table `dm_job` */
  110. insert into `dm_job`(`id`,`code`,`name`,`del`) values (1,'1','主任医师','1'),(2,'2','副主任医师','1');
  111. /*Table structure for table `dm_medicines` */
  112. DROP TABLE IF EXISTS `dm_medicines`;
  113. CREATE TABLE `dm_medicines` (
  114. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  115. `code` varchar(50) NOT NULL COMMENT '药品编码',
  116. `name` varchar(50) NOT NULL COMMENT '药品名称',
  117. `type` int(11) DEFAULT NULL COMMENT '药品类型:1健康记录',
  118. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  119. PRIMARY KEY (`id`),
  120. KEY `idx_dm_medicines_1` (`code`)
  121. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='药品字典';
  122. /*Data for the table `dm_medicines` */
  123. insert into `dm_medicines`(`id`,`code`,`name`,`type`,`del`) values (1,'1','基础胰岛素',1,'1'),(2,'2','预混胰岛素',1,'1'),(3,'3','阿司匹林',1,'1');
  124. /*Table structure for table `dm_province` */
  125. DROP TABLE IF EXISTS `dm_province`;
  126. CREATE TABLE `dm_province` (
  127. `id` int(11) NOT NULL AUTO_INCREMENT,
  128. `code` varchar(50) NOT NULL COMMENT '省份编码',
  129. `name` varchar(50) NOT NULL COMMENT '省份名称',
  130. PRIMARY KEY (`id`)
  131. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='省份表';
  132. /*Data for the table `dm_province` */
  133. insert into `dm_province`(`id`,`code`,`name`) values (1,'1','福建省');
  134. /*Table structure for table `dm_relationship` */
  135. DROP TABLE IF EXISTS `dm_relationship`;
  136. CREATE TABLE `dm_relationship` (
  137. `code` varchar(50) NOT NULL COMMENT '关系标识',
  138. `name` varchar(50) NOT NULL COMMENT '关系名称',
  139. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  140. KEY `idx_dm_relationship_1` (`code`)
  141. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='家族关系字典表';
  142. /*Data for the table `dm_relationship` */
  143. /*Table structure for table `dm_rsa` */
  144. DROP TABLE IF EXISTS `dm_rsa`;
  145. CREATE TABLE `dm_rsa` (
  146. `id` int(11) NOT NULL AUTO_INCREMENT,
  147. `data` blob,
  148. PRIMARY KEY (`id`)
  149. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='RSA加密信息';
  150. /*Data for the table `dm_rsa` */
  151. 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$<bCu6A}2$+E^i1VNpE#vvL\r%:OevRKwxsq\0~\0 \0\0\0uq\0~\0\r\0\0\0@HuW}1\nÒH KcO+Al;ɓ7e² ̤G+dZ{DŽxsq\0~\0 \0\0\0uq\0~\0\r\0\0\0@A@x/v-yXeX:\\ݒ п6}?˧\\msOX8xsq\0~\0 \0\0\0uq\0~\0\r\0\0\0@Lʎ\06 xTsjB+ħ2>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\"');
  152. /*Table structure for table `dm_sequence` */
  153. DROP TABLE IF EXISTS `dm_sequence`;
  154. CREATE TABLE `dm_sequence` (
  155. `id` int(11) NOT NULL AUTO_INCREMENT,
  156. `prefix` varchar(10) NOT NULL COMMENT '前缀,如DOC',
  157. `time` varchar(8) NOT NULL COMMENT '日期,如20160301',
  158. `seq` int(8) NOT NULL COMMENT '当前序号',
  159. `len` int(11) NOT NULL COMMENT '序号长度,不足默认补0',
  160. `flag` int(11) DEFAULT NULL COMMENT '是否要包含前缀,1包含,0不包含',
  161. PRIMARY KEY (`id`),
  162. UNIQUE KEY `idx_dm_sequence_1` (`prefix`,`time`)
  163. ) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8mb4 COMMENT='序列生成记录表';
  164. /*Data for the table `dm_sequence` */
  165. 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);
  166. /*Table structure for table `dm_sports` */
  167. DROP TABLE IF EXISTS `dm_sports`;
  168. CREATE TABLE `dm_sports` (
  169. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  170. `code` varchar(50) DEFAULT NULL COMMENT '运动编码',
  171. `name` varchar(100) DEFAULT NULL COMMENT '运动名称',
  172. `type` varchar(20) DEFAULT NULL COMMENT '运动强度类型标识',
  173. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  174. PRIMARY KEY (`id`),
  175. KEY `idx_dm_sports_1` (`code`)
  176. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='运动类型字典表';
  177. /*Data for the table `dm_sports` */
  178. 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');
  179. /*Table structure for table `dm_sports_type` */
  180. DROP TABLE IF EXISTS `dm_sports_type`;
  181. CREATE TABLE `dm_sports_type` (
  182. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  183. `code` varchar(50) DEFAULT NULL COMMENT '强度编码',
  184. `name` varchar(100) DEFAULT NULL COMMENT '强度名称',
  185. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  186. PRIMARY KEY (`id`),
  187. KEY `idx_dm_sports_type_1` (`code`)
  188. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='运动强度字典表';
  189. /*Data for the table `dm_sports_type` */
  190. insert into `dm_sports_type`(`id`,`code`,`name`,`del`) values (1,'1','轻度运动','1'),(2,'2','中度运动','1'),(3,'3','稍强运动','1'),(4,'4','强度运动','1');
  191. /*Table structure for table `dm_town` */
  192. DROP TABLE IF EXISTS `dm_town`;
  193. CREATE TABLE `dm_town` (
  194. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  195. `province` varchar(50) DEFAULT NULL COMMENT '省编码',
  196. `city` varchar(50) DEFAULT NULL COMMENT '城市编码',
  197. `code` varchar(50) DEFAULT NULL COMMENT '区县编码',
  198. `name` varchar(50) DEFAULT NULL COMMENT '区县名称',
  199. PRIMARY KEY (`id`),
  200. KEY `idx_dm_town_1` (`city`)
  201. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='区县字典表';
  202. /*Data for the table `dm_town` */
  203. 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','翔安区');
  204. /*Table structure for table `wlyy_advert` */
  205. DROP TABLE IF EXISTS `wlyy_advert`;
  206. CREATE TABLE `wlyy_advert` (
  207. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  208. `title` varchar(100) DEFAULT NULL COMMENT '广告标题',
  209. `from` varchar(100) DEFAULT NULL COMMENT '广告来源',
  210. `photo` varchar(100) DEFAULT NULL COMMENT '广告图片',
  211. `url` varchar(100) DEFAULT NULL COMMENT '广告链接地址',
  212. `seq` int(11) DEFAULT NULL COMMENT '广告显示顺序',
  213. `type` int(11) DEFAULT NULL COMMENT '广告类型(如主页广告)',
  214. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '发布时间',
  215. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  216. `czy` varchar(20) NOT NULL COMMENT '操作员,关联wlyy_user表',
  217. PRIMARY KEY (`id`)
  218. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统广告表';
  219. /*Data for the table `wlyy_advert` */
  220. /*Table structure for table `wlyy_chat_log` */
  221. DROP TABLE IF EXISTS `wlyy_chat_log`;
  222. CREATE TABLE `wlyy_chat_log` (
  223. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  224. `msgid` varchar(50) DEFAULT NULL COMMENT '消息ID',
  225. `sender` varchar(50) DEFAULT NULL COMMENT '发送人',
  226. `receiver` varchar(50) DEFAULT NULL COMMENT '接收人',
  227. `msg_type` int(11) DEFAULT NULL COMMENT '消息类型(1文本,2图片、3语音)',
  228. `chat_type` int(11) DEFAULT NULL COMMENT '聊天类型(1单聊,2群聊)',
  229. `content` varchar(1000) DEFAULT NULL COMMENT '消息内容',
  230. `state` int(11) DEFAULT NULL COMMENT '消息状态(1已发送,2已接收,3已读)',
  231. `platform` int(11) DEFAULT NULL COMMENT '消息平台,1微信,2医生APP',
  232. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '发送时间',
  233. `del` varchar(1) DEFAULT NULL COMMENT '是否已作废(1正常,0已作废)',
  234. PRIMARY KEY (`id`)
  235. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='聊天记录表';
  236. /*Data for the table `wlyy_chat_log` */
  237. /*Table structure for table `wlyy_complaint_doctor` */
  238. DROP TABLE IF EXISTS `wlyy_complaint_doctor`;
  239. CREATE TABLE `wlyy_complaint_doctor` (
  240. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  241. `code` varchar(50) DEFAULT NULL COMMENT '投诉标识',
  242. `user` varchar(50) DEFAULT NULL COMMENT '患者标识',
  243. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  244. `content` varchar(3000) DEFAULT NULL COMMENT '投诉内容',
  245. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '投诉时间',
  246. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  247. PRIMARY KEY (`id`)
  248. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='投诉医生表';
  249. /*Data for the table `wlyy_complaint_doctor` */
  250. /*Table structure for table `wlyy_consult` */
  251. DROP TABLE IF EXISTS `wlyy_consult`;
  252. CREATE TABLE `wlyy_consult` (
  253. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  254. `code` varchar(50) NOT NULL COMMENT '咨询标识',
  255. `patient` varchar(50) NOT NULL COMMENT '咨询患者标识',
  256. `type` int(11) NOT NULL COMMENT '咨询类型:1三师咨询,2视频咨询,3图文咨询,4公共咨询,5病友圈',
  257. `title` varchar(300) DEFAULT NULL COMMENT '咨询标题',
  258. `symptoms` varchar(500) DEFAULT NULL COMMENT '主诉',
  259. `images` varchar(3000) DEFAULT NULL COMMENT '咨询图片URL,多图以逗号分隔',
  260. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间',
  261. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  262. PRIMARY KEY (`id`),
  263. KEY `idx_wlyy_consult_1` (`patient`,`type`)
  264. ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COMMENT='患者视频、三师、公共、病友等咨询记录表';
  265. /*Data for the table `wlyy_consult` */
  266. 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');
  267. /*Table structure for table `wlyy_consult_communication` */
  268. DROP TABLE IF EXISTS `wlyy_consult_communication`;
  269. CREATE TABLE `wlyy_consult_communication` (
  270. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  271. `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识',
  272. `patient` varchar(50) DEFAULT NULL COMMENT '咨询患者标识',
  273. `name` varchar(50) DEFAULT NULL COMMENT '患者姓名',
  274. `photo` varchar(300) DEFAULT NULL COMMENT '患者头像',
  275. `title` varchar(300) DEFAULT NULL COMMENT '问题标题',
  276. `content` varchar(1000) DEFAULT NULL COMMENT '问题描述',
  277. `images` varchar(3000) DEFAULT NULL COMMENT '图片URL,多图以逗号分隔',
  278. `amount` int(11) DEFAULT NULL COMMENT '回复数量',
  279. `unread` int(11) DEFAULT NULL COMMENT '未读数量',
  280. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间',
  281. `del` varchar(1) DEFAULT NULL COMMENT '作废标识:1正常,0作废',
  282. PRIMARY KEY (`id`),
  283. KEY `idx_wlyy_consult_text_1` (`patient`)
  284. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='病友圈表';
  285. /*Data for the table `wlyy_consult_communication` */
  286. 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');
  287. /*Table structure for table `wlyy_consult_communication_reply` */
  288. DROP TABLE IF EXISTS `wlyy_consult_communication_reply`;
  289. CREATE TABLE `wlyy_consult_communication_reply` (
  290. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  291. `consult` varchar(50) NOT NULL COMMENT '咨询标识',
  292. `patient` varchar(50) NOT NULL COMMENT '回复患者标识',
  293. `name` varchar(50) DEFAULT NULL COMMENT '回复者姓名',
  294. `photo` varchar(300) DEFAULT NULL COMMENT '回复者头像',
  295. `content` varchar(3000) NOT NULL COMMENT '回复内容',
  296. `images` varchar(1000) DEFAULT NULL COMMENT '回复图片URL地址,多图以逗号分隔',
  297. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '回复时间',
  298. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  299. PRIMARY KEY (`id`),
  300. KEY `idx_wlyy_consult_text_reply_1` (`consult`)
  301. ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COMMENT='病友圈回复记录表';
  302. /*Data for the table `wlyy_consult_communication_reply` */
  303. 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');
  304. /*Table structure for table `wlyy_consult_movi` */
  305. DROP TABLE IF EXISTS `wlyy_consult_movi`;
  306. CREATE TABLE `wlyy_consult_movi` (
  307. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  308. `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识',
  309. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  310. `doctor_name` varchar(100) DEFAULT NULL COMMENT '医生姓名',
  311. `team` varchar(50) DEFAULT NULL COMMENT '三师团队标识',
  312. `team_name` varchar(100) DEFAULT NULL COMMENT '三师团队名称',
  313. `target` int(11) DEFAULT NULL COMMENT '预约类型:1指定医生,2三师预约',
  314. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  315. `family` varchar(50) DEFAULT NULL COMMENT '家人标识',
  316. `name` varchar(100) DEFAULT NULL COMMENT '姓名',
  317. `sex` int(11) DEFAULT NULL COMMENT '性别',
  318. `photo` varchar(300) DEFAULT NULL COMMENT '头像',
  319. `birthday` date DEFAULT NULL COMMENT '头像',
  320. `type` int(11) DEFAULT NULL COMMENT '咨询类型,1电话咨询,2视频咨询',
  321. `content` varchar(3000) DEFAULT NULL COMMENT '咨询内容说明',
  322. `scheduling` varchar(50) DEFAULT NULL COMMENT '排班标识',
  323. `appo_date` datetime DEFAULT NULL COMMENT '预约日期',
  324. `appo_week` int(11) DEFAULT NULL COMMENT '预约星期',
  325. `hour_begin` time DEFAULT NULL COMMENT '预约开始时间',
  326. `hour_end` time DEFAULT NULL COMMENT '预约结束时间',
  327. `images` varchar(3000) DEFAULT NULL COMMENT '图片URL,多图逗号分隔',
  328. `status` int(11) DEFAULT NULL COMMENT '咨询状态:0待医生同意,-1医生拒绝,1医生同意,2咨询完成',
  329. `comment` varchar(50) DEFAULT NULL COMMENT '评论标识',
  330. `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间',
  331. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  332. PRIMARY KEY (`id`),
  333. UNIQUE KEY `idx_wlyy_consult_movi_1` (`consult`),
  334. KEY `idx_wlyy_consult_movi_2` (`doctor`),
  335. KEY `idx_wlyy_consult_movi_3` (`patient`)
  336. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='电话、视频咨询表';
  337. /*Data for the table `wlyy_consult_movi` */
  338. /*Table structure for table `wlyy_consult_movi_referral` */
  339. DROP TABLE IF EXISTS `wlyy_consult_movi_referral`;
  340. CREATE TABLE `wlyy_consult_movi_referral` (
  341. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  342. `consult` varchar(50) NOT NULL COMMENT '视频咨询标识',
  343. `form_doctor` varchar(50) DEFAULT NULL COMMENT '转出医生标识',
  344. `form_doctor_name` varchar(100) NOT NULL COMMENT '转出医生姓名',
  345. `to_doctor` varchar(50) NOT NULL COMMENT '转入医生标识',
  346. `scheduling` varchar(50) DEFAULT NULL COMMENT '排班标识',
  347. `appo_date` date DEFAULT NULL COMMENT '预约日期',
  348. `appo_week` int(11) DEFAULT NULL COMMENT '预约星期',
  349. `hour_begin` time DEFAULT NULL COMMENT '预约开始时间',
  350. `hour_end` time DEFAULT NULL COMMENT '预约结束时间',
  351. `talk_time` int(11) DEFAULT '0' COMMENT '通话时长:分钟',
  352. `content` varchar(500) DEFAULT NULL COMMENT '转诊说明',
  353. `flag` int(11) DEFAULT '0' COMMENT '是否已转诊:1是,0否',
  354. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '转诊时间',
  355. PRIMARY KEY (`id`),
  356. UNIQUE KEY `idx_wlyy_consult_movi_referral_2` (`consult`,`to_doctor`),
  357. KEY `idx_wlyy_consult_movi_referral_1` (`consult`)
  358. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='视频咨询转诊记录表';
  359. /*Data for the table `wlyy_consult_movi_referral` */
  360. /*Table structure for table `wlyy_consult_public` */
  361. DROP TABLE IF EXISTS `wlyy_consult_public`;
  362. CREATE TABLE `wlyy_consult_public` (
  363. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  364. `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识',
  365. `patient` varchar(50) DEFAULT NULL COMMENT '咨询患者标识',
  366. `name` varchar(50) DEFAULT NULL COMMENT '患者姓名',
  367. `photo` varchar(300) DEFAULT NULL COMMENT '患者头像',
  368. `fbsj` varchar(50) DEFAULT NULL COMMENT '发病时间(如:1小时前)',
  369. `title` varchar(300) DEFAULT NULL COMMENT '问题标题',
  370. `content` varchar(1000) DEFAULT NULL COMMENT '问题描述',
  371. `images` varchar(3000) DEFAULT NULL COMMENT '图片URL,多图以逗号分隔',
  372. `amount` int(11) DEFAULT NULL COMMENT '回复数量',
  373. `unread` int(11) DEFAULT NULL COMMENT '未读数量',
  374. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间',
  375. `del` varchar(1) DEFAULT NULL COMMENT '作废标识:1正常,0作废',
  376. PRIMARY KEY (`id`),
  377. KEY `idx_wlyy_consult_public_1` (`patient`)
  378. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COMMENT='公共咨询记录表';
  379. /*Data for the table `wlyy_consult_public` */
  380. 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','',0,0,'2016-06-01 10:56:46','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');
  381. /*Table structure for table `wlyy_consult_public_reply` */
  382. DROP TABLE IF EXISTS `wlyy_consult_public_reply`;
  383. CREATE TABLE `wlyy_consult_public_reply` (
  384. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  385. `consult` varchar(50) NOT NULL COMMENT '交流标识',
  386. `patient` varchar(50) DEFAULT NULL COMMENT '回复患者标识',
  387. `doctor` varchar(50) DEFAULT NULL COMMENT '回复医生标识',
  388. `name` varchar(50) DEFAULT NULL COMMENT '回复者姓名',
  389. `photo` varchar(300) DEFAULT NULL COMMENT '回复者头像',
  390. `content` varchar(3000) NOT NULL COMMENT '回复内容',
  391. `images` varchar(1000) DEFAULT NULL COMMENT '回复图片URL地址,多图以逗号分隔',
  392. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '回复时间',
  393. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  394. PRIMARY KEY (`id`),
  395. KEY `idx_wlyy_consult_public_reply_1` (`consult`)
  396. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='图文咨询、公共咨询、病友圈咨询回复记录表';
  397. /*Data for the table `wlyy_consult_public_reply` */
  398. 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');
  399. /*Table structure for table `wlyy_consult_team` */
  400. DROP TABLE IF EXISTS `wlyy_consult_team`;
  401. CREATE TABLE `wlyy_consult_team` (
  402. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  403. `consult` varchar(50) NOT NULL COMMENT '咨询标识',
  404. `doctor` varchar(50) DEFAULT NULL COMMENT '健康管理师标识',
  405. `team` varchar(50) DEFAULT NULL COMMENT '三师团队标识',
  406. `type` int(11) DEFAULT '2' COMMENT '1指定医生,2三师咨询',
  407. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  408. `name` varchar(50) DEFAULT NULL COMMENT '患者姓名',
  409. `birthday` date DEFAULT NULL COMMENT '患者生日',
  410. `photo` varchar(300) DEFAULT NULL COMMENT '患者头像',
  411. `fbsj` varchar(30) DEFAULT NULL COMMENT '发病时间(如:最近3个月)',
  412. `symptoms` varchar(500) DEFAULT NULL COMMENT '主要症状',
  413. `status` int(11) DEFAULT NULL COMMENT '咨询状态(0进行中,1已完成,-1患者取消)',
  414. `images` varchar(3000) DEFAULT NULL COMMENT '咨询图片URL,多图以逗号分隔',
  415. `voice` varchar(300) DEFAULT NULL COMMENT '咨询语音URL',
  416. `comment` varchar(50) DEFAULT NULL COMMENT '用户评价标识',
  417. `comment_content` varchar(500) DEFAULT NULL COMMENT '用户评价内容',
  418. `comment_star` int(11) DEFAULT NULL COMMENT '用户评价星级',
  419. `doctor_read` int(11) DEFAULT NULL COMMENT '医生未读数量',
  420. `patient_read` int(11) DEFAULT NULL COMMENT '患者未读数量',
  421. `del` varchar(1) DEFAULT NULL COMMENT '作废标识,1正常,0作废',
  422. `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '咨询时间',
  423. PRIMARY KEY (`id`),
  424. KEY `idx_wlyy_consult_team_1` (`doctor`),
  425. KEY `idx_wlyy_consult_team_2` (`patient`)
  426. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='三师咨询';
  427. /*Data for the table `wlyy_consult_team` */
  428. 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,0,'1','2016-06-01 03:25:46');
  429. /*Table structure for table `wlyy_consult_team_doctor` */
  430. DROP TABLE IF EXISTS `wlyy_consult_team_doctor`;
  431. CREATE TABLE `wlyy_consult_team_doctor` (
  432. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  433. `consult` varchar(50) DEFAULT NULL COMMENT '图文咨询标识',
  434. `form_doctor` varchar(50) DEFAULT NULL COMMENT '转出医生标识',
  435. `form_doctor_name` varchar(100) DEFAULT NULL COMMENT '转出医生姓名',
  436. `to_doctor` varchar(50) DEFAULT NULL COMMENT '接收医生标识',
  437. `reply` int(11) DEFAULT NULL COMMENT '是否有回复过',
  438. `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '转接时间',
  439. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  440. PRIMARY KEY (`id`)
  441. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='三师咨询转接给的医生记录';
  442. /*Data for the table `wlyy_consult_team_doctor` */
  443. 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',0,'2016-05-31 06:07:25','1');
  444. /*Table structure for table `wlyy_consult_team_log` */
  445. DROP TABLE IF EXISTS `wlyy_consult_team_log`;
  446. CREATE TABLE `wlyy_consult_team_log` (
  447. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  448. `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识',
  449. `doctor` varchar(50) DEFAULT NULL COMMENT '回复医生标识',
  450. `doctor_name` varchar(50) DEFAULT NULL COMMENT '回复医生姓名',
  451. `photo` varchar(300) DEFAULT NULL COMMENT '回复人头像',
  452. `content` varchar(3000) DEFAULT NULL COMMENT '回复内容/追问内容',
  453. `type` int(11) DEFAULT NULL COMMENT '类型,0问,1回复,2追问,3评价',
  454. `chat_type` int(11) DEFAULT '1' COMMENT '记录类型:1文字,2图片,3语音',
  455. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  456. `del` varchar(1) DEFAULT NULL COMMENT '作废标识,1正常,0作废',
  457. PRIMARY KEY (`id`),
  458. KEY `idx_wlyy_consult_team_log_1` (`consult`)
  459. ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COMMENT='三师咨询日志表';
  460. /*Data for the table `wlyy_consult_team_log` */
  461. 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小时<br>主要症状:咳嗽',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小时<br>主要症状:咳嗽咳嗽,头晕难受的',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小时<br>主要症状:sdfsdfsdfsd',0,1,'2016-05-31 06:07:25','1');
  462. /*Table structure for table `wlyy_doctor` */
  463. DROP TABLE IF EXISTS `wlyy_doctor`;
  464. CREATE TABLE `wlyy_doctor` (
  465. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  466. `code` varchar(50) NOT NULL COMMENT '医生标识',
  467. `name` varchar(50) DEFAULT NULL COMMENT '姓名',
  468. `sex` int(11) DEFAULT NULL COMMENT '性别(1男,2女)',
  469. `birthday` date DEFAULT NULL COMMENT '生日',
  470. `photo` varchar(100) DEFAULT NULL COMMENT '头像http地址',
  471. `mobile` varchar(20) NOT NULL COMMENT '手机号',
  472. `password` varchar(50) NOT NULL COMMENT '密码',
  473. `salt` varchar(50) DEFAULT NULL,
  474. `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态(1正常,0禁用)',
  475. `province` varchar(50) DEFAULT NULL COMMENT '省',
  476. `city` varchar(50) DEFAULT NULL COMMENT '市',
  477. `hospital` varchar(50) DEFAULT NULL COMMENT '医院标识',
  478. `dept` varchar(50) DEFAULT NULL COMMENT '科室标识',
  479. `job` varchar(50) DEFAULT NULL COMMENT '职称',
  480. `expertise` varchar(300) DEFAULT NULL COMMENT '医生专长',
  481. `introduce` varchar(3000) DEFAULT NULL COMMENT '医生介绍',
  482. `level` int(11) DEFAULT '0' COMMENT '类型:1专科医生,2全科医生,3健康管理师',
  483. `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  484. `iscertified` int(11) NOT NULL DEFAULT '0' COMMENT '资格是否认证通过,1是,0否',
  485. `qrcode` varchar(30) DEFAULT NULL COMMENT '二维码',
  486. `province_name` varchar(50) DEFAULT NULL COMMENT '省名称',
  487. `city_name` varchar(50) DEFAULT NULL COMMENT '市名称',
  488. `hospital_name` varchar(50) DEFAULT NULL COMMENT '医院名称',
  489. `dept_name` varchar(50) DEFAULT NULL COMMENT '科室名称',
  490. `job_name` varchar(50) DEFAULT NULL COMMENT '职称名称',
  491. `town` varchar(50) DEFAULT NULL COMMENT '区县标识',
  492. `town_name` varchar(50) DEFAULT NULL COMMENT '区县名称',
  493. PRIMARY KEY (`id`),
  494. UNIQUE KEY `idx_wlyy_doctor_info_uid` (`code`),
  495. UNIQUE KEY `idx_wlyy_doctor_info_2` (`mobile`,`password`)
  496. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医生信息表';
  497. /*Data for the table `wlyy_doctor` */
  498. 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','','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','思明区');
  499. /*Table structure for table `wlyy_doctor_address` */
  500. DROP TABLE IF EXISTS `wlyy_doctor_address`;
  501. CREATE TABLE `wlyy_doctor_address` (
  502. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  503. `code` varchar(50) NOT NULL COMMENT '地址标识',
  504. `doctor` varchar(50) NOT NULL COMMENT '医生标识,关联wlyy_doctor表',
  505. `dept` varchar(50) NOT NULL COMMENT '所在科室',
  506. `province` varchar(50) DEFAULT NULL COMMENT '省标识',
  507. `city` varchar(50) DEFAULT NULL COMMENT '市标识',
  508. `town` varchar(50) DEFAULT NULL COMMENT '区县标识',
  509. `address` varchar(100) NOT NULL COMMENT '地址',
  510. `state` int(11) DEFAULT NULL COMMENT '当前所在位置,1是,0否',
  511. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  512. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  513. PRIMARY KEY (`id`),
  514. KEY `idx_wlyy_doctor_address_uid` (`doctor`)
  515. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生工作地址';
  516. /*Data for the table `wlyy_doctor_address` */
  517. /*Table structure for table `wlyy_doctor_comment` */
  518. DROP TABLE IF EXISTS `wlyy_doctor_comment`;
  519. CREATE TABLE `wlyy_doctor_comment` (
  520. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  521. `code` varchar(50) DEFAULT NULL COMMENT '评价标识',
  522. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识,关联wlyy_doctor表',
  523. `dname` varchar(100) DEFAULT NULL COMMENT '医生姓名',
  524. `user` varchar(50) DEFAULT NULL COMMENT '用户标识,关联wlyy_patient表',
  525. `uname` varchar(50) DEFAULT NULL COMMENT '评价人姓名',
  526. `content` varchar(300) DEFAULT NULL COMMENT '评价内容',
  527. `star` int(11) DEFAULT NULL COMMENT '星级',
  528. `type` int(11) DEFAULT NULL COMMENT '评价类型:1视频咨询评价、2图文咨询评价',
  529. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '评价时间',
  530. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  531. PRIMARY KEY (`id`),
  532. KEY `idx_wlyy_doctor_comment_doctor` (`doctor`),
  533. KEY `wlyy_doctor_comment_user` (`user`)
  534. ) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb4 COMMENT='医生评价表';
  535. /*Data for the table `wlyy_doctor_comment` */
  536. /*Table structure for table `wlyy_doctor_medical_records_part` */
  537. DROP TABLE IF EXISTS `wlyy_doctor_medical_records_part`;
  538. CREATE TABLE `wlyy_doctor_medical_records_part` (
  539. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  540. `code` varchar(50) NOT NULL COMMENT '片段标识',
  541. `doctor` varchar(50) NOT NULL COMMENT '医生标识,空表示是系统片段',
  542. `name` varchar(100) NOT NULL COMMENT '片段名称',
  543. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  544. `del` varchar(1) NOT NULL DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  545. PRIMARY KEY (`id`),
  546. KEY `idx_wlyy_doctor_medical_records_part_1` (`doctor`)
  547. ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COMMENT='医生病历片段类型表';
  548. /*Data for the table `wlyy_doctor_medical_records_part` */
  549. 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');
  550. /*Table structure for table `wlyy_doctor_medical_records_part_item` */
  551. DROP TABLE IF EXISTS `wlyy_doctor_medical_records_part_item`;
  552. CREATE TABLE `wlyy_doctor_medical_records_part_item` (
  553. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  554. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识,为空为系统定义',
  555. `part` varchar(50) NOT NULL COMMENT '片段标识',
  556. `part_name` varchar(100) NOT NULL COMMENT '片段名称',
  557. `content` varchar(500) NOT NULL COMMENT '片段内容',
  558. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  559. `del` varchar(1) NOT NULL DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  560. PRIMARY KEY (`id`),
  561. KEY `idx_wlyy_doctor_medical_records_part_item_1` (`part`)
  562. ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='医生病历片段明细表';
  563. /*Data for the table `wlyy_doctor_medical_records_part_item` */
  564. 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');
  565. /*Table structure for table `wlyy_doctor_patient_group` */
  566. DROP TABLE IF EXISTS `wlyy_doctor_patient_group`;
  567. CREATE TABLE `wlyy_doctor_patient_group` (
  568. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  569. `code` varchar(50) NOT NULL COMMENT '业务主键',
  570. `name` varchar(50) NOT NULL COMMENT '组名',
  571. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  572. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  573. `status` int(11) DEFAULT '1' COMMENT '状态(1正常,0删除)',
  574. PRIMARY KEY (`id`),
  575. KEY `idx_wlyy_doctor_patient_group_1` (`doctor`) USING BTREE
  576. ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COMMENT='患者分组表';
  577. /*Data for the table `wlyy_doctor_patient_group` */
  578. 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);
  579. /*Table structure for table `wlyy_doctor_patient_group_info` */
  580. DROP TABLE IF EXISTS `wlyy_doctor_patient_group_info`;
  581. CREATE TABLE `wlyy_doctor_patient_group_info` (
  582. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  583. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  584. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  585. `pname` varchar(100) DEFAULT NULL COMMENT '患者姓名',
  586. `group_code` varchar(50) DEFAULT NULL COMMENT '组编号(wlyy_doctor_patient_group的业务主键code)',
  587. `record_amount` int(11) DEFAULT '0' COMMENT '病历记录数',
  588. `part_amount` int(11) DEFAULT '0' COMMENT '病历片段数',
  589. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  590. `status` int(11) DEFAULT '1' COMMENT '状态(1正常,0删除)',
  591. `dqrq` date DEFAULT NULL COMMENT '到期时间',
  592. `qyrq` date DEFAULT NULL COMMENT '签约日期/已诊日期',
  593. PRIMARY KEY (`id`),
  594. KEY `idx_wlyy_doctor_patient_group_info_1` (`doctor`,`patient`)
  595. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='患者分组明细表';
  596. /*Data for the table `wlyy_doctor_patient_group_info` */
  597. 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');
  598. /*Table structure for table `wlyy_doctor_scheduling` */
  599. DROP TABLE IF EXISTS `wlyy_doctor_scheduling`;
  600. CREATE TABLE `wlyy_doctor_scheduling` (
  601. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  602. `code` varchar(50) DEFAULT NULL COMMENT '排班标识',
  603. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识/团队标识',
  604. `week` int(11) DEFAULT NULL COMMENT '星期几(1~7)',
  605. `hour_begin` time DEFAULT NULL COMMENT '排班开始时间',
  606. `hour_end` time DEFAULT NULL COMMENT '排班结束时间',
  607. `times` int(11) DEFAULT '-1' COMMENT '可预约次数',
  608. `type` int(11) DEFAULT NULL COMMENT '排班类型:1视频预约',
  609. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '排班操作时间',
  610. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  611. PRIMARY KEY (`id`),
  612. UNIQUE KEY `idx_wlyy_doctor_scheduling_2` (`code`),
  613. KEY `idx_wlyy_doctor_scheduling_1` (`doctor`)
  614. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生排班表';
  615. /*Data for the table `wlyy_doctor_scheduling` */
  616. /*Table structure for table `wlyy_doctor_scheduling_times` */
  617. DROP TABLE IF EXISTS `wlyy_doctor_scheduling_times`;
  618. CREATE TABLE `wlyy_doctor_scheduling_times` (
  619. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  620. `scheduling` varchar(50) DEFAULT NULL COMMENT '排班标识',
  621. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  622. `appo_date` date DEFAULT NULL COMMENT '预约日期:如2016-04-23',
  623. `times` int(11) DEFAULT NULL COMMENT '预约次数',
  624. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  625. PRIMARY KEY (`id`),
  626. UNIQUE KEY `idx_wlyy_doctor_scheduling_times_1` (`scheduling`,`appo_date`)
  627. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生排班预约次数表';
  628. /*Data for the table `wlyy_doctor_scheduling_times` */
  629. /*Table structure for table `wlyy_doctor_statistics` */
  630. DROP TABLE IF EXISTS `wlyy_doctor_statistics`;
  631. CREATE TABLE `wlyy_doctor_statistics` (
  632. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  633. `doctor` varchar(50) NOT NULL COMMENT '医生标识,关联wlyy_doctor表',
  634. `patient` int(11) DEFAULT NULL COMMENT '患者总人数',
  635. `patient_ss` int(11) DEFAULT NULL COMMENT '三管共管人数',
  636. `patient_sign` int(11) DEFAULT NULL COMMENT '个人签约人数',
  637. `diabetes` int(11) DEFAULT NULL COMMENT '糖尿病总人数',
  638. `hypertension` int(11) DEFAULT NULL COMMENT '高血压总人数',
  639. `diabetes_hypertension` int(11) DEFAULT NULL COMMENT '糖尿病和高血压都有总人数',
  640. `followup_times` int(11) DEFAULT NULL COMMENT '随访总次数',
  641. `followup_members` int(11) DEFAULT NULL COMMENT '随访总人数',
  642. `followup_success` int(11) DEFAULT NULL COMMENT '随访成功次数',
  643. `intervene_times` int(11) DEFAULT NULL COMMENT '干预总次数',
  644. `intervene_members` int(11) DEFAULT NULL COMMENT '干预总人数',
  645. `consultation_times` int(11) DEFAULT NULL COMMENT '被咨询总次数',
  646. `consultation_members` int(11) DEFAULT NULL COMMENT '咨询总人次',
  647. `consultation_reply` int(11) DEFAULT NULL COMMENT '咨询回复次数',
  648. PRIMARY KEY (`id`),
  649. UNIQUE KEY `idx_wlyy_doctor_statistics_uid` (`doctor`)
  650. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生统计表';
  651. /*Data for the table `wlyy_doctor_statistics` */
  652. /*Table structure for table `wlyy_doctor_team` */
  653. DROP TABLE IF EXISTS `wlyy_doctor_team`;
  654. CREATE TABLE `wlyy_doctor_team` (
  655. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  656. `code` varchar(50) NOT NULL COMMENT '团队编码,业务主键',
  657. `name` varchar(50) NOT NULL COMMENT '团队名称',
  658. `icon` varchar(100) DEFAULT NULL COMMENT '团队LOGO',
  659. `members` int(11) DEFAULT '0' COMMENT '团队人员数',
  660. `doctor` varchar(50) NOT NULL COMMENT '创建人,关联wlyy_doctor表',
  661. `doctor_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  662. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  663. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  664. PRIMARY KEY (`id`)
  665. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='三师团队表';
  666. /*Data for the table `wlyy_doctor_team` */
  667. 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');
  668. /*Table structure for table `wlyy_doctor_team_info` */
  669. DROP TABLE IF EXISTS `wlyy_doctor_team_info`;
  670. CREATE TABLE `wlyy_doctor_team_info` (
  671. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  672. `team` varchar(50) NOT NULL COMMENT '团队编码,关联wlyy_doctor_team表',
  673. `doctor` varchar(50) NOT NULL COMMENT '医生标识,关联wlyy_doctor表',
  674. `name` varchar(50) DEFAULT NULL COMMENT '医生姓名',
  675. `type` int(11) NOT NULL COMMENT '医生类型:1专科医生,2全科医生,3健康管理师,4营养师',
  676. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  677. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  678. PRIMARY KEY (`id`),
  679. KEY `idx_wlyy_doctor_team_info_uid` (`doctor`),
  680. KEY `idx_wlyy_doctor_team_info_team` (`team`)
  681. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='医生团队详情表';
  682. /*Data for the table `wlyy_doctor_team_info` */
  683. 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');
  684. /*Table structure for table `wlyy_followup_item_record` */
  685. DROP TABLE IF EXISTS `wlyy_followup_item_record`;
  686. CREATE TABLE `wlyy_followup_item_record` (
  687. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  688. `code` varchar(50) NOT NULL COMMENT '随访项记录标识',
  689. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  690. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  691. `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识',
  692. `type` int(11) NOT NULL COMMENT '类型:1问卷,2体测',
  693. `title` varchar(200) NOT NULL COMMENT '标题',
  694. `status` int(11) NOT NULL COMMENT '状态:0未作答,1已作答,2已完成',
  695. `czrq` date NOT NULL COMMENT '生成日期',
  696. PRIMARY KEY (`id`),
  697. KEY `idx_wlyy_followup_item_record_1` (`stage`)
  698. ) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COMMENT='生成的随访项记录';
  699. /*Data for the table `wlyy_followup_item_record` */
  700. insert into `wlyy_followup_item_record`(`id`,`code`,`plan`,`stage`,`item`,`type`,`title`,`status`,`czrq`) values (1,'record00001','plan00001','stage00001','item00001',1,'问卷随访1',0,'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');
  701. /*Table structure for table `wlyy_followup_item_record_answer` */
  702. DROP TABLE IF EXISTS `wlyy_followup_item_record_answer`;
  703. CREATE TABLE `wlyy_followup_item_record_answer` (
  704. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  705. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  706. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  707. `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识',
  708. `record` varchar(50) NOT NULL COMMENT '记录标识',
  709. `doctor` varchar(50) DEFAULT NULL COMMENT '代填写医生标识',
  710. `doctor_name` varchar(50) DEFAULT NULL COMMENT '代填写医生姓名',
  711. `type` int(11) NOT NULL COMMENT '问题类型:1问卷,2体测',
  712. `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围',
  713. `question` varchar(50) NOT NULL COMMENT '问题标识',
  714. `option_code` varchar(50) DEFAULT NULL COMMENT '选项标识',
  715. `answer` varchar(300) NOT NULL COMMENT '回答内容',
  716. `czrq` datetime DEFAULT NULL COMMENT '回答时间',
  717. PRIMARY KEY (`id`),
  718. KEY `idx_wlyy_followup_plan_stage_item_answer_1` (`record`)
  719. ) ENGINE=InnoDB AUTO_INCREMENT=242 DEFAULT CHARSET=utf8mb4 COMMENT='随访患者回答记录表';
  720. /*Data for the table `wlyy_followup_item_record_answer` */
  721. 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');
  722. /*Table structure for table `wlyy_followup_item_record_question` */
  723. DROP TABLE IF EXISTS `wlyy_followup_item_record_question`;
  724. CREATE TABLE `wlyy_followup_item_record_question` (
  725. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  726. `code` varchar(50) NOT NULL COMMENT '问题标识(关联wlyy_followup_plan_stage_item_question表的code)',
  727. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  728. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  729. `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识',
  730. `record` varchar(50) NOT NULL COMMENT '随访记录标识',
  731. `title` varchar(200) NOT NULL COMMENT '问题标题',
  732. `type` int(11) NOT NULL COMMENT '问题类型:1单选,2多选,3问答',
  733. `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围',
  734. PRIMARY KEY (`id`),
  735. KEY `idx_wlyy_followup_item_record_question_1` (`record`),
  736. KEY `idx_wlyy_followup_item_record_question_2` (`code`)
  737. ) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=utf8mb4 COMMENT='随访项记录随访问题表';
  738. /*Data for the table `wlyy_followup_item_record_question` */
  739. 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),(2,'question00002','plan00001','stage00001','item00001','record00003','体征检测',3,3),(3,'question00003','plan00001','stage00001','item00001','record00003','吃了什么药',2,2),(4,'question00005','plan00001','stage00001','item00001','record00001','体征检测',3,3),(5,'question00004','plan00001','stage00001','item00001','record00001','是否吃药了',1,2),(6,'question00006','plan00001','stage00001','item00001','record00001','吃了什么药',2,2),(7,'question00007','plan00001','stage00001','item00002','record00004','血糖检测',3,1),(8,'question00008','plan00001','stage00001','item00002','record00004','血压监测',3,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),(51,'question00002','plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','体征检测',3,3),(52,'question00003','plan00001','stage00001','item00001','c340e264b77540d8844a2a689a78ac81','吃了什么药',2,2),(113,'question00013','plan00001','stage00001','item00002','record00007','血压(早)',3,2),(114,'question00014','plan00001','stage00001','item00002','record00007','血压(中)',3,2),(115,'question00015','plan00001','stage00001','item00002','record00007','血压(晚)',3,2),(119,'question00019','plan00001','stage00001','item00002','record00007','血糖(早餐前)',3,1),(120,'question00020','plan00001','stage00001','item00002','record00007','血糖(午餐前)',3,1),(121,'question00021','plan00001','stage00001','item00002','record00007','血糖(晚餐前)',3,1);
  740. /*Table structure for table `wlyy_followup_item_record_question_option` */
  741. DROP TABLE IF EXISTS `wlyy_followup_item_record_question_option`;
  742. CREATE TABLE `wlyy_followup_item_record_question_option` (
  743. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  744. `code` varchar(50) NOT NULL COMMENT '选项标识',
  745. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  746. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  747. `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识',
  748. `record` varchar(50) NOT NULL COMMENT '随访记录标识',
  749. `question` varchar(50) NOT NULL COMMENT '问题标识(关联wlyy_followup_item_record_question表的code)',
  750. `des` varchar(500) NOT NULL COMMENT '选项描述',
  751. PRIMARY KEY (`id`),
  752. KEY `idx_wlyy_followup_item_record_question_option_1` (`question`)
  753. ) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8mb4 COMMENT='随访项记录随访问题选项表';
  754. /*Data for the table `wlyy_followup_item_record_question_option` */
  755. 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','record00005','question00013','舒张压'),(12,'option00012','plan00001','stage00001','item00002','record00005','question00013','收缩压'),(13,'option00013','plan00001','stage00001','item00002','record00005','question00014','舒张压'),(14,'option00014','plan00001','stage00001','item00002','record00005','question00014','收缩压'),(15,'option00015','plan00001','stage00001','item00002','record00005','question00015','舒张压'),(16,'option00016','plan00001','stage00001','item00002','record00005','question00015','收缩压'),(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'),(21,'option00021','plan00001','stage00001','item00002','record00005','question00019','血糖值'),(22,'option00022','plan00001','stage00001','item00002','record00005','question00020','血糖值'),(23,'option00023','plan00001','stage00001','item00002','record00005','question00021','血糖值'),(111,'option000111','plan00001','stage00001','item00002','record00007','question00013','舒张压'),(112,'option000121','plan00001','stage00001','item00002','record00007','question00013','收缩压'),(113,'option000131','plan00001','stage00001','item00002','record00007','question00014','舒张压'),(114,'option000141','plan00001','stage00001','item00002','record00007','question00014','收缩压'),(115,'option000151','plan00001','stage00001','item00002','record00007','question00015','舒张压'),(116,'option000161','plan00001','stage00001','item00002','record00007','question00015','收缩压'),(121,'option000211','plan00001','stage00001','item00002','record00007','question00019','血糖值'),(122,'option000221','plan00001','stage00001','item00002','record00007','question00020','血糖值'),(123,'option000231','plan00001','stage00001','item00002','record00007','question00021','血糖值');
  756. /*Table structure for table `wlyy_followup_plan` */
  757. DROP TABLE IF EXISTS `wlyy_followup_plan`;
  758. CREATE TABLE `wlyy_followup_plan` (
  759. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  760. `code` varchar(50) NOT NULL COMMENT '计划标识',
  761. `title` varchar(100) NOT NULL COMMENT '标题/随访计划名称',
  762. `doctor` varchar(50) NOT NULL COMMENT '医生标识',
  763. `doctor_name` varchar(50) NOT NULL COMMENT '医生姓名',
  764. `team` varchar(50) DEFAULT NULL COMMENT '三师团队标识',
  765. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  766. `patient_name` varchar(50) NOT NULL COMMENT '患者姓名',
  767. `status` int(11) NOT NULL COMMENT '计划状态:-1暂停,0进行中,1已结束',
  768. `wj_amount` int(11) DEFAULT '0' COMMENT '总问卷随访数',
  769. `wj_finish_amount` int(11) DEFAULT '0' COMMENT '已完成问卷随访数',
  770. `tc_amount` int(11) DEFAULT '0' COMMENT '总体测随访数',
  771. `tc_finish_amount` int(11) DEFAULT '0' COMMENT '已完成体测随访数',
  772. `czrq` datetime NOT NULL COMMENT '制定日期',
  773. PRIMARY KEY (`id`),
  774. KEY `idx_wlyy_followup_plan_1` (`doctor`),
  775. KEY `idx_wlyy_followup_plan_2` (`patient`),
  776. KEY `idx_wlyy_followup_plan_3` (`code`)
  777. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划表';
  778. /*Data for the table `wlyy_followup_plan` */
  779. 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,18,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');
  780. /*Table structure for table `wlyy_followup_plan_doctor` */
  781. DROP TABLE IF EXISTS `wlyy_followup_plan_doctor`;
  782. CREATE TABLE `wlyy_followup_plan_doctor` (
  783. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  784. `plan` varchar(50) DEFAULT NULL COMMENT '随访计划标识',
  785. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  786. PRIMARY KEY (`id`)
  787. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医生相关的随访计划表';
  788. /*Data for the table `wlyy_followup_plan_doctor` */
  789. insert into `wlyy_followup_plan_doctor`(`id`,`plan`,`doctor`) values (1,'plan00001','D20160322000002'),(2,'plan00002','D20160322000002'),(3,'0000001','D20160322000002');
  790. /*Table structure for table `wlyy_followup_plan_stage` */
  791. DROP TABLE IF EXISTS `wlyy_followup_plan_stage`;
  792. CREATE TABLE `wlyy_followup_plan_stage` (
  793. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  794. `code` varchar(50) NOT NULL COMMENT '阶段标识',
  795. `doctor` varchar(50) NOT NULL COMMENT '医生标识',
  796. `doctor_name` varchar(50) NOT NULL COMMENT '医生姓名',
  797. `plan` varchar(50) NOT NULL COMMENT '计划标识',
  798. `seq` int(11) NOT NULL COMMENT '阶段序号',
  799. `type` int(11) NOT NULL COMMENT '类型:1定时,2不定时',
  800. `end_date` date DEFAULT NULL COMMENT '结束日期',
  801. `target` varchar(200) NOT NULL COMMENT '目标',
  802. `status` int(11) DEFAULT NULL COMMENT '执行状态:-1暂停,0未开始,1进行中,2已结束',
  803. `czrq` datetime DEFAULT NULL COMMENT '添加时间',
  804. PRIMARY KEY (`id`),
  805. KEY `idx_wlyy_followup_plan_stage_1` (`plan`)
  806. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划阶段表';
  807. /*Data for the table `wlyy_followup_plan_stage` */
  808. 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');
  809. /*Table structure for table `wlyy_followup_plan_stage_item` */
  810. DROP TABLE IF EXISTS `wlyy_followup_plan_stage_item`;
  811. CREATE TABLE `wlyy_followup_plan_stage_item` (
  812. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  813. `code` varchar(50) NOT NULL COMMENT '随访项标识',
  814. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  815. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  816. `type` int(11) NOT NULL COMMENT '随访项类型:1问卷,2体测',
  817. `title` varchar(200) NOT NULL COMMENT '标题',
  818. `push_type` int(11) NOT NULL COMMENT '推送类型:1按时间,2按次数',
  819. `push_times` int(11) DEFAULT NULL COMMENT '推送次数',
  820. `push_cycle` int(11) DEFAULT NULL COMMENT '推送周期',
  821. `push_cycle_unit` int(11) DEFAULT NULL COMMENT '推送周期单位:1天,2周,3月',
  822. `next_push_date` date DEFAULT NULL COMMENT '下一次推送日期',
  823. `push_begin` date DEFAULT NULL COMMENT '推送开始日期',
  824. `push_end` date DEFAULT NULL COMMENT '推送结束日期',
  825. `times` int(11) DEFAULT '0' COMMENT '已推送次数',
  826. `status` int(11) NOT NULL COMMENT '执行状态:-1暂停,0未开始,1进行中,2已结束',
  827. `czrq` datetime NOT NULL COMMENT '添加时间',
  828. PRIMARY KEY (`id`),
  829. KEY `idx_wlyy_followup_plan_stage_item_1` (`stage`)
  830. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划随访阶段随访项';
  831. /*Data for the table `wlyy_followup_plan_stage_item` */
  832. 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');
  833. /*Table structure for table `wlyy_followup_plan_stage_item_question` */
  834. DROP TABLE IF EXISTS `wlyy_followup_plan_stage_item_question`;
  835. CREATE TABLE `wlyy_followup_plan_stage_item_question` (
  836. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  837. `code` varchar(50) NOT NULL COMMENT '问题标识',
  838. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  839. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  840. `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识',
  841. `title` varchar(200) NOT NULL COMMENT '问题标题',
  842. `type` int(11) NOT NULL COMMENT '问题类型:1单选,2多选,3问答',
  843. `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围',
  844. `options` varchar(3000) DEFAULT NULL COMMENT '问题选项jsonarray串,格式为:[{code:"",des:""}]',
  845. PRIMARY KEY (`id`),
  846. KEY `idx_wlyy_followup_plan_stage_item_question_1` (`item`)
  847. ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划随访阶段随访项随访问题表';
  848. /*Data for the table `wlyy_followup_plan_stage_item_question` */
  849. 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,'question00002','plan00001','stage00001','item00001','体征检测',3,3,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\":\"测试二\"}]'),(9,'question00019','plan00001','stage00001','item00002','血糖(早餐前)',2,2,''),(10,'question00020','plan00001','stage00001','item00002','血糖(午餐前)',2,2,''),(11,'question00021','plan00001','stage00001','item00002','血糖(晚餐前)',2,2,''),(12,'question00013','plan00001','stage00001','item00002','血压(早)',2,2,''),(13,'question00014','plan00001','stage00001','item00002','血压(中)',2,2,''),(14,'question00015','plan00001','stage00001','item00002','血压(晚)',2,2,'');
  850. /*Table structure for table `wlyy_followup_plan_stage_item_question_option` */
  851. DROP TABLE IF EXISTS `wlyy_followup_plan_stage_item_question_option`;
  852. CREATE TABLE `wlyy_followup_plan_stage_item_question_option` (
  853. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  854. `code` varchar(50) NOT NULL COMMENT '选项标识',
  855. `plan` varchar(50) NOT NULL COMMENT '随访计划标识',
  856. `stage` varchar(50) NOT NULL COMMENT '随访计划阶段标识',
  857. `item` varchar(50) NOT NULL COMMENT '随访计划阶段随访项标识',
  858. `question` varchar(50) NOT NULL COMMENT '问题标识',
  859. `des` varchar(500) NOT NULL COMMENT '选项描述',
  860. PRIMARY KEY (`id`),
  861. KEY `idx_wlyy_followup_plan_stage_item_question_option_1` (`item`)
  862. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划随访阶段随访项随访问题选项表';
  863. /*Data for the table `wlyy_followup_plan_stage_item_question_option` */
  864. 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,'option00007','plan00001','stage00001','item00002','question00007','早餐前血糖值'),(9,'opiton00008','plan00001','stage00001','item00001','question00008','血压值');
  865. /*Table structure for table `wlyy_followup_plan_stage_target` */
  866. DROP TABLE IF EXISTS `wlyy_followup_plan_stage_target`;
  867. CREATE TABLE `wlyy_followup_plan_stage_target` (
  868. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  869. `content` varchar(200) NOT NULL COMMENT '目标内容',
  870. `czrq` datetime NOT NULL COMMENT '添加时间',
  871. PRIMARY KEY (`id`)
  872. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划阶段目标定义表';
  873. /*Data for the table `wlyy_followup_plan_stage_target` */
  874. 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');
  875. /*Table structure for table `wlyy_followup_question` */
  876. DROP TABLE IF EXISTS `wlyy_followup_question`;
  877. CREATE TABLE `wlyy_followup_question` (
  878. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  879. `code` varchar(50) NOT NULL COMMENT '问题标识',
  880. `doctor` varchar(50) DEFAULT '0' COMMENT '医生标识,0代表为系统随访项',
  881. `title` varchar(200) NOT NULL COMMENT '标题',
  882. `type` int(11) NOT NULL COMMENT '随访项类型:1单选,2多选,3问答',
  883. `content` varchar(3000) DEFAULT NULL COMMENT '选项json串用于查询',
  884. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  885. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  886. PRIMARY KEY (`id`),
  887. KEY `idx_wlyy_followup_question_1` (`doctor`),
  888. KEY `idx_wlyy_followup_question_2` (`code`)
  889. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='问卷随访问题定义表';
  890. /*Data for the table `wlyy_followup_question` */
  891. 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');
  892. /*Table structure for table `wlyy_followup_question_option` */
  893. DROP TABLE IF EXISTS `wlyy_followup_question_option`;
  894. CREATE TABLE `wlyy_followup_question_option` (
  895. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  896. `question` varchar(50) NOT NULL COMMENT '问题标识',
  897. `des` varchar(500) NOT NULL COMMENT '选项描述',
  898. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  899. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  900. PRIMARY KEY (`id`),
  901. KEY `idx_wlyy_followup_question_1` (`question`)
  902. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='问卷随访问题选项定义表';
  903. /*Data for the table `wlyy_followup_question_option` */
  904. 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');
  905. /*Table structure for table `wlyy_followup_summary` */
  906. DROP TABLE IF EXISTS `wlyy_followup_summary`;
  907. CREATE TABLE `wlyy_followup_summary` (
  908. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  909. `plan` varchar(50) DEFAULT NULL COMMENT '计划标识(计划总结)',
  910. `stage` varchar(50) DEFAULT NULL COMMENT '阶段标识(阶段总结)',
  911. `item` varchar(50) DEFAULT NULL COMMENT '随访项标识(随访项小结)',
  912. `record` varchar(50) DEFAULT NULL COMMENT '纪录标识(随访纪录总结)',
  913. `type` int(11) DEFAULT NULL COMMENT '小结类型:(1、计划 2、阶段 3、随访项 4、随访纪录)',
  914. `result` varchar(200) DEFAULT NULL COMMENT '控制结果',
  915. `summary` varchar(1000) NOT NULL COMMENT '总结内容',
  916. `doctor` varchar(50) NOT NULL COMMENT '总结医生标识',
  917. `doctor_name` varchar(50) NOT NULL COMMENT '总结医生姓名',
  918. `czrq` datetime NOT NULL COMMENT '总结时间',
  919. PRIMARY KEY (`id`)
  920. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COMMENT='随访总结';
  921. /*Data for the table `wlyy_followup_summary` */
  922. 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');
  923. /*Table structure for table `wlyy_followup_tc` */
  924. DROP TABLE IF EXISTS `wlyy_followup_tc`;
  925. CREATE TABLE `wlyy_followup_tc` (
  926. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  927. `code` varchar(50) NOT NULL COMMENT '体测类型标识',
  928. `doctor` varchar(50) DEFAULT '0' COMMENT '医生标识,0代表为系统随访项',
  929. `tc_index` int(11) NOT NULL COMMENT '体测指标类型(1血糖,2血压,3体重,4腰围)',
  930. `title` varchar(200) NOT NULL COMMENT '标题',
  931. `content` varchar(200) NOT NULL COMMENT '选项json串用于查询',
  932. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  933. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  934. PRIMARY KEY (`id`),
  935. KEY `idx_wlyy_followup_tc_1` (`doctor`),
  936. KEY `idx_wlyy_followup_tc_2` (`code`)
  937. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='体测随访体测类型定义表';
  938. /*Data for the table `wlyy_followup_tc` */
  939. 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');
  940. /*Table structure for table `wlyy_followup_tc_option` */
  941. DROP TABLE IF EXISTS `wlyy_followup_tc_option`;
  942. CREATE TABLE `wlyy_followup_tc_option` (
  943. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  944. `tc` varchar(50) NOT NULL COMMENT '体测类型标识',
  945. `des` varchar(500) NOT NULL COMMENT '选项描述',
  946. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  947. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  948. PRIMARY KEY (`id`),
  949. KEY `idx_wlyy_followup_tc_option_1` (`tc`)
  950. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='体测随访体测选项定义表';
  951. /*Data for the table `wlyy_followup_tc_option` */
  952. 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');
  953. /*Table structure for table `wlyy_followup_template` */
  954. DROP TABLE IF EXISTS `wlyy_followup_template`;
  955. CREATE TABLE `wlyy_followup_template` (
  956. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  957. `code` varchar(50) NOT NULL COMMENT '模板标识',
  958. `doctor` varchar(50) DEFAULT '0' COMMENT '医生标识,0表示为系统模板',
  959. `title` varchar(200) NOT NULL COMMENT '模板标题',
  960. `type` int(11) NOT NULL COMMENT '模板类型:1问卷模板,2体测模板',
  961. `push_type` int(11) NOT NULL COMMENT '推送类型:1按时间,2按次数',
  962. `push_times` int(11) NOT NULL COMMENT '推送次数',
  963. `push_cycle` int(11) NOT NULL COMMENT '推送周期',
  964. `push_cycle_unit` int(11) NOT NULL COMMENT '推送周期单位:1天,2周,3月',
  965. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建日期',
  966. PRIMARY KEY (`id`),
  967. KEY `idx_wlyy_followup_template_tc_1` (`doctor`),
  968. KEY `idx_wlyy_followup_template_tc_2` (`code`)
  969. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='体测随访模板表';
  970. /*Data for the table `wlyy_followup_template` */
  971. 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');
  972. /*Table structure for table `wlyy_followup_template_plan` */
  973. DROP TABLE IF EXISTS `wlyy_followup_template_plan`;
  974. CREATE TABLE `wlyy_followup_template_plan` (
  975. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  976. `code` varchar(50) NOT NULL COMMENT '计划标识',
  977. `title` varchar(100) NOT NULL COMMENT '标题/随访计划名称',
  978. `doctor` varchar(50) NOT NULL COMMENT '医生标识',
  979. `stages` text NOT NULL COMMENT '随访模板阶段内容',
  980. `czrq` datetime NOT NULL COMMENT '生成日期',
  981. PRIMARY KEY (`id`),
  982. KEY `idx_wlyy_followup_template_plan_1` (`doctor`),
  983. KEY `idx_wlyy_followup_template_plan_2` (`code`)
  984. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='随访计划模板表';
  985. /*Data for the table `wlyy_followup_template_plan` */
  986. /*Table structure for table `wlyy_followup_template_question` */
  987. DROP TABLE IF EXISTS `wlyy_followup_template_question`;
  988. CREATE TABLE `wlyy_followup_template_question` (
  989. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  990. `code` varchar(50) NOT NULL COMMENT '问题标识',
  991. `template` varchar(50) NOT NULL COMMENT '模板标识',
  992. `title` varchar(200) NOT NULL COMMENT '问题标题',
  993. `type` int(11) NOT NULL COMMENT '问题类型:1单选,2多选,3问答',
  994. `tc_index` int(11) DEFAULT NULL COMMENT '体测指标类型:1血糖,2血压,3体重,4腰围',
  995. `options` varchar(3000) DEFAULT NULL COMMENT '问题选项jsonarray串,格式为:[{code:"",des:""}]',
  996. PRIMARY KEY (`id`),
  997. KEY `idx_wlyy_followup_wj_template_item_1` (`template`)
  998. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='随访模板问题表';
  999. /*Data for the table `wlyy_followup_template_question` */
  1000. 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:\"舒张压\"}]');
  1001. /*Table structure for table `wlyy_followup_template_question_option` */
  1002. DROP TABLE IF EXISTS `wlyy_followup_template_question_option`;
  1003. CREATE TABLE `wlyy_followup_template_question_option` (
  1004. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1005. `template` varchar(50) NOT NULL COMMENT '模板标识',
  1006. `question` varchar(50) NOT NULL COMMENT '问题标识',
  1007. `des` varchar(500) NOT NULL COMMENT '选项描述',
  1008. PRIMARY KEY (`id`)
  1009. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='随访模板问题选项表';
  1010. /*Data for the table `wlyy_followup_template_question_option` */
  1011. 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','舒张压');
  1012. /*Table structure for table `wlyy_friends_log` */
  1013. DROP TABLE IF EXISTS `wlyy_friends_log`;
  1014. CREATE TABLE `wlyy_friends_log` (
  1015. `n_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1016. `applicant` varchar(50) NOT NULL COMMENT '申请人标识',
  1017. `target` varchar(50) NOT NULL COMMENT '申请对象标识',
  1018. `state` int(11) NOT NULL COMMENT '状态:0待处理,1同意,-1拒绝',
  1019. `platform` int(11) NOT NULL COMMENT '消息平台:1微信端,2医生端',
  1020. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '申请时间',
  1021. PRIMARY KEY (`n_id`),
  1022. KEY `idx_wlyy_friends_log_1` (`target`)
  1023. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='添加好友记录';
  1024. /*Data for the table `wlyy_friends_log` */
  1025. /*Table structure for table `wlyy_group_chat_log` */
  1026. DROP TABLE IF EXISTS `wlyy_group_chat_log`;
  1027. CREATE TABLE `wlyy_group_chat_log` (
  1028. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1029. `msgid` varchar(50) NOT NULL COMMENT '消息ID',
  1030. `group` varchar(50) NOT NULL COMMENT '群组标识',
  1031. `receiver` varchar(50) NOT NULL COMMENT '接收人',
  1032. `state` int(11) DEFAULT NULL COMMENT '消息状态(1已发送,2已接收,3已读)',
  1033. `platform` int(11) DEFAULT NULL COMMENT '消息平台,1微信,2医生APP',
  1034. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1035. PRIMARY KEY (`id`)
  1036. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='群聊天记录状态表';
  1037. /*Data for the table `wlyy_group_chat_log` */
  1038. /*Table structure for table `wlyy_health_edu_article` */
  1039. DROP TABLE IF EXISTS `wlyy_health_edu_article`;
  1040. CREATE TABLE `wlyy_health_edu_article` (
  1041. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1042. `code` varchar(50) DEFAULT NULL COMMENT '文章标识',
  1043. `title` varchar(200) DEFAULT NULL COMMENT '标题',
  1044. `url` varchar(300) DEFAULT NULL COMMENT '访问URL',
  1045. `content` varchar(300) DEFAULT NULL COMMENT '文章内容',
  1046. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1047. PRIMARY KEY (`id`),
  1048. KEY `idx_wlyy_health_edu_article_1` (`code`)
  1049. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='健康教育文章';
  1050. /*Data for the table `wlyy_health_edu_article` */
  1051. 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');
  1052. /*Table structure for table `wlyy_health_edu_article_patient` */
  1053. DROP TABLE IF EXISTS `wlyy_health_edu_article_patient`;
  1054. CREATE TABLE `wlyy_health_edu_article_patient` (
  1055. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1056. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1057. `article` varchar(50) DEFAULT NULL COMMENT '文章标识',
  1058. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1059. `doctor_name` varchar(50) DEFAULT NULL COMMENT '医生姓名',
  1060. `url` varchar(300) DEFAULT NULL COMMENT '文章访问URL',
  1061. `title` varchar(200) DEFAULT NULL COMMENT '文章标识',
  1062. `content` varchar(300) DEFAULT NULL COMMENT '文章简介',
  1063. `is_read` int(11) DEFAULT '1' COMMENT '是否已读:0已读,1未读',
  1064. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1065. PRIMARY KEY (`id`),
  1066. KEY `idx_wlyy_health_edu_article_patient_1` (`patient`)
  1067. ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康教育文章';
  1068. /*Data for the table `wlyy_health_edu_article_patient` */
  1069. 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');
  1070. /*Table structure for table `wlyy_health_news` */
  1071. DROP TABLE IF EXISTS `wlyy_health_news`;
  1072. CREATE TABLE `wlyy_health_news` (
  1073. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  1074. `photo` varchar(50) DEFAULT NULL COMMENT '资讯图片',
  1075. `title` varchar(150) NOT NULL COMMENT '标题',
  1076. `summary` varchar(300) NOT NULL COMMENT '概述',
  1077. `url` varchar(300) NOT NULL COMMENT '查看URL',
  1078. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1079. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  1080. PRIMARY KEY (`id`)
  1081. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康资讯';
  1082. /*Data for the table `wlyy_health_news` */
  1083. /*Table structure for table `wlyy_inspect` */
  1084. DROP TABLE IF EXISTS `wlyy_inspect`;
  1085. CREATE TABLE `wlyy_inspect` (
  1086. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1087. `code` varchar(50) DEFAULT NULL COMMENT '检验检查标识',
  1088. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1089. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1090. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1091. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1092. PRIMARY KEY (`id`)
  1093. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='患者检查检验记录表';
  1094. /*Data for the table `wlyy_inspect` */
  1095. insert into `wlyy_inspect`(`id`,`code`,`doctor`,`patient`,`czrq`,`del`) values (1,'INS2016032600000001','20160322000001','20160322000001','2016-03-26 16:16:28','1');
  1096. /*Table structure for table `wlyy_inspect_info` */
  1097. DROP TABLE IF EXISTS `wlyy_inspect_info`;
  1098. CREATE TABLE `wlyy_inspect_info` (
  1099. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1100. `code` varchar(50) DEFAULT NULL COMMENT '检查项标识',
  1101. `inspect` varchar(50) DEFAULT NULL COMMENT '检查检验标识',
  1102. `kind` varchar(100) DEFAULT NULL COMMENT '类别',
  1103. `name` varchar(100) DEFAULT NULL COMMENT '名称',
  1104. `times` int(11) DEFAULT NULL COMMENT '次数',
  1105. `unit` varchar(100) DEFAULT NULL COMMENT '单位',
  1106. `part` varchar(100) DEFAULT NULL COMMENT '检查部位',
  1107. `specimen` varchar(100) DEFAULT NULL COMMENT '检验标本',
  1108. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1109. `del` varchar(1) DEFAULT '0' COMMENT '作废标识,1正常,0作废',
  1110. PRIMARY KEY (`id`),
  1111. KEY `idx_swlyy_inspect_info_1` (`inspect`)
  1112. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='患者检查检验细项表';
  1113. /*Data for the table `wlyy_inspect_info` */
  1114. 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');
  1115. /*Table structure for table `wlyy_intervene` */
  1116. DROP TABLE IF EXISTS `wlyy_intervene`;
  1117. CREATE TABLE `wlyy_intervene` (
  1118. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务有关主键',
  1119. `code` varchar(50) NOT NULL COMMENT '干预标识',
  1120. `doctor` varchar(50) NOT NULL COMMENT '医生标识',
  1121. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1122. `title` varchar(20) NOT NULL COMMENT '干预标题',
  1123. `cycle` int(11) NOT NULL COMMENT '执行周期(1每周,2每半个月,3每个月)',
  1124. `begin_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '干预开始时间',
  1125. `end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '干预结束时间',
  1126. `bg` varchar(300) DEFAULT NULL COMMENT '血糖计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])',
  1127. `bg_des` varchar(200) DEFAULT NULL COMMENT '血糖计划说明文字',
  1128. `nibp` varchar(300) DEFAULT NULL COMMENT '血压计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])',
  1129. `nibp_des` varchar(200) DEFAULT NULL COMMENT '血压计划文字说明',
  1130. `weight` varchar(300) DEFAULT NULL COMMENT '体重计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])',
  1131. `weight_des` varchar(200) DEFAULT NULL COMMENT '体重计划文字说明',
  1132. `waistline` varchar(300) DEFAULT NULL COMMENT '腰围计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])',
  1133. `waistline_des` varchar(200) DEFAULT NULL COMMENT '腰围计划文字说明',
  1134. `sport` varchar(300) DEFAULT NULL COMMENT '运动计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])',
  1135. `sport_des` varchar(200) DEFAULT NULL COMMENT '运动计划文字说明',
  1136. `medicine` varchar(300) DEFAULT NULL COMMENT '用药计划(json数组字符串,对应dm_intervene_item_type表的code,如:["001","002"])',
  1137. `medicine_des` varchar(200) DEFAULT NULL COMMENT '用药计划文字说明',
  1138. `diet` varchar(300) DEFAULT NULL COMMENT '饮食建议',
  1139. `suggest` varchar(500) DEFAULT NULL COMMENT '健康指导建议',
  1140. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建日期',
  1141. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  1142. PRIMARY KEY (`id`),
  1143. KEY `idx_wlyy_intervene_1` (`doctor`)
  1144. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='干预记录表';
  1145. /*Data for the table `wlyy_intervene` */
  1146. /*Table structure for table `wlyy_medical_edu_article` */
  1147. DROP TABLE IF EXISTS `wlyy_medical_edu_article`;
  1148. CREATE TABLE `wlyy_medical_edu_article` (
  1149. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  1150. `code` varchar(50) NOT NULL COMMENT '文章标识',
  1151. `category` varchar(50) DEFAULT NULL COMMENT '医学教育分类标识',
  1152. `title` varchar(100) DEFAULT NULL COMMENT '文章标题',
  1153. `logo` varchar(100) DEFAULT NULL COMMENT '文章LOGO',
  1154. `url` varchar(100) DEFAULT NULL COMMENT '文章HTTP地址',
  1155. `content` text COMMENT '文章内容',
  1156. `oper` varchar(50) DEFAULT NULL COMMENT '操作员',
  1157. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  1158. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1159. PRIMARY KEY (`id`),
  1160. KEY `idx_wlyy_medical_edu_article_1` (`category`),
  1161. KEY `idx_wlyy_medical_edu_article_2` (`code`)
  1162. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医学教育文章信息表';
  1163. /*Data for the table `wlyy_medical_edu_article` */
  1164. /*Table structure for table `wlyy_medical_edu_article_read` */
  1165. DROP TABLE IF EXISTS `wlyy_medical_edu_article_read`;
  1166. CREATE TABLE `wlyy_medical_edu_article_read` (
  1167. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1168. `article` varchar(50) DEFAULT NULL COMMENT '文章标识',
  1169. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1170. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '查看时间',
  1171. PRIMARY KEY (`id`),
  1172. KEY `idx_wlyy_medical_edu_article_read_1` (`article`),
  1173. KEY `idx_wlyy_medical_edu_article_read_2` (`doctor`)
  1174. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  1175. /*Data for the table `wlyy_medical_edu_article_read` */
  1176. /*Table structure for table `wlyy_medical_edu_category` */
  1177. DROP TABLE IF EXISTS `wlyy_medical_edu_category`;
  1178. CREATE TABLE `wlyy_medical_edu_category` (
  1179. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1180. `code` varchar(50) DEFAULT NULL COMMENT '分类标识',
  1181. `name` varchar(50) DEFAULT NULL COMMENT '分类名称',
  1182. `default` int(11) DEFAULT '0' COMMENT '是否为推荐类型,1是,0否',
  1183. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1184. `del` varchar(1) DEFAULT NULL COMMENT '是否作废,1正常,0作废',
  1185. PRIMARY KEY (`id`)
  1186. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医学教育分类表';
  1187. /*Data for the table `wlyy_medical_edu_category` */
  1188. /*Table structure for table `wlyy_medical_edu_setting` */
  1189. DROP TABLE IF EXISTS `wlyy_medical_edu_setting`;
  1190. CREATE TABLE `wlyy_medical_edu_setting` (
  1191. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1192. `med_edu` varchar(50) DEFAULT NULL COMMENT '医学教育分类标识',
  1193. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1194. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '设置时间',
  1195. PRIMARY KEY (`id`),
  1196. KEY `idx_wlyy_medical_edu_setting_1` (`med_edu`),
  1197. KEY `idx_wlyy_medical_edu_setting_2` (`doctor`)
  1198. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医学教育设置表';
  1199. /*Data for the table `wlyy_medical_edu_setting` */
  1200. /*Table structure for table `wlyy_message` */
  1201. DROP TABLE IF EXISTS `wlyy_message`;
  1202. CREATE TABLE `wlyy_message` (
  1203. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  1204. `code` varchar(50) NOT NULL COMMENT '消息标识',
  1205. `receiver` varchar(50) NOT NULL COMMENT '消息接收人(微信平台为患者标识,医生APP平台为医生标识)',
  1206. `sender` varchar(50) DEFAULT NULL COMMENT '消息发送人标识',
  1207. `data` varchar(100) DEFAULT NULL COMMENT '群组标识\\网络咨询标识\\问卷随访标识',
  1208. `title` varchar(50) NOT NULL COMMENT '消息标题',
  1209. `content` varchar(200) NOT NULL COMMENT '消息内容',
  1210. `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、上门随访)',
  1211. `platform` int(11) DEFAULT NULL COMMENT '消息平台,1微信端/患者端,2医生APP端',
  1212. `state` int(11) DEFAULT '0' COMMENT '消息状态,1已发送,0待发送,-1发送失败',
  1213. `has_read` int(11) DEFAULT '1' COMMENT '查看状态,1未读,0已读',
  1214. `readonly` int(11) DEFAULT NULL COMMENT '只读消息:1否,0是',
  1215. `czrq` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '消息时间',
  1216. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  1217. PRIMARY KEY (`id`),
  1218. KEY `idx_wlyy_message_uid` (`receiver`)
  1219. ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COMMENT='消息表';
  1220. /*Data for the table `wlyy_message` */
  1221. 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');
  1222. /*Table structure for table `wlyy_orders` */
  1223. DROP TABLE IF EXISTS `wlyy_orders`;
  1224. CREATE TABLE `wlyy_orders` (
  1225. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1226. `code` varchar(50) NOT NULL COMMENT '订单标识',
  1227. `pay_way` varchar(30) DEFAULT NULL COMMENT '支付方式 1 预交金 2支付宝 3微信 4其他',
  1228. `status` int(2) NOT NULL COMMENT '支付状态 0未支付 1已支付 2已配药 3已复审 4已发货 5已接收 -1订单取消',
  1229. `store` varchar(30) DEFAULT NULL COMMENT '店铺名称',
  1230. `payable` varchar(20) DEFAULT NULL COMMENT '应付款',
  1231. `czrq` timestamp NULL DEFAULT NULL COMMENT '下单时间',
  1232. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1233. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1234. `prescription` varchar(50) NOT NULL COMMENT '处方',
  1235. PRIMARY KEY (`id`)
  1236. ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COMMENT='订单表';
  1237. /*Data for the table `wlyy_orders` */
  1238. 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');
  1239. /*Table structure for table `wlyy_orders_detail` */
  1240. DROP TABLE IF EXISTS `wlyy_orders_detail`;
  1241. CREATE TABLE `wlyy_orders_detail` (
  1242. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1243. `orders` varchar(50) NOT NULL COMMENT '订单标识',
  1244. `medicines` varchar(50) NOT NULL COMMENT '商品名称',
  1245. `number` int(10) DEFAULT NULL COMMENT '数量',
  1246. `price` varchar(20) DEFAULT NULL COMMENT '单价',
  1247. `czrq` timestamp NULL DEFAULT NULL COMMENT '添加时间',
  1248. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1249. PRIMARY KEY (`id`)
  1250. ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4;
  1251. /*Data for the table `wlyy_orders_detail` */
  1252. 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');
  1253. /*Table structure for table `wlyy_patient` */
  1254. DROP TABLE IF EXISTS `wlyy_patient`;
  1255. CREATE TABLE `wlyy_patient` (
  1256. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1257. `code` varchar(50) NOT NULL COMMENT '业务主键',
  1258. `idcard` varchar(20) NOT NULL COMMENT '身份证号',
  1259. `password` varchar(50) NOT NULL COMMENT '登录密码',
  1260. `salt` varchar(50) DEFAULT NULL,
  1261. `name` varchar(50) DEFAULT NULL COMMENT '姓名',
  1262. `birthday` date DEFAULT NULL COMMENT '生日',
  1263. `sex` int(11) DEFAULT NULL COMMENT '性别,1男,2女',
  1264. `mobile` varchar(20) DEFAULT NULL COMMENT '手机号',
  1265. `phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
  1266. `ssc` varchar(50) DEFAULT NULL COMMENT '社保卡号',
  1267. `photo` varchar(100) DEFAULT NULL COMMENT '头像http地址',
  1268. `province` varchar(50) DEFAULT NULL COMMENT '省编码',
  1269. `city` varchar(50) DEFAULT NULL COMMENT '市编码',
  1270. `town` varchar(50) DEFAULT NULL COMMENT '区县编码',
  1271. `street` varchar(10) DEFAULT NULL COMMENT '街道',
  1272. `province_name` varchar(50) DEFAULT NULL COMMENT '省名称',
  1273. `city_name` varchar(50) DEFAULT NULL COMMENT '城市名称',
  1274. `town_name` varchar(50) DEFAULT NULL COMMENT '区县名称',
  1275. `address` varchar(100) DEFAULT NULL COMMENT '详细地址',
  1276. `disease` int(11) DEFAULT '0' COMMENT '疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病',
  1277. `disease_condition` int(11) DEFAULT NULL COMMENT '病情:0绿标,1黄标,2红标',
  1278. `points` int(11) DEFAULT NULL COMMENT '总积分',
  1279. `record_amount` int(11) DEFAULT NULL COMMENT '病历总数',
  1280. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1281. `openid` varchar(50) DEFAULT NULL COMMENT '微信编号',
  1282. PRIMARY KEY (`id`),
  1283. UNIQUE KEY `idx_wlyy_patient_1` (`idcard`)
  1284. ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COMMENT='患者信息表';
  1285. /*Data for the table `wlyy_patient` */
  1286. 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','350583198402112211','6e335b853b1ed99622d2cbdaed37d3424f36f6fe','e17354680a03a774','李晓毅','1982-06-11',2,'15959208182','0592-5982816\r\n','350204163650','2016/06/01/20160601140418_38.jpg','1','01','0101',NULL,'福建省','湖里区','新店镇','禾祥西路185号\r\n',1,0,0,3,'2016-06-02 14:02:22',''),(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','');
  1287. /*Table structure for table `wlyy_patient_course` */
  1288. DROP TABLE IF EXISTS `wlyy_patient_course`;
  1289. CREATE TABLE `wlyy_patient_course` (
  1290. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1291. `code` varchar(50) NOT NULL COMMENT '历程标识',
  1292. `user` varchar(50) NOT NULL COMMENT '患者标识',
  1293. `title` varchar(100) NOT NULL COMMENT '健康历程标题',
  1294. `content` varchar(500) DEFAULT NULL COMMENT '内容',
  1295. `table` varchar(50) NOT NULL COMMENT '对应的表',
  1296. `tid` varchar(20) NOT NULL COMMENT '对应的表的code字段值',
  1297. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1298. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1299. PRIMARY KEY (`id`),
  1300. KEY `idx_wlyy_patient_course_1` (`user`)
  1301. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康历程表';
  1302. /*Data for the table `wlyy_patient_course` */
  1303. /*Table structure for table `wlyy_patient_device` */
  1304. DROP TABLE IF EXISTS `wlyy_patient_device`;
  1305. CREATE TABLE `wlyy_patient_device` (
  1306. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关键',
  1307. `code` varchar(50) NOT NULL COMMENT '设备标识',
  1308. `user` varchar(50) NOT NULL COMMENT '患者标识',
  1309. `category` varchar(50) DEFAULT NULL COMMENT '设备类型标识',
  1310. `category_name` varchar(100) DEFAULT NULL COMMENT '设备类型名称',
  1311. `device_name` varchar(50) DEFAULT NULL COMMENT '设备名称',
  1312. `sn` varchar(50) NOT NULL COMMENT '设备SN码',
  1313. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1314. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1315. PRIMARY KEY (`id`),
  1316. KEY `idx_wlyy_patient_device_1` (`user`)
  1317. ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COMMENT='患者设备表';
  1318. /*Data for the table `wlyy_patient_device` */
  1319. 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');
  1320. /*Table structure for table `wlyy_patient_family` */
  1321. DROP TABLE IF EXISTS `wlyy_patient_family`;
  1322. CREATE TABLE `wlyy_patient_family` (
  1323. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  1324. `code` varchar(50) NOT NULL COMMENT '家人标识',
  1325. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1326. `name` varchar(100) DEFAULT NULL COMMENT '患者姓名',
  1327. `relationship` varchar(50) NOT NULL COMMENT '关系标识',
  1328. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1329. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1330. PRIMARY KEY (`id`),
  1331. KEY `idx_wlyy_patient_family_1` (`patient`)
  1332. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者家人信息表';
  1333. /*Data for the table `wlyy_patient_family` */
  1334. /*Table structure for table `wlyy_patient_friend` */
  1335. DROP TABLE IF EXISTS `wlyy_patient_friend`;
  1336. CREATE TABLE `wlyy_patient_friend` (
  1337. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  1338. `user1` varchar(50) NOT NULL COMMENT '患者标识,与wlyy_patient表关联',
  1339. `user2` varchar(50) NOT NULL COMMENT '患者标识,与wlyy_patient表关联',
  1340. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1341. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  1342. PRIMARY KEY (`id`),
  1343. KEY `idx_wlyy_patient_friend_1` (`user1`),
  1344. KEY `idx_wlyy_patient_friend_2` (`user2`)
  1345. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者好友表';
  1346. /*Data for the table `wlyy_patient_friend` */
  1347. /*Table structure for table `wlyy_patient_gift` */
  1348. DROP TABLE IF EXISTS `wlyy_patient_gift`;
  1349. CREATE TABLE `wlyy_patient_gift` (
  1350. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1351. `user` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1352. `gift` varchar(50) DEFAULT NULL COMMENT '礼品标识',
  1353. `posints` int(11) DEFAULT NULL COMMENT '消费的积分数',
  1354. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '兑换时间',
  1355. PRIMARY KEY (`id`)
  1356. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者兑换的礼品记录表';
  1357. /*Data for the table `wlyy_patient_gift` */
  1358. /*Table structure for table `wlyy_patient_group` */
  1359. DROP TABLE IF EXISTS `wlyy_patient_group`;
  1360. CREATE TABLE `wlyy_patient_group` (
  1361. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '与业务无关主键',
  1362. `code` varchar(50) DEFAULT NULL COMMENT '业务主键',
  1363. `creater` varchar(50) NOT NULL COMMENT '创建人,与wlyy_patient表关联',
  1364. `name` varchar(50) NOT NULL COMMENT '群名称',
  1365. `icon` varchar(100) DEFAULT NULL COMMENT '群LOGO',
  1366. `status` int(11) NOT NULL DEFAULT '1' COMMENT '是否作废,1正常,0解散',
  1367. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1368. PRIMARY KEY (`id`),
  1369. KEY `idx_wlyy_patient_group_1` (`code`)
  1370. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者群组信息';
  1371. /*Data for the table `wlyy_patient_group` */
  1372. /*Table structure for table `wlyy_patient_group_info` */
  1373. DROP TABLE IF EXISTS `wlyy_patient_group_info`;
  1374. CREATE TABLE `wlyy_patient_group_info` (
  1375. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1376. `team` varchar(50) NOT NULL COMMENT '群组标识,与wlyy_patient_group表关联',
  1377. `user` varchar(50) NOT NULL COMMENT '患者标识,与wlyy_patient表关联',
  1378. `admin` int(11) DEFAULT '0' COMMENT '管理员标识,1管理员,0普通组员',
  1379. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1380. PRIMARY KEY (`id`),
  1381. KEY `idx_wlyy_patient_group_info_team` (`team`),
  1382. KEY `idx_wlyy_patient_group_info_uid` (`user`)
  1383. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者群组详情表';
  1384. /*Data for the table `wlyy_patient_group_info` */
  1385. /*Table structure for table `wlyy_patient_health_guidance` */
  1386. DROP TABLE IF EXISTS `wlyy_patient_health_guidance`;
  1387. CREATE TABLE `wlyy_patient_health_guidance` (
  1388. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1389. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1390. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1391. `content` varchar(500) DEFAULT NULL COMMENT '指导内容',
  1392. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  1393. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1394. PRIMARY KEY (`id`),
  1395. KEY `idx_wlyy_patient_health_guidance_1` (`patient`)
  1396. ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康指导';
  1397. /*Data for the table `wlyy_patient_health_guidance` */
  1398. 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');
  1399. /*Table structure for table `wlyy_patient_health_index` */
  1400. DROP TABLE IF EXISTS `wlyy_patient_health_index`;
  1401. CREATE TABLE `wlyy_patient_health_index` (
  1402. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1403. `user` varchar(50) DEFAULT NULL COMMENT '患者标识,与wlyy_patient关联',
  1404. `intervene` varchar(50) DEFAULT NULL COMMENT '干预标识',
  1405. `value1` decimal(6,2) DEFAULT NULL COMMENT '血糖/收缩压/体重/腰围/早餐前空腹',
  1406. `value2` decimal(6,2) DEFAULT NULL COMMENT '舒张压/早餐后空腹',
  1407. `value3` decimal(6,2) DEFAULT NULL COMMENT '午餐空腹',
  1408. `value4` decimal(6,2) DEFAULT NULL COMMENT '午餐后',
  1409. `value5` decimal(6,2) DEFAULT NULL COMMENT '晚餐空腹',
  1410. `value6` decimal(6,2) DEFAULT NULL COMMENT '晚餐后',
  1411. `value7` decimal(6,2) DEFAULT NULL COMMENT '睡前',
  1412. `type` int(1) DEFAULT NULL COMMENT '健康指标类型(1血糖,2血压,3体重,4腰围)',
  1413. `record_date` date DEFAULT NULL COMMENT '记录时间',
  1414. `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间',
  1415. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1416. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  1417. PRIMARY KEY (`id`),
  1418. UNIQUE KEY `idx_wlyy_patient_health_index_2` (`user`,`type`,`record_date`),
  1419. KEY `idx_wlyy_patient_health_index_1` (`user`)
  1420. ) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康指标表';
  1421. /*Data for the table `wlyy_patient_health_index` */
  1422. 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');
  1423. /*Table structure for table `wlyy_patient_health_record_diet` */
  1424. DROP TABLE IF EXISTS `wlyy_patient_health_record_diet`;
  1425. CREATE TABLE `wlyy_patient_health_record_diet` (
  1426. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1427. `code` varchar(50) NOT NULL COMMENT '记录标识',
  1428. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1429. `record_date` date DEFAULT NULL COMMENT '记录时间',
  1430. `content` varchar(500) DEFAULT NULL COMMENT '饮食内容',
  1431. `images` varchar(3000) DEFAULT NULL COMMENT '图片HTTP地址,多图以逗号分隔',
  1432. `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间',
  1433. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1434. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1435. PRIMARY KEY (`id`),
  1436. KEY `idx_wlyy_patient_health_record_diet_1` (`patient`)
  1437. ) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康记录(饮食)表';
  1438. /*Data for the table `wlyy_patient_health_record_diet` */
  1439. 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');
  1440. /*Table structure for table `wlyy_patient_health_record_medication` */
  1441. DROP TABLE IF EXISTS `wlyy_patient_health_record_medication`;
  1442. CREATE TABLE `wlyy_patient_health_record_medication` (
  1443. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1444. `code` varchar(50) NOT NULL COMMENT '记录标识',
  1445. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1446. `record_date` date DEFAULT NULL COMMENT '记录时间',
  1447. `medicines` varchar(50) DEFAULT NULL COMMENT '药品标识',
  1448. `medicines_name` varchar(100) DEFAULT NULL COMMENT '药品名称',
  1449. `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间',
  1450. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1451. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1452. PRIMARY KEY (`id`),
  1453. KEY `idx_wlyy_patient_health_record_medication_1` (`patient`)
  1454. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康记录(用药)表';
  1455. /*Data for the table `wlyy_patient_health_record_medication` */
  1456. 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');
  1457. /*Table structure for table `wlyy_patient_health_record_sports` */
  1458. DROP TABLE IF EXISTS `wlyy_patient_health_record_sports`;
  1459. CREATE TABLE `wlyy_patient_health_record_sports` (
  1460. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1461. `code` varchar(50) NOT NULL COMMENT '记录标识',
  1462. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1463. `record_date` date DEFAULT NULL COMMENT '记录时间',
  1464. `sports_time` int(11) DEFAULT NULL COMMENT '运动时长(分)',
  1465. `sports_type` varchar(50) DEFAULT NULL COMMENT '运动强度',
  1466. `sports_type_name` varchar(100) DEFAULT NULL COMMENT '运动强度名称',
  1467. `sports` varchar(50) DEFAULT NULL COMMENT '运动类型',
  1468. `sports_name` varchar(100) DEFAULT NULL COMMENT '运动类型名称',
  1469. `sort_date` datetime DEFAULT NULL COMMENT '用于查询排序的时间',
  1470. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1471. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1472. PRIMARY KEY (`id`),
  1473. KEY `idx_wlyy_patient_health_record_sports_1` (`patient`)
  1474. ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康(运动)记录表';
  1475. /*Data for the table `wlyy_patient_health_record_sports` */
  1476. 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');
  1477. /*Table structure for table `wlyy_patient_health_standard` */
  1478. DROP TABLE IF EXISTS `wlyy_patient_health_standard`;
  1479. CREATE TABLE `wlyy_patient_health_standard` (
  1480. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1481. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1482. `type` int(11) NOT NULL COMMENT '健康指标类型:1血糖,2血压,3体重,4腰围',
  1483. `min_value_1` double NOT NULL COMMENT '最低安全值(血糖餐前\\收缩压\\体重\\腰围)',
  1484. `max_value_1` double NOT NULL COMMENT '最高安全值(血糖餐前\\收缩压\\体重\\腰围)',
  1485. `min_value_2` double DEFAULT NULL COMMENT '最低安全值(血糖餐后\\舒张压)',
  1486. `max_value_2` double DEFAULT NULL COMMENT '最高安全值(血糖餐后\\舒张压)',
  1487. `doctor` varchar(50) NOT NULL COMMENT '设置医生',
  1488. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '设置时间',
  1489. PRIMARY KEY (`id`),
  1490. KEY `idx_wlyy_patient_health_standard_1` (`patient`)
  1491. ) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COMMENT='患者健康指标预警值';
  1492. /*Data for the table `wlyy_patient_health_standard` */
  1493. 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');
  1494. /*Table structure for table `wlyy_patient_inspection_suggest` */
  1495. DROP TABLE IF EXISTS `wlyy_patient_inspection_suggest`;
  1496. CREATE TABLE `wlyy_patient_inspection_suggest` (
  1497. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1498. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1499. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1500. `doctor_name` varchar(100) DEFAULT NULL COMMENT '医生姓名',
  1501. `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识',
  1502. `type` int(11) DEFAULT NULL COMMENT '咨询类型:1三师咨询(即时咨询),2视频咨询',
  1503. `content` varchar(1000) DEFAULT NULL COMMENT '建议内容',
  1504. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1505. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  1506. PRIMARY KEY (`id`),
  1507. KEY `idx_wlyy_patient_inspection_suggest_1` (`patient`),
  1508. KEY `idx_wlyy_patient_inspection_suggest_2` (`consult`,`type`),
  1509. KEY `idx_wlyy_patient_inspection_suggest_3` (`doctor`)
  1510. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='患者检查建议表';
  1511. /*Data for the table `wlyy_patient_inspection_suggest` */
  1512. 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');
  1513. /*Table structure for table `wlyy_patient_medical_records` */
  1514. DROP TABLE IF EXISTS `wlyy_patient_medical_records`;
  1515. CREATE TABLE `wlyy_patient_medical_records` (
  1516. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1517. `code` varchar(50) DEFAULT NULL COMMENT '病历标识',
  1518. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1519. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1520. `doctor_name` varchar(50) DEFAULT NULL COMMENT '医生姓名',
  1521. `type` int(11) DEFAULT NULL COMMENT '类型:1记录,2片段',
  1522. `title` varchar(200) DEFAULT NULL COMMENT '病历标题',
  1523. `symptoms` varchar(500) DEFAULT NULL COMMENT '主诉',
  1524. `images` varchar(3000) DEFAULT NULL COMMENT '咨询图片,多图以逗号分隔',
  1525. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1526. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1527. PRIMARY KEY (`id`),
  1528. KEY `idx_wlyy_patient_medical_records_1` (`code`),
  1529. KEY `idx_wlyy_patient_medical_records_2` (`patient`)
  1530. ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COMMENT='患者病历记录表';
  1531. /*Data for the table `wlyy_patient_medical_records` */
  1532. 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');
  1533. /*Table structure for table `wlyy_patient_medical_records_item` */
  1534. DROP TABLE IF EXISTS `wlyy_patient_medical_records_item`;
  1535. CREATE TABLE `wlyy_patient_medical_records_item` (
  1536. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1537. `record` varchar(50) NOT NULL COMMENT '病历记录标识',
  1538. `part` varchar(50) NOT NULL COMMENT '片段标识',
  1539. `part_name` varchar(100) NOT NULL COMMENT '片段名称',
  1540. `content` varchar(1000) NOT NULL COMMENT '片段内容',
  1541. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1542. PRIMARY KEY (`id`),
  1543. KEY `idx_wlyy_patient_medical_records_item_1` (`record`)
  1544. ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COMMENT='患者病历片断记录表';
  1545. /*Data for the table `wlyy_patient_medical_records_item` */
  1546. 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');
  1547. /*Table structure for table `wlyy_patient_orders` */
  1548. DROP TABLE IF EXISTS `wlyy_patient_orders`;
  1549. CREATE TABLE `wlyy_patient_orders` (
  1550. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1551. `code` varchar(50) DEFAULT NULL COMMENT '医嘱标识',
  1552. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1553. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1554. `treatment` varchar(50) DEFAULT NULL COMMENT '就诊标识',
  1555. `content` varchar(500) DEFAULT NULL COMMENT '医嘱内容',
  1556. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1557. `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废',
  1558. PRIMARY KEY (`id`),
  1559. KEY `idx_wlyy_patient_orders_1` (`patient`)
  1560. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='医嘱信息表';
  1561. /*Data for the table `wlyy_patient_orders` */
  1562. 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');
  1563. /*Table structure for table `wlyy_patient_remind` */
  1564. DROP TABLE IF EXISTS `wlyy_patient_remind`;
  1565. CREATE TABLE `wlyy_patient_remind` (
  1566. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1567. `code` varchar(50) DEFAULT NULL COMMENT '提醒标识',
  1568. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1569. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1570. `visit_code` varchar(50) DEFAULT NULL COMMENT '就诊记录标识',
  1571. `type` int(11) DEFAULT NULL COMMENT '提醒类型,1用药,2复诊',
  1572. `content` varchar(1000) DEFAULT NULL COMMENT '提醒内容',
  1573. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1574. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1575. PRIMARY KEY (`id`),
  1576. KEY `idx_wlyy_patient_remind_1` (`patient`)
  1577. ) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COMMENT='患者提醒表';
  1578. /*Data for the table `wlyy_patient_remind` */
  1579. 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');
  1580. /*Table structure for table `wlyy_patient_reservation` */
  1581. DROP TABLE IF EXISTS `wlyy_patient_reservation`;
  1582. CREATE TABLE `wlyy_patient_reservation` (
  1583. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1584. `code` varchar(50) NOT NULL COMMENT '预约号/预约流水号',
  1585. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识(医生帮患者预约时才会有值)',
  1586. `dname` varchar(50) DEFAULT NULL COMMENT '医生姓名(医生帮患者预约时才会有值)',
  1587. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1588. `idcard` varchar(20) NOT NULL COMMENT '患者身份证',
  1589. `name` varchar(50) NOT NULL COMMENT '患者姓名',
  1590. `phone` varchar(20) NOT NULL COMMENT '患者手机号',
  1591. `ssc` varchar(20) NOT NULL COMMENT '患者社保卡号',
  1592. `section_type` varchar(4) NOT NULL COMMENT '预约时间段:AM (上午)或者PM (下午)',
  1593. `start_time` varchar(20) NOT NULL COMMENT '一次预约段的开始时间',
  1594. `org_code` varchar(50) NOT NULL COMMENT '医生所在医疗机构编码',
  1595. `org_name` varchar(50) NOT NULL COMMENT '医院机构名称',
  1596. `dept_code` varchar(50) NOT NULL COMMENT '科室编码',
  1597. `dept_name` varchar(30) NOT NULL COMMENT '科室名称',
  1598. `doctor_code` varchar(50) NOT NULL COMMENT '专家ID/编码',
  1599. `doctor_name` varchar(50) NOT NULL COMMENT '专家姓名',
  1600. `doctor_photo` varchar(300) DEFAULT NULL COMMENT '专家头像',
  1601. `doctor_job` varchar(50) DEFAULT NULL COMMENT '专家职称',
  1602. `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态:1预约成功,0预约取消',
  1603. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '预约时间',
  1604. `del` varchar(1) NOT NULL DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  1605. PRIMARY KEY (`id`),
  1606. KEY `idx_wlyy_patient_reservation_1` (`patient`)
  1607. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者预约挂号记录表';
  1608. /*Data for the table `wlyy_patient_reservation` */
  1609. /*Table structure for table `wlyy_patient_reservation_doctors` */
  1610. DROP TABLE IF EXISTS `wlyy_patient_reservation_doctors`;
  1611. CREATE TABLE `wlyy_patient_reservation_doctors` (
  1612. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1613. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1614. `org_code` varchar(50) NOT NULL COMMENT '医院编码',
  1615. `org_name` varchar(100) NOT NULL COMMENT '医院名称',
  1616. `dept_code` varchar(50) NOT NULL COMMENT '科室编码',
  1617. `dept_name` varchar(30) NOT NULL COMMENT '科室名称',
  1618. `doctor_code` varchar(50) NOT NULL COMMENT '专家ID/编码',
  1619. `doctor_name` varchar(50) NOT NULL COMMENT '专家姓名',
  1620. `doctor_photo` varchar(300) DEFAULT NULL COMMENT '专家头像',
  1621. PRIMARY KEY (`id`),
  1622. KEY `idx_wlyy_patient_reservation_doctors_1` (`patient`),
  1623. KEY `idx_wlyy_patient_reservation_doctors_2` (`patient`,`org_code`,`dept_code`,`doctor_code`)
  1624. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者预约过的医生/专家';
  1625. /*Data for the table `wlyy_patient_reservation_doctors` */
  1626. /*Table structure for table `wlyy_patient_self_inspection` */
  1627. DROP TABLE IF EXISTS `wlyy_patient_self_inspection`;
  1628. CREATE TABLE `wlyy_patient_self_inspection` (
  1629. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1630. `code` varchar(50) DEFAULT NULL COMMENT '自查标识',
  1631. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1632. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1633. `doctor_name` varchar(100) DEFAULT NULL COMMENT '医生姓名',
  1634. `title` varchar(300) DEFAULT NULL COMMENT '标题',
  1635. `consult` varchar(50) DEFAULT NULL COMMENT '咨询标识',
  1636. `type` int(11) DEFAULT NULL COMMENT '咨询类型:1三师咨询(即时咨询),2视频咨询',
  1637. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1638. `del` varchar(1) DEFAULT '1' COMMENT '作废标识:1正常,0作废',
  1639. PRIMARY KEY (`id`),
  1640. KEY `idx_wlyy_patient_self_inspection_1` (`patient`),
  1641. KEY `idx_wlyy_patient_self_inspection_2` (`doctor`)
  1642. ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COMMENT='患者自查医生建议表';
  1643. /*Data for the table `wlyy_patient_self_inspection` */
  1644. 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');
  1645. /*Table structure for table `wlyy_patient_self_inspection_item` */
  1646. DROP TABLE IF EXISTS `wlyy_patient_self_inspection_item`;
  1647. CREATE TABLE `wlyy_patient_self_inspection_item` (
  1648. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1649. `inspection` varchar(50) DEFAULT NULL COMMENT '自查标识',
  1650. `device` varchar(50) DEFAULT NULL COMMENT '设备标识',
  1651. `device_name` varchar(100) DEFAULT NULL COMMENT '设备名称',
  1652. `content` varchar(300) DEFAULT NULL COMMENT '备注内容',
  1653. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1654. PRIMARY KEY (`id`),
  1655. KEY `idx_wlyy_patient_self_inspection_item_1` (`inspection`)
  1656. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COMMENT='患者自查医生建议细项表';
  1657. /*Data for the table `wlyy_patient_self_inspection_item` */
  1658. 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');
  1659. /*Table structure for table `wlyy_patient_treatment` */
  1660. DROP TABLE IF EXISTS `wlyy_patient_treatment`;
  1661. CREATE TABLE `wlyy_patient_treatment` (
  1662. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1663. `code` varchar(50) DEFAULT NULL COMMENT '就诊标识',
  1664. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1665. `hospital` varchar(100) DEFAULT NULL COMMENT '医院名称',
  1666. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '就诊日期',
  1667. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1668. PRIMARY KEY (`id`),
  1669. KEY `idx_wlyy_patient_treatment_1` (`patient`)
  1670. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='就诊记录表';
  1671. /*Data for the table `wlyy_patient_treatment` */
  1672. 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');
  1673. /*Table structure for table `wlyy_pharmacist` */
  1674. DROP TABLE IF EXISTS `wlyy_pharmacist`;
  1675. CREATE TABLE `wlyy_pharmacist` (
  1676. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1677. `code` varchar(50) NOT NULL COMMENT '药师标识',
  1678. `mobile` varchar(20) NOT NULL COMMENT '登录手机号',
  1679. `password` varchar(50) NOT NULL COMMENT '登录密码',
  1680. `name` varchar(50) DEFAULT NULL COMMENT '姓名',
  1681. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '注册时间',
  1682. `status` int(11) DEFAULT '1' COMMENT '用户状态,1正常,0禁用',
  1683. PRIMARY KEY (`id`),
  1684. UNIQUE KEY `idx_wlyy_pharmacist_1` (`code`),
  1685. UNIQUE KEY `idx_wlyy_pharmacist_2` (`mobile`)
  1686. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='药师信息表';
  1687. /*Data for the table `wlyy_pharmacist` */
  1688. insert into `wlyy_pharmacist`(`id`,`code`,`mobile`,`password`,`name`,`czrq`,`status`) values (1,'PHA20160324000001','13693066634','123456','药师1','2016-03-24 09:31:17',0);
  1689. /*Table structure for table `wlyy_pharmacist_checked` */
  1690. DROP TABLE IF EXISTS `wlyy_pharmacist_checked`;
  1691. CREATE TABLE `wlyy_pharmacist_checked` (
  1692. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1693. `code` varchar(50) DEFAULT NULL COMMENT '审核标识',
  1694. `pharmacist` varchar(50) DEFAULT NULL COMMENT '药师标识',
  1695. `prescription` varchar(50) DEFAULT NULL COMMENT '处方标识',
  1696. `status` int(11) DEFAULT NULL COMMENT '审核状态,-1审核未通过,0待审核,1审核通过,2复核通过',
  1697. `content` varchar(1000) DEFAULT NULL COMMENT '审核结果说明内容',
  1698. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '审核时间',
  1699. `del` varchar(1) DEFAULT NULL COMMENT '作废标识,1正常,0作废',
  1700. PRIMARY KEY (`id`)
  1701. ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COMMENT='药师处方审核记录表';
  1702. /*Data for the table `wlyy_pharmacist_checked` */
  1703. 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');
  1704. /*Table structure for table `wlyy_points_gift` */
  1705. DROP TABLE IF EXISTS `wlyy_points_gift`;
  1706. CREATE TABLE `wlyy_points_gift` (
  1707. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1708. `code` varchar(50) DEFAULT NULL COMMENT '礼品标识',
  1709. `name` varchar(50) DEFAULT NULL COMMENT '礼品名称',
  1710. `points` int(11) DEFAULT NULL COMMENT '兑换积分数',
  1711. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1712. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  1713. PRIMARY KEY (`id`)
  1714. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分礼品表';
  1715. /*Data for the table `wlyy_points_gift` */
  1716. /*Table structure for table `wlyy_points_record` */
  1717. DROP TABLE IF EXISTS `wlyy_points_record`;
  1718. CREATE TABLE `wlyy_points_record` (
  1719. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1720. `user` varchar(50) NOT NULL COMMENT '患者标识',
  1721. `points` int(11) DEFAULT NULL COMMENT '积分数',
  1722. `table` varchar(100) DEFAULT NULL COMMENT '操作来源(对应数据库表名)',
  1723. `oper_id` varchar(20) DEFAULT NULL COMMENT '操作来源标识',
  1724. `des` varchar(500) DEFAULT NULL COMMENT '积分说明',
  1725. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作日期',
  1726. `del` varchar(1) DEFAULT '1' COMMENT '是否作废,1正常,0作废',
  1727. PRIMARY KEY (`id`),
  1728. KEY `idx_wlyy_points_record_1` (`user`)
  1729. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分明细表';
  1730. /*Data for the table `wlyy_points_record` */
  1731. /*Table structure for table `wlyy_prescription` */
  1732. DROP TABLE IF EXISTS `wlyy_prescription`;
  1733. CREATE TABLE `wlyy_prescription` (
  1734. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1735. `code` varchar(50) NOT NULL COMMENT '处方标识',
  1736. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1737. `doctor` varchar(50) NOT NULL COMMENT '医生标识',
  1738. `name` varchar(50) DEFAULT NULL COMMENT '患者姓名',
  1739. `sex` int(11) DEFAULT NULL COMMENT '患者性别',
  1740. `age` int(11) DEFAULT NULL COMMENT '患者年龄',
  1741. `allergy` varchar(200) DEFAULT NULL COMMENT '过敏史',
  1742. `diagnosis` varchar(500) DEFAULT NULL COMMENT '临床诊断',
  1743. `status` int(11) DEFAULT NULL COMMENT '处方状态,-1初审未通过,-2复审未通过,0待审核,1审核通过,2待复审 3复核通过',
  1744. `amount` int(11) DEFAULT '0' COMMENT '续方次数',
  1745. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '出处方时间',
  1746. `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废',
  1747. PRIMARY KEY (`id`),
  1748. UNIQUE KEY `idx_wlyy_prescription_1` (`code`),
  1749. KEY `idx_wlyy_prescription_2` (`patient`),
  1750. KEY `idx_wlyy_prescription_3` (`doctor`)
  1751. ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COMMENT='患者处方记录表';
  1752. /*Data for the table `wlyy_prescription` */
  1753. 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');
  1754. /*Table structure for table `wlyy_prescription_continue` */
  1755. DROP TABLE IF EXISTS `wlyy_prescription_continue`;
  1756. CREATE TABLE `wlyy_prescription_continue` (
  1757. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1758. `prescription` varchar(50) DEFAULT NULL COMMENT '处方标识',
  1759. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1760. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1761. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '续诊时间',
  1762. `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废',
  1763. PRIMARY KEY (`id`),
  1764. KEY `idx_wlyy_prescription_continue_1` (`prescription`)
  1765. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='处方续方记录表';
  1766. /*Data for the table `wlyy_prescription_continue` */
  1767. 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');
  1768. /*Table structure for table `wlyy_prescription_info` */
  1769. DROP TABLE IF EXISTS `wlyy_prescription_info`;
  1770. CREATE TABLE `wlyy_prescription_info` (
  1771. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1772. `code` varchar(50) DEFAULT NULL COMMENT '药品标识',
  1773. `prescription` varchar(50) DEFAULT NULL COMMENT '处方标识',
  1774. `name` varchar(100) DEFAULT NULL COMMENT '药品名称',
  1775. `standard` varchar(50) DEFAULT NULL COMMENT '药品规格',
  1776. `dosage` double DEFAULT NULL COMMENT '次剂量',
  1777. `dosage_unit` varchar(50) DEFAULT NULL COMMENT '次剂量单位',
  1778. `frequency` int(11) DEFAULT NULL COMMENT '频次',
  1779. `days` int(11) DEFAULT NULL COMMENT '天数',
  1780. `total` double DEFAULT NULL COMMENT '总量',
  1781. `total_unit` varchar(50) DEFAULT NULL COMMENT '总量单位',
  1782. `method` varchar(500) DEFAULT NULL COMMENT '用药方法',
  1783. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1784. `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废',
  1785. PRIMARY KEY (`id`),
  1786. UNIQUE KEY `idx_wlyy_prescription_info_2` (`code`),
  1787. KEY `idx_wlyy_prescription_info_1` (`prescription`)
  1788. ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COMMENT='处方明细表';
  1789. /*Data for the table `wlyy_prescription_info` */
  1790. 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');
  1791. /*Table structure for table `wlyy_prescription_template` */
  1792. DROP TABLE IF EXISTS `wlyy_prescription_template`;
  1793. CREATE TABLE `wlyy_prescription_template` (
  1794. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1795. `code` varchar(50) NOT NULL COMMENT '模板标识',
  1796. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1797. `name` varchar(100) DEFAULT NULL COMMENT '模板标题',
  1798. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  1799. `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常 0作废',
  1800. PRIMARY KEY (`id`),
  1801. KEY `idx_wlyy_prescription_template_1` (`doctor`)
  1802. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='处方模板表';
  1803. /*Data for the table `wlyy_prescription_template` */
  1804. 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');
  1805. /*Table structure for table `wlyy_prescription_template_info` */
  1806. DROP TABLE IF EXISTS `wlyy_prescription_template_info`;
  1807. CREATE TABLE `wlyy_prescription_template_info` (
  1808. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1809. `template` varchar(50) DEFAULT NULL COMMENT '模板标识',
  1810. `code` varchar(50) DEFAULT NULL COMMENT '药品标识',
  1811. `name` varchar(100) DEFAULT NULL COMMENT '药品名称',
  1812. `standard` varchar(50) DEFAULT NULL COMMENT '药品规格',
  1813. `dosage` double DEFAULT NULL COMMENT '次剂量',
  1814. `dosage_unit` varchar(50) DEFAULT NULL COMMENT '次剂量单位',
  1815. `frequency` int(11) DEFAULT NULL COMMENT '频次',
  1816. `days` int(11) DEFAULT NULL COMMENT '天数',
  1817. `total` double DEFAULT NULL COMMENT '总量',
  1818. `total_unit` varchar(50) DEFAULT NULL COMMENT '总量单位',
  1819. `method` varchar(500) DEFAULT NULL COMMENT '用药方法',
  1820. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间',
  1821. `del` varchar(1) DEFAULT '1' COMMENT '作废,1正常,0作废',
  1822. PRIMARY KEY (`id`),
  1823. UNIQUE KEY `idx_wlyy_prescription_template_info_2` (`code`)
  1824. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='处方模板明细表';
  1825. /*Data for the table `wlyy_prescription_template_info` */
  1826. 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');
  1827. /*Table structure for table `wlyy_referral` */
  1828. DROP TABLE IF EXISTS `wlyy_referral`;
  1829. CREATE TABLE `wlyy_referral` (
  1830. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1831. `code` varchar(50) DEFAULT NULL COMMENT '转诊标识',
  1832. `doctor` varchar(50) DEFAULT NULL COMMENT '医生标识',
  1833. `patient` varchar(50) DEFAULT NULL COMMENT '患者标识',
  1834. `hospital` varchar(100) DEFAULT NULL COMMENT '医院名称',
  1835. `dept` varchar(100) DEFAULT NULL COMMENT '科室名称',
  1836. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '添加转诊时间',
  1837. `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  1838. PRIMARY KEY (`id`)
  1839. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='转疹信息表';
  1840. /*Data for the table `wlyy_referral` */
  1841. 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');
  1842. /*Table structure for table `wlyy_sign_contract` */
  1843. DROP TABLE IF EXISTS `wlyy_sign_contract`;
  1844. CREATE TABLE `wlyy_sign_contract` (
  1845. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1846. `code` varchar(50) NOT NULL COMMENT '签约标识',
  1847. `team` varchar(50) DEFAULT NULL COMMENT '签约医生团队,关联wlyy_doctor表',
  1848. `user` varchar(50) DEFAULT NULL COMMENT '签约患者,关联wlyy_patient表',
  1849. `uname` varchar(100) DEFAULT NULL COMMENT '患者姓名',
  1850. `disease_condition` int(11) DEFAULT '0' COMMENT '病情:0绿标,1黄标,2红标',
  1851. `begin` date DEFAULT NULL COMMENT '开始时间',
  1852. `end` date DEFAULT NULL COMMENT '结束时间',
  1853. `months` int(11) DEFAULT NULL COMMENT '一共多少个月',
  1854. `status` int(11) DEFAULT '1' COMMENT '签约状态,1正常,0取消',
  1855. PRIMARY KEY (`id`),
  1856. KEY `idx_wlyy_sign_contract_1` (`team`)
  1857. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='三师签约信息表';
  1858. /*Data for the table `wlyy_sign_contract` */
  1859. 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);
  1860. /*Table structure for table `wlyy_sign_web` */
  1861. DROP TABLE IF EXISTS `wlyy_sign_web`;
  1862. CREATE TABLE `wlyy_sign_web` (
  1863. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1864. `code` varchar(50) NOT NULL COMMENT '签约标识',
  1865. `doctor` varchar(50) NOT NULL COMMENT '签约医生',
  1866. `user` varchar(50) NOT NULL COMMENT '签约用户',
  1867. `oper` int(11) DEFAULT NULL COMMENT '操作人(1患者,2医生)',
  1868. `status` int(11) DEFAULT NULL COMMENT '签约状态(0待签约,1已拒绝,2已签约,3患者申请取消签约,4医生申请取消签约,5已解约)',
  1869. `begin` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '签约开始时间',
  1870. `end` timestamp NULL DEFAULT NULL COMMENT '签约结束时间',
  1871. `months` int(11) DEFAULT '0' COMMENT '签约时长(如:12个月)',
  1872. `apply_date` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  1873. `release_speak` varchar(200) DEFAULT NULL COMMENT '解约说明',
  1874. PRIMARY KEY (`id`),
  1875. KEY `idx_wlyy_sign_web_1` (`doctor`),
  1876. KEY `idx_wlyy_sign_web_2` (`user`)
  1877. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COMMENT='网络签约信息表';
  1878. /*Data for the table `wlyy_sign_web` */
  1879. 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);
  1880. /*Table structure for table `wlyy_sms` */
  1881. DROP TABLE IF EXISTS `wlyy_sms`;
  1882. CREATE TABLE `wlyy_sms` (
  1883. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1884. `mobile` varchar(20) DEFAULT NULL COMMENT '接收手机号',
  1885. `type` int(11) DEFAULT NULL COMMENT '消息类型:1微信端注册,2微信端找回密码,3医生端找回密码',
  1886. `content` varchar(500) DEFAULT NULL COMMENT '消息内容',
  1887. `deadline` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '过期时间',
  1888. `czrq` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '发送时间',
  1889. PRIMARY KEY (`id`)
  1890. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='短信记录表';
  1891. /*Data for the table `wlyy_sms` */
  1892. /*Table structure for table `wlyy_token` */
  1893. DROP TABLE IF EXISTS `wlyy_token`;
  1894. CREATE TABLE `wlyy_token` (
  1895. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1896. `user` varchar(50) NOT NULL COMMENT '用户标识',
  1897. `platform` int(11) DEFAULT NULL COMMENT '1患者,2医生',
  1898. `timeout` date NOT NULL COMMENT '登录超时时间',
  1899. `imei` varchar(50) NOT NULL COMMENT '登录手机的IMEI',
  1900. `token` varchar(300) NOT NULL COMMENT '登录信息标识',
  1901. `czrq` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '更新时间',
  1902. `del` varchar(1) DEFAULT '1' COMMENT '数据是否作废(1正常,0作废)',
  1903. PRIMARY KEY (`id`),
  1904. UNIQUE KEY `idx_wlyy_token_1` (`user`)
  1905. ) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8mb4 COMMENT='用户登录信息表';
  1906. /*Data for the table `wlyy_token` */
  1907. 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'),(179,'U20160322000001',1,'2016-07-02','867112027338727','56f80d6e41e5e0c8a04d362c1648feb0','2016-06-02 09:25:52','1'),(234,'U20160322000004',1,'2016-07-02','864895027424645','95142e55cb916953fce91709e8dd64c7','2016-06-02 13:21:57','1'),(238,'D20160322000002',2,'2016-07-02','864895024171520','aab4298d33c9d43c3a3d923d2e52710d','2016-06-02 13:58:29','1');
  1908. /*Table structure for table `wlyy_wx_patient` */
  1909. DROP TABLE IF EXISTS `wlyy_wx_patient`;
  1910. CREATE TABLE `wlyy_wx_patient` (
  1911. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  1912. `openid` varchar(50) NOT NULL COMMENT '微信openid',
  1913. `patient` varchar(50) NOT NULL COMMENT '患者标识',
  1914. `status` int(11) DEFAULT '1' COMMENT '状态(1正常,0注销)',
  1915. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  1916. PRIMARY KEY (`id`),
  1917. KEY `idx_wlyy_user_3` (`openid`)
  1918. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信与患者关联表/微信登录信息表';
  1919. /*Data for the table `wlyy_wx_patient` */
  1920. /*Table structure for table `wx_access_token` */
  1921. DROP TABLE IF EXISTS `wx_access_token`;
  1922. CREATE TABLE `wx_access_token` (
  1923. `access_token` varchar(300) NOT NULL COMMENT '微信中控服务器access_token',
  1924. `add_timestamp` decimal(15,0) NOT NULL COMMENT '添加时的秒数',
  1925. `expires_in` int(11) NOT NULL COMMENT ' 凭证有效时间(秒)',
  1926. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  1927. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1928. PRIMARY KEY (`id`)
  1929. ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4;
  1930. /*Data for the table `wx_access_token` */
  1931. insert into `wx_access_token`(`access_token`,`add_timestamp`,`expires_in`,`czrq`,`id`) values ('kWnYgvBZJz39MbY_59iv683muRjvFUnDWbdV9zR7rkUUdSHrbVuwd3XA0BznUwvUFll1LjqP0hUiJ1E33CrC5_ehN6phnfurHmhYe5cX-Qla0bmbSbmWvZXXa8V05nZgCGCjABARVR','1464680428901',7200,'2016-05-31 07:40:28',18),('KSlguUEsfGkN26cn8sCXdBh4rc2AlP487e2bTGUkFpmNc8sYJ633D-sooyQRhu5ZqLdULGH5VUY7mwxq-PdcxK-7h992NbeSLKHbaHiLNs5cxiJEAvrIz-rOxengKv8zSVCbAIABEL','1464870200731',7200,'2016-06-02 20:23:20',28);
  1932. /*Table structure for table `wx_jsapi_ticket` */
  1933. DROP TABLE IF EXISTS `wx_jsapi_ticket`;
  1934. CREATE TABLE `wx_jsapi_ticket` (
  1935. `jsapi_ticket` varchar(300) NOT NULL COMMENT '调用微信JS接口的临时票据',
  1936. `add_timestamp` decimal(15,0) NOT NULL COMMENT '添加时的秒数',
  1937. `expires_in` int(11) NOT NULL COMMENT ' 凭证有效时间(秒)',
  1938. `czrq` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  1939. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1940. PRIMARY KEY (`id`)
  1941. ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4;
  1942. /*Data for the table `wx_jsapi_ticket` */
  1943. insert into `wx_jsapi_ticket`(`jsapi_ticket`,`add_timestamp`,`expires_in`,`czrq`,`id`) values ('sM4AOVdWfPE4DxkXGEs8VN5llbbn1R5Tr9sLStna4sBHSnrZQJJ2dUkk4MpqC4a5hEwvz43yW_eYpu8vspEn1Q','1464680429592',7200,'2016-05-31 07:40:29',20),('sM4AOVdWfPE4DxkXGEs8VN5llbbn1R5Tr9sLStna4sAaTAeBW6s4m656PNCCwFwotiv5wbx2uIbpSX3Hpbq8cg','1464870201038',7200,'2016-06-02 20:23:21',30);
  1944. /*Table structure for table `wx_menu` */
  1945. DROP TABLE IF EXISTS `wx_menu`;
  1946. CREATE TABLE `wx_menu` (
  1947. `sup_menuid` varchar(50) DEFAULT NULL,
  1948. `menuid` varchar(50) DEFAULT NULL,
  1949. `type` varchar(10) DEFAULT NULL,
  1950. `name` varchar(50) DEFAULT NULL,
  1951. `key` varchar(50) DEFAULT NULL,
  1952. `url` varchar(100) DEFAULT NULL
  1953. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信自定义菜单表';
  1954. /*Data for the table `wx_menu` */
  1955. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  1956. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  1957. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  1958. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;