Skip to content

Commit

Permalink
Merge pull request #77 from dhis2/d2-condition
Browse files Browse the repository at this point in the history
feat: add d2:condition to rule engine grammar
  • Loading branch information
superskip authored Feb 27, 2025
2 parents 787153a + 472542e commit acf6eaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ object ExpressionGrammar {
fn(NamedFunction.variance, expr)
)
private val CommonD2Functions = listOf( // (alphabetical)
fn(NamedFunction.d2_condition, STRING, expr, expr),
fn(NamedFunction.d2_contains, expr, expr.plus()),
fn(NamedFunction.d2_containsItems, expr, expr.plus()),
fn(NamedFunction.d2_count, dataItem),
Expand Down Expand Up @@ -130,7 +131,6 @@ object ExpressionGrammar {
fn(NamedFunction.d2_zScoreWFH, expr, expr, expr)
)
private val ProgramIndicatorD2Functions = listOf(
fn(NamedFunction.d2_condition, STRING, expr, expr),
fn(NamedFunction.d2_countIfCondition, expr, STRING),
fn(NamedFunction.d2_minutesBetween, expr, expr),
fn(NamedFunction.d2_relationshipCount, UID.quoted().maybe())
Expand Down

0 comments on commit acf6eaf

Please sign in to comment.