bawmedical / qrisk2

forked from an apparently unmaintained repo at 3poundhealth/qrisk2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module: QRisk

        Defined in: qrisk.rb


Public Class Methods

::eval(options) → Float or Error String

        Evaluates QRisk2 score

Parameters

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

age:                      25..84  
cholesterol_ratio:         1..12  
blood_pressure:           70..210  
body_mass_index:          20..40  
atrial_fibrillation:      true | false  
blood_pressure_treatment: true | false  
heart_diseased_relative:  true | false  
kidney_disease:           true | false  
rheumatoid_arthritis:     true | false  
gender:                   male | female  
smoker:                   non | ex | light | moderate | heavy  
diabetes:                 none | type_1 | type_2  
ethnicity:                white | indian | pakistani | bangladeshi | other_asian | black_caribbean | black_african | chinese | other  

Original License

Copyright 2013 ClinRisk Ltd.

This file is part of QRISK2-2013 (http://qrisk.org, http://svn.clinrisk.co.uk/opensource/qrisk2).

QRISK2-2013 is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QRISK2-2013 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with QRISK2-2013. If not, see http://www.gnu.org/licenses/.

Additional terms

The following disclaimer must be displayed alongside any risk score generated by this code. The initial version of this file, to be found at http://svn.clinrisk.co.uk/opensource/qrisk2, faithfully implements QRISK2-2013. We have released this code under the GNU Lesser General Public License to enable others to implement the algorithm faithfully. However, the nature of the GNU Lesser General Public License is such that we cannot prevent, for example, someone accidentally altering the coefficients, getting the inputs wrong, or just poor programming. We stress, therefore, that it is the responsibility of the end user to check that the source that they receive produces the same results as the original code posted at http://svn.clinrisk.co.uk/opensource/qrisk2. Inaccurate implementations of risk scores can lead to wrong patients being given the wrong treatment.

This file has been auto-generated. XML source: Q77_qrisk2_2013_1.xml STATA dta time stamp: 16 Nov 2012 22:10 This file was created on: Wed 8 May 2013 07:41:42 BST


Supplemental Info

Ruby port by 3poundHealth. Copyright 2013 3poundHealth Released under GNU Lesser General Public License

qrisk2 is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

qrisk2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

About

forked from an apparently unmaintained repo at 3poundhealth/qrisk2


Languages

Language:C 43.1%Language:Ruby 29.9%Language:Shell 22.3%Language:C++ 4.7%