Exemplo n.º 1
0
 public UsageInfo(UsageInfo usage)
 {
     UsageID         = usage.UsageID;
     ExpectedStartDt = usage.ExpectedStartDt;
     ActualStartDt   = usage.ActualStartDt;
     DeclineHistory  = usage.DeclineHistory;
 }
Exemplo n.º 2
0
        public void sendPatientAlert()
        {
            UsageInfo usage = new UsageInfo(usageInfo);

            Console.WriteLine("Todays dosage : " + usage.getTodaysDosage());
            Console.WriteLine("Patient Accept/Declained : " + "Y/N");
            // Get patient respondse.
            string T = Console.ReadLine();

            if ((T).ToUpper().Equals(("Y")))
            {
                Console.WriteLine("Patient accepted.");
            }
            else
            {
                // If declained update DB.
                Console.WriteLine("Patient declined.");
                usageInfo.DeclineHistory.Add(DateTime.Now, usage.getTodaysDosage());
            }
            Console.ReadLine();
        }