FHIR Chat · hapi fhir search · implementers

Stream: implementers

Topic: hapi fhir search


view this post on Zulip Serhii Storozhenko (Oct 28 2020 at 14:18):

Hi guys,
I am pretty new to fhir, so don't throw rotten tomatoes :)

Anyway, would you mind to share with me how to perfrom search from Hapi client ? I tried already smth like that, but i can't find any resource by that ID. Would you mind to point to some valid project wth examples? Thank you!

final Bundle bundle =
client.search().forResource(Observation.class).where(Observation.IDENTIFIER.exactly().code(id)).returnBundle(Bundle.class).execute();

view this post on Zulip Lloyd McKenzie (Oct 28 2020 at 15:23):

Before you try to query with code, it's probably best to just hit it with a web browser and perform broad queries. (If you don't provide any search parameters at all, you'll be able to page through all the data on the server.) Because it's an open server, the data is continually changing. It gets reset occasionally, but there's no guarantee any particular record will be there. Most of the time, you'll at minimum be able to see any of the examples from the FHIR spec.

view this post on Zulip Joel Schneider (Nov 04 2020 at 04:16):

Here's an example search you could try running in a web browser, using one of the public test servers.
http://hapi.fhir.org/baseR4/Observation?_count=1


Last updated: Apr 12 2022 at 19:14 UTC