Stream: implementers
Topic: search: _include
Steven Wang (Jul 13 2020 at 01:46):
Hi there, I have one query - https://localhost:9443/fhir-server/api/v4/Patient?identifier=1032703&_include=Patient:general-practitioner, which can return a bundle for patient and practitioner role, in the practitioner role, it has practitioner and location, I want to return these four together in a bundle, how can I achieve this?
Hue Nguyen (Jul 13 2020 at 02:10):
@Steven Wang Hi,
You can try with this ways, using rev chaining
and revinclude
<base>/Practitioner?_has:Patient:general-practitioner:identifier=103703&_revinclude=Patient:general-practitioner&_revinclude=PractitionerRole:practitioner
Steven Wang (Jul 13 2020 at 02:19):
Thanks Hue, so you are based on Practitioner resource, how can I do it based on Patient resource?
Hue Nguyen (Jul 13 2020 at 02:29):
@Steven Wang how about
https://localhost:9443/fhir-server/api/v4/Patient?identifier=1032703&_include=Patient:general-practitioner&_revinclude:iterate=PractitionerRole:practitioner
Not much server support iterate
inside _revinclude
.
So, maybe it won't work
Last updated: Apr 12 2022 at 19:14 UTC