Package ca.uhn.fhir.rest.server.util
Class FhirContextSearchParamRegistry
java.lang.Object
ca.uhn.fhir.rest.server.util.FhirContextSearchParamRegistry
- All Implemented Interfaces:
ISearchParamRegistry
-
Constructor Summary
ConstructorDescriptionFhirContextSearchParamRegistry
(ca.uhn.fhir.context.FhirContext theCtx) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSearchParam
(ca.uhn.fhir.context.RuntimeSearchParam theSearchParam) void
Request that the cache be refreshed now, in the current threadOptional
<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) List
<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams
(String theResourceName, ca.uhn.fhir.context.ComboSearchParamType theParamType) List
<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams
(String theResourceName, Set<String> theParamNames) ca.uhn.fhir.context.RuntimeSearchParam
getActiveSearchParam
(String theResourceName, String theParamName) ca.uhn.fhir.context.RuntimeSearchParam
getActiveSearchParamByUrl
(String theUrl) Fetch a SearchParameter by URLgetActiveSearchParams
(String theResourceName) void
Request that the cache be refreshed at the next convenient time (in a different thread)void
setPhoneticEncoder
(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, wait
Methods inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
getRuntimeSearchParam, getRuntimeSearchParams, getValidSearchParameterNamesIncludingMeta
-
Constructor Details
-
FhirContextSearchParamRegistry
Constructor
-
-
Method Details
-
forceRefresh
Description copied from interface:ISearchParamRegistry
Request that the cache be refreshed now, in the current thread- Specified by:
forceRefresh
in interfaceISearchParamRegistry
-
getActiveSearchParam
public ca.uhn.fhir.context.RuntimeSearchParam getActiveSearchParam(String theResourceName, String theParamName) - Specified by:
getActiveSearchParam
in interfaceISearchParamRegistry
- Returns:
- Returns null if no match
-
getActiveSearchParams
- Specified by:
getActiveSearchParams
in interfaceISearchParamRegistry
- Returns:
- Returns all active search params for the given resource
-
addSearchParam
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName, Set<String> theParamNames) - Specified by:
getActiveComboSearchParams
in interfaceISearchParamRegistry
-
getActiveSearchParamByUrl
Description copied from interface:ISearchParamRegistry
Fetch a SearchParameter by URL- Specified by:
getActiveSearchParamByUrl
in interfaceISearchParamRegistry
- Returns:
- Returns
null
if it can't be found
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName) - Specified by:
getActiveComboSearchParams
in interfaceISearchParamRegistry
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName, ca.uhn.fhir.context.ComboSearchParamType theParamType) - Specified by:
getActiveComboSearchParams
in interfaceISearchParamRegistry
-
getActiveComboSearchParamById
public Optional<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParamById(String theResourceName, org.hl7.fhir.instance.model.api.IIdType theId) - Specified by:
getActiveComboSearchParamById
in interfaceISearchParamRegistry
-
requestRefresh
Description copied from interface:ISearchParamRegistry
Request that the cache be refreshed at the next convenient time (in a different thread)- Specified by:
requestRefresh
in interfaceISearchParamRegistry
-
setPhoneticEncoder
Description copied from interface:ISearchParamRegistry
When 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:
setPhoneticEncoder
in interfaceISearchParamRegistry
-