Diagnostic checklist
Work from the stored answer outward.
- 01
Count enableWhen conditions
If there is more than one, require an explicit enableBehavior of all or any before reasoning about the branch.
- 02
Translate the word into intent
Use all only when every condition must be satisfied together. Use any when each condition represents an alternative route.
- 03
Look for mutually exclusive answers
A non-repeating choice cannot equal two different codes at once. With all, that pair describes an impossible answer state.
- 04
Keep expression extensions separate
FHIRPath or CQL enableWhenExpression extensions depend on the hosting runtime and are not reduced to ordinary all/any conditions.