Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to filter by multiple concept classes and/or datatypes on this endpoint: https://api.qa.openconceptlab.org/orgs/CIEL/sources/CIEL/concepts #88

Closed
collinewait opened this issue Feb 6, 2019 · 3 comments
Labels
enhancement New feature or request openmrs

Comments

@collinewait
Copy link

I have tried to filter out test and drug concept classes, but returned results contain only concepts having Test conceptClass and those with Drug conceptClass are not returned as shown below:

https://api.qa.openconceptlab.org/orgs/CIEL/sources/CIEL/concepts/?q=&conceptClass=test,drug
screenshot 2019-02-06 at 13 51 51

I think it should work in a similar way to this: https://api.qa.openconceptlab.org/users/admin/collections/d3h7d3e4g6d3e4/concepts/?q=&limit=0&page=1&verbose=true&conceptClass=test,drug

@rkorytkowski rkorytkowski added openmrs enhancement New feature or request labels Feb 6, 2019
@rkorytkowski
Copy link
Contributor

@paynejd, it seems like something we want to address?

@paynejd
Copy link
Member

paynejd commented Feb 8, 2019 via email

@rkorytkowski
Copy link
Contributor

Just tested it. The drugs do appear in results, but since there are more results and default limit is 10 items, you need to paginate to the 12th page or higher e.g.
https://api.qa.openconceptlab.org/orgs/CIEL/sources/CIEL/concepts/?q=&conceptClass=test,drug&page=12

You can also adjust limit for a single page with &limit=50. The number of matched items can be found in the num_found response header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openmrs
Projects
None yet
Development

No branches or pull requests

3 participants