public enum ClinicalRole
{
    Nurse,
    Physician,
    Admin,
    Integration
}

public static class ClinicalRoleExtensions
{
    public static string ToDbString(this ClinicalRole r) => r switch
    {
        ClinicalRole.Nurse       => "NURSE",
        ClinicalRole.Physician   => "PHYSICIAN",
        ClinicalRole.Admin       => "ADMIN",
        ClinicalRole.Integration => "INTEGRATION",
        _ => throw new ArgumentOutOfRangeException(nameof(r))
    };

    public static ClinicalRole FromDbString(string v) => v switch
    {
        "NURSE"       => ClinicalRole.Nurse,
        "PHYSICIAN"   => ClinicalRole.Physician,
        "ADMIN"       => ClinicalRole.Admin,
        "INTEGRATION" => ClinicalRole.Integration,
        _ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown role: '{v}'")
    };
}