FHIR Chat · REST call without parameters · implementers

Stream: implementers

Topic: REST call without parameters


view this post on Zulip 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]?

view this post on Zulip Kevin Mayfield (Apr 05 2016 at 08:33):

you mean something like 'select * from patient'

view this post on Zulip 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.

view this post on Zulip Patrick Werner (Apr 05 2016 at 08:54):

i think it should return the neweset version of all resource instances of the resource type

view this post on Zulip 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.

view this post on Zulip Jonny Rylands (Apr 05 2016 at 10:31):

thanks

view this post on Zulip 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.

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip 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