Searching for a patient based off Episode Of Care ...
# support
k
Hi, I'm working on a patient search feature, and we're using the
PatientList
graphql query. Is there a way for us to filter the results based on the patients'
EpisodeOfCare.status
?
m
Hi KC! This kind of advanced search filtering is called reverse chaining in FHIR: http://hl7.org/fhir/R4/search.html#has Specifically, I think the underlying FHIR query you're looking for here would be something like
Patient?_has:EpisodeOfCare:patient:status=<status code>
Medplum doesn't yet support this functionality, but it's already on our radar and tracked via this GitHub issue: https://github.com/medplum/medplum/issues/1975
k
Thank you!
176 Views