Python package to calculate comorbidity scores and other clinical risk scores.
Project description
comorbidiPy
Python package to calculate comorbidity scores and other clinical risk scores.
The comorbidity
function of this library is effectively a rewrite of the excellent R library comorbidity
(https://github.com/ellessenne/comorbidity/) by Alessandro Gasparini (https://www.ellessenne.xyz/).
Comorbidipy also includes additional clinical risk calculators listed below.
Feature List
- Charlson Comorbidity Score
- Elixhauser Comorbidity Index
- Hospital Frailty Risk Score
- Disability and Sensory Impairments
Variants of Charlson and Elixhauser Scores
The comorbidity
function allows calculation of Charlson and Elixhauser score using ICD9 or ICD10 codes and the following variations.
Variations of Charlson Comorbidity Score
-
Mapping:
- Quan version
- Swedish version
- Australian version
- UK version (from Summary Hospital-Level Mortality Indicator - SHMI)
-
Weights:
- Charlson
- Quan
- SHMI
- Modified SHMI
Elixhauser Comorbidity Index
-
Mapping:
- Quan
-
Weights:
- van Walraven
- Swiss
License and Documentation
- Free software: MIT license
- Documentation: https://comorbidipy.readthedocs.io. (TODO)
Credits
- Cookiecutter https://github.com/audreyr/cookiecutter
- R library
comorbidity
https://github.com/ellessenne/comorbidity/
Changelog
0.4.4 (2022-06-11)
- Additional function to identify disabilities
- Rewritten comorbidity function
- Additional modified weights for SHMI variant of Charlson Score
- CI/CD pipeline to publish to PyPi
0.3.0 (2022-02-11)
- Add SHMI variant of Charlson Comorbidity Score. Based on SHMI Specification Version 1.35 2020-09-24 (https://files.digital.nhs.uk/B8/F8D021/SHMI%20specification%20v1.35.pdf)
0.2.1 (2021-01-02)
- Rewritten HFRS calculator that is 5x faster than previous version.
0.2.0 (2021-12-31)
- Add function for calculating Hospital Frailty Risk Score (https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(18)30668-8/)
0.1.0 (2021-12-20)
- First release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
comorbidipy-0.5.0.tar.gz
(19.2 kB
view hashes)
Built Distribution
Close
Hashes for comorbidipy-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72399564058bf06e761a67f61bae39581a2783ad6470f53bc5cd6b3c360139e3 |
|
MD5 | 5b7039f665a18e1f9486e6cb1e047bac |
|
BLAKE2b-256 | 4607e1e72f66d01a8501c8b15cefb9cb7502200171a7512b9e407ed29155ab79 |