A JavaScript BMI/MetS Z-Score Calculator
Simply include zmi.js in your project and include the corresponding form elements in your page based on whether you are calculating data for a child or an adult.
- jQuery 1.10.2+
- Moment.JS (For Date/Time Calculation)
For Children ZMI will calculate:
- BMI
- BMI Z-Score
- BMI Percentile
- MetS Z-Score
- MetS Percentile
Required Fields:
- type
- waist
- waistUnit
- weight
- weightUnit
- height
- heightUnit
- birthdate
- appointment
- gender
- race
- triglyceride
- hdl
- sbp
- glucose
The Adult calculations are more of a subset of the Child calculations which require the most work. The weight, height, birthdate, and appointment fields are not required in the Adult calculations. For Adults, the only information we will be calculating is the MetS Z-Score and MetS Percentile.
For Adults ZMI will calculate:
- MetS Z-Score
- MetS Percentile
Required Fields:
- type
- waist
- waistUnit
- weight
- weightUnit
- height
- heightUnit
- gender
- race
- triglyceride
- hdl
- sbp
- glucose
This calculator was created for a grant project based on the work of Matt Gurka and the WVU Health Sciences Center School of Medicine. All MetS Calculations are based on his work and may not apply to all situations.