Coder Social home page Coder Social logo

prm-funnel's Introduction

PRM Data Funnel

This is a github pages site used for displaying various meaningful data related to Patient Record Migrations.

The hosted site can be found here.

Adding data for an additional month

Pre-requisites Ensure you have access to the gp2gp-mi index in the NMS Trends instance of Splunk.

Process

  1. Duplicate the previous month's directory from the month directory
  2. Update the title and date and where present timeframe fields in all the markdown files
  3. Update the date range referenced in the text
  4. Update any links to reference the correct month
  5. Create the RR funnel
    1. Import the _splunk/splunk-rr-view-dashboard.xml file into Splunk
    2. Set the date range for the month you wish to produce statistics for.
    3. For the rr-funnel.md file: copy the following data from splunk
      • Registrations: Total from high level registration category
      • Transfers: Total from Transfer category
      • GP2GP : Total from GP2GP category
      • Integrations: GP2GP success and integrated from GP2GP category
    4. Create layers
      1. Update data in items in rr-funnel/gp2gp/gp2gp.md from GP2GP category
      2. Update data in items in rr-funnel/gp2gp/errors/errors.md from GP2GP failures
      3. Update data in items in rr-funnel/gp2gp/errors-pathway/errors-pathways.md from errors by pathway
      4. Update data in items in rr-funnel/gp2gp/pathways/pathways.md from GP2GP category by pathway
      5. Update data in items in rr-funnel/integrations/integrations.md from Filing status
      6. Update data in items in rr-funnel/integrations/filing-by-requestor/filing-by-requestor.md from Filing details by requestor
      7. Update data in items in rr-funnel/registrations/registrations.md from High level registration category
      8. Update data in items in rr-funnel/transfers/transfers.md from Transfer category
  6. Create the SR funnel
    1. Import the _splunk/splunk-sr-view-dashboard.xml file into Splunk
    2. Set the date range for the month you wish to produce statistics for.
    3. For the sr-funnel.md file: copy the following data from splunk
      • Requests Received: requests from Funnel
      • Records Sent: retrieve from Funnel
    4. Create layers
      1. Update data in items in sr-funnel/success-vs-failure/success-vs-failure.md from column totals of Success vs Failure
      2. Update data in items in sr-funnel/success-vs-failure/failure-points/failure-points.md from column totals of Failures
      3. Update data in items in sr-funnel/success-vs-failure/pathways/pathways.md from columns in Success vs Failure
      4. Update data in items in sr-funnel/success-vs-failure/failure-points/failure-pathways/failure-pathways.md from columns in Failures

N.B. the numeric data in the items collection for the "pathways" layers can be generated by exporting the JSON view of the data from Splunk and processing with the script _splunk/convert-splunk-extract-to-data.sh.

How to run the site locally

  • clone the repo
  • cd into the repo root folder
  • install homebrew
  • remove RVM, if you have it installed
    • rvm implode
    • rvm doesn't play nice with rbenv. You could use just rvm instead, but rbenv is cleaner for managing ruby versions.
  • install rbenv ruby version manager
    • brew install rbenv
  • install ruby 2.5.3
    • rbenv install 2.5.3
  • set local ruby version
    • rbenv local 2.5.3
  • install bundler
    • rbenv exec gem install bundler
  • install the gems for the website
    • rbenv exec bundle
  • run the site locally
    • rbenv exec bundle exec jekyll serve
  • browse to locally running site

How to update the site

The site is built with Jekyll, so their site is a great resource for assistance.

How to add data graphs

  • copy one of the existing markdown files in the funnel directory
  • change the metadata accordingly (the content between the ---)
  • the items field takes an array in which each element has a label for the funnel slice and a value that will inform the width of the funnel slice. It takes an optional link key-value pair where the link value maps to a document in the _charts folder. This page will be the one that is linked to by the funnel item at the same array index.
  • confirm that the changes made show up correctly in your local environment and push to the repository to release the change

prm-funnel's People

Contributors

chrisjtaylortw avatar cynthiatw avatar kavi22 avatar kavita-varsani avatar subnova avatar subnova-nhs 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.