Giter Club home page Giter Club logo

som-qualtrics-survey-responses's Introduction

UCSF SOM Qualtrics Survey Responses Downloader

About

The UCSF SOM Qualtrics Survey Responses Downloader provides the UCSF School of Medicine with the most up-to-date Qualtrics Survey responses by downloading updated versions of the CSV-formatted files every 15 minutes to an S3 content "bucket" at AWS and making them available for immediate download to authorized UCSF SOM personnel with the proper credentials.

Downloading the files

The procedure for downloading updated surveys is for authorized UCSF School of Medicine personnel only, and is documented in the Office of Medical Education's space on the UC's Wiki at https://wiki.library.ucsf.edu/display/OME/UCSF+SOM+Qualtrics+Survey+CSV+File+Downloads. Please refer to that for the process of downloading the survey response CSV data.

Updating the file index

Every so often, a new UCSF SOM survey will be created in Qualtrics, and this downloader will need to be made aware of the change by being updated with the ID or IDs of any new surveys added. Any new survey data will NOT be made available to SOM for review until this step is performed for EACH new survey.

The process for updating the downloader with new survey ID's entails updating the serverless.yml file in this repository, and the easiest way to update it is to do it right here on GitHub, in the user interface. The process for doing so is as-follows:

  1. Make sure you have a Github user account. If you do not already have one, it is free, and you can register for one here.

  2. Visit/view the code page for serverless.yml by going to https://github.com/ucsf-ckm/som-qualtrics-survey-responses/blob/master/serverless.yml.

  3. Look at the code for serverless.yml, specifically lines 34-82, under the functions: section of the code, and you will see an entry for each storeSurveys like so:

  functions:
    storeSurveys:
      timeout: 30
      handler: handler.storeSurveys
      events:
        - schedule: rate(15 minutes)
      environment:
        SURVEY_IDS: > 
          SV_exInb81a5EtSLDT,
          SV_9yOpJ5At8FaM39H,
          SV_bpXobewZ0831pfT,
          SV_8CB06g8tnLSSt9P,
          SV_bK7vU2Zk1WzBOBf,

With each survey listed on it's own line with a comma at the end.

You will need to create/add and new survey ID to this file at the end of this section of code. For example, if you are adding a survey with the SURVEY_ID of SV_1234567890, you would add it to the end of the list like so:

  SURVEY_IDS: > 
    SV_exInb81a5EtSLDT,
    SV_9yOpJ5At8FaM39H,
    SV_bpXobewZ0831pfT,
    SV_8CB06g8tnLSSt9P,
    SV_bK7vU2Zk1WzBOBf,
    SV_1234567890,

Note the new SURVEY_ID: value reflects the new one we were looking to add. You should also try to ensure that the formatting of your code (spacing, indentations, etc), match the style of the survey entries above it - the formatting is VERY IMPORTANT in a yaml file.

Making code changes in GitHub directly

If you are not already intimately familiar with using Git, the best place to make the changes to this code is right here in the GitHub User Interface itself. To do so, you will need to have a GitHub account and be logged-into Github, then:

  1. Find and click on the Edit this File pencil icon in the header section of the code. You should also see some buttons for Raw,Blame,History in this area, as well as a screen and a trashcan icon.

  2. When you click on the pencil to edit the file, a code editor will open up.

  3. Find the functions: section of the code, containing all the SURVEY_IDS entries as described above.

  4. Scroll to the very bottom of this section of code, and find the last/latest SV_XXXXX value.

  5. Add your new SV_XXXX value on the next line followed by a comma (maintaining the same indentation) like this:

  functions:
    storeSurveys:
      timeout: 30
      handler: handler.storeSurveys
      events:
        - schedule: rate(15 minutes)
      environment:
        SURVEY_IDS: > 
          SV_exInb81a5EtSLDT,
          SV_9yOpJ5At8FaM39H,
          SV_bpXobewZ0831pfT,
          SV_8CB06g8tnLSSt9P,
          SV_XXXXXX,
  1. Once you have made the necessary code changes, move on to the form section of Github, at the bottom of the screen, that reads "Commit Changes".

  2. In the Commit changes field, add a short but descriptive message of what you changed (ie, Added Survey ID of SV_1234567890). You can add an extended description below that if you like, but it is optional.

  3. When you have entered a commit message, make sure the radio button for Create a new branch for this commit and start a pull request is selected (it should be the only allowed option), and that you give a name to the commit (the default name should be fine, as it doesn't really matter) and then click Commit Changes

  4. That last step will initiate a "Pull Request" and a member of the Ilios team will review and merge your code changes into the codebase accordingly.

Once merged, the new survey data, belonging to the new survey with the specified SURVEY_ID will start showing up in the S3 Bucket as expected.

That's it! If you have any questions about this process, please contact [email protected] right away!

som-qualtrics-survey-responses's People

Contributors

dependabot[bot] avatar jrjohnson avatar salongam avatar stopfstedt avatar thecoolestguy avatar trott avatar zorgbort 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.