Framingham
¶ ↑
Ruby gem to implement Framingham
Heart Study calculators
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<<span style="color:purple">Symbol</span>, <span style="color:cadetblue">Numeric</span>></span>{:heart_age, :risk, :normal, :optimal}
or Error String
Evaluates Framingham::Heartdisease
score
Parameters¶ ↑
options(Hash<<span style="color:purple">Symbol</span>, <span style="color:cadetblue">Object</span>></span>
) (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¶ ↑
-
Fork it
-
Create your feature branch (
git checkout -b my-new-feature
) -
Commit your changes (
git commit -am 'Add some feature'
) -
Push to the branch (
git push origin my-new-feature
) -
Create new Pull Request