pycomorb 0.4__tar.gz → 0.4.1__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.
- {pycomorb-0.4/src/pycomorb.egg-info → pycomorb-0.4.1}/PKG-INFO +2 -2
- {pycomorb-0.4 → pycomorb-0.4.1}/README.md +1 -1
- {pycomorb-0.4 → pycomorb-0.4.1}/pyproject.toml +1 -1
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/CustomComorbidityIndex.py +0 -25
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/__init__.py +1 -1
- {pycomorb-0.4 → pycomorb-0.4.1/src/pycomorb.egg-info}/PKG-INFO +2 -2
- {pycomorb-0.4 → pycomorb-0.4.1}/LICENSE +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/setup.cfg +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/CharlsonComorbidityIndex.py +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/ElixhauserComorbidityIndex.py +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/GagneComorbidityIndex.py +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/HospitalFrailtyRiskScore.py +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_AUSTRALIA.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_DEYO.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_DHOORE.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_QUAN.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_ROMANO.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_SWEDEN.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_UK_SHMI_v1.55.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_AHRQ_ICD10.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_AHRQ_ICD9.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_QUAN.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_WEIGHTS.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/GAGNE.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/HFRS.csv +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/SOURCES.txt +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/dependency_links.txt +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/requires.txt +0 -0
- {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pycomorb
|
|
3
|
-
Version: 0.4
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Comorbidity and frailty score calculation utilities (Charlson, Elixhauser, Gagne, HFRS) using polars
|
|
5
5
|
Author-email: Finn Fassbender <finn.fassbender@charite.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -32,7 +32,7 @@ It is inspired by the R package [`comorbidity`](https://github.com/ellessenne/co
|
|
|
32
32
|
|
|
33
33
|
## Supported Variants
|
|
34
34
|
|
|
35
|
-
See [common/README.md](src/pycomorb/common/README.md) for more details and references.
|
|
35
|
+
See [common/README.md](https://github.com/CUB-CORR/pycomorb/blob/main/src/pycomorb/common/README.md) for more details and references.
|
|
36
36
|
|
|
37
37
|
### Charlson Comorbidity Index
|
|
38
38
|
|
|
@@ -17,7 +17,7 @@ It is inspired by the R package [`comorbidity`](https://github.com/ellessenne/co
|
|
|
17
17
|
|
|
18
18
|
## Supported Variants
|
|
19
19
|
|
|
20
|
-
See [common/README.md](src/pycomorb/common/README.md) for more details and references.
|
|
20
|
+
See [common/README.md](https://github.com/CUB-CORR/pycomorb/blob/main/src/pycomorb/common/README.md) for more details and references.
|
|
21
21
|
|
|
22
22
|
### Charlson Comorbidity Index
|
|
23
23
|
|
|
@@ -132,31 +132,6 @@ def CustomComorbidityIndex(
|
|
|
132
132
|
.drop_nulls("best_prefix")
|
|
133
133
|
)
|
|
134
134
|
|
|
135
|
-
(
|
|
136
|
-
unique_codes.with_columns(
|
|
137
|
-
pl.col(code_col).str.slice(0, n).alias(f"prefix_{n}")
|
|
138
|
-
for n in range(1, len(longest_code) + 1)
|
|
139
|
-
)
|
|
140
|
-
.with_columns(
|
|
141
|
-
pl.when(pl.col(f"prefix_{n}").is_in(code_prefixes))
|
|
142
|
-
.then(pl.col(f"prefix_{n}"))
|
|
143
|
-
.otherwise(None)
|
|
144
|
-
.alias(f"prefix_{n}")
|
|
145
|
-
for n in range(1, len(longest_code) + 1)
|
|
146
|
-
)
|
|
147
|
-
.with_columns(
|
|
148
|
-
pl.concat_list(
|
|
149
|
-
pl.col(f"prefix_{n}")
|
|
150
|
-
for n in range(1, len(longest_code) + 1)
|
|
151
|
-
)
|
|
152
|
-
.list.drop_nulls()
|
|
153
|
-
.list.unique()
|
|
154
|
-
.list.join(", ")
|
|
155
|
-
.alias("best_prefixes")
|
|
156
|
-
)
|
|
157
|
-
.write_csv("best_prefix.csv")
|
|
158
|
-
)
|
|
159
|
-
|
|
160
135
|
code_to_category = (
|
|
161
136
|
best_prefix.join(
|
|
162
137
|
code_map, left_on="best_prefix", right_on="prefix", how="left"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pycomorb
|
|
3
|
-
Version: 0.4
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Comorbidity and frailty score calculation utilities (Charlson, Elixhauser, Gagne, HFRS) using polars
|
|
5
5
|
Author-email: Finn Fassbender <finn.fassbender@charite.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -32,7 +32,7 @@ It is inspired by the R package [`comorbidity`](https://github.com/ellessenne/co
|
|
|
32
32
|
|
|
33
33
|
## Supported Variants
|
|
34
34
|
|
|
35
|
-
See [common/README.md](src/pycomorb/common/README.md) for more details and references.
|
|
35
|
+
See [common/README.md](https://github.com/CUB-CORR/pycomorb/blob/main/src/pycomorb/common/README.md) for more details and references.
|
|
36
36
|
|
|
37
37
|
### Charlson Comorbidity Index
|
|
38
38
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|