FHIR Chat · Get general-paratitioner organization for Patient X · implementers

Stream: implementers

Topic: Get general-paratitioner organization for Patient X


view this post on Zulip Alexander Henket (Sep 25 2017 at 14:41):

I'm trying to wrap my head around getting the general practitioner organization for a given patient. I found documentation for _has (https://www.hl7.org/fhir/search.html#has) but that confused me. test.fhir.org appears not to implement it and always returns 24 organizations. Vonk keeps claiming the query syntax is not correct

  • Is a query on Organization?_has ... the best way to do this and if so what's the correct syntax?

So far I've landed on this based on the documentation:

http://test.fhir.org/r3/Organization?_has:Patient:general-practitioner:identifier=X

But I feel I need to land on something more like this:

http://test.fhir.org/r3/Organization?_has:Patient[identifier=X]:general-practitioner

view this post on Zulip Ewout Kramer (Sep 26 2017 at 09:58):

@Christiaan Knaap @Mirjam Baltus might know more about that, since the syntax (of the first example you give) seems correct (_has:Resource:searchparam-to-link-on:actual-search-param).

view this post on Zulip Mirjam Baltus (Sep 26 2017 at 10:44):

@Alexander Henket Your syntax is correct, it seems that Vonk does not handle the '-' inside the search string correctly. We will work on resolving this.

view this post on Zulip Alexander Henket (Sep 26 2017 at 10:53):

O nice.. thanks both. Leaves the question on how safe it is to use when the official documentation is a hard read and test.fhir.org doesn't handle it. Didn't check HAPI or Wildfhir for that.

view this post on Zulip Ewout Kramer (Sep 26 2017 at 10:56):

O nice.. thanks both. Leaves the question on how safe it is to use when the official documentation is a hard read and test.fhir.org doesn't handle it. Didn't check HAPI or Wildfhir for that.

It is indeed one of the most recent additions to STU3 and needs some nurturing... how else to do that than by trying it out like you're doing now ;-) Thanks!

view this post on Zulip Christiaan Knaap (Sep 26 2017 at 13:22):

Thanks for noticing the '-' issue, we'll get it fixed.

view this post on Zulip Grahame Grieve (Sep 27 2017 at 22:19):

this is a feature on my todo list. I'm not sure when I'll get to it

view this post on Zulip Brian Postlethwaite (Oct 03 2017 at 03:51):

My server now supports this at http://sqlonfhir-stu3.azurewebsites.net/fhir
(as of yesterday)


Last updated: Apr 12 2022 at 19:14 UTC