Convert lab units
convert_unitsConvert a lab value between US conventional and SI units for 30 common analytes (glucose, cholesterol, testosterone, vitamin D, …) using published factors; hemoglobin A1c uses the NGSP↔IFCC master equation and also returns estimated average glucose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The numeric value to convert | |
| analyte | Yes | Analyte slug or name, e.g. 'glucose', 'total-cholesterol', 'testosterone', 'vitamin-d', 'a1c' | |
| direction | No | Default toSI (US → SI) |