Functional standard / Definition kinds / Constrains CohortMembership
cohort
Who belongs in a program, which protocols are offered, and what happens on entry and exit.
Runtime
The rule is evaluated against patient facts. A match proposes membership unless someone enrolls manually with a reason. Entry and exit effects follow the tiered rule.
Elements
| Name | Card. | Type | Description |
|---|---|---|---|
| defaults | 0..1 | object | Fields copied onto a new instance. Values given at creation win. |
| approval_required_for | 0..* | code | Extra states that need an Approval to enter. |
| rule | 0..1 | expression | Sandboxed expression over patient facts: age, gender, country, is_guardian, cond_<code>, state_<state>, obs_<code>. |
| manual_only | 1..1 | boolean | When true, the rule does not auto-propose. |
| protocols | 0..* | code | Protocol keys offered to members. |
| entry_actions | 0..* | Effect | Run when membership becomes active. |
| exit_actions | 0..* | Effect | Run when membership closes, from the version the patient enrolled under. |
Example
{ "rule": "cond_htn or obs_bp_systolic >= 140", "manual_only": false, "protocols": ["proto_htn"] }