Skip to content

Conversation

@amondel2
Copy link

@amondel2 amondel2 commented Oct 3, 2025

1617: The if condition in validateTerminologyRequirements was incorrectly evaluating due to missing parentheses. Because '&&' has higher precedence than '||', the expression:

(A || B || C && D)
was being evaluated as:
(A || B || (C && D))
instead of the intended:
((A || B || C) && D)

This caused terminology requirements to throw an exception in cases when a TerminologyProvider was configured with a library with ValueSets.

Fix: Add explicit parentheses so the check correctly validates as intended.

…Requirements

      The if condition in validateTerminologyRequirements was incorrectly
      evaluating due to missing parentheses. Because `&&` has higher
      precedence than `||`, the expression:

          (A || B || C && D)

      was being evaluated as:

          (A || B || (C && D))

      instead of the intended:

          ((A || B || C) && D)

      This caused terminology requirements to be bypassed in some cases
      when a TerminologyProvider was not configured.

      Fix: Add explicit parentheses so the check correctly enforces that
      any terminology usage requires a TerminologyProvider.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant