
Package ca.uhn.fhir.jpa.repository
Class SearchConverter
java.lang.Object
ca.uhn.fhir.jpa.repository.SearchConverter
The IGenericClient API represents searches with OrLists, while the FhirRepository API uses nested
lists. This class (will eventually) convert between them
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertParameters
(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters, ca.uhn.fhir.context.FhirContext theFhirContext) void
convertToSearchParameterMap
(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theSearchMap) void
convertToStringMap
(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters, ca.uhn.fhir.context.FhirContext theFhirContext) <T> boolean
isAndList
(T theParameterType) <T> boolean
isOrList
(T theParameterType) boolean
isSearchResultParameter
(String theParameterName) <T> boolean
isTokenParam
(T theParameterType) void
separateParameterTypes
(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters) <T> void
setParameterTypeValue
(String theKey, T theParameterType)
-
Field Details
-
mySeparatedSearchParameters
public final com.google.common.collect.Multimap<String,List<ca.uhn.fhir.model.api.IQueryParameterType>> mySeparatedSearchParameters -
mySeparatedResultParameters
public final com.google.common.collect.Multimap<String,List<ca.uhn.fhir.model.api.IQueryParameterType>> mySeparatedResultParameters -
mySearchParameterMap
-
myResultParameters
-
-
Constructor Details
-
SearchConverter
public SearchConverter()
-
-
Method Details
-
convertParameters
public void convertParameters(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters, ca.uhn.fhir.context.FhirContext theFhirContext) -
convertToStringMap
public void convertToStringMap(@Nonnull com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters, @Nonnull ca.uhn.fhir.context.FhirContext theFhirContext) -
convertToSearchParameterMap
public void convertToSearchParameterMap(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theSearchMap) -
setParameterTypeValue
-
separateParameterTypes
public void separateParameterTypes(@Nonnull com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters) -
isSearchResultParameter
-
isOrList
-
isAndList
-
isTokenParam
-