|
@@ -14,9 +14,21 @@ public interface BaseNodeRepository extends Neo4jRepository<BaseNode, Long> {
|
|
|
@Query("MATCH (n) RETURN DISTINCT(LABELS(n))")
|
|
|
List<String> getLabels();
|
|
|
|
|
|
+ @Query("MATCH (c:药品化学物质类别)<-[r:药品相关药品化学物质类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称) " +
|
|
|
+ " RETURN DISTINCT(m.name)+'::'+c.name")
|
|
|
+ List<String> getMedHuaXueClass();
|
|
|
+
|
|
|
+ @Query("MATCH (c:药品治疗学类别)<-[r:药品相关药品治疗学类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称) " +
|
|
|
+ " RETURN DISTINCT(m.name)+'::'+c.name")
|
|
|
+ List<String> getMedZhiLiaoClass();
|
|
|
+
|
|
|
+ @Query("MATCH (c:药品药理学类别)<-[r:药品相关药品药理学类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称) " +
|
|
|
+ " RETURN DISTINCT(m.name)+'::'+c.name")
|
|
|
+ List<String> getMedYaoLiClass();
|
|
|
+
|
|
|
@Query("MATCH (c:药品解剖学类别)<-[r:药品相关药品解剖学类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称) " +
|
|
|
" RETURN DISTINCT(m.name)+'::'+c.name")
|
|
|
- List<String> getMedClass();
|
|
|
+ List<String> getMedJiePouClass();
|
|
|
|
|
|
@Query("match(s:症状) return distinct s.name")
|
|
|
List<String> getSymptomClass();
|