Package ca.uhn.fhir.jpa.dao.data
Interface ITermValueSetDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TermValueSet,
,Long> IHapiFhirJpaRepository
,org.springframework.data.jpa.repository.JpaRepository<TermValueSet,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TermValueSet,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<TermValueSet>
,org.springframework.data.repository.Repository<TermValueSet,
Long>
public interface ITermValueSetDao
extends org.springframework.data.jpa.repository.JpaRepository<TermValueSet,Long>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Slice<TermValueSet>
findByExpansionStatus
(org.springframework.data.domain.Pageable pageable, TermValueSetPreExpansionStatusEnum theExpansionStatus) findByResourcePid
(Long theResourcePid) Deprecated.findTermValueSetByForcedId
(String theForcedId) The current TermValueSet is not necessarily the last uploaded anymore, but the current VS resource is pointed by a specific ForcedId, so we locate current ValueSet as the one pointing to current VS resourcefindTermValueSetByUrl
(org.springframework.data.domain.Pageable thePage, String theUrl) findTermValueSetByUrlAndVersion
(String theUrl, String theVersion) 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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
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
-
findByResourcePid
@Query("SELECT vs FROM TermValueSet vs WHERE vs.myResourcePid = :resource_pid") Optional<TermValueSet> findByResourcePid(@Param("resource_pid") Long theResourcePid) -
findByUrl
@Deprecated @Query("SELECT vs FROM TermValueSet vs WHERE vs.myUrl = :url") Optional<TermValueSet> findByUrl(@Param("url") String theUrl) Deprecated. -
findByExpansionStatus
@Query("SELECT vs FROM TermValueSet vs WHERE vs.myExpansionStatus = :expansion_status") org.springframework.data.domain.Slice<TermValueSet> findByExpansionStatus(org.springframework.data.domain.Pageable pageable, @Param("expansion_status") TermValueSetPreExpansionStatusEnum theExpansionStatus) -
findTermValueSetByUrl
@Query("SELECT vs FROM TermValueSet vs INNER JOIN ResourceTable r ON r.myId = vs.myResourcePid WHERE vs.myUrl = :url ORDER BY r.myUpdated DESC") List<TermValueSet> findTermValueSetByUrl(org.springframework.data.domain.Pageable thePage, @Param("url") String theUrl) -
findTermValueSetByForcedId
@Query("SELECT vs FROM ForcedId f, TermValueSet vs where f.myForcedId = :forcedId and vs.myResource = f.myResource") Optional<TermValueSet> findTermValueSetByForcedId(@Param("forcedId") String theForcedId) The current TermValueSet is not necessarily the last uploaded anymore, but the current VS resource is pointed by a specific ForcedId, so we locate current ValueSet as the one pointing to current VS resource -
findTermValueSetByUrlAndNullVersion
@Query("SELECT vs FROM TermValueSet vs WHERE vs.myUrl = :url AND vs.myVersion IS NULL") Optional<TermValueSet> findTermValueSetByUrlAndNullVersion(@Param("url") String theUrl) -
findTermValueSetByUrlAndVersion
@Query("SELECT vs FROM TermValueSet vs WHERE vs.myUrl = :url AND vs.myVersion = :version") Optional<TermValueSet> findTermValueSetByUrlAndVersion(@Param("url") String theUrl, @Param("version") String theVersion)
-