QDiabetes-2018
An unofficial javascript port of the ClinRisk QDiabetes 2018 algorithm, with typescript typings
API
Inputs are as follows:
age: number,
atypicalAntipsychotics: boolean,
corticosteroids: boolean,
treatedForHypertension: boolean,
bmi: number,
ethnicity: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9,
familyDiabetes: boolean,
cardioVascularDisease: boolean,
smokerCategory: 0 | 1 | 2 | 3 | 4,
schizophreniaOrBipolar: boolean,
learningDisabilities: boolean,
prescribedStatins: boolean,
fastingBloodGlucoseLevel?: number
hba1c?: number
hba1cIfcc?: number
townsendDeprivation: number,
gestationalDiabetes: boolean,
polycysticOvarySyndrome: boolean,
License
This code is released under AGPL 3.0. See LICENSE
Additional terms
The following disclaimer must be held together with any risk score score generated by this code.
If the score is displayed, then this disclaimer must be displayed or otherwise be made easily accessible, e.g. by a prominent link alongside it.
The initial implentation, to be found at http://qdiabetes.org, faithfully implements QDiabetes-2018.
ClinRisk Ltd. have released this code under the GNU Affero General Public License to enable others to implement the algorithm faithfully.
However, the nature of the GNU Affero General Public License is such that we cannot prevent, for example, someone accidentally
altering the coefficients, getting the inputs wrong, or just poor programming.
ClinRisk Ltd. 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 found at http://qdiabetes.org.
Inaccurate implementations of risk scores can lead to wrong patients being given the wrong treatment.
End of additional terms