feat: enhance vital signs matrix chart payload and visualization
- Introduced new functions to handle vital signs data retrieval and processing, including fallback mechanisms for missing values. - Updated SQL queries in `build_vital_signs_matrix_chart_payload` to improve date filtering and data accuracy. - Enhanced the frontend `RecoveryDashboardOverview` component to display vital signs with contextual coloring based on health tones. - Adjusted the data structure for chart rendering, ensuring a more informative and visually appealing representation of vital metrics.
This commit is contained in:
1 parent
d3cb9d4ad9
commit
d4868b3797
5 files changed
+392
-77
No files matched your search
@@ -1431,7 +1431,7 @@ def get_sleep_debt_chart(
|
||||
|
||||
@router.get("/vital-signs-matrix")
|
||||
def get_vital_signs_matrix_chart(
|
||||
days: int = Query(default=7, ge=7, le=30),
|
||||
days: int = Query(default=7, ge=7, le=365),
|
||||
session: dict = Depends(require_auth)
|
||||
) -> Dict:
|
||||
"""Vital signs matrix (R5)."""
|
||||
|
||||
Reference in new issue
Block a user