New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kidhwa

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kidhwa

kid height weight month gender calculate analysis

  • 1.0.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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中位置

Keywords

FAQs

Package last updated on 25 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc