Hello OpenMRS Community,
I’m Darshan Hiranandani, experiencing an issue with the /conceptsearch
API endpoint while filtering by multiple concept classes. When I filter using a single conceptClass UUID, the results are as expected, limited to that class. However, when I attempt to filter using multiple conceptClass UUIDs, the API returns results from all concept classes, not just the specified ones.
Here’s what I’m trying:
- Single concept class (works fine)
https://localhost/openmrs/ws/rest/v1/conceptsearch?conceptClasses=8d492026-c2cc-11de-8d13-0010c6dffd0f&q=lft
This correctly returns results from the specified class. - Multiple concept classes (fails)
https://localhost/openmrs/ws/rest/v1/conceptsearch?conceptClasses=8d4907b2-c2cc-11de-8d13-0010c6dffd0f&conceptClasses=8d492026-c2cc-11de-8d13-0010c6dffd0f&q=lft
Instead of returning results from the specified classes, the response includes results from all classes.
Is there a known issue or a specific way to handle multiple concept class filters? Any advice would be appreciated!
Regards Darshan Hiranandani