Reputation: 1
I have a Slot resource which has the reference to a Schedule resource. The schedule resource has a list of actors including Patient and Practitioner and all. If i want to retrieve a booked slot with the assigned Practitioner name, what will be the correct FHIR server query?
Example data inside Schedule reference:
"actor": [
{
"reference": "Practitioner/{id}",
"display": "Dr.John"
},
...]
I tried with "[base]/{resource with id}&_include=Slot:schedule&_include:iterate=Practitioner:actor[0]". But it is not working.
Upvotes: 0
Views: 1274
Reputation: 6803
A few issues:
So the search should look like this:
[base]/Slot?_id=123&_include=Slot:schedule&_include:iterate=Schedule:actor:Practitioner
Be aware that not all servers will support all _includes, or even support _include at all.
Upvotes: 1