add dashboard monitoring interface and dual temperature tracking

This commit is contained in:
2026-09-15 11:43:54 +05:30
parent 60da868a3a
commit a0ab3c073e
6 changed files with 1613 additions and 196 deletions
+2
View File
@@ -192,6 +192,8 @@ def list_patients(db: Session = Depends(get_db)):
"map_bp": latest_reading.map_bp if latest_reading else None,
"respiratory_rate": latest_reading.respiratory_rate if latest_reading else None,
"temperature": latest_reading.temperature if latest_reading else None,
"temperature2": getattr(latest_reading, 'temperature2', None) if latest_reading else None,
"temperature_diff": getattr(latest_reading, 'temperature_diff', None) if latest_reading else None,
"timestamp": latest_reading.timestamp.isoformat() if (latest_reading and latest_reading.timestamp) else None,
} if latest_reading else None
})