FHIR Chat · Read operation behavior without Id · implementers

Stream: implementers

Topic: Read operation behavior without Id


view this post on Zulip Muhammad Abubakar Ikram (May 14 2018 at 11:18):

I have seen on many servers that [baseUrl]/[type] endpoint sends a collection of resources let us say, patients.

I need to know that I have not seen this behavior is described in the read operation section. Is, this is a fhir official behavior?

If this is a fhir official behavior then what fhir says about the count of the resources that should be returned when one hit the url [baseUrl]/[type]?

view this post on Zulip Christiaan Knaap (May 14 2018 at 11:20):

[base]/[type] is not a read operation but a search operation without any arguments. So you get the first _count resources of that type. (If _count is not specified, servers generally apply a default for it).

view this post on Zulip Muhammad Abubakar Ikram (May 14 2018 at 11:21):

So the default count depends on the server?

view this post on Zulip Christiaan Knaap (May 14 2018 at 11:24):

Yes. But you can specify it explicitly with the _count parameter. Still, a server will typically have a hard maximum for it that you cannot exceed.

view this post on Zulip Muhammad Abubakar Ikram (May 14 2018 at 11:26):

Thank you.

view this post on Zulip Muhammad Abubakar Ikram (May 15 2018 at 06:24):

@Christiaan Knaap this behavior is also not mentioned in the search https://www.hl7.org/fhir/http.html#search

view this post on Zulip Alexander Zautke (May 15 2018 at 06:53):

@Muhammad Abubakar It is defined in https://www.hl7.org/fhir/search.html#2.21.1.2

"Search operations are executed in one of three defined contexts that control which set of resources are being searched:

  • A specified resource type: GET [base]/[type]?parameter(s) [...]"

If you now leave out the parameters, you will get the behavior that was described above.

view this post on Zulip Muhammad Abubakar Ikram (May 15 2018 at 10:01):

Thanks


Last updated: Apr 12 2022 at 19:14 UTC