Application Name: Bahmni Version Number: 1.0.0
Question: Hi OpenMRS Community,
I’m encountering an issue with the /conceptsearch
API endpoint
while trying to filter by multiple concept classes. When I filter by a single conceptClass
UUID, the results are accurate and confined to that class. However, when I try to include more than one conceptClass
UUID in the request, the API returns results from all classes, not just the ones specified.
Here are the requests I’m using:
- Single concept class (works fine):
https://localhost/openmrs/ws/rest/v1/conceptsearch?conceptClasses=8d492026-c2cc-11de-8d13-0010c6dffd0f&q=lft
This correctly returns results belonging to the specified concept class. 2. Multiple concept classes (returns results from all classes):
https://localhost/openmrs/ws/rest/v1/conceptsearch?conceptClasses=8d4907b2-c2cc-11de-8d13-0010c6dffd0f,8d492026-c2cc-11de-8d13-0010c6dffd0f&q=mri
This query returns results from all classes, not just the two specified.
My Question:
- Is there a limitation in the API that prevents filtering by multiple
conceptClasses
? - Should this query be returning results only from the specified concept classes, or is there a different way I should be structuring the request to achieve this?
Any help or guidance on how to handle filtering by multiple concept classes would be greatly appreciated!
Thanks in advance!