-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
In the statistics API, implement a function that calculates the estimated HbA1c (glycated hemoglobin) value based on their average blood glucose levels.
Task Breakdown:
- Implement the formula to calculate estimated HbA1c:
Estimated HbA1c(%) = (Average Glucose (mg/dL) + 46.7) / 28.7
- Include the calculation result in the statistics API response.
Acceptance Criteria:
- The field
hbA1c
is included in the statistics API response with the correct value.
Additional Notes:
- Consider adding validation to ensure input values are realistic (e.g., non-negative, within a typical blood glucose range).
Priority
- Medium
Metadata
Metadata
Assignees
Labels
No labels