
Package ca.uhn.fhir.jpa.dao.data
Interface ITermConceptDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TermConcept,,TermConcept.TermConceptPk> IHapiFhirJpaRepository,org.springframework.data.jpa.repository.JpaRepository<TermConcept,,TermConcept.TermConceptPk> org.springframework.data.repository.ListCrudRepository<TermConcept,,TermConcept.TermConceptPk> org.springframework.data.repository.ListPagingAndSortingRepository<TermConcept,,TermConcept.TermConceptPk> org.springframework.data.repository.PagingAndSortingRepository<TermConcept,,TermConcept.TermConceptPk> org.springframework.data.repository.query.QueryByExampleExecutor<TermConcept>,org.springframework.data.repository.Repository<TermConcept,TermConcept.TermConceptPk>
public interface ITermConceptDao
extends org.springframework.data.jpa.repository.JpaRepository<TermConcept,TermConcept.TermConceptPk>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptioncountByCodeSystemVersion(Long thePid) intdeleteByCodeSystemVersion(Long thePid) 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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods 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<TermConcept.TermConceptPk> 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)
-