A mock up of the interface with Protocol Builder
Go to file
jpitts-uva f5a89340f3
Merge pull request #95 from sartography/jpitts-uva-patch-1
Changed radiation material document name
2023-11-10 11:04:13 -05:00
.github/workflows telling github actions to use poetry 1.2 2022-09-23 10:22:23 -04:00
config Set DB_NAME back to `pb` 2022-09-19 11:15:59 -04:00
migrations Change "Open to enrollment" status to "Open to Enrollment" 2022-09-19 11:16:37 -04:00
pb Changed radiation material document name 2023-11-10 11:01:26 -05:00
templates fixing links in prod. 2022-06-22 12:39:16 -04:00
tests Change "Open to enrollment" status to "Open to Enrollment" 2022-09-19 11:16:37 -04:00
.gitignore ignore pyrightconfig.json 2022-07-01 18:03:42 -04:00
.sonarcloud.properties Adds sonarcloud and coverage reporting. Removes duplicate config file. 2020-06-16 14:45:41 -04:00
.tool-versions python 3.9 2022-05-18 09:43:20 -04:00
Dockerfile Trying to fix the docker container. 2022-06-20 17:25:45 -04:00
README.md upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
docker_run.sh Maybe fixing docker_run. 2022-06-20 17:39:37 -04:00
example_data.py Tests for the new endpoint 2022-06-20 09:19:06 -04:00
poetry.lock telling github actions to use poetry 1.2 2022-09-23 10:22:23 -04:00
pyproject.toml telling github actions to use poetry 1.2 2022-09-23 10:22:23 -04:00
run.py Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
setup.cfg Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
setup.py Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
sonar-project.properties upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
wait-for-it.sh Converting to use Postgres rather than SQLLite for database so that data might persist between bounces. 2020-03-23 13:57:19 -04:00
wsgi.py Fixes root path bug 2020-05-25 11:41:39 -04:00

README.md

sartography/protocol-builder-mock

UVA IRB Protocol Builder Mock

Requirements

  • Python 3
  • pip (for python 3)
  • poetry (just run pip install poetry)

Database Setup

The database for the CR Connect project will create an empty database for protocol builder as well. We did this because you would only by running this mock in order to support the app. Would be good to have this set up and run as a part of that docker-compose rather than having to spin this up seperately.

With the database running, be sure to execute

flask db upgrade

to set up the database structure.

Starting up Protocol Builder

pipenv run python run.py

This will start a webserver on localhost at port 5001. To see the api, you can visit http://localhost:5001/pb/ui

Create an example study

Finally, you will need to connect to the protocol builder mock ui in a web browser (see above url) And use this to connect to create a new study. Be sure the study is owned by the person you are logging in to on CR-Connect. For must development environments this will be dhf8r.

Deploying to staging

Builds happen automatically when pushed to the main branch.