
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 TypeMethodDescriptionvoidconvertParameters(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters, ca.uhn.fhir.context.FhirContext theFhirContext) voidconvertToSearchParameterMap(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theSearchMap) voidconvertToStringMap(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters, ca.uhn.fhir.context.FhirContext theFhirContext) <T> booleanisAndList(T theParameterType) <T> booleanisOrList(T theParameterType) booleanisSearchResultParameter(String theParameterName) <T> booleanisTokenParam(T theParameterType) voidseparateParameterTypes(com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theParameters) <T> voidsetParameterTypeValue(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
-