Skip to main content

"INTE-AFRICA Trial EDC (https://www.isrctn.com/ISRCTN43896688)"

Project description

pypi actions codecov downloads

inte-edc

Integrating HIV, Diabetes and Hypertension Services in Africa: A Cluster - Randomised Trial in Tanzania and Uganda: INTE Africa Trial

Liverpool School of Tropical Medicine

https://www.isrctn.com/ISRCTN43896688

See also https://github.com/clinicedc/edc

Installation

To setup and run a test server locally

You’ll need mysql and Redis. Create the database

mysql -Bse 'create database inte character set utf8;'

Create and activate a virtual environment

conda create -n edc python=3.9
conda activate edc

Clone the main repo and checkout master

mkdir ~/app
cd ~/app
git clone https://github.com/inte-africa-trial/inte-edc.git
cd ~/app/inte-edc
git checkout master

Copy the test environment file

cd ~/app/inte-edc
git checkout master
cp .env-tests .env

Edit the environment file (.env) to include your mysql password in the DATABASE_URL.

# look for and update this line
DATABASE_URL=mysql://user:password@127.0.0.1:3306/inte

Continue with the installation

cd ~/app/inte-edc
git checkout master
pip install -U -r requirements.txt
python manage.py migrate
python manage.py import_randomization_list
python manage.py import_holidays

Ensure Redis is running

$ redis-cli ping
PONG

Create a user and start up runserver

cd ~/app/inte-edc
git checkout master
python manage.py createsuperuser
python manage.py runserver

Login:

localhost:8000

Once logged in, go to you user account and update your group memberships. As a power user add yourself to the following

  • ACCOUNT_MANAGER

  • ADMINISTRATION

  • AE

  • AE_REVIEW

  • CLINIC

  • DATA_MANAGER

  • DATA_QUERY

  • EVERYONE

  • EXPORT

  • LAB

  • LAB_VIEW

  • PHARMACY

  • PII

  • RANDO

  • REVIEW

  • SCREENING

  • TMG

  • UNBLINDING_REQUESTORS

  • UNBLINDING_REVIEWERS

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inte-edc-0.1.74.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

inte_edc-0.1.74-py3-none-any.whl (511.5 kB view details)

Uploaded Python 3

File details

Details for the file inte-edc-0.1.74.tar.gz.

File metadata

  • Download URL: inte-edc-0.1.74.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for inte-edc-0.1.74.tar.gz
Algorithm Hash digest
SHA256 1142d7c18be0c5967fbd4c9a4321a818d2b045a1897d092eac09dd9a1bf28d3d
MD5 0e2a02f0c3c31a76640c996c40370bef
BLAKE2b-256 6b0e2ef3431681d50556a35f9c36b15c174a08dda43f0fc55a928bc81d96af72

See more details on using hashes here.

File details

Details for the file inte_edc-0.1.74-py3-none-any.whl.

File metadata

  • Download URL: inte_edc-0.1.74-py3-none-any.whl
  • Upload date:
  • Size: 511.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for inte_edc-0.1.74-py3-none-any.whl
Algorithm Hash digest
SHA256 a3b48602d8f944c7133d86fe4985a886d1849e722b3c1db7f572ec824df43372
MD5 5dfd598c5e6f1c0a51f029fe64d9a9bd
BLAKE2b-256 a6ddcca0a8cc5ba000116ceeedde7ff7be83ec1d22600df7b01474dc41c92946

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page