Quick question: does anyone know the format for a REST API Query to search for all patients at a specified location?
For ref - https://wiki.openmrs.org/display/docs/REST+Web+Service+Resources+in+OpenMRS+1.9#RESTWebServiceResourcesinOpenMRS1.9-Patient
That returns an empty array, however I know for sure that this location has seen patients.
Can you see patients at that location from openmrs UI?
What do you mean by patients "at a" location. Do you mean who have ever been seen at that location?
Regardless of what you mean, there is no built-in REST query for this.
You would need to add the reporting and reportingrest modules (though I don't think this is documented anywhere...)
I don't see any documentation of a "location" parameter for the patient resource at the link you pasted.
Yes, I was. I know, otherwise OpenMRS does not have any location specific patients.
I had mistaken it as loggedlocation in Bahmni.
I'll also try reporting and reportingrest modules.Thank you
Yes, I was referring to a way to see patients who have been seen at that location.
But I guess that's not possible as of yet.