Skip to content
Mritunjay Dubey edited this page Sep 13, 2017 · 3 revisions

Welcome to the bahmni-shiny wiki!

About the Application

This application is built using R and shiny . This helps a hospital to visualize the trend for patients visiting hospital over a period of time. Right now it works with MySQL and PSQL databases.

Demo

Features:-

SSH tunnel to connect to databases:-

Since it might not be possible to expose MySQL and PSQL ports to outside, we are connecting to databases over SSH tunnel.

Plugin Based System:-

To configure analytics for a specific disease you need to create a folder and put under plugins folder. The path to plugins folder is a configurable property. The folder will have 2 files.

  • config.json:- For now, we are just getting the name of the plugin from this file.
  • dao.R:- This R file will need to have a function called fetchData which will take the mysql and psql connections and return model data for that disease.

Basic Architecture and workflow

The image below shows the basic architecture and workflow for the application.