Open ttemnikova opened 1 year ago
I am not seeing this behavior (on latest master branch):
I went to a cohort definition, went to the concept sets, clicked import button, switched to source codes, entered 'E09' as a source code, selected the 2 concepts, and only 'Add to Concept Set' was shown (see picture). Clicking add did add it to the local concept set.
Update, I can reporduce this, it doesn't require 'Import' but rather if you start with a empty cohort def (or incidence rate analysis), and click 'new concept set', the new concept set does not appear to be associated in the 'ConceptSetManager' which keeps track of the included source codes. Because that is not done (hypothetically) it assumes that you want to add to a new concept set to the repository concept (which is the default behavior for this UI component).
The core issue is that the UI element is not being associatd to the 'active' concept set for this asset (cohort definition/incidence rate, etc).
Expected behavior
When importing concepts to a local concept set of a cohort definition, cohort characterization or incidence rates, the selected concepts are added to the cohort definition, cohort characterization or incidence rates analysis accordingly. The button to add the concept has a text "Add to Concept Set" and adds the concept(s) locally.
Actual behavior
When importing concepts to a local concept set of a cohort definition, cohort characterization or incidence rates, the selected concepts are added to a new separate concept set. The button to add the concept has a text "Add to New Concept Set" and adds the concept(s) to a new separate concept set.
Steps to reproduce behavior