updated with working dropdown graph
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user