namespace adas_core.Domain.Models.Observations;

public class ChartObservation : Observation
{
    public List<double> Values { get; set; } = [];
    public List<double> SecondaryValues { get; set; } = [];
    public List<double> Labels { get; set; } = [];
    public double Min { get; set; }
    public double Max { get; set; }
    public double? MinWarn { get; set; }
    public double? MaxWarn { get; set; }

    internal static ChartObservation From(List<PatientObservation> obs)
    {
        return obs == null ? throw new ArgumentNullException(nameof(obs)) : new ChartObservation();
    }
}