Stream: implementers
Topic: mixing chain and _has
Hue Nguyen (Jul 11 2020 at 08:07):
I want write query to return all Practitioner have name like Mr
and base on PractitionerRole who's practitioner is Practitioner that have Organization name is something
Query like bellow
GET [base]/Practitioner?name=Mr&_has:PractitionerRole:practitioner:organization.name=something
I got 2 trouble in here.
-
Practitioner name seem like wont work with
Mr
except i include:exact
into it. I was try with another string likeHappy
and it work without:exact
Mr is part of HumanNama.text -
_has
not work with fieldname
. I try to change to_has:PractitionerRole:practitioner:organization={ID}
and it work
Lloyd McKenzie (Jul 11 2020 at 13:18):
Mr should work. What server are you using? Chaining on a _has is legal but isn't necessarily something that'll be widely supported
Hue Nguyen (Jul 11 2020 at 13:29):
@Lloyd McKenzie I'm using GCP FHIR. I not sure if it support or not
Lloyd McKenzie (Jul 11 2020 at 13:32):
You may need to reach out to the maintainers of the server
Hue Nguyen (Jul 11 2020 at 14:41):
@Lloyd McKenzie Thank you, i'll ask them :))
Hue Nguyen (Jul 11 2020 at 15:44):
@Paul Church can you give me some advice ?
Last updated: Apr 12 2022 at 19:14 UTC