"""RadiologyImage model for medical imaging records."""
from typing import Optional

from pydantic import Field

from .types import PyObjectId
from .base import BaseDocument

class RadiologyImage(BaseDocument):
    """RadiologyImage model representing medical scans/images."""
    patientId: PyObjectId = Field(
        description="ID of the patient who the image belongs to"
    )
    hospital: str = Field(description="Name of the hospital where the scan was taken")
    explanation: str = Field(description="Description or title of the scan")
    date: str = Field(description="Date when the scan was taken (YYYY-MM-DD)")
    imageUrl: Optional[str] = Field(
        default=None, description="URL or placeholder for the actual image"
    )
