Getting started with OHDSI using Polites invoves two steps.
Installing and setting up an OHDSI CDM requires a number of software packages therefore Polites requires a number of software packages. Most of these dependencies can be installed an configured automatically using the YesPolitesInstaller.exe. To download and install dependent software download and run the YesPolitesInstaller.exe. This will install the C:\_YES_POLITES folder. The installer gives you the option to install at a different location. If you install at a different location, the installer will create _YES_POLITES as a short cut to that location. For example, I generally install things to my D: drive as I have little space left on my C: drive.
There are a few installations that need to be done manually as shown below. After running YesPolitesInstaller.exe, the following installers should be run. Installing a database is optional if you will be using the PostgreSql database that is included in Broadsea. Before running any of the installers shown below, removing any existing versions of the software that may exist is recommended.
RStudio (Optional):
Run the installers in the
C:\_YES_POLITES\tools\r folder in the order shown below. Note that R has
already been installed at C:\_YES_POLITES\tools\r\R and this folder has
been added to your path environment variable. Installing RStudio is
optional.
Docker:
Update the wsl before installing Docker by running
wsl −−update from a cmd window.
Run C:\_YES_POLITES\docker\Docker
Desktop Installer.exe.
RTools:
Install RTools by running the RTools setup .exe
file in C:\_YES_POLITES\tools\r
Note: Skip this step if you are setting up your WebAPI/Atlas development
environment.
Run any installers specific to the DBMS system you
are using. These installers are found in C:\_YES_POLITES\databases. For
example, if you are using Microsoft SQL Server, run the installers shown
below (Note that the JDBC driver and .dll files required for SQL Server
have already been installed in the sqlserver\sqljdbc_12.6.2.0_enu folder
and this folder has been added to your path environment variable). After
running the above installers, open a cmd window as Administrator and run
the init-sql-server.bat script. Running this script will update Sql
Server configurations required for Broadsea such as mixed authentication
mode and TCP/IP access. This script must be run as Administrator or it
will not work.
Broadsea can be downloaded and configured by simply running the install-broadsea.bat file found in _YES_POLITES/workspace. After the script completes, Broadsea can be launched by simply starting Docker and then running the C:\_YES_POLITES\workspace\Broadsea\start.bat file.
Polites includes a number of scripts in the C:\_YES_POLITES\workspace\Broadsea directory to make common tasks for Docker easer. These scripts include the following:
Download the latest version of Polites from the Polites Releases web site. Unzip the provided zip file. Make any required changes to ./auth/sqlserver-demo-app.properties (Polites will run out-of-the-box if you do not change the properties file). Open a cmd window and run ./polites.bat.
Note that after running Polites (or making any other chages to the system), the server will need to be bounced by running the Broadsea stop.bat and start.bat scripts.
You can now view the updates to your system in Atlas by opening a
browser and navigating to
http://127.0.0.1/atlas