Stream: implementers
Topic: Search Organization 'name'
Tushar Nair (Jun 21 2021 at 19:56):
Hello,
I am trying to query the Organization by name , it works when the name is an exact match but it doesn't when I use apart of name. e.g. Organization?name=VASSAR fails but if I perform it as Organization?name=VASSAR HEALTH it gives a proper result. Is this normal? I tried this in HAPI but I also tried this on another server provided for pdex (prov directory) testing , the base URl for the same is https://davinci-plan-net-ri.logicahealth.org/fhir/
To address this I used _filter. I have a requirement that all my queries in provider directory -be it by name, specialty, address etc. should be first filtered by _profile value as we want to ensure that we don't load resources generated from other transactions like CCD, ADTs, 837s etc. But when I use the _profile parameter in the query sing _filter, it says that '_profile' is not allowed or supported. Why _profile is not supported while using _filter? is there a different way of doing this, what should be the way forward. I would be grateful if someone could shed light on this. @Saul Kravitz @Lloyd McKenzie
Saul Kravitz (Jun 21 2021 at 19:57):
@Sean Mahoney
Lloyd McKenzie (Jun 25 2021 at 02:18):
@James Agnew
James Agnew (Jun 25 2021 at 09:44):
Why not just use a query in the form of http://base/Organization?_profile=http://foo&name=bar ?
James Agnew (Jun 25 2021 at 09:45):
That should meet your use case as described - The _filter search parameter is fairly rarely supported out there, and at least in HAPI's case it can functionally work but be worse for performance.
Lloyd McKenzie (Jun 25 2021 at 13:49):
@James Agnew They shouldn't have to specify _profile. Organization?name=VASSAR
should be matching on "Vassar Health", but according to @Tushar Nair, it's not
James Agnew (Jun 25 2021 at 13:50):
Oh, sorry. Perhaps I'm misunderstanding the issue then.
@Tushar Nair is this something you could demonstrate on our public server: http://hapi.fhir.org
Last updated: Apr 12 2022 at 19:14 UTC