bolt.properties 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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.234
  8. bolt.user=neo4j
  9. bolt.passwd=root
  10. #\u6D4B\u8BD5\u4F7F\u7528
  11. bolt112.uri=bolt://192.168.3.112
  12. bolt112.user=neo4j
  13. bolt112.passwd=123456
  14. #\u63A8\u786E\u8BCA\u5904\u7406sql
  15. #\u67E5\u627E\u662F\u5426\u6709\u7EC4\u5408\u7684\u8BCD
  16. searchCollection=with fildList as data unwind data as row \n \
  17. match (n)-[r:\u5C5E\u4E8E]->(m)-[r1:\u7EC4\u5408]->(k) \n \
  18. where n.name= row \n \
  19. return m.name as condition, count(distinct r)>=m.path as jundgement, labels(m)[0] as label,k.name as standName
  20. searchCollection1=match (n)-[r:\u5C5E\u4E8E]->(m)-[r1:\u7EC4\u5408]->(k) \n \
  21. where n.name in fildList \n \
  22. return m.name as condition, count(distinct r)>=m.path as jundgement, labels(m)[0] as label,k.name as standName
  23. #\u67E5\u627E\u8FD1\u4E49\u8BCD\u7CBE\u534E\u7248
  24. 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
  25. #\u67E5\u627E\u80FD\u63A8\u51FA\u8BCA\u65AD\u4F9D\u636E\u7684\u8BCD
  26. searchCondition=with newList as data unwind data as row\n \
  27. match (l)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  28. where l.name= row\n \
  29. with m,fildList as data unwind data as row\n \
  30. match (n)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  31. where n.name= row\n \
  32. return m.name as condition, count(distinct r)>=m.path as jundgement, labels(m)[0] as label
  33. searchCondition1=match (l)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  34. where l.name in newList\n \
  35. with m,fildList as data\n \
  36. match (n)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  37. where n.name in data\n \
  38. with m.name as condition, count(distinct r) as sd,m.path as jundgement\n \
  39. where sd>=jundgement\n \
  40. return condition
  41. #\u67E5\u627E\u786E\u8BCA,\u62DF\u8BCA\u7684\u8BED\u53E5
  42. searchQuezhen=match (n)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:Disease)\n \
  43. where n.name in fildList\n \
  44. with distinct m,r\n \
  45. return m.name as name, labels(m)[0] as label,type(r) as relationType
  46. #\u63A8\u9001\u786E\u8BCA,\u65B0\u7ED3\u6784,\u5305\u542B\u5173\u8054\u8BCD
  47. #\u67E5\u627E\u8FD9\u4E2A\u8BCD\u5C5E\u4E8E\u54EA\u4E2A\u5E8F\u53F7\u96C6\u5408
  48. searchNumColl=match(h)-[r:\u5C5E\u4E8E|:\u8BCA\u65AD\u4F9D\u636E]->(c:Condition)\n \
  49. where h.name in startList\n \
  50. with c.name as v,count(distinct r)>=c.path as hh\n \
  51. where hh =true\n \
  52. return v
  53. #\u67E5\u627E\u8BCA\u65AD\u4F9D\u636E
  54. searchNewCondition=match (l:Condition)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m:Condition)\n \
  55. where l.name in newList \n \
  56. with m,fildList as data\n \
  57. match (n)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m:Condition)\n \
  58. where n.name in data\n \
  59. with m.name as condition, count(distinct r) as sd,m.path as jundgement\n \
  60. where sd>=jundgement\n \
  61. return condition
  62. #\u67E5\u627E\u786E\u8BCA
  63. searchDis=match (n:Condition)-[r:\u786E\u8BCA|:\u62DF\u8BCA|:\u8B66\u60D5]->(m:Disease)\n \
  64. where n.name in startList\n \
  65. with distinct m,r\n \
  66. return m.name as name, labels(m)[0] as label,type(r) as relationType;
  67. #\u6CBB\u7597\u5904\u7406
  68. #\u67E5\u627E\u8BCA\u65AD\u5BF9\u5E94\u7684\u7C7B\u548C\u836F,\u4EE5\u53CA\u4ED6\u4EEC\u7684\u6392\u5E8F
  69. searchDrugsMedic=match (d:Disease{name:diseaseName})-[r0:\u63A8\u8350]->(m:Drugs)-[:\u5305\u542B]->(n:Medicine),(d:Disease)-[r1:\u63A8\u8350]->(n)\n \
  70. where r0.p<6 \n \
  71. return m.name as \u7C7B, r0.p as sort, n.name as \u836F\u7269, r1.rate as a order by sort , a desc
  72. #\u67E5\u627E\u8BCA\u65AD\u5BF9\u5E94\u7684\u836F\u7269\u7684\u5927\u5C0F\u7C7B
  73. searchBigSubDrugs=match (n:Disease{name:diseaseName})-[r0:\u63A8\u8350]->(m:Drugs)-[:\u5305\u542B]->(k:Drugs) return k.name as short,m.name as large
  74. #\u67E5\u627E\u9274\u522B\u8BCA\u65AD\u7684\u8BED\u53E5
  75. searchDifferentialDiagnose=match(d:Disease)-[r:\u9274\u522B\u8BCA\u65AD]->(h) where d.name='mainDis' return collect(h.name) as coll
  76. #\u5224\u65AD\u662F\u5426\u4E3A\u6025\u8BCA,\u8B66\u60D5\u7684\u8BED\u53E5
  77. searchEmergency=match(d:Disease) where d.name in disList return d.name as emDis,d.emergency as em
  78. #\u67E5\u627E\u6307\u6807\u7684\u8BED\u53E5
  79. searchIndication=match (n:Condition)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:Indicators)\n \
  80. where n.name in fildList\n \
  81. with distinct m,r\n \
  82. return m.name as name
  83. #\u67E5\u627E\u4E0D\u826F\u53CD\u5E94\u7684\u8BED\u53E5
  84. searchUe=match (n:Condition)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:UntowardEffect)\n \
  85. where n.name in fildList\n \
  86. with distinct m,r\n \
  87. return m.name as name
  88. #\u67E5\u627E\u4E00\u4E9B\u8BCD\u662F\u5426\u5728\u56FE\u8C31\u4E2D
  89. searchWords=match(d) where d.name in fildList return distinct d.name as name
  90. #\u6839\u636E\u75BE\u75C5\u67E5\u627E\u76F8\u5E94\u7684Lis Pacs
  91. serchLisPacs=match (d:Disease)-[r1:\u63A8\u8350]->(m)\n \
  92. where d.name in diseaseNmae return distinct d.name as name,labels(m)[0] as lei,m.name as n
  93. #\u66F4\u65B0\u8BCA\u65AD\u4F9D\u636E\u7684path
  94. updateConditionPath=match (n:Condition)<-[:\u8BCA\u65AD\u4F9D\u636E]-(m) \n \
  95. with n,\n \
  96. case \n \
  97. when n.relation="\u6216" then 1 \n \
  98. when n.relation="\u4E14" then count(distinct m) \n \
  99. when n.relation="\u4EFB\u4E00" then 1 \n \
  100. when n.relation="\u4EFB\u4E8C" then 2 \n \
  101. when n.relation="\u4EFB\u4E09" then 3 \n \
  102. when n.relation="\u4EFB\u56DB" then 4 \n\
  103. else 100 end as a \n \
  104. set n.path=a