"""Compatibility shim for older imports that expect a top-level `ai_med_extract`. This module re-exports the package located at `services/ai-service/src/ai_med_extract`. It keeps older tests and imports working while the canonical package lives under services/ai-service/src. """ import sys import os # Compute path to the migrated package ROOT = os.path.dirname(__file__) SERVICE_SRC = os.path.join(ROOT, 'services', 'ai-service', 'src') if SERVICE_SRC not in sys.path: sys.path.insert(0, SERVICE_SRC) from ai_med_extract import * # re-export everything