|
@@ -62,7 +62,7 @@ with c.name as v,count(distinct r)>=c.path as hh\n \
|
|
|
where hh =true\n \
|
|
|
return v
|
|
|
#\u67E5\u627E\u8BCA\u65AD\u4F9D\u636E
|
|
|
-searchNewCondition=match (l)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m:Condition)\n \
|
|
|
+searchNewCondition=match (l:Condition)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m:Condition)\n \
|
|
|
where l.name in newList \n \
|
|
|
with m,fildList as data\n \
|
|
|
match (n)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m:Condition)\n \
|
|
@@ -78,7 +78,7 @@ return m.name as name, labels(m)[0] as label,type(r) as relationType;
|
|
|
|
|
|
#\u6CBB\u7597\u5904\u7406
|
|
|
#\u67E5\u627E\u8BCA\u65AD\u5BF9\u5E94\u7684\u7C7B\u548C\u836F,\u4EE5\u53CA\u4ED6\u4EEC\u7684\u6392\u5E8F
|
|
|
-searchDrugsMedic=match (d:Disease{name:diseaseName})-[r0:\u63A8\u8350]->(m:Drugs)-[:\u5305\u542B]->(n:Medicine),(d)-[r1:\u63A8\u8350]->(n)\n \
|
|
|
+searchDrugsMedic=match (d:Disease{name:diseaseName})-[r0:\u63A8\u8350]->(m:Drugs)-[:\u5305\u542B]->(n:Medicine),(d:Disease)-[r1:\u63A8\u8350]->(n)\n \
|
|
|
where r0.p<6 \n \
|
|
|
return m.name as \u7C7B, r0.p as sort, n.name as \u836F\u7269, r1.rate as a order by sort , a desc
|
|
|
#\u67E5\u627E\u8BCA\u65AD\u5BF9\u5E94\u7684\u836F\u7269\u7684\u5927\u5C0F\u7C7B
|
|
@@ -91,13 +91,13 @@ searchDifferentialDiagnose=match(d:Disease)-[r:\u9274\u522B\u8BCA\u65AD]->(h) wh
|
|
|
searchEmergency=match(d:Disease) where d.name in disList and d.emergency=1 return d.name as emDis
|
|
|
|
|
|
#\u67E5\u627E\u6307\u6807\u7684\u8BED\u53E5
|
|
|
-searchIndication=match (n)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:Indicators)\n \
|
|
|
+searchIndication=match (n:Condition)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:Indicators)\n \
|
|
|
where n.name in fildList\n \
|
|
|
with distinct m,r\n \
|
|
|
return m.name as name
|
|
|
|
|
|
#\u67E5\u627E\u4E0D\u826F\u53CD\u5E94\u7684\u8BED\u53E5
|
|
|
-searchUe=match (n)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:UntowardEffect)\n \
|
|
|
+searchUe=match (n:Condition)-[r:\u786E\u8BCA|:\u62DF\u8BCA]->(m:UntowardEffect)\n \
|
|
|
where n.name in fildList\n \
|
|
|
with distinct m,r\n \
|
|
|
return m.name as name
|