"""
Physicians URL Configuration
"""
from django.urls import path
from rest_framework.routers import DefaultRouter

from . import ui_views, views

app_name = 'physicians'

# API Router
router = DefaultRouter()
router.register(r'api/physicians', views.PhysicianViewSet, basename='physician')
router.register(r'api/physicians/ratings', views.PhysicianMonthlyRatingViewSet, basename='physician-rating')

# UI URL patterns
urlpatterns = [
    # Overview pages
    path('overview/specialization/', ui_views.specialization_overview, name='specialization_overview'),
    path('overview/department/', ui_views.department_overview, name='department_overview'),
    
    # Physician management
    path('', ui_views.physician_list, name='physician_list'),
    path('<uuid:pk>/', ui_views.physician_detail, name='physician_detail'),
    
    # Leaderboard
    path('leaderboard/', ui_views.leaderboard, name='leaderboard'),
    
    # Ratings
    path('ratings/', ui_views.ratings_list, name='ratings_list'),
]

# Add API routes
urlpatterns += router.urls
