Package ca.uhn.fhir.jpa.dao.data
Interface ITermConceptDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TermConcept,
,Long> IHapiFhirJpaRepository
,org.springframework.data.jpa.repository.JpaRepository<TermConcept,
,Long> org.springframework.data.repository.ListCrudRepository<TermConcept,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<TermConcept,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TermConcept,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<TermConcept>
,org.springframework.data.repository.Repository<TermConcept,
Long>
public interface ITermConceptDao
extends org.springframework.data.jpa.repository.JpaRepository<TermConcept,Long>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptioncountByCodeSystemVersion
(Long thePid) int
deleteByCodeSystemVersion
(Long thePid) fetchConceptsAndDesignationsByPid
(List<Long> thePids) fetchConceptsAndDesignationsByVersionPid
(Long theCodeSystemVersionPid) findByCodeSystemAndCode
(Long theCodeSystemVersionPid, String theCode) findByCodeSystemAndCodeList
(Long theCodeSystem, List<String> theCodeList) findByCodeSystemVersion
(TermCodeSystemVersion theCodeSystem) org.springframework.data.domain.Page
<TermConcept> findResourcesRequiringReindexing
(org.springframework.data.domain.Pageable thePageRequest) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
fetchConceptsAndDesignationsByPid
@Query("SELECT t FROM TermConcept t LEFT JOIN FETCH t.myDesignations d WHERE t.myId IN :pids") List<TermConcept> fetchConceptsAndDesignationsByPid(@Param("pids") List<Long> thePids) -
fetchConceptsAndDesignationsByVersionPid
@Query("SELECT t FROM TermConcept t LEFT JOIN FETCH t.myDesignations d WHERE t.myCodeSystemVersionPid = :pid") List<TermConcept> fetchConceptsAndDesignationsByVersionPid(@Param("pid") Long theCodeSystemVersionPid) -
countByCodeSystemVersion
@Query("SELECT COUNT(t) FROM TermConcept t WHERE t.myCodeSystem.myId = :cs_pid") Integer countByCodeSystemVersion(@Param("cs_pid") Long thePid) -
findByCodeSystemAndCode
@Query("SELECT c FROM TermConcept c WHERE c.myCodeSystemVersionPid = :csv_pid AND c.myCode = :code") Optional<TermConcept> findByCodeSystemAndCode(@Param("csv_pid") Long theCodeSystemVersionPid, @Param("code") String theCode) -
findByCodeSystemAndCodeList
@Query("FROM TermConcept WHERE myCodeSystemVersionPid = :csv_pid AND myCode in (:codeList)") List<TermConcept> findByCodeSystemAndCodeList(@Param("csv_pid") Long theCodeSystem, @Param("codeList") List<String> theCodeList) -
deleteByCodeSystemVersion
@Modifying @Query("DELETE FROM TermConcept WHERE myCodeSystem.myId = :cs_pid") int deleteByCodeSystemVersion(@Param("cs_pid") Long thePid) -
findByCodeSystemVersion
@Query("SELECT c FROM TermConcept c WHERE c.myCodeSystem = :code_system") List<TermConcept> findByCodeSystemVersion(@Param("code_system") TermCodeSystemVersion theCodeSystem) -
findResourcesRequiringReindexing
@Query("SELECT t FROM TermConcept t WHERE t.myIndexStatus = null") org.springframework.data.domain.Page<TermConcept> findResourcesRequiringReindexing(org.springframework.data.domain.Pageable thePageRequest)
-