carrot-transform 0.3.2__py3-none-any.whl → 0.3.3__py3-none-any.whl
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.
- carrot_transform-0.3.3.dist-info/METADATA +48 -0
- {carrot_transform-0.3.2.dist-info → carrot_transform-0.3.3.dist-info}/RECORD +5 -7
- {carrot_transform-0.3.2.dist-info → carrot_transform-0.3.3.dist-info}/WHEEL +1 -2
- carrottransform/config/omop.json +6 -0
- carrot_transform-0.3.2.dist-info/METADATA +0 -28
- carrot_transform-0.3.2.dist-info/entry_points.txt +0 -2
- carrot_transform-0.3.2.dist-info/top_level.txt +0 -1
- {carrot_transform-0.3.2.dist-info → carrot_transform-0.3.3.dist-info}/LICENSE +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
|
+
|
|
@@ -5,15 +5,13 @@ carrottransform/cli/command.py,sha256=xYTaJsVZyRYv0CzUwrh7ZPK8hhGyC3MDfvVYxHcXYS
|
|
|
5
5
|
carrottransform/cli/subcommands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
carrottransform/cli/subcommands/run.py,sha256=3z5cRG4ekyPOP5tvjZOyHUxbclKfBr_Z0tQRRoKj73E,20651
|
|
7
7
|
carrottransform/config/OMOPCDM_postgresql_5.3_ddl.sql,sha256=fXrPfdL3IzU5ux55ogsQKjjd-c1KzdP_N2A_JjlY3gk,18084
|
|
8
|
-
carrottransform/config/omop.json,sha256=
|
|
8
|
+
carrottransform/config/omop.json,sha256=OT3jvfPjKhjsDnQcQw1OAEOHhQLoHXNxTj_MDwNbYqo,1934
|
|
9
9
|
carrottransform/tools/__init__.py,sha256=b3JuCwgJVx0rqx5igB8hNNKO0ktlbQjHGHwy-vzpdo0,198
|
|
10
10
|
carrottransform/tools/file_helpers.py,sha256=xlODDAUpsx0H4sweGZ81ttjJjNQGn2spNUa1Fndotw8,316
|
|
11
11
|
carrottransform/tools/mappingrules.py,sha256=bV6tXHBwVeKAUgCwFTZE2-qTcxKtbs3zbJWedBSviVI,6567
|
|
12
12
|
carrottransform/tools/metrics.py,sha256=LOzm80-YIVM9mvgvQXRpyArl2nSfSTTW9DikqJ5M2Yg,5700
|
|
13
13
|
carrottransform/tools/omopcdm.py,sha256=ycyPGgUTUwui7MLxH8JXd-MyCRkG0xOfEoDhCXeogmQ,7623
|
|
14
|
-
carrot_transform-0.3.
|
|
15
|
-
carrot_transform-0.3.
|
|
16
|
-
carrot_transform-0.3.
|
|
17
|
-
carrot_transform-0.3.
|
|
18
|
-
carrot_transform-0.3.2.dist-info/top_level.txt,sha256=UXPSohnlYfzndis3fEcl6f-dg80qwrKdPjnnSsggEUs,16
|
|
19
|
-
carrot_transform-0.3.2.dist-info/RECORD,,
|
|
14
|
+
carrot_transform-0.3.3.dist-info/LICENSE,sha256=pqIiuuTs6Na-oFd10MMsZoZmdfhfUhHeOtQzgzSkcaw,1082
|
|
15
|
+
carrot_transform-0.3.3.dist-info/METADATA,sha256=23mVHLHLXOqgXUFLoU7cSaqIr_yzl9mYf_zgZnteeoY,1474
|
|
16
|
+
carrot_transform-0.3.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
17
|
+
carrot_transform-0.3.3.dist-info/RECORD,,
|
carrottransform/config/omop.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
carrottransform
|
|
File without changes
|