updated with working dropdown graph

This commit is contained in:
2025-12-04 23:30:21 -05:00
parent 77f2f1bf5b
commit 31333c8ba3
7 changed files with 745 additions and 1230 deletions
+3 -1
View File
@@ -3,6 +3,7 @@ VitalLink Backend API
FastAPI server for managing patients, wristbands, and real-time data
"""
import uuid
import os
import socket
from fastapi import FastAPI, WebSocket, HTTPException
@@ -228,7 +229,8 @@ async def check_in_patient(data: PatientCheckIn):
if not available_bands:
raise HTTPException(status_code=503, detail="No wristbands available")
patient_id = f"P{len(patients_db) + 100001}"
# patient_id = f"P{len(patients_db) + 100001}"
patient_id = f"P{int(time.time())}-{uuid.uuid4().hex[:4].upper()}"
band_id = available_bands.pop(0)
patient = Patient(