Api for data from openmrs database