namespace adas_core.Domain.Models.Observations;
///
/// Represents an observation that is associated with a chart, providing chart-specific contextual data derived from the base type.
///
public class ChartObservation : Observation
{
public List Values { get; set; } = [];
public List SecondaryValues { get; set; } = [];
public List Labels { get; set; } = [];
public double Min { get; set; }
public double Max { get; set; }
public double? MinWarn { get; set; }
public double? MaxWarn { get; set; }
///
/// Creates a new instance from the provided list of patient observations.
/// Throws an exception when the source list is null; otherwise returns a new empty .
///
/// The list of patient observations to convert.
/// A new instance.
/// Thrown when is null.
internal static ChartObservation From(List obs)
{
return obs == null ? throw new ArgumentNullException(nameof(obs)) : new ChartObservation();
}
}