namespace VigilCare.Simulation;

public record AlertResponse(
    Guid Id,
    Guid EncounterId,
    Guid PatientId,
    string AlertType,
    string Severity,
    string Details,
    string Status,
    DateTimeOffset TriggeredAt,
    DateTimeOffset? AcknowledgedAt = null,
    string? AcknowledgedBy = null,
    DateTimeOffset? ResolvedAt = null,
    AlertExplanation? Explanation = null)
{
    public string DisplaySummary =>
        string.IsNullOrWhiteSpace(Explanation?.NarrativeSummary)
            ? Details
            : Explanation!.NarrativeSummary;
}
