TorbatYar/backend/services/healthcare/app/api/v1/health.py
Mortezakoohjani 625275e55b feat(healthcare): add backend service and finalize frontend build
Add the Healthcare platform backend (phases 13.0–13.7) with Alembic migration revision fix, production deploy script, validation reports, shared UI exports, and loyalty list page client directives so Next.js build succeeds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 11:38:31 +03:30

91 lines
2.6 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from fastapi import APIRouter
from app import __version__
from app.core.config import settings
router = APIRouter()
@router.get("/health")
async def health_check():
return {
"status": "ok",
"service": settings.service_name,
"version": __version__,
}
@router.get("/capabilities")
async def capabilities():
return {
"service": settings.service_name,
"version": __version__,
"phase": "13.7",
"commercial_product": "Torbat Healthcare",
"features": {
"foundation": True,
"health": True,
"capabilities": True,
"metrics": True,
"external_providers_ready": True,
"clinics": True,
"branches": True,
"departments": True,
"doctors": True,
"patients": True,
"appointments": True,
"schedules": True,
"availability": True,
"waiting_list": True,
"visits": True,
"doctor_panel": True,
"clinic_management": True,
"patient_portal": True,
"medical_records": True,
"pharmacy": True,
"delivery_integration": True,
"ai": False,
},
"independence": {
"standalone": True,
"superapp": True,
"integrations": [
"accounting",
"communication",
"loyalty",
"crm",
"delivery",
"storage",
"identity",
"ai",
],
"integration_mode": "api_and_events_only",
},
}
@router.get("/metrics")
async def metrics():
return {
"service": settings.service_name,
"version": __version__,
"phase": "13.7",
"metrics": {
"clinics": "tenant_scoped",
"branches": "tenant_scoped",
"departments": "tenant_scoped",
"doctors": "tenant_scoped",
"patients": "tenant_scoped",
"external_providers": "tenant_scoped",
"configurations": "tenant_scoped",
"settings": "tenant_scoped",
"outbox_events": "tenant_scoped",
"appointments": "tenant_scoped",
"visits": "tenant_scoped",
"encounters": "tenant_scoped",
"pharmacy_orders": "tenant_scoped",
"delivery_job_intents": "tenant_scoped",
},
"note": "Healthcare phases 13.013.7 complete",
}