bolt.properties 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #235Mysql\u6570\u636E\u5E93
  2. url_235 = jdbc:mysql://192.168.2.235:3306/scale?useUnicode=true&characterEncoding=UTF-8
  3. userNmae_235 = root
  4. pass_235 = diagbot@20180822
  5. # neo4j bolt credentials
  6. #\u7EBF\u4E0A\u4F7F\u7528
  7. bolt.uri=bolt://192.168.2.233
  8. bolt.user=neo4j
  9. bolt.passwd=root
  10. #\u533B\u5B66\u672F\u8BED\u4F7F\u7528
  11. bolt232.uri=bolt://192.168.2.232
  12. bolt232.user=neo4j
  13. bolt232.passwd=root
  14. #\u6D4B\u8BD5\u4F7F\u7528
  15. bolt112.uri=bolt://192.168.3.112
  16. bolt112.user=neo4j
  17. bolt112.passwd=123456
  18. #\u63A8\u786E\u8BCA\u5904\u7406sql
  19. #\u67E5\u627E\u662F\u5426\u6709\u7EC4\u5408\u7684\u8BCD
  20. searchCollection=with fildList as data unwind data as row \n \
  21. match (n)-[r:\u5C5E\u4E8E]->(m)-[r1:\u7EC4\u5408]->(k) \n \
  22. where n.name= row \n \
  23. return m.name as condition, count(distinct r)>=m.path as jundgement, labels(m)[0] as label,k.name as standName
  24. #\u67E5\u627E\u8FD1\u4E49\u8BCD\u7CBE\u534E\u7248
  25. serchCollect=match (n)-[r:\u8BCA\u65AD\u4F9D\u636E|:\u8FD1\u4E49\u8BCD]->(e) where n.name in fildList return n.name as fild,collect(distinct type(r)) as typeCollect
  26. #\u67E5\u627E\u80FD\u63A8\u51FA\u8BCA\u65AD\u4F9D\u636E\u7684\u8BCD
  27. searchCondition=with newList as data unwind data as row\n \
  28. match (l)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  29. where l.name= row\n \
  30. with m,fildList as data unwind data as row\n \
  31. match (n)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  32. where n.name= row\n \
  33. return m.name as condition, count(distinct r)>=m.path as jundgement, labels(m)[0] as label
  34. #\u67E5\u627E\u786E\u8BCA,\u62DF\u8BCA\u7684\u8BED\u53E5
  35. searchQuezhen=with fildList as data unwind data as row\n \
  36. match (n)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:Disease)\n \
  37. where n.name=row\n \
  38. with distinct m,r\n \
  39. return m.name as name, labels(m)[0] as label,type(r) as relationType
  40. #\u67E5\u627E\u6307\u6807\u7684\u8BED\u53E5
  41. searchIndication=with fildList as data unwind data as row\n \
  42. match (n)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:Indicators)\n \
  43. where n.name=row\n \
  44. with distinct m,r\n \
  45. return m.name as name, labels(m)[0] as label,type(r) as relationType
  46. #\u67E5\u627E\u4E0D\u826F\u53CD\u5E94\u7684\u8BED\u53E5
  47. searchUe=with fildList as data unwind data as row\n \
  48. match (n)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:UntowardEffect)\n \
  49. where n.name=row\n \
  50. with distinct m,r\n \
  51. return m.name as name, labels(m)[0] as label,type(r) as relationType
  52. #\u67E5\u627E\u4E00\u4E9B\u8BCD\u662F\u5426\u5728\u56FE\u8C31\u4E2D
  53. searchWords=match(d) where d.name in fildList return distinct d.name as name
  54. #\u6839\u636E\u75BE\u75C5\u67E5\u627E\u76F8\u5E94\u7684Lis Pacs
  55. serchLisPacs=match (d:Disease)-[r1:\u63A8\u8350]->(m)\n \
  56. where d.name in diseaseNmae return distinct d.name as name,labels(m)[0] as lei,m.name as n
  57. #\u66F4\u65B0\u8BCA\u65AD\u4F9D\u636E\u7684path
  58. updateConditionPath=match (n:Condition)<-[:\u8BCA\u65AD\u4F9D\u636E]-(m) \n \
  59. with n,\n \
  60. case \n \
  61. when n.relation="\u6216" then 1 \n \
  62. when n.relation="\u4E14" then count(distinct m) \n \
  63. when n.relation="\u4EFB\u4E00" then 1 \n \
  64. when n.relation="\u4EFB\u4E8C" then 2 \n \
  65. when n.relation="\u4EFB\u4E09" then 3 \n \
  66. when n.relation="\u4EFB\u56DB" then 4 \n\
  67. else 100 end as a \n \
  68. set n.path=a