// Usage -- ProcessDoseSchedule["QnD"]("data pattern", n);
        public bool ProcessQnD(string Data, int Count, TQ1 tq1)
        {
            try
            {
                string tq121;
                string tq14;

                string[] month = new string[31];
                int      day   = Convert.ToInt32(Data.Substring(1, 1));

                int i = 0;

                while (i < month.Length)
                {
                    month[i++] = "00.00";
                }

                for (i = 0; i < month.Length; i += day)
                {
                    tq121    = tq1.Get("TQ1.2.1");
                    month[i] = $"{(Convert.ToDouble(string.IsNullOrEmpty(tq121) ? "0" : tq121)):00.00}";
                }

                i = 1;
                while (i < month.Length)
                {
                    month[0] += month[i++];
                }

                RecBundle.Scrip.RxType           = 18;
                RecBundle.Scrip.MDOMStart        = Data.Substring(1, 1); // Extract the number
                RecBundle.Scrip.DoseScheduleName = tq1.Get("TQ1.3.1");   // => This is the key part.  The DosScheduleName has to exist on MOTALL
                RecBundle.Scrip.SpecialDoses     = month[0];

                tq14  = tq1.Get("TQ1.4");
                tq121 = tq1.Get("TQ1.2.1");

                if (string.IsNullOrEmpty(tq14) || string.IsNullOrEmpty(tq121))
                {
                    return(false);
                }

                RecBundle.Scrip.DoseTimesQtys += $"{tq14}{Convert.ToDouble(tq121):00.00}";

                return(true);
            }
            catch
            {
                return(false);
            }
        }
 public bool ProcessPRNx(string data, int count, TQ1 tq1)  // PRN with frequency code
 {
     return(true);
 }
 // Usage  --  ProcessDoseSchedule["QJn"]("data pattern", n);
 public bool ProcessQJn(string Data, int Count, TQ1 tq1)
 {
     return(true);
 }
 public bool ProcessPRN(string data, int count, TQ1 tq1)
 {
     return(true);
 }