Stream: implementers
Topic: REST call without parameters
Jonny Rylands (Apr 05 2016 at 08:24):
I'm trying to find in the specification what should be returned when calling:
GET [base]/[resourcetype]
Should this return all resources of [resourcetype]?
Kevin Mayfield (Apr 05 2016 at 08:33):
you mean something like 'select * from patient'
Hannes Ulrich (Apr 05 2016 at 08:51):
In my opinion a restful system should return all instances of the resource type if no parameter is present. I checked the specification and couldn't find it either.
Patrick Werner (Apr 05 2016 at 08:54):
i think it should return the neweset version of all resource instances of the resource type
Hannes Ulrich (Apr 05 2016 at 08:58):
yeah that's right! I forget that "all instances" includes all the history version and they really shouldn't be included.
Jonny Rylands (Apr 05 2016 at 10:31):
thanks
James Agnew (Apr 05 2016 at 10:45):
Your interpretation is correct, it will return the current version of all non-deleted instances of that type of resource.
Pascal Pfiffner (Apr 05 2016 at 15:52):
This is basically a search without parameters, so indeed kinda like SELECT * FROM Resource
http://hl7.org/fhir/2016May/http.html#search
Brian Postlethwaite (Apr 08 2016 at 05:18):
And the server may force paging onto the results, so you may need to handle the back/next links.
John Moehrke (Apr 12 2016 at 12:42):
And Access Control might reject or limit the result.... Likely with clinical Resource types.
Last updated: Apr 12 2022 at 19:14 UTC