FHIR Chat · Understanding _include · implementers

Stream: implementers

Topic: Understanding _include


view this post on Zulip Richard Kavanagh (Apr 29 2016 at 16:21):

I am attempting to form a search query to return all appointments for a patient with a given id. I use this query and it seems to work

view this post on Zulip Richard Kavanagh (Apr 29 2016 at 16:22):

http://fhirtest.uhn.ca/baseDstu2/Appointment?patient:Patient.identifier=TestPatient

view this post on Zulip Richard Kavanagh (Apr 29 2016 at 16:22):

Now I want to use an _include statement to bring back the Patient resource as well as the appointment so I use this

view this post on Zulip Richard Kavanagh (Apr 29 2016 at 16:22):

http://fhirtest.uhn.ca/baseDstu2/Appointment?patient:Patient.identifier=TestPatient&_include=Appointment:patient

view this post on Zulip Richard Kavanagh (Apr 29 2016 at 16:23):

The resulting bundle has APPOINTMENT and PATIENT resources but also PRACTITIONER resources. What did I do wrong?

view this post on Zulip Chris Grenz (Apr 29 2016 at 21:09):

Try this: http://fhirtest.uhn.ca/baseDstu2/Appointment?patient:Patient.identifier=TestPatient&_include=Appointment:patient:Patient

view this post on Zulip Chris Grenz (Apr 29 2016 at 21:09):

you can limit the referenced types in the include the same way as in the other query parameter....

view this post on Zulip Brian Postlethwaite (Apr 29 2016 at 23:46):

That looks like a bug in HAPI. That link using the patient param should be filtering down to patient already (even though this is the actor property)

view this post on Zulip Grahame Grieve (Apr 30 2016 at 01:12):

yes

view this post on Zulip James Agnew (May 01 2016 at 15:18):

Yeah, this looks like a bug. Will put in a fix for the next server update.

view this post on Zulip James Agnew (May 03 2016 at 15:25):

FYI @Richard Kavanagh this has been fixed. Your previous query works as expected now.


Last updated: Apr 12 2022 at 19:14 UTC