add dashboard monitoring interface and dual temperature tracking
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user