Include nested _include FHIR entities?


#1

I have a Patient with a related patient, Patient.link > RelatedPerson(s) > Patient

I uploaded a test Patient example, and I’m able to successfully look up multiple includes, as in include organization and relatedperson:

http://test.fhir.org/r3/Patient?name=Drort&_include=Patient:link&_include=Patient:organization

However, I want to get the relatedperson.patient in the same query. I’m unclear from reading the search docs if this is allowed. When I try it on the testing server, it returns a SQL error:

http://test.fhir.org/r3/Patient?name=Drort&_include=Patient:link&_include=Patient:organization&_include=RelatedPerson:patient

[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ')'.


#2

It also looks like this server ignores the _include:iterate syntax:

http://test.fhir.org/r3/Patient?name=Drort&_include=Patient:link&_include:iterate=RelatedPerson:link

This is ignored. I don’t see “iterate” in the capabilities doc of this server, but I don’t know what to look for specifically.