Replace unsafe `as any` casts with proper type guards using `isDiseaseSlug()` and explicit type casting to `DiagnosisStatus` and `DiseaseCatalogItem`. Replace non-null assertions with explicit null checks that return `serviceUnavailable()` errors when database operations fail. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>