Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for nesting and grouping (#2)
* adding support for nesting and grouping * cleaning up
- Loading branch information
1 parent
a7d9bb5
commit cca03c4
Showing
4 changed files
with
301 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
defmodule Predicated.Predicate do | ||
# patient_id == 1 AND (provider_id == 2 OR provider_id == 3) | ||
defstruct condition: nil, logical_operator: :and, predicates: [] | ||
defstruct condition: nil, logical_operator: nil, predicates: [] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters