public enum SepsisBundleElementType
{
    BloodCultures,
    SerumLactate,
    BroadSpectrumAntibiotics,
    IvFluidResuscitation
}

public static class SepsisBundleElementTypeExtensions
{
    public static string ToDbString(this SepsisBundleElementType t) => t switch
    {
        SepsisBundleElementType.BloodCultures            => "BLOOD_CULTURES",
        SepsisBundleElementType.SerumLactate             => "SERUM_LACTATE",
        SepsisBundleElementType.BroadSpectrumAntibiotics => "BROAD_SPECTRUM_ANTIBIOTICS",
        SepsisBundleElementType.IvFluidResuscitation     => "IV_FLUID_RESUSCITATION",
        _ => throw new ArgumentOutOfRangeException(nameof(t))
    };

    public static SepsisBundleElementType FromDbString(string v) => v switch
    {
        "BLOOD_CULTURES"             => SepsisBundleElementType.BloodCultures,
        "SERUM_LACTATE"              => SepsisBundleElementType.SerumLactate,
        "BROAD_SPECTRUM_ANTIBIOTICS" => SepsisBundleElementType.BroadSpectrumAntibiotics,
        "IV_FLUID_RESUSCITATION"     => SepsisBundleElementType.IvFluidResuscitation,
        _ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown bundle element type: '{v}'")
    };
}
