CliniqAl / scripts /check_enum.py
jsuryanm's picture
fix: chat inference to respond user queries, nurses tab for rostering,discharge,handover works
609f985
Raw
History Blame
360 Bytes
from sqlalchemy import text
from app.db.session import SessionLocal
with SessionLocal() as s:
result = s.execute(text("""
SELECT enumlabel
FROM pg_enum e
JOIN pg_type t ON e.enumtypid = t.oid
WHERE t.typname = 'booking_status'
"""))
print("booking_status enum values:")
for row in result:
print(row[0])