Diagnosis ICD-10 Rest API

We are building UI in Angular. We want to implement the same autocomplete for diagnosis fragment. Is there any API call? As there is for medication, tests, advice, etc.

When I write something in diagnosis, in the network tab it send request to “openmrs/coreapps/diagnoses/search.action?&term=<term_searched>”. And when tried in Postman, it through error. error report: https://pastebin.com/1TQjDT5a

@darius @dkayiwa

Thanks

Which version of the emrapi module are you running? Is this of help? https://issues.openmrs.org/browse/EA-125

Using EMR API 1.21 I want this autocomplete feature:

You can create a resource in the emrapi module which returns what this method does: https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/java/org/openmrs/module/coreapps/fragment/controller/DiagnosesFragmentController.java#L53-L72

BTW, what is with all the duplicates in this list? Best practice would be to have the actual diagnosis name first followed by the primary ICD-10-WHO code (if that’s what you are using). It is also important to remember that some diagnoses actually require two ICD codes.