Skip to content

Keep exclusions when optimizing a concept set - #2604

Open
p-hoffmann wants to merge 1 commit into
masterfrom
p-hoffmann/optimize-keep-exclusions
Open

p-hoffmann wants to merge 1 commit into
masterfrom
p-hoffmann/optimize-keep-exclusions

Conversation

@p-hoffmann

Copy link
Copy Markdown
Member

Fixes OHDSI/Atlas3#539.

/vocabulary/{sourceKey}/optimize only offered the resolved concepts as candidates, so the excluded concepts could never be used and every exclusion was rewritten as an explicit list of the remaining branches (8 items became 75 in the issue). The concepts named in the expression, including excluded ones, are now candidates too, so exclusions can be kept. If the condensed result is not shorter than the original, or the search finds no solution, the original expression is returned unchanged. The endpoint contract is unchanged.

Unit tests in ConceptSetOptimizerTest cover the issue's shape on a synthetic hierarchy.

Use the concepts named in the expression, including excluded ones, as
condenser candidates so the optimizer can express a subtree minus
excluded subtrees. Return the original expression when the condensed
one is not shorter or the search found no solution.
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.

Concept set optimization leads to a more cumbersome concept set definition

1 participant