Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ascvd

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascvd

Module for calculating ASCVD 10-year estimate

  • 0.5
  • Source
  • PyPI
  • Socket score

Maintainers
1

Python ASCVD

Install it: pip install ascvd

Should be compatible with Python 2 and 3 alike.

Should agree with http://tools.acc.org/ASCVD-Risk-Estimator-Plus/#!/calculate/estimate/

Code mostly borrowed from https://github.com/cerner/ascvd-risk-calculator

Referring to the README for that project, this calculates the ASCVD risk according to the 2013 ACC/AHA Guideline on the Assessment of Cardiovascular Risk and the 2013 ACC/AHA Guideline on the Treatment of Blood Cholesterol to Reduce Atherosclerotic Cardiovascular Risk in Adults.

Documentation:

It's a single function.

compute_ten_year_score -> int
    Args:
        isMale (bool)
        isBlack (bool)
        smoker (bool)
        hypertensive (bool)
        diabetic (bool)
        age (int)
        systolicBloodPressure (int)
        totalCholesterol (int)
        hdl (int)

Contributing

This could really use some tests! The code right now pretty much just assumes that the good folks at Cerner are superhumans who don't make mistakes.

Feel free to fork and open a pull request. Please, one pull request per functional change.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc