I’m trying to get all the active visits and display them in a list similar to: http://demo.openmrs.org/openmrs/coreapps/activeVisits.page?app=coreapps.activeVisits How can I get all the active visits using the REST services? I’m using Ajax.
I believe you need to do:
GET .../visit?patient=(uuid)&includeinactive=false
1 Like
Hi,
The solution only works with bahmni?
Thanks.
This solution is not Bahmni-specific. It is provided by the OpenMRS web services module.
-Darius (by phone)
1 Like
Thanks!.
If GET http://demo.openmrs.org/openmrs/ws/rest/v1/visit?&includeinactive=false (with “include” I receive “”
but if get http://demo.openmrs.org/openmrs/ws/rest/v1/visit?&include**I**nactive=false (with "Include"it works!
Swagger documentation does not include this parameter. ¿Why?
includeinactive has to be in camel case.
GET …/visit?patient=(uuid)&includeInactive=false
would work
2 Likes