Code Monkey home page Code Monkey logo

cms-stars's Introduction

cms-stars

python source code for an open source plotly dash app, used for examining results of CMS' Overall Hospital Quality Star Ratings.

How to run this app

  1. After downloading or cloning this repository, open a terminal window or command prompt in the root folder.

  2. Create a virtual environment for running this app with Python (>=3.8)

    In MacOS or Linux:

    python3 -m virtualenv venv
    
    

    In Unix:

    source venv/bin/activate
    
    

    In Windows:

    venv\Scripts\activate
    
  3. Install required packages using pip:

    pip install -r requirements.txt
    
  4. Run this app locally with:

    python3.8 app.py
    

    The output of the terminal window will look like:

    Dash is running on http://0.0.0.0:8050/
    
  5. Paste the url into your web browser and voila!

Requirements

These are automatically installed when following the instructions above.

  • werkzeug==2.0.3
  • dash==2.0.0
  • gunicorn==20.1.0
  • numpy==1.22.1
  • pandas==1.4.0
  • scipy>=1.7.3
  • flask>=1.1.2
  • plotly==5.5.0
  • datetime==4.3
  • pathlib==1.0.1
  • statsmodels==0.13.1
  • scikit-learn==1.0.2
  • dash_bootstrap_components==1.0.2
  • lxml==4.8.0

Files & Directories

app.py The primary file for running the application. This file contains the entirety of source code for the app as well as many comments to explain the application's functionality.
assets Files in this directory are used by the application to format its interface or are used as images in this README file. All files except `RUSH_full_color.jpg` were obtained from another open source Plotly Dash app (https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-clinical-analytics/assets.): `Acumin-BdPro.otf`, `base.css`, `clinical-analytics.css`, - `plotly_logo.png`- `resizing.js`
  • Acumin-BdPro.otf: An OpenType font file used by the application.
  • base.css A cascading style sheets (CSS) used by the application. CSS is a stylesheet language used to describe the presentation of a document written in HTML or XML.
  • clinical-analytics.css An additional css file.
  • plotly_logo.png
  • RUSH_full_color.jpg
  • images_for_README: A directory containing png files used in this README document.
Procfile This extensionless file is necessary for deployment on Heroku, and essentially tells Heroku how to handle web processes using the gunicorn server. The file contains a single line with the following: `web: gunicorn app:server`
requirements.txt This file lists all of the software libraries needed for the app to run. When deploying the app on Heroku, this file is used to set up the server with the libraries necessary for running the application. When used locally, this file tells pip which libraries need to be installed (i.e., `pip install -r requirements.txt`).
runtime.txt This file is used when setting up the app to run on an online Heroku server. It contains a single line: `python-3.8.12, indicating the version of python to use.

Developer

Kenneth J. Locey, PhD. Senior Clinical Data Scientist. Center for Quality, Safety & Value Analytics. Rush University Medical Center.

cms-stars's People

Contributors

klocey avatar

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.