Putting it all together - The CMS Open Payments application

In the prior sections, we have learned how to:

  • Download the datasets
  • Create the backend database
  • Create the code for the backend database
  • Set up RStudio
  • Create the R Shiny application

To start the application, complete the following steps:

  1. Start the Q application, make sure you are in the home directory. Type pwd and hit Enter. This will show the present working directory of /home/packt as shown in the coming image.

  2. Next, type q and hit Enter.
  3. At the q prompt, type in l cms.q.

Note that cms.q is the file we created in our earlier section when developing the Q application.

The script will load the database and return back to the q) prompt:

Putting it all together: Loading the CMS KDB+ Q Script in KDB+ Session
  1. Launch the CMS Open Payment application
  2. In RStudio, open the app.R file (which contains the R Code) and click on Run App at the top-right, shown as follows:
Running the RShiny Application

This will launch the web application, shown as follows:

The RShiny Application

We have now finished developing a complete CMS Open Payments application that allows the end user to filter, aggregate, and analyze the data. Now, you can run queries by selecting various options on the screen. There are two functionalities in the app:

  • Filtering data (default view)
  • Aggregating data (you can switch to this option by selecting Aggregate Data from the Display Type menu)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.221.144