namespace VigilCare.Simulation;

public record SepsisBundleElementResponse(string Status);

public record SepsisBundleResponse(
    Guid Id, string TriggeringAlertType, string ComplianceStatus,
    DateTimeOffset RecognizedAt, DateTimeOffset DeadlineAt,
    DateTimeOffset? CompletedAt,
    List<SepsisBundleElementResponse>? Elements = null)
{
    public int ElementsCompleted =>
        Elements?.Count(e => e.Status == "Completed") ?? 0;
}
