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.
Files changed (30) hide show
  1. {pycomorb-0.4/src/pycomorb.egg-info → pycomorb-0.4.1}/PKG-INFO +2 -2
  2. {pycomorb-0.4 → pycomorb-0.4.1}/README.md +1 -1
  3. {pycomorb-0.4 → pycomorb-0.4.1}/pyproject.toml +1 -1
  4. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/CustomComorbidityIndex.py +0 -25
  5. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/__init__.py +1 -1
  6. {pycomorb-0.4 → pycomorb-0.4.1/src/pycomorb.egg-info}/PKG-INFO +2 -2
  7. {pycomorb-0.4 → pycomorb-0.4.1}/LICENSE +0 -0
  8. {pycomorb-0.4 → pycomorb-0.4.1}/setup.cfg +0 -0
  9. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/CharlsonComorbidityIndex.py +0 -0
  10. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/ElixhauserComorbidityIndex.py +0 -0
  11. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/GagneComorbidityIndex.py +0 -0
  12. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/HospitalFrailtyRiskScore.py +0 -0
  13. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_AUSTRALIA.csv +0 -0
  14. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_DEYO.csv +0 -0
  15. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_DHOORE.csv +0 -0
  16. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_QUAN.csv +0 -0
  17. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_ROMANO.csv +0 -0
  18. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_SWEDEN.csv +0 -0
  19. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/CHARLSON_UK_SHMI_v1.55.csv +0 -0
  20. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER.csv +0 -0
  21. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_AHRQ_ICD10.csv +0 -0
  22. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_AHRQ_ICD9.csv +0 -0
  23. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_QUAN.csv +0 -0
  24. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/ELIXHAUSER_WEIGHTS.csv +0 -0
  25. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/GAGNE.csv +0 -0
  26. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb/common/HFRS.csv +0 -0
  27. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/SOURCES.txt +0 -0
  28. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/dependency_links.txt +0 -0
  29. {pycomorb-0.4 → pycomorb-0.4.1}/src/pycomorb.egg-info/requires.txt +0 -0
  30. {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
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pycomorb"
3
- version = "0.4"
3
+ version = "0.4.1"
4
4
  authors = [
5
5
  { name="Finn Fassbender", email="finn.fassbender@charite.de" },
6
6
  ]
@@ -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"
@@ -2,7 +2,7 @@
2
2
 
3
3
  __author__ = """Finn Fassbender"""
4
4
  __email__ = "finn.fassbender@charite.de"
5
- __version__ = "0.4"
5
+ __version__ = "0.4.1"
6
6
 
7
7
  from .CharlsonComorbidityIndex import CharlsonComorbidityIndex
8
8
  from .ElixhauserComorbidityIndex import ElixhauserComorbidityIndex
@@ -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