public enum SepsisBundleComplianceStatus
{
    InProgress,
    Compliant,
    NonCompliant
}

public static class SepsisBundleComplianceStatusExtensions
{
    public static string ToDbString(this SepsisBundleComplianceStatus s) => s switch
    {
        SepsisBundleComplianceStatus.InProgress   => "IN_PROGRESS",
        SepsisBundleComplianceStatus.Compliant    => "COMPLIANT",
        SepsisBundleComplianceStatus.NonCompliant => "NON_COMPLIANT",
        _ => throw new ArgumentOutOfRangeException(nameof(s))
    };

    public static SepsisBundleComplianceStatus FromDbString(string v) => v switch
    {
        "IN_PROGRESS"   => SepsisBundleComplianceStatus.InProgress,
        "COMPLIANT"     => SepsisBundleComplianceStatus.Compliant,
        "NON_COMPLIANT" => SepsisBundleComplianceStatus.NonCompliant,
        _ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown compliance status: '{v}'")
    };
}
