Stream: implementers
Topic: Response Data Records Limitation For Search
Nihar (Aug 04 2021 at 11:13):
Hello All,
We have an query related to the limiting the records of the data that can be responded back based on the Search Request. In scenario, if the system only searched by some basic single search parameters and resource has large number of records to be return back then
-
Do we have any specific standard recommended limits defined for search response record in one resource?
-
if there are no standards then can implementer define the limits and if record goes beyond that configured limit, Can we provide a Warning/Informational Message to the requestor of data.
Please suggest. Thanks in advance.
John Silva (Aug 04 2021 at 13:21):
A FHIR search request returns a bundle and that bundle can contain 1 .. <FHIR server max> number of entries in one result (bundle). I've seen different FHIR servers define a default value and the standard way to override this is to use the _count option on the search request. However, I believe it's a "server implementation decision" on what it supports for <FHIR server max>. The way to deal with this is to use the link next property to page through the result set.
BTW, the fhir-kit-client has "Pagination support for search results" that might be helpful if you use JavaScript/TypeScript/node.js.
Lloyd McKenzie (Aug 04 2021 at 22:16):
Details are defined in the spec here: http://build.fhir.org/search.html#count and here: http://build.fhir.org/http.html#paging
Last updated: Apr 12 2022 at 19:14 UTC