Metadata-Version: 2.1
Name: inte-edc
Version: 0.1.74
Summary: "INTE-AFRICA Trial EDC (https://www.isrctn.com/ISRCTN43896688)"
Home-page: https://github.com/clinicedc/inte-edc
Author: Erik van Widenfelt
Author-email: ew2789@gmail.com
License: GPL license, see LICENSE
Keywords: django edc EFFECT EDC,respond africa,clinicedc,clinical trials
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
License-File: AUTHORS

|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

.. code-block:: bash

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


Create and activate a virtual environment

.. code-block:: bash

  conda create -n edc python=3.9
  conda activate edc


Clone the main repo and checkout master

.. code-block:: bash

  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

.. code-block:: bash

  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``.

.. code-block:: bash

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


Continue with the installation

.. code-block:: bash

  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

.. code-block:: bash

  $ redis-cli ping
  PONG


Create a user and start up `runserver`

.. code-block:: bash

  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

.. |pypi| image:: https://img.shields.io/pypi/v/inte-edc.svg
    :target: https://pypi.python.org/pypi/inte-edc

.. |actions| image:: https://github.com/inte-africa-trial/inte-edc/workflows/build/badge.svg?branch=develop
  :target: https://github.com/inte-africa-trial/inte-edc/actions?query=workflow:build

.. |codecov| image:: https://codecov.io/gh/inte-africa-trial/inte-edc/branch/develop/graph/badge.svg
  :target: https://codecov.io/gh/inte-africa-trial/inte-edc

.. |downloads| image:: https://pepy.tech/badge/inte-edc
   :target: https://pepy.tech/project/inte-edc
