FHIR Chat · search by resource · implementers

Stream: implementers

Topic: search by resource


view this post on Zulip Emiliano Fernandez (May 25 2021 at 18:27):

hello, i would like to know how to make a search in the QuestionnaireResponse resource, by encounter? My question is because the encounter goes as a reference, something like this for example: "encounter" : {"reference": "Encounter/XXXXX"}

view this post on Zulip Emiliano Fernandez (May 25 2021 at 18:28):

i dont know how to implement the search, it would be something like QuestionnaireResponse?_encounter......=XXXX

view this post on Zulip Jose Costa Teixeira (May 25 2021 at 18:33):

http://build.fhir.org/search.html#reference

view this post on Zulip Jose Costa Teixeira (May 25 2021 at 18:33):

there is no _ before encounter

view this post on Zulip Emiliano Fernandez (May 25 2021 at 18:40):

for example, in the public fhir server, you got this questionnaireresponse:
http://hapi.fhir.org/baseR4/QuestionnaireResponse?_id=72454
that questionnaireresponse has an encounter associated:
"encounter": {
"reference": "Encounter/72446"
}

how can i filter by that value in the search?
thanks

view this post on Zulip Lloyd McKenzie (May 25 2021 at 18:49):

Did you look at the instructions Jose provided?
QuestionnaireResponse?encounter=72446

view this post on Zulip Emiliano Fernandez (May 25 2021 at 19:08):

yes, but if i put that in the public server, it dosnt bring me nothing. Thats why i am doubting

view this post on Zulip Lloyd McKenzie (May 25 2021 at 22:26):

Does the server support the encounter search parameter?

view this post on Zulip Emiliano Fernandez (May 26 2021 at 13:40):

I have no idea, im testing with the fhir public server: http://hapi.fhir.org/baseR4/

view this post on Zulip Lloyd McKenzie (May 26 2021 at 13:58):

Its conformance statement says it supports Encounter, but this definitely isn't working. @James Agnew ?

view this post on Zulip John Silva (May 26 2021 at 18:49):

I was poking around on that HAPI server and I'm able to do this search, which uses encounter, and it returns expected results (QRs with Encounters) : http://hapi.fhir.org/baseR4/QuestionnaireResponse?encounter:missing=false

I also tried searching by a patient reference and that didn't work either:
http://hapi.fhir.org/baseR4/QuestionnaireResponse?patient=72448


Last updated: Apr 12 2022 at 19:14 UTC