After you run Achilles (from the R Package) to get the statistics calculated in your new CDM, you then need to export the new JSON data for Achilles Web using the following command:
exportToJson(connectionDetails,{cdmSchema}, {resultsSchema}, {outputFolder})
Copy these exported files to a separate folder under the /data directory where you have your existing AchillesWeb Results. Example, the folder structure would look like this:
/data
| datasources.json
| /old_datasource
| /new_dataSource
Then add a new datasource to your datasources.json file. An example datasource file would look like this:
{
"datasources: [
{"name": "Old Datasource", "folder": "old_datasource", "cdmVersion": 4},
{"name": "New Datasource", "folder": "new_datasource", "cdmVersion": 5}
]
}
Then when you refresh the Achilles web, you’ll see 2 datasources under the ‘datasource’ dropdown at the top right, and you can flip between them.
Note: I’m showing an example of a ‘cdmVersion’ parameter in the config, which is going to be introduced very shortly to allow Achilles Web to show v4 and v5 reports in the same app.
-Chris