
Package ca.uhn.fhir.mdm.svc
Class MdmSearchParamSvc
java.lang.Object
ca.uhn.fhir.mdm.svc.MdmSearchParamSvc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateSearchBuilderForType(String theSourceType) ca.uhn.fhir.jpa.searchparam.SearchParameterMapgetSearchParameterMapFromCriteria(String theSourceType, String theCriteria) Given a source type, and a criteria string of the shapename=x&birthDate=y, generate aSearchParameterMapthat represents this query.getValueFromResourceForSearchParam(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theSearchParam) ca.uhn.fhir.jpa.searchparam.SearchParameterMapmapFromCriteria(String theResourceType, String theResourceCriteria) booleansearchParamTypeIsValidForResourceType(String theSearchParamType, String theResourceType) Will return true if the types match, or the search param type is '*', otherwise false.
-
Constructor Details
-
MdmSearchParamSvc
public MdmSearchParamSvc()
-
-
Method Details
-
mapFromCriteria
public ca.uhn.fhir.jpa.searchparam.SearchParameterMap mapFromCriteria(String theResourceType, String theResourceCriteria) -
getValueFromResourceForSearchParam
public List<String> getValueFromResourceForSearchParam(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theSearchParam) -
getSearchParameterMapFromCriteria
public ca.uhn.fhir.jpa.searchparam.SearchParameterMap getSearchParameterMapFromCriteria(String theSourceType, @Nullable String theCriteria) Given a source type, and a criteria string of the shapename=x&birthDate=y, generate aSearchParameterMapthat represents this query.- Parameters:
theSourceType- the resource type to execute the search ontheCriteria- the string search criteria.- Returns:
- the generated SearchParameterMap, or an empty one if there is no criteria.
-
generateSearchBuilderForType
-
searchParamTypeIsValidForResourceType
public boolean searchParamTypeIsValidForResourceType(String theSearchParamType, String theResourceType) Will return true if the types match, or the search param type is '*', otherwise false.- Parameters:
theSearchParamType-theResourceType-- Returns:
-