Giter VIP home page Giter VIP logo

openemr_db_subset's Introduction

There are two files that are used for installing the ability to have an RSuite CLient access a database.  There are a few things that need to happen:

1) First.  We need SSH Keys on the server if we are trying to connect with a remote server

2) We need ssh access to run the rstudioConnectGrantPriv.sql file.  This file only needs to be run once as root or a root user. This script will
create a user called analytics that will be granted read-only access to the production database.  If the database is not called 'openemr' line 2 of this script
will need to be changed.  We can run this script by using the following from a command line in bash or we can copy-and-paste into
the mySQL terminal. Running this script allows the rstudioConnect run nightly so the rstudio clinent can have read only access to the analytic database.
The anayltic database is what rstudio user has read-only access to.

3) The cronjob rstudioConnect.php will query the production database.  If your database is not called openemr, find the
line "$sourceDatabase = 'openemr';" and change openemr with the name of the database you need.

To add more tables we can change the line:
$tableNames = [ 'form_vitals', 'form_encounter', 'form_observation', 'form_questionnaire_assessments'];

to include the table names that should be included in the anonymous table.  If by chance a table name is
misspelled or non-existent, the script will print a warning to the log.

---

The rstudio user will have to use the sshkey that is stored on the remote server.

openemr_db_subset's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.