
Package ca.uhn.fhir.rest.server.util
Class FhirContextSearchParamRegistry
java.lang.Object
ca.uhn.fhir.rest.server.util.FhirContextSearchParamRegistry
- All Implemented Interfaces:
IResourceRepositoryCache,ISearchParamRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
ISearchParamRegistry.SearchParamLookupContextEnum -
Constructor Summary
ConstructorsConstructorDescriptionFhirContextSearchParamRegistry(ca.uhn.fhir.context.FhirContext theCtx) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchParam(ca.uhn.fhir.context.RuntimeSearchParam theSearchParam) voidForce an immediate cache refresh on the current thread so that when the method returns, the cache will contain all the resources currently in the database.Optional<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParamById(String theResourceName, org.hl7.fhir.instance.model.api.IIdType theId) List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName, ca.uhn.fhir.context.ComboSearchParamType theParamType, ISearchParamRegistry.SearchParamLookupContextEnum theContext) List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName, ISearchParamRegistry.SearchParamLookupContextEnum theContext) List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName, Set<String> theParamNames, ISearchParamRegistry.SearchParamLookupContextEnum theContext) ca.uhn.fhir.context.RuntimeSearchParamgetActiveSearchParam(String theResourceName, String theParamName, ISearchParamRegistry.SearchParamLookupContextEnum theContext) ca.uhn.fhir.context.RuntimeSearchParamgetActiveSearchParamByUrl(String theUrl, ISearchParamRegistry.SearchParamLookupContextEnum theContext) Fetch a SearchParameter by URLgetActiveSearchParams(String theResourceName, ISearchParamRegistry.SearchParamLookupContextEnum theContext) voidsetPhoneticEncoder(ca.uhn.fhir.context.phonetic.IPhoneticEncoder thePhoneticEncoder) When indexing a HumanName, if a StringEncoder is set in the context, then the "phonetic" search parameter will normalize the String using this encoder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.server.util.IResourceRepositoryCache
requestRefreshMethods inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
getActiveSearchParam, getActiveSearchParams, getRuntimeSearchParam, getRuntimeSearchParams, getValidSearchParameterNamesIncludingMeta, hasActiveSearchParam, isInitialized
-
Constructor Details
-
FhirContextSearchParamRegistry
Constructor
-
-
Method Details
-
forceRefresh
Description copied from interface:IResourceRepositoryCacheForce an immediate cache refresh on the current thread so that when the method returns, the cache will contain all the resources currently in the database. ONLY USE IN TESTS.- Specified by:
forceRefreshin interfaceIResourceRepositoryCache
-
getActiveSearchParam
public ca.uhn.fhir.context.RuntimeSearchParam getActiveSearchParam(@Nonnull String theResourceName, @Nonnull String theParamName, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveSearchParamin interfaceISearchParamRegistry- Parameters:
theContext- The context to return active search params for, or null to return any active search params- Returns:
- Returns null if no match
-
getActiveSearchParams
public ResourceSearchParams getActiveSearchParams(@Nonnull String theResourceName, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveSearchParamsin interfaceISearchParamRegistry- Parameters:
theContext- The context to return active search params for, or null to return any active search params- Returns:
- Returns all active search params for the given resource
-
addSearchParam
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(@Nonnull String theResourceName, @Nonnull Set<String> theParamNames, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveComboSearchParamsin interfaceISearchParamRegistry- Parameters:
theContext- The context to return active search params for, or null to return any active search params
-
getActiveSearchParamByUrl
@Nullable public ca.uhn.fhir.context.RuntimeSearchParam getActiveSearchParamByUrl(@Nonnull String theUrl, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) Description copied from interface:ISearchParamRegistryFetch a SearchParameter by URL- Specified by:
getActiveSearchParamByUrlin interfaceISearchParamRegistry- Parameters:
theContext- The context to return active search params for, or null to return any active search params- Returns:
- Returns
nullif it can't be found
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(@Nonnull String theResourceName, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveComboSearchParamsin interfaceISearchParamRegistry- Parameters:
theContext- The context to return active search params for, or null to return any active search params
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(@Nonnull String theResourceName, @Nonnull ca.uhn.fhir.context.ComboSearchParamType theParamType, @Nonnull ISearchParamRegistry.SearchParamLookupContextEnum theContext) - Specified by:
getActiveComboSearchParamsin interfaceISearchParamRegistry
-
getActiveComboSearchParamById
public Optional<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParamById(@Nonnull String theResourceName, @Nonnull org.hl7.fhir.instance.model.api.IIdType theId) - Specified by:
getActiveComboSearchParamByIdin interfaceISearchParamRegistry
-
setPhoneticEncoder
Description copied from interface:ISearchParamRegistryWhen indexing a HumanName, if a StringEncoder is set in the context, then the "phonetic" search parameter will normalize the String using this encoder.- Specified by:
setPhoneticEncoderin interfaceISearchParamRegistry
-