Builds a lightweight cohort reference object that can be embedded in a
plan specification. This is a client-side-only helper that does not
contact any server; the reference is resolved at plan execution time
when recipe_execute() runs on the server.
Value
A named list with class-implicit structure containing
type = "cohort_table" and cohort_definition_id. Intended
for use inside plan population specifications.
Disclosure control
Building the reference does no checking (it never touches a server); the
disclosure gate applies when the reference is RESOLVED at execution time. If
the cohort_definition_id is unavailable – absent OR below the server's
per-subset threshold (nfilter_subset) – materialising/using it FAILS
CLOSED server-side (the same fail-closed gate that protects every other way of
naming a cohort, e.g. the cohort= scope of the exploration wrappers).
A sub-threshold cohort can therefore never be used to scope or populate a
query, exactly as if it did not exist.