Package ca.cdr.api.fhirgw.model
Class SearchResponse
This class represents the response to a FHIR Gateway Search request
-
Constructor Summary
ConstructorDescriptionConstructor - Create an empty objectSearchResponse
(SearchResponse theSearchResponse) Copy constructor - Creates a shallow copy only -
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a clone of this object using a shallow copy only.Provides the list of resources that were responded by the gateway target server.void
setSearchResults
(List<IBaseResource> theSearchResults) Provides the list of resources that were responded by the gateway target server.Methods inherited from class ca.cdr.api.fhirgw.model.BaseResponse
isCacheHit, isDeclinedToHandle, setCacheHit, setDeclinedToHandle
-
Constructor Details
-
SearchResponse
public SearchResponse()Constructor - Create an empty object -
SearchResponse
Copy constructor - Creates a shallow copy only
-
-
Method Details
-
getSearchResults
Provides the list of resources that were responded by the gateway target server. Interceptors may modify this list, modify entries in this list, or even add/remove entries from the list. -
setSearchResults
Provides the list of resources that were responded by the gateway target server. Interceptors may modify this list, modify entries in this list, or even add/remove entries from the list. -
clone
Create a clone of this object using a shallow copy only. Values are copied by reference only, so things like Resources should only be modified if you are sure that the changes won't affect the value stored in cache.- Specified by:
clone
in classBaseResponse<SearchResponse>
-