Skip to content

Commit cbdf33c

Browse files
authored
Merge pull request #143 from mdsol/feature/car_mode_update
Feature/car mode update
2 parents 192d333 + 630fc74 commit cbdf33c

File tree

15 files changed

+418
-235
lines changed

15 files changed

+418
-235
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2121

2222
steps:
23-
- uses: "actions/checkout@v2"
24-
- uses: "actions/setup-python@v2"
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-python@v4
2525
with:
2626
python-version: "${{ matrix.python-version }}"
2727
# Cache the installation of Poetry itself, e.g. the next step. This prevents the workflow
@@ -30,7 +30,7 @@ jobs:
3030
# manually if/when you want to upgrade Poetry, or if something goes wrong. This could be
3131
# mildly cleaner by using an environment variable, but I don't really care.
3232
- name: cache poetry install
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
with:
3535
path: ~/.local
3636
key: poetry-1.4.2-0
@@ -53,7 +53,7 @@ jobs:
5353
# them in the cache key. I'm not, so it can be simple and just depend on the poetry.lock.
5454
- name: cache deps
5555
id: cache-deps
56-
uses: actions/cache@v2
56+
uses: actions/cache@v3
5757
with:
5858
path: .venv
5959
key: pydeps-${{ hashFiles('**/poetry.lock') }}

.readthedocs.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ version: 2
33

44
# Set the version of Python and other tools you might need
55
build:
6-
os: ubuntu-20.04
7-
tools: {python: "3.10"}
6+
os: ubuntu-22.04
7+
tools:
8+
python: "3.10"
89
jobs:
9-
pre_create_environment:
10-
- asdf plugin add poetry
11-
- asdf install poetry latest
12-
- asdf global poetry latest
10+
post_create_environment:
11+
- pip install poetry
1312
- poetry config virtualenvs.create false
1413
post_install:
1514
- poetry install --with docs
1615

17-
# Build documentation in the docs/ directory with Sphinx
16+
17+
# Build documentation using Sphinx
1818
sphinx:
1919
configuration: docs/source/conf.py
20-
fail_on_warning: true
20+
fail_on_warning: true

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
# You can set these variables from the command line.
55
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
6+
SPHINXBUILD = poetry run sphinx-build
77
PAPER =
88
BUILDDIR = build
99

1010
# User-friendly check for sphinx-build
11-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13-
endif
11+
#ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12+
#$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13+
#endif
1414

1515
# Internal variables.
1616
PAPEROPT_a4 = -D latex_paper_size=a4

docs/source/biostats_gateway.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Many of the Biostats gateway requests pull data from the Rave Clinical Views. Th
1010
Clinical Views are active in Rave.
1111

1212
Read more about Biostats Gateway in the
13-
`Rave Web Services documentation <http://rws-webhelp.s3.amazonaws.com/WebHelp_ENG/solutions/01_biostat_adapter.html>`_
13+
`Rave Web Services documentation <https://learn.medidata.com/en-US/bundle/rave-web-services/page/biostat_adapter.html>`_
1414

1515

1616
.. _cv_metadata_request:

docs/source/classes_builders.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ Clinical Data Builders provide an API for creating ODM data elements
2121
:exclude-members: build
2222

2323

24-
Medidata Extensions to ODM (MODM) Builders
25-
==========================================
26-
MODM Builders provide an API for creating ODM data elements meeting the Medidata Rave specific extensions to the MODM specification
27-
28-
.. automodule:: rwslib.builders.clinicaldata
29-
:members:
30-
:exclude-members: build
31-
32-
3324
Administrative Data Builders
3425
============================
3526
Admin Data Builders provide an API for creating ODM AdminData elements

docs/source/conf.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,14 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys
15-
import os
16-
1714
# If extensions (or modules to document with autodoc) are in another directory,
1815
# add these directories to sys.path here. If the directory is relative to the
1916
# documentation root, use os.path.abspath to make it absolute, like shown here.
2017

21-
parentdir = os.path.split(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))[0]
22-
sys.path.insert(0,str(parentdir))
18+
from sphinx_pyproject import SphinxConfig
2319

24-
import pkg_resources
25-
__version__ = pkg_resources.get_distribution('rwslib').version
20+
config = SphinxConfig("../../pyproject.toml", globalns=globals(), style="poetry")
2621

27-
from rwslib import __copyright__
2822

2923
# -- General configuration -----------------------------------------------------
3024

@@ -48,17 +42,11 @@
4842
master_doc = 'index'
4943

5044
# General information about the project.
51-
project = u'rwslib'
52-
copyright = __copyright__
5345

5446
# The version info for the project you're documenting, acts as replacement for
5547
# |version| and |release|, also used in various other places throughout the
5648
# built documents.
5749

58-
59-
60-
# The short X.Y version.
61-
version = __version__
6250
# The full version, including alpha/beta/rc tags.
6351
release = version
6452

docs/source/odm_adapter.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The ODM Adapter module provides Request implementations for the Rave Web Service
1212
* Signature Definitions Dataset
1313

1414
Read more about ODM Adapter in the
15-
`Rave Web Services documentation <http://rws-webhelp.s3.amazonaws.com/WebHelp_ENG/solutions/clinical_data_audits/index.html#odm-adapter>`_
15+
`Rave Web Services documentation <https://learn.medidata.com/en-US/bundle/rave-web-services/page/odm_operational_data_model_adapter.html>`_
1616

1717

1818
.. _oa_auditrecords_request:
@@ -40,6 +40,12 @@ Options:
4040
+--------------------------------+-----------------------------------------------------------------------------------+
4141
| per_page=100 | How many audits to return per request. Default is 100. |
4242
+--------------------------------+-----------------------------------------------------------------------------------+
43+
| mode=[default,enhanced,all] | Define what AuditSubcategories to return |
44+
+--------------------------------+-----------------------------------------------------------------------------------+
45+
46+
*NOTE*
47+
* The `mode` parameter is only available in Rave EDC 2022.3.0 and later.
48+
* See `this link <https://learn.medidata.com/en-US/bundle/rave-web-services/page/retrieve_clinical_data_with_the_clinical_audit_records_dataset.html>`_ for more information on the `mode` parameter.
4349

4450
Example::
4551

0 commit comments

Comments
 (0)