
Package ca.uhn.fhir.jpa.dao.data
Interface ITermValueSetDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TermValueSet,,IdAndPartitionId> IHapiFhirJpaRepository,org.springframework.data.jpa.repository.JpaRepository<TermValueSet,,IdAndPartitionId> org.springframework.data.repository.ListCrudRepository<TermValueSet,,IdAndPartitionId> org.springframework.data.repository.ListPagingAndSortingRepository<TermValueSet,,IdAndPartitionId> org.springframework.data.repository.PagingAndSortingRepository<TermValueSet,,IdAndPartitionId> org.springframework.data.repository.query.QueryByExampleExecutor<TermValueSet>,org.springframework.data.repository.Repository<TermValueSet,IdAndPartitionId>
public interface ITermValueSetDao
extends org.springframework.data.jpa.repository.JpaRepository<TermValueSet,IdAndPartitionId>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Slice<TermValueSet> findByExpansionStatus(org.springframework.data.domain.Pageable pageable, TermValueSetPreExpansionStatusEnum theExpansionStatus) findByResourcePid(JpaPid 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, 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
-
findByResourcePid
@Query("SELECT vs FROM TermValueSet vs WHERE vs.myResource.myPid = :resource_pid") Optional<TermValueSet> findByResourcePid(@Param("resource_pid") JpaPid 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 = vs.myResource 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 TermValueSet vs where vs.myResource.myFhirId = :forcedId ") 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)
-