@intocare/katz-category
v1.2.0
Published
Calculate the katz category based on the score
Downloads
2,814
Readme
katz-category
Calculate the katz category based on the score
Install
$ npm install @intocare/katz-category
Usage
const katzCategory = require('@intocare/katz-category');
katzCategory('33111111');
//=> 'A'
katzCategory('33333111', true);
//=> 'CD'
API
katzCategory(score, [dementia])
score
Type: string
A 6 or 8-digit string respresenting the KATZ score.
dementia
Type: boolean
Default: false
Flag to indicate whether dementia should be taken into account.
License
MIT © Sam Verschueren