Introduction

This document provides a complete example of how to

Broadsea

Broadsea is a complete solution for running OHDSI tools that runs in a Docker container. Complete instructions for installing and running Broadsea are here: Install and Run Broadsea

Download and Initialize the SosRunDataQualityDashboard project

The SosRunDataQualityDashboard provides some simple scripts that can be used to:

Clone the SosRunDataQualityDashboard using the following:

git clone https://github.com/NACHC-CAD/SosRunDataQualityDashboard
Open ./SosRunDataQualityDashboard/SosRunDataQualityDashboard.Rproj and then open and run 01_install-dqd.r. This will install the packages and libraries required for DQD. When asked to restart R select “No”. When asked “Which would you like to update?” enter 1 (for all).

Download and Install the Data Quality Dashboard project

Clone the DataQualityDashboard using the following:

git clone https://github.com/OHDSI/DataQualityDashboard
Open ./DataQualityDashboard/DataQualityDashboard.Rproj in RStudio. In the upper right hand corner, select the build tab and then select the Install button. This will install your local copy of the DQD code as the package and library for R.

Run/Debug DQD

Go back to the SosRunDataQualityDashboard project. Edit and run the 02_init-params-for-dqd.r script. You should now be able to run DQD by running the 03_run-dqd.r script. You should be able to debug DQD by running the ./debug/03_debug-dqd.r script. When you run this script, RStudio will stop at the browse() statement. You can then use the navigation buttons towards the bottom of the screen (at the top of the Console pain) to



You can now get into and debug the source code for DQD by doing the following: You can then set a break point by single clicking in the space to the left of the line numbers. You might need to set the break point in the DQD code, stop the script, and then restart the script and select “Continue” when you hit the “browser()” line. You can then run to that break point by selecting “Continue”. You can do this for as many breakpoints as you like.

Edit and Run Modified DQD Code

We can now edit the DQD code and then run the modified code.

IMPORTANT: After editing the code, you will need to rerun the install as described above and shown in the image below.

IMPORTANT: Before rerunning the debug code, you need to restart the R session to pick up the modified DQD code.



Rerunning the debug script should now execute the modified code. Again, you might need to step into the DQD code, set the break point, and then rerun the debug code.