Add a core measurement
add_measurementAppend one core health measurement, such as weight, blood pressure, or cholesterol, in SI or reported units. Refuses duplicate same-day values; use correction instead.
Instructions
Append one core-metric measurement (weight, waist, hba1c, ldl, total_cholesterol, hdl, triglycerides, systolic_bp, diastolic_bp, apob, creatinine, psa, lpa). Give the value in SI units, or pass unit with the unit it was reported in and it is converted. One value per metric per day: if that day already holds a value the call is refused and you should use correct_value instead. Only when the user asked to add a value; a failed correction is never turned into an add.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | The unit `value` is in, e.g. "mg/dL". Omit if it is already SI. | |
| value | Yes | The number, in SI units unless `unit` says otherwise. | |
| metricType | Yes | The core metric. | |
| recordedAt | Yes | The user’s local calendar date, YYYY-MM-DD. Ask if you do not know it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The row id — cite this to correct the row later. | |
| unit | Yes | The SI unit the value is stored in. | |
| value | Yes | The number as stored. | |
| metricType | Yes | The core metric written. | |
| recordedAt | Yes | The clinical day the row is filed under. |