csrlite 0.2.1__py3-none-any.whl → 0.3.0__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.
- csrlite/__init__.py +110 -71
- csrlite/ae/__init__.py +1 -1
- csrlite/ae/ae_listing.py +494 -494
- csrlite/ae/ae_specific.py +483 -483
- csrlite/ae/ae_summary.py +401 -401
- csrlite/ae/ae_utils.py +62 -62
- csrlite/cm/cm_listing.py +497 -0
- csrlite/cm/cm_summary.py +327 -0
- csrlite/common/config.py +34 -34
- csrlite/common/count.py +293 -293
- csrlite/common/parse.py +308 -308
- csrlite/common/plan.py +365 -365
- csrlite/common/rtf.py +137 -137
- csrlite/common/utils.py +33 -33
- csrlite/common/yaml_loader.py +71 -71
- csrlite/disposition/__init__.py +2 -2
- csrlite/disposition/disposition.py +332 -332
- csrlite/ie/ie_listing.py +109 -0
- csrlite/ie/{ie.py → ie_summary.py} +292 -405
- csrlite/mh/mh_listing.py +209 -0
- csrlite/mh/mh_summary.py +333 -0
- csrlite/pd/pd_listing.py +461 -0
- {csrlite-0.2.1.dist-info → csrlite-0.3.0.dist-info}/METADATA +68 -68
- csrlite-0.3.0.dist-info/RECORD +26 -0
- csrlite-0.2.1.dist-info/RECORD +0 -20
- {csrlite-0.2.1.dist-info → csrlite-0.3.0.dist-info}/WHEEL +0 -0
- {csrlite-0.2.1.dist-info → csrlite-0.3.0.dist-info}/top_level.txt +0 -0
csrlite/__init__.py
CHANGED
|
@@ -1,71 +1,110 @@
|
|
|
1
|
-
import logging
|
|
2
|
-
import sys
|
|
3
|
-
|
|
4
|
-
from .ae.ae_listing import ( # AE listing functions
|
|
5
|
-
ae_listing,
|
|
6
|
-
study_plan_to_ae_listing,
|
|
7
|
-
)
|
|
8
|
-
from .ae.ae_specific import ( # AE specific functions
|
|
9
|
-
ae_specific,
|
|
10
|
-
study_plan_to_ae_specific,
|
|
11
|
-
)
|
|
12
|
-
from .ae.ae_summary import ( # AE summary functions
|
|
13
|
-
ae_summary,
|
|
14
|
-
study_plan_to_ae_summary,
|
|
15
|
-
)
|
|
16
|
-
from .
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from .common.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
from .
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
import logging
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
from .ae.ae_listing import ( # AE listing functions
|
|
5
|
+
ae_listing,
|
|
6
|
+
study_plan_to_ae_listing,
|
|
7
|
+
)
|
|
8
|
+
from .ae.ae_specific import ( # AE specific functions
|
|
9
|
+
ae_specific,
|
|
10
|
+
study_plan_to_ae_specific,
|
|
11
|
+
)
|
|
12
|
+
from .ae.ae_summary import ( # AE summary functions
|
|
13
|
+
ae_summary,
|
|
14
|
+
study_plan_to_ae_summary,
|
|
15
|
+
)
|
|
16
|
+
from .cm.cm_listing import ( # CM listing functions
|
|
17
|
+
cm_listing,
|
|
18
|
+
study_plan_to_cm_listing,
|
|
19
|
+
)
|
|
20
|
+
from .cm.cm_summary import (
|
|
21
|
+
cm_summary,
|
|
22
|
+
study_plan_to_cm_summary,
|
|
23
|
+
)
|
|
24
|
+
from .common.config import config
|
|
25
|
+
from .common.count import (
|
|
26
|
+
count_subject,
|
|
27
|
+
count_subject_with_observation,
|
|
28
|
+
)
|
|
29
|
+
from .common.parse import (
|
|
30
|
+
StudyPlanParser,
|
|
31
|
+
parse_filter_to_sql,
|
|
32
|
+
)
|
|
33
|
+
from .common.plan import ( # Core classes
|
|
34
|
+
load_plan,
|
|
35
|
+
)
|
|
36
|
+
from .disposition.disposition import study_plan_to_disposition_summary
|
|
37
|
+
from .ie.ie_listing import (
|
|
38
|
+
ie_listing_df,
|
|
39
|
+
ie_listing_rtf,
|
|
40
|
+
study_plan_to_ie_listing,
|
|
41
|
+
)
|
|
42
|
+
from .ie.ie_summary import (
|
|
43
|
+
ie_ard,
|
|
44
|
+
ie_df,
|
|
45
|
+
ie_rtf,
|
|
46
|
+
study_plan_to_ie_summary,
|
|
47
|
+
)
|
|
48
|
+
from .mh.mh_listing import (
|
|
49
|
+
mh_listing,
|
|
50
|
+
study_plan_to_mh_listing,
|
|
51
|
+
)
|
|
52
|
+
from .mh.mh_summary import (
|
|
53
|
+
mh_summary,
|
|
54
|
+
study_plan_to_mh_summary,
|
|
55
|
+
)
|
|
56
|
+
from .pd.pd_listing import (
|
|
57
|
+
pd_listing,
|
|
58
|
+
study_plan_to_pd_listing,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
# Configure logging
|
|
62
|
+
logging.basicConfig(
|
|
63
|
+
level=config.logging_level,
|
|
64
|
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
65
|
+
stream=sys.stdout,
|
|
66
|
+
)
|
|
67
|
+
logger = logging.getLogger("csrlite")
|
|
68
|
+
|
|
69
|
+
# Main exports for common usage
|
|
70
|
+
__all__ = [
|
|
71
|
+
# Primary user interface
|
|
72
|
+
"load_plan",
|
|
73
|
+
# AE analysis (direct pipeline wrappers)
|
|
74
|
+
"ae_summary",
|
|
75
|
+
"ae_specific",
|
|
76
|
+
"ae_listing",
|
|
77
|
+
# AE analysis (StudyPlan integration)
|
|
78
|
+
"study_plan_to_ae_summary",
|
|
79
|
+
"study_plan_to_ae_specific",
|
|
80
|
+
"study_plan_to_ae_listing",
|
|
81
|
+
# CM analysis
|
|
82
|
+
"cm_listing",
|
|
83
|
+
"study_plan_to_cm_listing",
|
|
84
|
+
"cm_summary",
|
|
85
|
+
"study_plan_to_cm_summary",
|
|
86
|
+
# Disposition analysis
|
|
87
|
+
"study_plan_to_disposition_summary",
|
|
88
|
+
# Count functions
|
|
89
|
+
"count_subject",
|
|
90
|
+
"count_subject_with_observation",
|
|
91
|
+
# Parse utilities
|
|
92
|
+
"StudyPlanParser",
|
|
93
|
+
"parse_filter_to_sql",
|
|
94
|
+
# IE analysis
|
|
95
|
+
"ie_ard",
|
|
96
|
+
"ie_df",
|
|
97
|
+
"ie_rtf",
|
|
98
|
+
"study_plan_to_ie_summary",
|
|
99
|
+
"ie_listing_df",
|
|
100
|
+
"ie_listing_rtf",
|
|
101
|
+
"study_plan_to_ie_listing",
|
|
102
|
+
# PD analysis
|
|
103
|
+
"pd_listing",
|
|
104
|
+
"study_plan_to_pd_listing",
|
|
105
|
+
# MH analysis
|
|
106
|
+
"mh_listing",
|
|
107
|
+
"study_plan_to_mh_listing",
|
|
108
|
+
"mh_summary",
|
|
109
|
+
"study_plan_to_mh_summary",
|
|
110
|
+
]
|
csrlite/ae/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# pyre-strict
|
|
1
|
+
# pyre-strict
|