Project

framingham

0.0
No commit activity in last 3 years
No release in over 3 years
Gem to implement Framingham Heart Study calculators
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Framingham

Ruby gem to implement Framingham Heart Study calculators
http://www.framinghamheartstudy.org

Installation

Add this line to your application's Gemfile:

gem 'framingham'

And then execute:

$ bundle

Or install it yourself as:

$ gem install framingham

Module: Framingham::Heartdisease#

        Defined in: framingham/heartdisease.rb

Usage

Public Class Methods

::eval(options) → Hash<​Symbol, Numeric>{:heart_age, :risk, :normal, :optimal} or Error String

        Evaluates Framingham::Heartdisease score

###   Parameters ###

options(Hash<​Symbol, Object>) (defaults to: {}) — initial context configuration

age:                      30..74  
blood_pressure:           90..200  
blood_pressure_treatment: true | false  
body_mass_index:          15..50  
diabetes:                 true | false  
gender:                   :male | :female  
smoker:                   true | false  

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request