namespace adas_core.Domain.Models.Pumps;

/// <summary>
/// Serves as an abstract base class for representing common pump types.
/// Provides a shared foundation for derived classes that define specific pump categorizations.
/// </summary>
public abstract class CommonPumpTypes
{
    // Tipos auxiliares para valores con unidades (idénticos a PatientPumpObservation pero anidados aquí)

    /// <summary>
    /// Represents a value associated with a pump operation or measurement.
    /// </summary>
    public class PumpValue
    {
        public double? Value { get; set; }
        public string? Units { get; set; }
        /// <summary>
        /// Returns a string representation of the measurement, including its value and units.
        /// </summary>
        /// <returns>A formatted string containing the Value and Units of the measurement.</returns>
        public override string ToString() => $"{{Value: {Value}, Units: {Units}}}";
    }

    /// <summary>
    /// Represents a container for detailed information about a syringe.
    /// </summary>
    public class SyringeDetails
    {
        public string? Type { get; set; }
        public string? Manufacturer { get; set; }
        public PumpValue? Volume { get; set; }
    }
}