carrot-transform 0.3.2__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of carrot-transform might be problematic. Click here for more details.
- carrot_transform-0.3.3/PKG-INFO +48 -0
- carrot_transform-0.3.3/README.md +30 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/config/omop.json +6 -0
- carrot_transform-0.3.3/pyproject.toml +20 -0
- carrot_transform-0.3.2/.github/workflows/pypi.publish.yml +0 -55
- carrot_transform-0.3.2/.gitignore +0 -12
- carrot_transform-0.3.2/MANIFEST.in +0 -2
- carrot_transform-0.3.2/PKG-INFO +0 -28
- carrot_transform-0.3.2/README.md +0 -16
- carrot_transform-0.3.2/carrot_transform.egg-info/PKG-INFO +0 -28
- carrot_transform-0.3.2/carrot_transform.egg-info/SOURCES.txt +0 -25
- carrot_transform-0.3.2/carrot_transform.egg-info/dependency_links.txt +0 -1
- carrot_transform-0.3.2/carrot_transform.egg-info/entry_points.txt +0 -2
- carrot_transform-0.3.2/carrot_transform.egg-info/top_level.txt +0 -1
- carrot_transform-0.3.2/carrot_transform.py +0 -5
- carrot_transform-0.3.2/pyproject.toml +0 -20
- carrot_transform-0.3.2/setup.cfg +0 -4
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/LICENSE +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/__init__.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/_version.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/cli/__init__.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/cli/command.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/cli/subcommands/__init__.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/cli/subcommands/run.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/config/OMOPCDM_postgresql_5.3_ddl.sql +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/tools/__init__.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/tools/file_helpers.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/tools/mappingrules.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/tools/metrics.py +0 -0
- {carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/tools/omopcdm.py +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: carrot_transform
|
|
3
|
+
Version: 0.3.3
|
|
4
|
+
Summary:
|
|
5
|
+
Author: anwarfg
|
|
6
|
+
Author-email: 913028+anwarfg@users.noreply.github.com
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Requires-Dist: click (>=8.1.7,<9.0.0)
|
|
14
|
+
Requires-Dist: jinja2 (>=3.1.4,<4.0.0)
|
|
15
|
+
Requires-Dist: pandas (>=2.2.3,<3.0.0)
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<a href="https://carrot.ac.uk/" target="_blank">
|
|
20
|
+
<picture>
|
|
21
|
+
<source media="(prefers-color-scheme: dark)" srcset="/images/logo-dark.png">
|
|
22
|
+
<img alt="Carrot Logo" src="/images/logo-primary.png" width="280"/>
|
|
23
|
+
</picture>
|
|
24
|
+
</a>
|
|
25
|
+
</p>
|
|
26
|
+
<div align="center">
|
|
27
|
+
<strong>
|
|
28
|
+
<h2>Streamlined Data Mapping to OMOP</h2>
|
|
29
|
+
<a href="https://carrot.ac.uk/">Carrot Tranform</a> executes the conversion of the data to the OMOP CDM.<br />
|
|
30
|
+
</strong>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
TODO:
|
|
34
|
+
|
|
35
|
+
- Document carrot-transform
|
|
36
|
+
- Add more comments in-code
|
|
37
|
+
- Handle capture of ddl and json config via the command-line as optional args
|
|
38
|
+
|
|
39
|
+
Reduction in complexity over the original CaRROT-CDM version for the Transform part of _ETL_ - In practice _Extract_ is always
|
|
40
|
+
performed by Data Partners, _Load_ by database bulk-load software.
|
|
41
|
+
|
|
42
|
+
Statistics
|
|
43
|
+
|
|
44
|
+
External libraries imported (approximate)
|
|
45
|
+
|
|
46
|
+
carrot-cdm 61
|
|
47
|
+
carrot-transform 12
|
|
48
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://carrot.ac.uk/" target="_blank">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="/images/logo-dark.png">
|
|
5
|
+
<img alt="Carrot Logo" src="/images/logo-primary.png" width="280"/>
|
|
6
|
+
</picture>
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
9
|
+
<div align="center">
|
|
10
|
+
<strong>
|
|
11
|
+
<h2>Streamlined Data Mapping to OMOP</h2>
|
|
12
|
+
<a href="https://carrot.ac.uk/">Carrot Tranform</a> executes the conversion of the data to the OMOP CDM.<br />
|
|
13
|
+
</strong>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
TODO:
|
|
17
|
+
|
|
18
|
+
- Document carrot-transform
|
|
19
|
+
- Add more comments in-code
|
|
20
|
+
- Handle capture of ddl and json config via the command-line as optional args
|
|
21
|
+
|
|
22
|
+
Reduction in complexity over the original CaRROT-CDM version for the Transform part of _ETL_ - In practice _Extract_ is always
|
|
23
|
+
performed by Data Partners, _Load_ by database bulk-load software.
|
|
24
|
+
|
|
25
|
+
Statistics
|
|
26
|
+
|
|
27
|
+
External libraries imported (approximate)
|
|
28
|
+
|
|
29
|
+
carrot-cdm 61
|
|
30
|
+
carrot-transform 12
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"visit_occurrence": {
|
|
27
27
|
"visit_start_datetime": "visit_start_date",
|
|
28
28
|
"visit_end_datetime": "visit_end_date"
|
|
29
|
+
},
|
|
30
|
+
"device_exposure": {
|
|
31
|
+
"device_exposure_start_datetime": "device_exposure_start_date",
|
|
32
|
+
"device_exposure_end_datetime": "device_exposure_end_date"
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
"date_field_components": {
|
|
@@ -46,6 +50,7 @@
|
|
|
46
50
|
"person": "person_id",
|
|
47
51
|
"procedure_occurrence": "person_id",
|
|
48
52
|
"specimen": "person_id",
|
|
53
|
+
"device_exposure": "person_id",
|
|
49
54
|
"visit_occurrence": "person_id"
|
|
50
55
|
},
|
|
51
56
|
"auto_number_field": {
|
|
@@ -56,6 +61,7 @@
|
|
|
56
61
|
"observation": "observation_id",
|
|
57
62
|
"procedure_occurrence": "procedure_occurrence_id",
|
|
58
63
|
"specimen": "specimen_id",
|
|
64
|
+
"device_exposure": "device_exposure_id",
|
|
59
65
|
"visit_occurrence": "visit_occurrence_id"
|
|
60
66
|
}
|
|
61
67
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "carrot_transform"
|
|
3
|
+
version = "0.3.3"
|
|
4
|
+
description = ""
|
|
5
|
+
authors = ["anwarfg <913028+anwarfg@users.noreply.github.com>"]
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
packages = [
|
|
8
|
+
{ include = "carrottransform" }
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
[tool.poetry.dependencies]
|
|
12
|
+
python = "^3.10"
|
|
13
|
+
click = "^8.1.7"
|
|
14
|
+
pandas = "^2.2.3"
|
|
15
|
+
jinja2 = "^3.1.4"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
[build-system]
|
|
19
|
+
requires = ["poetry-core"]
|
|
20
|
+
build-backend = "poetry.core.masonry.api"
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
-
|
|
4
|
-
name: Upload Python Package
|
|
5
|
-
|
|
6
|
-
# on:
|
|
7
|
-
# release:
|
|
8
|
-
# types: [published]
|
|
9
|
-
on: push
|
|
10
|
-
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
build:
|
|
16
|
-
name: Build distribution
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- uses: actions/checkout@v4
|
|
21
|
-
- name: Set up Python
|
|
22
|
-
uses: actions/setup-python@v3
|
|
23
|
-
with:
|
|
24
|
-
python-version: '3.x'
|
|
25
|
-
- name: Install dependencies
|
|
26
|
-
run: |
|
|
27
|
-
python -m pip install --upgrade pip
|
|
28
|
-
pip install build
|
|
29
|
-
- name: Build package
|
|
30
|
-
run: python -m build
|
|
31
|
-
- name: Store the distribution packages
|
|
32
|
-
uses: actions/upload-artifact@v4
|
|
33
|
-
with:
|
|
34
|
-
name: python-package-distributions
|
|
35
|
-
path: dist/
|
|
36
|
-
|
|
37
|
-
publish-to-pypi:
|
|
38
|
-
name: Publish Python distribution to PyPI
|
|
39
|
-
needs:
|
|
40
|
-
- build
|
|
41
|
-
runs-on: ubuntu-latest
|
|
42
|
-
environment:
|
|
43
|
-
name: pypi
|
|
44
|
-
url: https://pypi.org/p/carrot-transform
|
|
45
|
-
permissions:
|
|
46
|
-
id-token: write
|
|
47
|
-
|
|
48
|
-
steps:
|
|
49
|
-
- name: Download all the dists
|
|
50
|
-
uses: actions/download-artifact@v4
|
|
51
|
-
with:
|
|
52
|
-
name: python-package-distributions
|
|
53
|
-
path: dist/
|
|
54
|
-
- name: Publish distribution 📦 to PyPI
|
|
55
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
carrot_transform-0.3.2/PKG-INFO
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: carrot-transform
|
|
3
|
-
Version: 0.3.2
|
|
4
|
-
Summary: Carrot simple transformer, input rules and data csv's, output OMOP
|
|
5
|
-
Author-email: PD Appleby <pdappleby@gmail.com>
|
|
6
|
-
Classifier: Programming Language :: Python :: 3
|
|
7
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
-
Classifier: Operating System :: OS Independent
|
|
9
|
-
Requires-Python: >=3.9
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE
|
|
12
|
-
|
|
13
|
-
# carrot-transform
|
|
14
|
-
|
|
15
|
-
TODO:
|
|
16
|
-
* Document carrot-transform
|
|
17
|
-
* Add more comments in-code
|
|
18
|
-
* Handle capture of ddl and json config via the command-line as optional args
|
|
19
|
-
|
|
20
|
-
Reduction in complexity over the original CaRROT-CDM version for the Transform part of *ETL* - In practice *Extract* is always
|
|
21
|
-
performed by Data Partners, *Load* by database bulk-load software.
|
|
22
|
-
|
|
23
|
-
Statistics
|
|
24
|
-
|
|
25
|
-
External libraries imported (approximate)
|
|
26
|
-
|
|
27
|
-
carrot-cdm 61
|
|
28
|
-
carrot-transform 12
|
carrot_transform-0.3.2/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# carrot-transform
|
|
2
|
-
|
|
3
|
-
TODO:
|
|
4
|
-
* Document carrot-transform
|
|
5
|
-
* Add more comments in-code
|
|
6
|
-
* Handle capture of ddl and json config via the command-line as optional args
|
|
7
|
-
|
|
8
|
-
Reduction in complexity over the original CaRROT-CDM version for the Transform part of *ETL* - In practice *Extract* is always
|
|
9
|
-
performed by Data Partners, *Load* by database bulk-load software.
|
|
10
|
-
|
|
11
|
-
Statistics
|
|
12
|
-
|
|
13
|
-
External libraries imported (approximate)
|
|
14
|
-
|
|
15
|
-
carrot-cdm 61
|
|
16
|
-
carrot-transform 12
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: carrot-transform
|
|
3
|
-
Version: 0.3.2
|
|
4
|
-
Summary: Carrot simple transformer, input rules and data csv's, output OMOP
|
|
5
|
-
Author-email: PD Appleby <pdappleby@gmail.com>
|
|
6
|
-
Classifier: Programming Language :: Python :: 3
|
|
7
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
-
Classifier: Operating System :: OS Independent
|
|
9
|
-
Requires-Python: >=3.9
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE
|
|
12
|
-
|
|
13
|
-
# carrot-transform
|
|
14
|
-
|
|
15
|
-
TODO:
|
|
16
|
-
* Document carrot-transform
|
|
17
|
-
* Add more comments in-code
|
|
18
|
-
* Handle capture of ddl and json config via the command-line as optional args
|
|
19
|
-
|
|
20
|
-
Reduction in complexity over the original CaRROT-CDM version for the Transform part of *ETL* - In practice *Extract* is always
|
|
21
|
-
performed by Data Partners, *Load* by database bulk-load software.
|
|
22
|
-
|
|
23
|
-
Statistics
|
|
24
|
-
|
|
25
|
-
External libraries imported (approximate)
|
|
26
|
-
|
|
27
|
-
carrot-cdm 61
|
|
28
|
-
carrot-transform 12
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
LICENSE
|
|
3
|
-
MANIFEST.in
|
|
4
|
-
README.md
|
|
5
|
-
carrot_transform.py
|
|
6
|
-
pyproject.toml
|
|
7
|
-
.github/workflows/pypi.publish.yml
|
|
8
|
-
carrot_transform.egg-info/PKG-INFO
|
|
9
|
-
carrot_transform.egg-info/SOURCES.txt
|
|
10
|
-
carrot_transform.egg-info/dependency_links.txt
|
|
11
|
-
carrot_transform.egg-info/entry_points.txt
|
|
12
|
-
carrot_transform.egg-info/top_level.txt
|
|
13
|
-
carrottransform/__init__.py
|
|
14
|
-
carrottransform/_version.py
|
|
15
|
-
carrottransform/cli/__init__.py
|
|
16
|
-
carrottransform/cli/command.py
|
|
17
|
-
carrottransform/cli/subcommands/__init__.py
|
|
18
|
-
carrottransform/cli/subcommands/run.py
|
|
19
|
-
carrottransform/config/OMOPCDM_postgresql_5.3_ddl.sql
|
|
20
|
-
carrottransform/config/omop.json
|
|
21
|
-
carrottransform/tools/__init__.py
|
|
22
|
-
carrottransform/tools/file_helpers.py
|
|
23
|
-
carrottransform/tools/mappingrules.py
|
|
24
|
-
carrottransform/tools/metrics.py
|
|
25
|
-
carrottransform/tools/omopcdm.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
carrottransform
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools", "setuptools-scm"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "carrot-transform"
|
|
7
|
-
version = "0.3.2"
|
|
8
|
-
authors = [
|
|
9
|
-
{ name="PD Appleby", email="pdappleby@gmail.com" },
|
|
10
|
-
]
|
|
11
|
-
description = "Carrot simple transformer, input rules and data csv's, output OMOP"
|
|
12
|
-
readme = "README.md"
|
|
13
|
-
requires-python = ">=3.9"
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Programming Language :: Python :: 3",
|
|
16
|
-
"License :: OSI Approved :: MIT License",
|
|
17
|
-
"Operating System :: OS Independent",
|
|
18
|
-
]
|
|
19
|
-
[project.scripts]
|
|
20
|
-
carrot-transform="carrottransform.cli.command:transform"
|
carrot_transform-0.3.2/setup.cfg
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{carrot_transform-0.3.2 → carrot_transform-0.3.3}/carrottransform/cli/subcommands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|