Package com.canehealth.ckblib.graph
Interface AnatomicalSiteRepository
- All Superinterfaces:
org.springframework.data.repository.reactive.ReactiveCrudRepository<AnatomicalSiteMention,String>
,org.springframework.data.neo4j.repository.ReactiveNeo4jRepository<AnatomicalSiteMention,String>
,org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<AnatomicalSiteMention>
,org.springframework.data.repository.reactive.ReactiveSortingRepository<AnatomicalSiteMention,String>
,org.springframework.data.repository.Repository<AnatomicalSiteMention,String>
@Repository public interface AnatomicalSiteRepository extends org.springframework.data.neo4j.repository.ReactiveNeo4jRepository<AnatomicalSiteMention,String>
-
Method Summary
Modifier and Type Method Description reactor.core.publisher.Flux<AnatomicalSiteMention>
findAll()
reactor.core.publisher.Flux<AnatomicalSiteMention>
findAllByNameLikeIgnoreCase(String name)
reactor.core.publisher.Mono<AnatomicalSiteMention>
findOneByCui(String cui)
reactor.core.publisher.Mono<AnatomicalSiteMention>
mergeDiseaseWithAnatomy(String dcui, String scui, int c, int u, int d)
Methods inherited from interface org.springframework.data.repository.reactive.ReactiveCrudRepository
count, delete, deleteAll, deleteAll, deleteAll, deleteById, deleteById, existsById, existsById, findAllById, findAllById, findById, findById, save, saveAll, saveAll
-
Method Details
-
findAll
reactor.core.publisher.Flux<AnatomicalSiteMention> findAll()- Specified by:
findAll
in interfaceorg.springframework.data.repository.reactive.ReactiveCrudRepository<AnatomicalSiteMention,String>
-
findOneByCui
-
findAllByNameLikeIgnoreCase
-
mergeDiseaseWithAnatomy
@Query("MATCH (d:Disease {cui: $dcui}) MATCH (s:Anatomy {cui: $scui})\nMERGE (d) <-[r:ANATOMY_OF]- (s) \nON CREATE SET r.confidence = 1, r.upvote = 0, r.downvote = 0 \nON MATCH SET r.confidence = r.confidence + $c, r.upvote = r.upvote + $u, r.downvote = r.downvote + $d \nRETURN DISTINCT s") reactor.core.publisher.Mono<AnatomicalSiteMention> mergeDiseaseWithAnatomy(String dcui, String scui, int c, int u, int d)
-