kidhwa
v1.0.6
Published
kid height weight month gender calculate analysis
Downloads
3
Readme
kidhwa
根据幼儿测试身高体重与幼儿年龄性别计算出幼儿身体发育指标数据
Installation
$ npm install kidhwa
const CalcKidHW = require('kidhwa');
let data = CalcKidHW(month, gender, height, weight);
变量|名称|参数 -----|------|----- month | 月龄 | 整数 gender | 性别 | 1:女,2:男 height | 身高 | cm weight | 体重 | kg
例如
console.log(CalcKidHW(41, 1, 103.4, 16.3));
输出:
[
{
"type": 1,
"name": "按年龄测体重",
"levels": [
["p3", "p10", "p20", "p50", "p80", "p97"],
[12.2, 13.05, 13.6, 14.9, 16.37, 19.08]
],
"value": {
"op": 4,
"pos": 3,
"name": "p50-p80"
}
},
{
"type": 2,
"name": "按年龄测身高",
"levels": [
["p3", "p10", "p20", "p50", "p80", "p97"],
[92.5, 94.5, 95.8, 98.9, 101.5, 106.2]
],
"value": {
"op": 4,
"pos": 4,
"name": "p80-p97"
}
},
{
"type": 3,
"name": "按身高测体重",
"levels": [
["p3", "p10", "p20", "p50", "p80", "p97"],
[13.8, 14.37, 14.88, 16, 17.4, 19.4]
],
"value": {
"op": 4,
"pos": 3,
"name": "p50-p80"
}
}, {
"type": 5,
"name": "其他:5岁以下儿童(身高别体重)消瘦、超重、肥胖诊断标准",
"levels": [
["正常", "超重+1SD", "轻度肥胖+2SD", "中重肥胖+3SD"],
[16.1, 17.7, 19.5, 21.6]
],
"value": {
"op": 4,
"pos": 0,
"name": "正常-超重+1SD"
}
},
{
"type": 7,
"name": "体重标准值",
"levels": [
["-1sd", "中位数", "+1sd"],
[13.11, 14.65, 16.43]
],
"value": {
"op": 4,
"pos": 1,
"name": "中位数-+1sd"
}
},
{
"type": 8,
"name": "身高标准值",
"levels": [
["-1sd", "中位数", "+1sd"],
[93.8, 97.5, 101.4]
],
"value": {
"op": 3,
"pos": 2,
"name": ">+1sd"
}
}
]
op: 1: 小于, 2: 等于, 3: 大于, 4: 在两个区间内
pos: 在levels中位置