Getting Diagnoses Summary Using Rest API

Which openmrs platform version are you running?

we are using 2.0.6 Build 453af9.

@naveed1228 can you read under Response Format on this page to see how to return json instead of xml? https://wiki.openmrs.org/display/docs/REST+Web+Services+API+For+Clients

This thould work with version 2.7.0. This feature has been added here:

Issue:

So I’m using 2.7.0 version of the reference application and 2.0.6 for my openmrs platform version. For my local deployment, this works : http://localhost:3000/openmrs/ws/rest/v1/obs?patient=de4a1bd3-b51c-44a4-b692-060ac1ae1a13&concept=159947AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

But trying : http://localhost:3000/openmrs/ws/rest/emrapi/patientdiagnoses?patientUuid=de4a1bd3-b51c-44a4-b692-060ac1ae1a13 http://localhost:3000/openmrs/ws/rest/emrapi/patientdiagnoses?patient=de4a1bd3-b51c-44a4-b692-060ac1ae1a13

Both give me “Resource does not exist…”

Which version of the emrapi module are you running?

Have 1.23.0 as emrapi version.

Upgrade it to the fix version of this ticket: https://issues.openmrs.org/browse/EA-125