Is there a way to get Encounters by Appointment ti...
# support
j
I want to retrieve a list of
Encounter
within a specific date range of the
appointment.start
, where any (or all, doesn't matter) of the appointments for the encounter start within that range. I tried doing
_filter: 'appointment.start ge '2024-02-18 and appointment.start le '2024-02-24''
(something similar) and it said I can't do
appointment.start
. Would love tips on what to do here!
r
Hi @jasonwa.ng , the search feature you're referring to is called "Chained Searches". This is how you can search for one resource, based on the properties of a linked resource https://www.medplum.com/docs/search/chained-search
This feature is available in the vanilla REST search API, but not yet in the
_filter
API
In this case,
Encounter?appointment.start=<query>
j
Understood! Is there any timeline on when this might be out for
_filter
?
And thank you for the explanation!
r
Hi @jasonwa.ng , we have an open item for this, but I can't give you a firm timeline at this time: https://github.com/medplum/medplum/issues/3224
127 Views