private int GetTimescalePriority(TimescaleViewModel timescale)
        {
            // from response.js
            // var timescales = [
            //  { Id: "0", Name: "None" },
            //  { Id: "1", Name: "One Month" },
            //  { Id: "2", Name: "Three Months" },
            //  { Id: "3", Name: "Six Months" },
            //  { Id: "4", Name: "Urgent Action Required" }

            int priority = 0;

            if (timescale != null)
            {
                switch (timescale.Name)
                {
                    case "Urgent Action Required":
                        priority = 0;
                        break;
                    case "One Month":
                        priority = 1;
                        break;
                    case "Three Months":
                        priority = 2;
                        break;
                    case "Six Months":
                        priority = 3;
                        break;
                    case "None":
                        priority = 4;
                        break;                    
                }
            }
            else
            {
                priority = 5;             
            }
            return priority;            
        }
        private int GetTimescalePriority(TimescaleViewModel timescale, ResponseType responseType)
        {
            int priority = 0;

            // changed their mind again so have two different sets of priorities, left old ones in to generate existing reports correctly
            if (timescale != null)
            {
                switch (timescale.Name)
                {
                    case "Urgent Action Required":
                        priority = 1;
                        break;
                    case "Six Weeks":
                        if (responseType == ResponseType.Unacceptable)
                            priority = 2;
                        if (responseType == ResponseType.ImprovementRequired)
                            priority = 3;
                        break;
                    case "One Month":
                        priority = 4;
                        break;
                    case "Three Months":
                        priority = 5;
                        break;
                    case "Six Months":
                        priority = 6;
                        break;
                    case "None":
                        priority = 7;
                        break;
                }
            }
            else
            {
                priority = 8;
            }
            return priority;
        }