Skip to main content

Python package to calculate comorbidity scores and other clinical risk scores.

Project description

comorbidiPy

PyPi Build Build Docs

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

Credits

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)

0.2.1 (2021-01-02)

  • Rewritten HFRS calculator that is 5x faster than previous version.

0.2.0 (2021-12-31)

0.1.0 (2021-12-20)

  • First release.

Project details


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)

Uploaded Source

Built Distribution

comorbidipy-0.5.0-py2.py3-none-any.whl (14.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page