Spaces:
Sleeping
Sleeping
File size: 510 Bytes
408b7e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from abc import ABC, abstractmethod
class ClinicalAnalyzer(ABC):
"""
Abstract Base for all diagnostic interpretation logic.
Ensures 'Certainty over Velocity' across different clinical modules.
"""
@abstractmethod
def calculate_risk(self, metrics: dict) -> int:
pass
def interpret_score(self, score: int) -> str:
"""Standardized interpretation across all modules."""
if score > 75: return "High"
if score > 40: return "Moderate"
return "Low" |