Package ca.cdr.api.fhirgw.model
Class SearchRequest
- All Implemented Interfaces:
IBaseRequest
This class represents a FHIR Gateway Search request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String theName, String theValue) Add a new search parametergetCount()getParameter(String theName) Returns the first parameter value for a given parameter name (returnsnullif no parameters match the given name)getParameters(String theName) Returns a List of parameter values for the given name.Specifies the search form (GET vs POST) to use for this search.getSort()booleanremoveParameter(String theName, String theValue) Remove the parameter with the given name and value, if found.removeParameters(String theName) Remove all parameters with the given namesetIncludes(Set<Include> theIncludes) setLastUpdated(DateRangeParam theLastUpdated) setParameters(Map<String, List<String>> theParameters) setProfile(UriAndListParam theProfile) setRevIncludes(Set<Include> theRevIncludes) voidsetSearchStyle(SearchStyleEnum theSearchStyle) Specifies the search form (GET vs POST) to use for this search.setTotalMode(SearchTotalModeEnum theTotalMode) Methods inherited from class ca.cdr.api.fhirgw.model.BaseRequest
addAdditionalHeader, getAdditionalHeaders, getClientInterceptor, getResourceType, getServerCapabilityStatementValidationEnabled, getServletRequest, isSkip, setClientInterceptor, setResourceType, setServerCapabilityStatementValidationEnabled, setServletRequest, setSkip
-
Constructor Details
-
SearchRequest
public SearchRequest()Constructor -
SearchRequest
Copy constructor
-
-
Method Details
-
getSearchStyle
Specifies the search form (GET vs POST) to use for this search. If set tonull, the default will be used. -
setSearchStyle
Specifies the search form (GET vs POST) to use for this search. If set tonull, the default will be used. -
getParameters
-
setParameters
-
removeParameters
Remove all parameters with the given name- Returns:
- Returns any parameter values that were removed
-
removeParameter
Remove the parameter with the given name and value, if found. Any other parameters with the same name are kept.- Parameters:
theName- The parameter nametheValue- The parameter value- Returns:
- Returns
trueif a parameter value was removed
-
getParameter
Returns the first parameter value for a given parameter name (returnsnullif no parameters match the given name)- Parameters:
theName- The parameter name- Returns:
- The value, or
null
-
getParameters
Returns a List of parameter values for the given name. Will not returnnull.- Parameters:
theName- The parameter name- Returns:
- A List of values, or an empty List
-
getIncludes
-
setIncludes
-
getRevIncludes
-
setRevIncludes
-
getSort
-
setSort
-
getCount
-
setCount
-
getOffset
-
setOffset
-
getLastUpdated
-
setLastUpdated
-
getProfile
-
setProfile
-
getTotalMode
-
setTotalMode
-
addParameter
Add a new search parameter
-