import os from motor.motor_asyncio import AsyncIOMotorClient MONGO_URI = os.environ.get("MONGODB_URI") client = AsyncIOMotorClient(MONGO_URI) db = client.get_default_database() patients_collection = db["patients"] results_collection = db["patient_analysis_results"]