We have some built-in cohort queries available via definition libraries, and we'll continue to add more.
Commonly, a consumer wants to evaluate a composition of these built-in queries (e.g. in HIV Program AND NOT had encounter this month).
At present you can do this by POSTing serialized XML of the cohort definition (extremely unintuivite to use), or via the adhocquery endpoint (more powerful and complex than needed).
We should provide a simple REST API for this specific use case.
I propose we support:
Should we also support global parameter values, as is done in the adhocquery resource? (E.g. so that setting "startDate" on the top level will automatically be mapped down to any individual query with a "startDate" parameter.)