Skip to content

Commit 75d1859

Browse files
committed
Merge branch 'release/0.6.0'
2 parents ab101b0 + 0d483ee commit 75d1859

File tree

9 files changed

+623
-145
lines changed

9 files changed

+623
-145
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
All notable changes to the REDCap Deployment project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.6.0] - 2016-08-01
6+
### Changed
7+
- Merge Requirements section from docs/creating_the_test_vm_with_vagrant.rst into README and update text of README (Philip Chase)
8+
9+
### Added
10+
- Add condensed_pdf_report plugin (Philip Chase)
11+
512

613
## [0.5.0] - 2016-06-14
714
### Changed

README.md

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,54 @@ includes a Vagrant VM on which these tools can be developed and tested.
99
This repo also contains the mapping of hooks to specific project id's for the
1010
production and staging instances of REDCap at the CTSI.
1111

12-
1312
## Requirements
1413

1514
A user of these tools will need to download and provide their own REDCap zip file,
1615
downloaded from Vanderbilt. This REDCap .zip should be placed in the root folder.
1716
It should not be renamed.
1817

19-
This VM requires that Vagrant, VirtualBox, the vagrant-hostsupdater plugin and the vagrant-env plugin be installed on the host system.
18+
This VM requires that Vagrant, VirtualBox, the vagrant-hostsupdater plugin and
19+
the vagrant-env plugin be installed on the host system.
20+
21+
22+
### Install Vagrant and Virtual Box
23+
24+
On a Linux machine run these commands in a shell:
25+
26+
sudo apt-get install vagrant
27+
sudo apt-get install virtualbox
28+
29+
On a Mac OSX machine:
30+
31+
- Download and install vagrant from <https://www.vagrantup.com/downloads.html>
32+
- Download and install the latest virtual box from <http://download.virtualbox.org/virtualbox/>
33+
34+
On Mac OSX users using [Homebrew](http://brew.sh/) can install these packages
35+
using the _brew_ command. Run these commands at a shell:
36+
37+
brew install virtualbox
38+
brew install vagrant
39+
2040

21-
See [Creating the Test VM With Vagrant](docs/creating_the_test_vm_with_vagrant.rst) for details on how to meet those requirements.
41+
### Install Vagrant plugins
42+
43+
Vagrant will need a few plugins for this VM. On any platform, run these commands in a shell:
44+
45+
vagrant plugin install vagrant-hostsupdater
46+
vagrant plugin install vagrant-env
47+
48+
Mac OSX users might enjoy the functionality of the vagrant-triggers plugin. CTS-IT used it to open the Chrome browser to the just -deployed REDCap instance. Run this command at a shell to install it.
49+
50+
vagrant plugin install vagrant-triggers
51+
52+
For more details about Vagrant software you can go to [why-vagrant](https://docs.vagrantup.com/v2/why-vagrant/) page.
53+
54+
55+
### Get your REDCap zip file
56+
57+
You must provide a copy of the REDCap software from http ://project-redcap.org/. Save the .zip file with its default name to the root of this repository. This ensures the provisioning script [bootstrap.sh](bootstrap.sh) script can extract the files to the virtual machine path "**/var/www/redcap**".
58+
59+
If you put multiple redcap\*.zip files in the vagrant folder, the provisioning script will use the one with the highest version number.
2260

2361

2462
## Configure the Development Environment
@@ -29,6 +67,7 @@ use. Minimally, you will need to set _smtp\_smarthost_ the dns name of a mail
2967
server your development host can use to deliver mail. This will allow you to
3068
better test features that send email.
3169

70+
3271
## Using the Development Environment
3372

3473
With the above requirements and configuration completed, start the VM with the command
@@ -38,33 +77,32 @@ With the above requirements and configuration completed, start the VM with the c
3877
After about two minutes, the VM should be accessible at [http://redcap.dev/redcap/](http://redcap.dev/redcap/) and at [https://redcap.dev/redcap/](https://redcap.dev/redcap/) (or whatever URL _URL\_OF\_DEPLOYED\_APP_ is set to in _.env_)
3978

4079

41-
## Hook and Plugin deployment
80+
## Hook and Plugin Deployment
4281

4382
CTSI REDCap Hooks and Plugins are deployed using the script
4483
deploy_extensions.sh in this repo. This repo also contains the data files
4584
need to configure hook deployment for the CTSI REDCap instances. See [Hook
4685
Deployment ](README-hooks.md) for usage instructions and details.
4786

4887

49-
## REDCap upgrade
88+
## REDCap Upgrade
5089

51-
Upgrade instructions currently live in a Wiki article found at
52-
[CTS-IT Wiki Article on REDCap Upgrades](https://ctsit-forge.ctsi.ufl.edu/projects/redcap/wiki/REDCap_Upgrade_Instructions)
90+
At the moment, CTS-IT does not have a fully scripted upgrade or procedures
91+
that can be be shared publicly. The upgrade procedures used live in a private
92+
Wiki article found at [CTS-IT Wiki Article on REDCap Upgrades](https://ctsit-
93+
forge.ctsi.ufl.edu/projects/redcap/wiki/REDCap_Upgrade_Instructions)
5394

5495
ToDo: Move wiki article to a markdown doc in this repo.
5596
ToDo: Convert steps of wiki article to shell script.
5697

5798

58-
## REDCap installation
99+
## REDCap Installation
59100

60101
CTS-IT does not currently have a bare-metal installation procedure. That said, the
61102
vagrant files presented in this repo contain many of the required steps in
62-
such a deployment process. Other steps can be found in the above upgrade
63-
instructions.
103+
such a deployment process.
64104

65-
ToDo: Make vagrant provisioning scripts more like a production deployment, but
66-
don't be too wed to the prod and stage instance we have today. Make the
67-
deployment we _want_, not the deployment we have.
105+
ToDo: Make vagrant provisioning scripts more like a production deployment.
68106

69107

70108
## Contributions

docs/creating_the_test_vm_with_vagrant.rst

Lines changed: 0 additions & 132 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Condensed PDF Report (aka PDF Modified Report)
2+
3+
* Source: https://stanfordmedicine.app.box.com/s/eeej6fwiiv3j8t2c473g/1/6402668221/52116944057/1
4+
* Authors: Andy Martin, Stanford University; Vanderbilt University staff
5+
* Last updated: 2016-07-21
6+
* Version: 2016-02-04
7+
* License: REDCap
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Condensed PDF Report
2+
3+
The Condensed PDF Report plugin is a REDCap plugin that creates a condensed
4+
version of the report REDCap creates when selecting _This data entry form with
5+
saved data_ from the _Download PDF of instrument(s)_ menu while viewing a
6+
record. The condensed report only prints fields that have saved data. This
7+
makes for much shorter reports when print the records fro reserahc subjects
8+
who have sparse data.
9+
10+
The software for this plugin was written by Andy Martin of Stanford University
11+
and released under the name _PDF Modified Report_.
12+
13+
14+
## Basic Usage
15+
16+
To use the Condensed PDF Report, add a project bookmark titled "Condensed PDF
17+
Report" pointing at the installed plugin. At the UF CTSI, this plugin is
18+
located at [https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php]
19+
(https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php) Check the
20+
_Append record into to URL_ and _Append project info to URL_ boxes.
21+
22+
![Making a project bookmark](making_a_project_bookmark.png)
23+
24+
This will create a Project Bookmark in the left hand column named "Condensed
25+
PDF Report". To use this bookmark, first access a form for a subject, then
26+
click the bookmark. This will create and download a PDF of the form you are
27+
viewing at that moment. The PDF will show only those fields that have data
28+
elements.
29+
30+
31+
## Advanced Usage
32+
33+
You can supply a few optional parameters to specify the form(s) you want to
34+
print and how you want to print them.
35+
36+
If you want to include a field even if it is blank, you should append a comma-
37+
separated list of fields with the _always\_include_ parameter.
38+
39+
https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php?always_include=consent_date
40+
41+
If you want to exclude a field no matter what, you should append a comma-
42+
separated list of fields with the _always\_exclude_ parameter
43+
44+
https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php?always_exclude=mrn
45+
46+
You can print multiple forms using the _forms_ parameter. To print all forms,
47+
set _forms_ to _all_. To specify multiple forms, specify them in a comma-
48+
separated list.
49+
50+
https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php?forms=all
51+
https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php?forms=demographics,cbc
52+
53+
Omitting the list of form names or omitting the form parameter
54+
entirely results in only the current form being printed. That's the behavior describe above in _Basic Usage_.
55+
56+
Parameters can also be combined:
57+
58+
https://redcap.ctsi.ufl.edu/redcap/plugins/condensed_pdf_report/index.php
59+
?forms=demographics,cbc
60+
&always_exclude=mrn
61+
&always_include=consent_date
62+
63+
When making the bookmark, the _Link Label_ field should reflect the contents of the
64+
report generated.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
export MYTARGETDIR=$1
5+
6+
# determine the directory where this script resides
7+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
8+
9+
# copy files to the correct target locations
10+
mkdir -p $MYTARGETDIR
11+
cp $DIR/index.php $MYTARGETDIR
12+
cp $DIR/ORIGIN.md $MYTARGETDIR
13+
14+
echo "$DIR: Access the PDF Modified Report plugin at /redcap/plugins/condensed_pdf_report/"

0 commit comments

Comments
 (0)