随访记录详情新增索引.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. 创建索引
  2. POST http://172.19.103.68:9200/wlyy_followup
  3. 查询索引
  4. GET http://172.19.103.68:9200/wlyy_followup/
  5. 给索引加mapping
  6. POST http://172.19.103.68:9200/wlyy_followup/wlyy_followup_content/_mapping
  7. {
  8. "wlyy_followup_content": {
  9. "properties": {
  10. "followup_id": {
  11. "type": "string",
  12. "index": "not_analyzed"
  13. },
  14. "followup_project": {
  15. "type": "string",
  16. "index": "not_analyzed"
  17. },
  18. "create_time": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },
  22. "NO_SYMPTOM": {
  23. "type": "string",
  24. "index": "not_analyzed"
  25. },
  26. "HEADACHE": {
  27. "type": "string",
  28. "index": "not_analyzed"
  29. },
  30. "NAUSEA": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },
  34. "VERTIGO_TINNITUS": {
  35. "type": "string",
  36. "index": "not_analyzed"
  37. },
  38. "DIFFICULTY_BREATHING": {
  39. "type": "string",
  40. "index": "not_analyzed"
  41. },
  42. "PALPITATIONS": {
  43. "type": "string",
  44. "index": "not_analyzed"
  45. },
  46. "EPISTAXIS_BLEEDING": {
  47. "type": "string",
  48. "index": "not_analyzed"
  49. },
  50. "LIMBS_NUMB": {
  51. "type": "string",
  52. "index": "not_analyzed"
  53. },
  54. "EXTREMITY_EDEMA": {
  55. "type": "string",
  56. "index": "not_analyzed"
  57. },
  58. "SYMPTOM_OTHER": {
  59. "type": "string",
  60. "index": "not_analyzed"
  61. },
  62. "POLYDIPSIA": {
  63. "type": "string",
  64. "index": "not_analyzed"
  65. },
  66. "MORE_FOOD": {
  67. "type": "string",
  68. "index": "not_analyzed"
  69. },
  70. "MORE_URINE": {
  71. "type": "string",
  72. "index": "not_analyzed"
  73. },
  74. "BLURRED_VISION": {
  75. "type": "string",
  76. "index": "not_analyzed"
  77. },
  78. "INFECTION": {
  79. "type": "string",
  80. "index": "not_analyzed"
  81. },
  82. "NUMB_HANDS": {
  83. "type": "string",
  84. "index": "not_analyzed"
  85. },
  86. "WEIGHT_LOSS": {
  87. "type": "string",
  88. "index": "not_analyzed"
  89. },
  90. "HYPOG_REACT_CODE": {
  91. "type": "string",
  92. "index": "not_analyzed"
  93. },
  94. "HEIGHT": {
  95. "type": "string",
  96. "index": "not_analyzed"
  97. },
  98. "HEIGHT_EXP": {
  99. "type": "string",
  100. "index": "not_analyzed"
  101. },
  102. "WEIGHT": {
  103. "type": "string",
  104. "index": "not_analyzed"
  105. },
  106. "WEIGHT_EXP": {
  107. "type": "string",
  108. "index": "not_analyzed"
  109. },
  110. "BP_D": {
  111. "type": "string",
  112. "index": "not_analyzed"
  113. },
  114. "BP_U": {
  115. "type": "string",
  116. "index": "not_analyzed"
  117. },
  118. "BS_FPG": {
  119. "type": "string",
  120. "index": "not_analyzed"
  121. },
  122. "NO_BS_FPG": {
  123. "type": "string",
  124. "index": "not_analyzed"
  125. },
  126. "RANDOM_BLOOD_SUGAR": {
  127. "type": "string",
  128. "index": "not_analyzed"
  129. },
  130. "BMI": {
  131. "type": "string",
  132. "index": "not_analyzed"
  133. },
  134. "BMI_EXP": {
  135. "type": "string",
  136. "index": "not_analyzed"
  137. },
  138. "OTHER_POSITIVE_SIGNS": {
  139. "type": "string",
  140. "index": "not_analyzed"
  141. },
  142. "POFDA_MARK": {
  143. "type": "string",
  144. "index": "not_analyzed"
  145. },
  146. "HEART_RATE": {
  147. "type": "string",
  148. "index": "not_analyzed"
  149. },
  150. "GHB": {
  151. "type": "string",
  152. "index": "not_analyzed"
  153. },
  154. "RENAL_FUNCTION_CREATININE": {
  155. "type": "string",
  156. "index": "not_analyzed"
  157. },
  158. "RENAL_FUNCTION_BUN": {
  159. "type": "string",
  160. "index": "not_analyzed"
  161. },
  162. "MICROALBUMINURIA": {
  163. "type": "string",
  164. "index": "not_analyzed"
  165. },
  166. "EXAM_DATE": {
  167. "type": "string",
  168. "index": "not_analyzed"
  169. },
  170. "BLOOD_FAT_TRIGLYCERIDE": {
  171. "type": "string",
  172. "index": "not_analyzed"
  173. },
  174. "BLOOD_FAT_TC": {
  175. "type": "string",
  176. "index": "not_analyzed"
  177. },
  178. "BLOOD_FAT_LDLC": {
  179. "type": "string",
  180. "index": "not_analyzed"
  181. },
  182. "DAILY_SMOKING": {
  183. "type": "string",
  184. "index": "not_analyzed"
  185. },
  186. "SOMKING_EXP": {
  187. "type": "string",
  188. "index": "not_analyzed"
  189. },
  190. "DAILY_DRINKING": {
  191. "type": "string",
  192. "index": "not_analyzed"
  193. },
  194. "DRINK_EXP": {
  195. "type": "string",
  196. "index": "not_analyzed"
  197. },
  198. "EXERCISE_FREQ_CODE": {
  199. "type": "string",
  200. "index": "not_analyzed"
  201. },
  202. "EXERCISE_FREQ_CODE_EXP": {
  203. "type": "string",
  204. "index": "not_analyzed"
  205. },
  206. "EXERCISE_DURATION_MINS": {
  207. "type": "string",
  208. "index": "not_analyzed"
  209. },
  210. "EXERCISE_DURATION_MINS_EXP": {
  211. "type": "string",
  212. "index": "not_analyzed"
  213. },
  214. "SALT_TAKEN_LEVEL_CODE": {
  215. "type": "string",
  216. "index": "not_analyzed"
  217. },
  218. "SALT_TAKEN_LEVEL_EXP": {
  219. "type": "string",
  220. "index": "not_analyzed"
  221. },
  222. "PSY_ADJUST_RESULT_CODE": {
  223. "type": "string",
  224. "index": "not_analyzed"
  225. },
  226. "COMPLIANCE_RESULT_CODE": {
  227. "type": "string",
  228. "index": "not_analyzed"
  229. },
  230. "DAILY_STAPLE": {
  231. "type": "string",
  232. "index": "not_analyzed"
  233. },
  234. "HYP_FOLLOWUP_TYPE_CODE": {
  235. "type": "string",
  236. "index": "not_analyzed"
  237. },
  238. "HYP_COMPLICATION_DETAIL": {
  239. "type": "string",
  240. "index": "not_analyzed"
  241. },
  242. "DIA_FOLLOWUP_TYPE_CODE": {
  243. "type": "string",
  244. "index": "not_analyzed"
  245. },
  246. "DIA_COMPLICATION_DETAIL": {
  247. "type": "string",
  248. "index": "not_analyzed"
  249. },
  250. "DRUG_COMPLIANCE_CODE": {
  251. "type": "string",
  252. "index": "not_analyzed"
  253. },
  254. "CONTROL_DATE": {
  255. "type": "string",
  256. "index": "not_analyzed"
  257. },
  258. "CONTROL_CONSTITUTOR": {
  259. "type": "string",
  260. "index": "not_analyzed"
  261. },
  262. "CONTROL_CONSTITUTOR_DOCTORCODE": {
  263. "type": "string",
  264. "index": "not_analyzed"
  265. },
  266. "CONTROL_CONSTITUTOR_JWDOCTORCODE": {
  267. "type": "string",
  268. "index": "not_analyzed"
  269. },
  270. "CONTROL_BP_U": {
  271. "type": "string",
  272. "index": "not_analyzed"
  273. },
  274. "CONTROL_BP_D": {
  275. "type": "string",
  276. "index": "not_analyzed"
  277. },
  278. "CONTROL_BS_FPG": {
  279. "type": "string",
  280. "index": "not_analyzed"
  281. },
  282. "CONTROL_NO_BS_FPG": {
  283. "type": "string",
  284. "index": "not_analyzed"
  285. },
  286. "CONTROL_GHB": {
  287. "type": "string",
  288. "index": "not_analyzed"
  289. },
  290. "CONTROL_TRIGLYCERIDE": {
  291. "type": "string",
  292. "index": "not_analyzed"
  293. },
  294. "CONTROL_TOTAL_CHOLESTEROL": {
  295. "type": "string",
  296. "index": "not_analyzed"
  297. },
  298. "CONTROL_LDL": {
  299. "type": "string",
  300. "index": "not_analyzed"
  301. },
  302. "CONTROL_WEIGHT": {
  303. "type": "string",
  304. "index": "not_analyzed"
  305. },
  306. "CONTROL_EXERCISE_FREQ_CODE": {
  307. "type": "string",
  308. "index": "not_analyzed"
  309. },
  310. "CONTROL_EXERCISE_DURATION_MINS": {
  311. "type": "string",
  312. "index": "not_analyzed"
  313. },
  314. "ARCHIVE_TIME": {
  315. "type": "string",
  316. "index": "not_analyzed"
  317. },
  318. "ARCHIVE_OPERATOR_NAME": {
  319. "type": "string",
  320. "index": "not_analyzed"
  321. },
  322. "HEALTH_EDUCATE": {
  323. "type": "string",
  324. "index": "not_analyzed"
  325. },
  326. "EDUCATE_CONTENT": {
  327. "type": "string",
  328. "index": "not_analyzed"
  329. },
  330. "DRUG_ADVERSE_MARK": {
  331. "type": "string",
  332. "index": "not_analyzed"
  333. },
  334. "ADR_REMARK": {
  335. "type": "string",
  336. "index": "not_analyzed"
  337. },
  338. "TRANSFER_RESON": {
  339. "type": "string",
  340. "index": "not_analyzed"
  341. },
  342. "TRANSFER_ORG_DEPT": {
  343. "type": "string",
  344. "index": "not_analyzed"
  345. },
  346. "REFUSE_REFERRAL": {
  347. "type": "string",
  348. "index": "not_analyzed"
  349. },
  350. "REFUSE_REFERRAL_WHY": {
  351. "type": "string",
  352. "index": "not_analyzed"
  353. },
  354. "ARCHIVE_ID": {
  355. "type": "string",
  356. "index": "not_analyzed"
  357. },
  358. "CHECK_FEE_TYPE": {
  359. "type": "string",
  360. "index": "not_analyzed"
  361. },
  362. "FAMILY_FOLLOWUP_ID": {
  363. "type": "string",
  364. "index": "not_analyzed"
  365. }
  366. }
  367. }
  368. }
  369. 增加索引搜索大小
  370. PUT http://172.19.103.68:9200/wlyy_followup/_settings
  371. {
  372. "index": {
  373. "max_result_window": 500000
  374. }
  375. }
  376. 续方完成之后的随访保存,BLOOD_SUGAR、BLOOD_SUGAR_TYPE
  377. POST http://172.26.0.112:9200/wlyy_followup/wlyy_followup_content/_mapping
  378. {
  379. "wlyy_followup_content": {
  380. "properties": {
  381. "BLOOD_SUGAR": {
  382. "type": "string",
  383. "index": "not_analyzed"
  384. },
  385. "BLOOD_SUGAR_TYPE": {
  386. "type": "string",
  387. "index": "not_analyzed"
  388. }
  389. }
  390. }
  391. }