diff --git a/src/org/ohdsi/usagi/ui/FilterPanel.java b/src/org/ohdsi/usagi/ui/FilterPanel.java index f8cb856..ba35889 100644 --- a/src/org/ohdsi/usagi/ui/FilterPanel.java +++ b/src/org/ohdsi/usagi/ui/FilterPanel.java @@ -148,6 +148,10 @@ public boolean getFilterByAuto() { return filterByAutoCheckBox.isSelected(); } + public void setFilterByAuto() { + filterByAutoCheckBox.setSelected(true); + } + public boolean getFilterStandard() { return filterStandardCheckBox.isSelected(); } diff --git a/src/org/ohdsi/usagi/ui/ImportDialog.java b/src/org/ohdsi/usagi/ui/ImportDialog.java index 998e1e6..049c0cd 100644 --- a/src/org/ohdsi/usagi/ui/ImportDialog.java +++ b/src/org/ohdsi/usagi/ui/ImportDialog.java @@ -232,6 +232,11 @@ private Component createColumnMappingPanel() { autoConceptIdColumn = new JComboBox<>(comboBoxOptions); autoConceptIdColumn.setToolTipText("The column containing a (semicolon-delimited) list of concept IDs to which the search will be restricted"); columnMappingPanel.add(autoConceptIdColumn, cBox); + autoConceptIdColumn.addActionListener(e -> { + if (!autoConceptIdColumn.getSelectedItem().toString().isEmpty()) { + filterPanel.setFilterByAuto(); + } + }); gridY = cLabel.gridy + 1; addExtraColumnMapping();