Stream: implementers
Topic: search for all of a resource
Chris Blair (Sep 06 2018 at 20:08):
Hi all, what is the proper call to make if I want to retrieve all organizations, patients, etc. Is there a wildcard option for particular types of resources? Thanks
Yunwei Wang (Sep 06 2018 at 20:19):
_summary=true
Lloyd McKenzie (Sep 06 2018 at 20:19):
You could do a query against the [base] endpoint and filter by _type (though not all resources will do that)
Chris Blair (Sep 06 2018 at 20:27):
I'm on both the producer and the consumer teams, so I have some flexibility to get this done right. I'll look at both of those options, thank you.
Christiaan Knaap (Sep 12 2018 at 18:42):
You can test how it is supposed to work in Vonk: http://vonk.fire.ly?_type=Patient,Organization. As Lloyd already pointed out not every server will honour this request (test.fhir.org and HAPI do not).
Mike Henderson (Oct 23 2018 at 20:47):
I don't see this documented in the standard (at least not R4). Should I enter a gForge ticket and, if so, to whom?
Grahame Grieve (Oct 23 2018 at 20:56):
I thought test.fhir.org would do that. which is not well documented?
Mike Henderson (Oct 24 2018 at 19:25):
The normative syntax for searching for all of a resource.
Grahame Grieve (Oct 25 2018 at 07:59):
all of a specific type?
Mike Henderson (Oct 25 2018 at 13:49):
Right, such as get me all Practitioner instances, etc.
Kevin Mayfield (Oct 25 2018 at 13:49):
GET {baseUrl}/Practitioner
Lloyd McKenzie (Oct 25 2018 at 15:16):
@Mike Henderson is right that we don't explicitly say that if you don't specify any parameters as filters, you get everything. That was sort of taken as a given. If you want to submit a change request for us to add an explicit sentence saying that, we could. I think that's just a clarification and wouldn't be a substantive change, so we could still get it in for R4.
Mike Henderson (Oct 25 2018 at 16:03):
Thanks, Lloyd. I created tracker Item #19523.
Last updated: Apr 12 2022 at 19:14 UTC