Stream: implementers
Topic: GetAllResources Functionality
Swathy Parameswaran (May 27 2019 at 07:46):
Hi All,
I have a question regarding the implementation of GetAll resources functionality in the FHIRServer which I am going to build.I am returning a Bundle of resource as response from my FHIRServer to the consumers of GetAllResource functionality.The question is when preparing the resource and adding it to the bundle,if I encounter any issue,should I construct an OperationOutcome resource and add the same to the bundle and proceed with other resource creation or should I halt the resource creation and respond with the current Bundle that has been prepared so far?
Lloyd McKenzie (May 27 2019 at 13:16):
If you've encountered an error - i.e. something that prevents the query from being returned, you'll respond with a bare OperationOutcome (no Bundle at all). If you encountered a warning situation (i.e. the query response might not contain everything it should, but you can still produce a useful response), then you'll continue processing the query to return as much data as possible and will include an OperationOutcome (search.mode=outcome) with warning(s) indicating any limitations on the set of data returned.
Swathy Parameswaran (May 27 2019 at 17:16):
@Lloyd McKenzie it would be really helpful if you can share any documentation link for my reference.
Lloyd McKenzie (May 27 2019 at 17:28):
By "get all" are you talking about the Patient/$everything operation or just doing a GET on the root endpoint without any filters (except perhaps _since)
Swathy Parameswaran (May 28 2019 at 07:03):
I mean "Patient/Everything"
Lloyd McKenzie (May 28 2019 at 12:57):
This section would apply: http://build.fhir.org/operations.html#response
Lloyd McKenzie (May 28 2019 at 12:58):
And because the operation is effectively performing a search (and is defined as having a search response), this would also apply: http://build.fhir.org/search.html#errors
Last updated: Apr 12 2022 at 19:14 UTC