Skip to content

Commit

Permalink
Added support for CDM v5.0.1. and made it the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Jun 24, 2016
1 parent 880c15e commit 2ba2bf2
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/org/ohdsi/rabbitInAHat/RabbitInAHatMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public class RabbitInAHatMain implements ResizeListener, ActionListener {
public final static String ACTION_CMD_MAKE_MAPPING = "Make Mappings";
public final static String ACTION_CMD_REMOVE_MAPPING = "Remove Mappings";
public final static String ACTION_CMD_SET_TARGET_V4 = "CDM v4";
public final static String ACTION_CMD_SET_TARGET_V5 = "CDM v5";
public final static String ACTION_CMD_SET_TARGET_V5 = "CDM v5.0.0";
public final static String ACTION_CMD_SET_TARGET_V501 = "CDM v5.0.1";
public final static String ACTION_CMD_SET_TARGET_CUSTOM = "Load Custom...";
public final static String ACTION_CMD_MARK_COMPLETED = "Mark Highlighted As Complete";
public final static String ACTION_CMD_UNMARK_COMPLETED = "Mark Highlighted As Incomplete";
Expand Down Expand Up @@ -109,7 +110,7 @@ public void windowClosing(WindowEvent e) {
frame.setJMenuBar(createMenuBar());

ETL etl = new ETL();
etl.setTargetDatabase(Database.generateCDMModel(CDMVersion.CDMV5));
etl.setTargetDatabase(Database.generateCDMModel(CDMVersion.CDMV501));

ObjectExchange.etl = etl;

Expand Down Expand Up @@ -242,6 +243,11 @@ private JMenuBar createMenuBar() {
targetCDMV5.addActionListener(this);
targetCDMV5.setActionCommand(ACTION_CMD_SET_TARGET_V5);
setTarget.add(targetCDMV5);

JMenuItem targetCDMV501 = new JMenuItem(ACTION_CMD_SET_TARGET_V501);
targetCDMV501.addActionListener(this);
targetCDMV501.setActionCommand(ACTION_CMD_SET_TARGET_V501);
setTarget.add(targetCDMV501);

JMenuItem loadTarget = new JMenuItem(ACTION_CMD_SET_TARGET_CUSTOM);
loadTarget.addActionListener(this);
Expand Down Expand Up @@ -388,6 +394,9 @@ public void actionPerformed(ActionEvent event) {
case ACTION_CMD_SET_TARGET_V5:
doSetTargetCDM(CDMVersion.CDMV5);
break;
case ACTION_CMD_SET_TARGET_V501:
doSetTargetCDM(CDMVersion.CDMV501);
break;
case ACTION_CMD_SET_TARGET_CUSTOM:
doSetTargetCustom(chooseOpenPath(FILE_FILTER_CSV));
break;
Expand Down
Loading

0 comments on commit 2ba2bf2

Please sign in to comment.