We'd like to be able to expand cset drafts in TermHub, ahead of when they are expanded in the enclave (at finalization).
Sub-task list
[ ] 1. Logic to expand a cset's member item expressions
[ ] 2. Trigger this logic (all drafts)
[ ] 3. Overriding TermHub expansion
when the enclave expands, use that expansion instead (and maybe do a check to see if they're the same, and throw an error if not)
Discussion
Given a set of definition rules (for now, following OMOP conventions, having a concept_id
and definition flags (D = includeDescendants, M = includeMapped, X = isExcluded),
perform expansion (i.e., process the rules) and return requested response, which could be:
a of list concept_ids
a subgraph
tabular data illustrating the result of processing the rules
So, given a graph including a subgraph like:
A G
/ \ /
B C /
\ / \ /
D E
|
F
a code set defined as including A and its descendants and exluding G and it's
descendants would be defined (in ATLAS style) as:
Overview
We'd like to be able to expand cset drafts in TermHub, ahead of when they are expanded in the enclave (at finalization).
Sub-task list
Discussion
Given a set of definition rules (for now, following OMOP conventions, having a concept_id and definition flags (D = includeDescendants, M = includeMapped, X = isExcluded), perform expansion (i.e., process the rules) and return requested response, which could be:
So, given a graph including a subgraph like:
a code set defined as including A and its descendants and exluding G and it's descendants would be defined (in ATLAS style) as:
Or, in an abbreviated form I'm using:
[A, B, C, D]
.[ [A,B], [A,C], [B,D], [C,D] ]
.