The _include and the date parameters look fine. There’s no standard search parameter on Patient called “enrollmentStatus” (and in fact, there’s no standard element on Patient for that concept either). If you’ve defined an extension and a custom search parameter with that name and if the server supports it and the server supports chaining from CarePlan through subject to that parameter, then the search you specified looks like it ought to work. (So if those caveats are met, you’ll need to follow up with the maintainer of the server you’re using.)
Thank you for your reply! Sorry about the confusion, please ignore that patient enrollmentStatus. My question is how do I find all patients who careplan end date is in the past from a particular date?
For example, below is a query from a test server, I add date parameter and want to find any careplan end date before 2010-05-10:
Thank you for your reply! I add date=eb but get below error on both test server and our server (based on https://hapifhir.io/), date=eb seems not working. Do you have any suggestions?
It’s possible your server doesn’t support eb - at least for that parameter. (The good news is that they at least seem to recognize what ‘eb’ means.) You’ll need to follow up with whoever created the server.