Skip to content

Statistics for HbA1c Calculation #54

@oluizeduardo

Description

@oluizeduardo

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions