Hello, i am looking for a way to get a limited list of patients using rest service
I have tried get first nnn Patient by using GET patient api with set limit but it does not work so hopefully i could filter on the location or available flags.
What exact filtering criteria do you want to use? Many are listed in the API docs.
It is not possible to list all patients, so you need to specify one of the
identifier parameters. If you do that, then the
startIndex parameters will work. For example, the following is successful:
curl -u admin:Admin123 -X GET --header 'Accept: application/json' \
Edit: As far as I’m aware, patients are not associated with locations, so I don’t think you’ll be able to filter on that.
Hi Pascal, thank you for your help again. could i filter on the person instead? are there other ways to query the database? I do not have much knowledge with the underlying tables.
What exactly are your search criteria?
Pascal, I used “Visit” api to get a list of patients. I would still need help with doing more advance queries. will need your help again later.
This is not supported, patients are not associated to locations