void createPatients()
        {
            dataFile = new StreamReader(patientDatbasePath);
            string text;
            dataFile.ReadLine();
            //dataFile.ReadLine();
            while ((text = dataFile.ReadLine()) != null)
            {
                //text = dataFile.ReadLine();
                string[] dataItems = text.Split(',');
                int pNum = int.Parse(dataItems[0]);
                string pName = dataItems[1];
                int pl = int.Parse(dataItems[2]);
                int ph = int.Parse(dataItems[3]);
                int bl = int.Parse(dataItems[4]);
                int bh = int.Parse(dataItems[5]);
                int sl = int.Parse(dataItems[6]);
                int sh = int.Parse(dataItems[7]);
                int dl = int.Parse(dataItems[8]);
                int dh = int.Parse(dataItems[9]);
                int tl = int.Parse(dataItems[10]);
                int th = int.Parse(dataItems[11]);
                Patient newPatient = new Patient(pNum, pName, pl, ph, bl, bh, sl, sh, dl, dh, tl, th);
                PatientData pd = new PatientData();
                newPatient.setPatientData(pd);
                PatientAlarmer alarm  = new PatientAlarmer(newPatient, window);
                newPatient.setAlarm(alarm);
                bay.Add(newPatient);

            }
        }
 public SingleBed(Patient _p)
 {
     p = _p;
     _tickTimer.Start();
     this.Background = Brushes.Yellow;
     _tickTimer.Interval = TimeSpan.FromMilliseconds(1000);
     _tickTimer.Tick += new EventHandler(updateLabels);
     InitializeComponent();
     setLimits();
     patientNameLabel.Content = p.patientName;
     createComboBox();
 }
 public PatientAlarmer(Patient p, MainWindow _window)
 {
     Mods = new List<Mod>();
     Mod mod1 = new Mod("Pulse Rate", p.pulseRateLower, p.pulseRateHigher);
     Mods.Add(mod1);
     Mod mod2 = new Mod("Breathing Rate", p.breathingRateLower, p.breathingRateHigher);
     Mods.Add(mod2);
     Mod mod3A = new Mod("Sys Pressure", p.systolicPressureLower, p.systolicPressureHigher);
     Mods.Add(mod3A);
     Mod mod3B = new Mod("Dia Pressure", p.diastolicPressureLower, p.diastolicPressureHigher);
     Mods.Add(mod3B);
     Mod mod4 = new Mod("Temperature", p.temperatureLower, p.temperatureHigher);
     Mods.Add(mod4);
     Mod mod5 = new Mod("Mod 5", 0, 300);
     Mods.Add(mod5);
     window = _window;
 }
 void pushNewWindow(bool _alarmFlag, Patient p)
 {
     if (_alarmFlag)
     {
         window.Dispatcher.Invoke((Action)(() =>
         {
             if (!p.bed.IsVisible)
             {
                 p.bed = new SingleBed(p, window);
                 p.bed.Show();
             }
         }));
     }
 }
        void checkAlarmUpdates(Patient p)
        {
            for (int i = 0; i <= Mods.Count; i++)
            {
                switch (i)
                {
                    case 0:
                        Mods[i]._ModTester = new AlarmTester(Mods[i].isVisible, p.pulseRateLower, p.pulseRateHigher);
                        break;
                    case 1:
                        Mods[i]._ModTester = new AlarmTester(Mods[i].isVisible, p.breathingRateLower, p.breathingRateHigher);
                        break;
                    case 2:
                        Mods[i]._ModTester = new AlarmTester(Mods[i].isVisible, p.systolicPressureLower, p.systolicPressureHigher);
                        break;
                    case 3:
                        Mods[i]._ModTester = new AlarmTester(Mods[i].isVisible, p.diastolicPressureLower, p.diastolicPressureHigher);
                        break;
                    case 4:
                        Mods[i]._ModTester = new AlarmTester(Mods[i].isVisible, p.temperatureLower, p.temperatureHigher);
                        break;
                    //case 5:
                    //    Mods[i].readingTests(p.pData.Mod1);
                    //    break;
                    //case 1:
                    //    Mods[i].readingTests(p.pData.Mod1);
                    //    break;
                    //case 1:
                    //    Mods[i].readingTests(p.pData.Mod1);
                    //    break;
                    default:
                        break;
                }
            }

            //_Mod2Tester = new AlarmTester(Mod2IsVisible, p.breathingRateLower, p.breathingRateHigher);
            //_Mod1Tester = new AlarmTester(Mod1IsVisible, p.pulseRateLower, p.pulseRateHigher);
            //_Mod3ATester = new AlarmTester(Mod3AIsVisible, p.systolicPressureLower, p.systolicPressureHigher);
            //_Mod3BTester = new AlarmTester(Mod3BIsVisible, p.diastolicPressureLower, p.diastolicPressureHigher);
            //_Mod4Tester = new AlarmTester(Mod4IsVisible, p.temperatureLower, p.temperatureHigher);
        }
        public void ReadingsTest(Patient p)
        {
            checkAlarmUpdates(p);

            for (int i = 0; i <= Mods.Count; i++)
            {
                switch (i)
                {
                    case 0:
                        Mods[i].readingTests(p.pData.Mod1);
                        if (Mods[i]._alarmFlag == true)
                        {
                            pushNewWindow(true, p);
                        }
                        break;
                    case 1:
                        Mods[i].readingTests(p.pData.Mod2);
                        if (Mods[i]._alarmFlag == true)
                        {
                            pushNewWindow(true, p);
                        }
                        break;
                    case 2:
                        Mods[i].readingTests(p.pData.Mod3A);
                        if (Mods[i]._alarmFlag == true)
                        {
                            pushNewWindow(true, p);
                        }
                        break;
                    case 3:
                        Mods[i].readingTests(p.pData.Mod3B);
                        if (Mods[i]._alarmFlag == true)
                        {
                            pushNewWindow(true, p);
                        }
                        break;
                    case 4:
                        Mods[i].readingTests(p.pData.Mod4);
                        if (Mods[i]._alarmFlag == true)
                        {
                            pushNewWindow(true, p);
                        }
                        break;
                    //case 5:
                    //    Mods[i].readingTests(p.pData.Mod1);
                    //    break;
                    //case 1:
                    //    Mods[i].readingTests(p.pData.Mod1);
                    //    break;
                    //case 1:
                    //    Mods[i].readingTests(p.pData.Mod1);
                    //    break;
                    default:
                        break;
                }
            }

            //if (_Mod2Tester.ValueOutsideLimits(p.pData.Mod2))
            //{
            //    if (Mod2Alarm != null) Mod2Alarm(this, null);
            //    pushNewWindow(true, p);

            //}
            //if (_Mod1Tester.ValueOutsideLimits(p.pData.Mod1))
            //{
            //    if (Mod1Alarm != null) Mod1Alarm(this, null);
            //    pushNewWindow(true, p);
            //}
            //if (_Mod3ATester.ValueOutsideLimits(p.pData.Mod3A))
            //{
            //    if (Mod3AAlarm != null) Mod3AAlarm(this, null);
            //    pushNewWindow(true, p);
            //}
            //if (_Mod3BTester.ValueOutsideLimits(p.pData.Mod3B))
            //{
            //    if (Mod3BAlarm != null) Mod3BAlarm(this, null);
            //    pushNewWindow(true, p);
            //}
            //if (_Mod4Tester.ValueOutsideLimits(p.pData.Mod4))
            //{
            //    if (Mod4Alarm != null) Mod4Alarm(this, null);
            //    pushNewWindow(true, p);
            //}
        }
示例#7
0
        void IntializePatients()
        {
            ObservableCollection <Patient> patientDetails = new ObservableCollection <Patient>();

            patientDetails.Add(new Patient()
            {
                Name = "Jessie Mcferron", Image = ImageSource.FromResource("PatientMonitor.Images.Image1.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Erik Edgemon", Image = ImageSource.FromResource("PatientMonitor.Images.Image2.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Christian Tilson", Image = ImageSource.FromResource("PatientMonitor.Images.Image3.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Jessie Badgley", Image = ImageSource.FromResource("PatientMonitor.Images.Image4.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Ted Zinke", Image = ImageSource.FromResource("PatientMonitor.Images.Image5.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Julio Ice", Image = ImageSource.FromResource("PatientMonitor.Images.Image6.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Clayton Lillibridge", Image = ImageSource.FromResource("PatientMonitor.Images.Image7.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Mathew Lechler", Image = ImageSource.FromResource("PatientMonitor.Images.Image8.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Cody Paskett", Image = ImageSource.FromResource("PatientMonitor.Images.Image13.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Nelson Donnellan", Image = ImageSource.FromResource("PatientMonitor.Images.Image10.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Alejandra Mescher", Image = ImageSource.FromResource("PatientMonitor.Images.Image11.png")
            });

            patientDetails.Add(new Patient()
            {
                Name = "Darcy Mascio", Image = ImageSource.FromResource("PatientMonitor.Images.Image7.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Clayton Lebaron", Image = ImageSource.FromResource("PatientMonitor.Images.Image8.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Javier Vanleuven", Image = ImageSource.FromResource("PatientMonitor.Images.Image9.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Allan Quarterman", Image = ImageSource.FromResource("PatientMonitor.Images.Image14.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Kelly Barga", Image = ImageSource.FromResource("PatientMonitor.Images.Image10.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Lance Piotrowski", Image = ImageSource.FromResource("PatientMonitor.Images.Image11.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Zazueta", Image = ImageSource.FromResource("PatientMonitor.Images.Image4.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "JKarina Ziolkowski", Image = ImageSource.FromResource("PatientMonitor.Images.Image1.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Tameka Douse", Image = ImageSource.FromResource("PatientMonitor.Images.Image6.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Tyrone Hadfield", Image = ImageSource.FromResource("PatientMonitor.Images.Image3.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Gay Roeser", Image = ImageSource.FromResource("PatientMonitor.Images.Image4.png")
            });

            patientDetails.Add(new Patient()
            {
                Name = "Clayton Lokey", Image = ImageSource.FromResource("PatientMonitor.Images.Image12.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Karina Ziolkowski", Image = ImageSource.FromResource("PatientMonitor.Images.Image13.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Tameka Douse", Image = ImageSource.FromResource("PatientMonitor.Images.Image14.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Allan Hoefler", Image = ImageSource.FromResource("PatientMonitor.Images.Image2.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Louisa Fargo", Image = ImageSource.FromResource("PatientMonitor.Images.Image6.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Tyrone Hadfield", Image = ImageSource.FromResource("PatientMonitor.Images.Image3.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Laconte", Image = ImageSource.FromResource("PatientMonitor.Images.Image1.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Alana Barranco", Image = ImageSource.FromResource("PatientMonitor.Images.Image6.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Darryl Saunier", Image = ImageSource.FromResource("PatientMonitor.Images.Image10.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Fernando Kirschbaum", Image = ImageSource.FromResource("PatientMonitor.Images.Image4.png")
            });
            patientDetails.Add(new Patient()
            {
                Name = "Fernando Kirschbaum", Image = ImageSource.FromResource("PatientMonitor.Images.Image5.png")
            });

            for (int i = 0; i < patientDetails.Count - 1; i++)
            {
                Patient patient = patientDetails[i];
                patient.RNo          = (i + 1);
                patient.Observations = this.GetRandomObservations();
            }

            this.Patients = patientDetails;
        }
        //new code
        public void updateBackgroundReadings(Patient p)
        {
            #region old code
            //int count = 0;
            //int line = 0;
            //while (true)
            //{
            //    if (count > 10000000)
            //    {
            //        string[] current = p.testData[line];
            //        string[] dataItems = current;
            //        p.PulseRate = float.Parse(dataItems[0]);
            //        p.BreathingRate = float.Parse(dataItems[1]);
            //        p.SystolicBloodPressure = float.Parse(dataItems[2]);
            //        p.DiastolicBloodPressure = float.Parse(dataItems[3]);
            //        p.Temperature = float.Parse(dataItems[4]);
            //        count = 0;
            //        line += 1;
            //        _mainWindow.Dispatcher.Invoke((Action)(() =>
            //        {
            //            if (selectedPaitent == p)
            //            {
            //                _pulseRate.Content = p.PulseRate.ToString();
            //                _breathingRate.Content = p.BreathingRate.ToString();
            //                _systolicPressure.Content = p.SystolicBloodPressure.ToString();
            //                _diastolicPressure.Content = p.DiastolicBloodPressure.ToString();
            //                _temperature.Content = p.Temperature.ToString();
            //            }
            //        }));

            //    }
            //    if (line == 95)
            //        line = 0;
            //    count++;
            //}

            #endregion

            string[] current = p.pData.testData[line];
            string[] dataItems = current;
            p.pData.Mod1 = float.Parse(dataItems[0]);
            p.pData.Mod2 = float.Parse(dataItems[1]);
            p.pData.Mod3A = float.Parse(dataItems[2]);
            p.pData.Mod3B = float.Parse(dataItems[3]);
            p.pData.Mod4 = float.Parse(dataItems[4]);
            p.pAlarmer.ReadingsTest(p);
            _mainWindow.Dispatcher.Invoke((Action)(() =>
                    {
                        #region Outputting To the Main Screen
                        if (selectedPaitent == p)
                        {

                            //for (int i = 0; i <= p.pAlarmer.Mods.Count; i++)
                            //{
                            //    switch (i)
                            //    {

                            //    }
                            //}

                            foreach (Mod _mod in p.pAlarmer.Mods)
                            {
                                if (_mod.isVisible == true)
                                {
                                    switch (_mod.modposition)
                                    {
                                        case 1:
                                            if (_mod.modName == "Sys Pressure" || _mod.modName == "Dia Pressure")
                                            {
                                                _mainWindow.readingMod1.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod1Slash.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod1Extra.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod1.Content = p.pData.Mod3A.ToString();
                                                _mainWindow.readingMod1Extra.Content = p.pData.Mod3B.ToString();
                                                break;
                                            }
                                            else
                                            {
                                                _mainWindow.readingMod1.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod1Slash.Visibility = System.Windows.Visibility.Hidden;
                                                _mainWindow.readingMod1Extra.Visibility = System.Windows.Visibility.Hidden;
                                                if (_mod.modName == "Pulse Rate")
                                                    _mainWindow.readingMod1.Content = p.pData.Mod1.ToString();
                                                if (_mod.modName == "Breathing Rate")
                                                    _mainWindow.readingMod1.Content = p.pData.Mod2.ToString();
                                                if (_mod.modName == "Temperature")
                                                    _mainWindow.readingMod1.Content = p.pData.Mod4.ToString();
                                                break;
                                            }
                                        case 2:
                                            if (_mod.modName == "Sys Pressure" || _mod.modName == "Dia Pressure")
                                            {
                                                _mainWindow.readingMod2.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod2Slash.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod2Extra.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod2.Content = p.pData.Mod3A.ToString();
                                                _mainWindow.readingMod2Extra.Content = p.pData.Mod3B.ToString();

                                                break;
                                            }
                                            else
                                            {
                                                _mainWindow.readingMod2.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod2Slash.Visibility = System.Windows.Visibility.Hidden;
                                                _mainWindow.readingMod2Extra.Visibility = System.Windows.Visibility.Hidden;
                                                if (_mod.modName == "Pulse Rate")
                                                    _mainWindow.readingMod2.Content = p.pData.Mod1.ToString();
                                                if (_mod.modName == "Breathing Rate")
                                                    _mainWindow.readingMod2.Content = p.pData.Mod2.ToString();
                                                if (_mod.modName == "Temperature")
                                                    _mainWindow.readingMod2.Content = p.pData.Mod4.ToString();
                                                break;
                                            }
                                        case 3:
                                            if (_mod.modName == "Sys Pressure" || _mod.modName == "Dia Pressure")
                                            {
                                                _mainWindow.readingMod3.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod3Slash.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod3Extra.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod3.Content = p.pData.Mod3A.ToString();
                                                _mainWindow.readingMod3Extra.Content = p.pData.Mod3B.ToString();
                                                break;
                                            }
                                            else
                                            {
                                                _mainWindow.readingMod3.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod3Slash.Visibility = System.Windows.Visibility.Hidden;
                                                _mainWindow.readingMod3Extra.Visibility = System.Windows.Visibility.Hidden;
                                                if (_mod.modName == "Pulse Rate")
                                                    _mainWindow.readingMod3.Content = p.pData.Mod1.ToString();
                                                if (_mod.modName == "Breathing Rate")
                                                    _mainWindow.readingMod3.Content = p.pData.Mod2.ToString();
                                                if (_mod.modName == "Temperature")
                                                    _mainWindow.readingMod3.Content = p.pData.Mod4.ToString();
                                                break;
                                            }
                                        case 4:
                                            if (_mod.modName == "Sys Pressure" || _mod.modName == "Dia Pressure")
                                            {
                                                _mainWindow.readingMod4.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod4Slash.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod4Extra.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod4.Content = p.pData.Mod3A.ToString();
                                                _mainWindow.readingMod4Extra.Content = p.pData.Mod3B.ToString();
                                                break;
                                            }
                                            else
                                            {
                                                _mainWindow.readingMod4.Visibility = System.Windows.Visibility.Visible;
                                                _mainWindow.readingMod4Slash.Visibility = System.Windows.Visibility.Hidden;
                                                _mainWindow.readingMod4Extra.Visibility = System.Windows.Visibility.Hidden;
                                                if (_mod.modName == "Pulse Rate")
                                                    _mainWindow.readingMod4.Content = p.pData.Mod1.ToString();
                                                if (_mod.modName == "Breathing Rate")
                                                    _mainWindow.readingMod4.Content = p.pData.Mod2.ToString();
                                                if (_mod.modName == "Temperature")
                                                    _mainWindow.readingMod4.Content = p.pData.Mod4.ToString();
                                                break;
                                            }
                                    }
                                }

                                #region oldCode

                                //if (p.pAlarmer.Mod1IsVisible == true)
                                //{
                                //    switch (p.pAlarmer.Mod1Position)
                                //    {
                                //        case 1:
                                //            _mainWindow.readingMod1.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod1Slash.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod1Extra.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod1.Content = p.pData.Mod1.ToString();
                                //            break;
                                //        case 2:
                                //            _mainWindow.readingMod2.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod2Slash.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod2Extra.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod2.Content = p.pData.Mod1.ToString();
                                //            break;
                                //    }

                                //}
                                //if (p.pAlarmer.Mod2IsVisible == true)
                                //{
                                //    switch (p.pAlarmer.Mod2Position)
                                //    {
                                //        case 1:
                                //            _mainWindow.readingMod1.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod1Slash.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod1Extra.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod1.Content = p.pData.Mod2.ToString();
                                //            break;
                                //        case 2:
                                //            _mainWindow.readingMod2.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod2Slash.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod2Extra.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod2.Content = p.pData.Mod2.ToString();
                                //            break;
                                //    }
                                //}
                                //if (p.pAlarmer.Mod3AIsVisible == true && p.pAlarmer.Mod3BIsVisible == true)
                                //{
                                //    switch (p.pAlarmer.Mod3Position)
                                //    {
                                //        case 1:
                                //            _mainWindow.readingMod1.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod1Slash.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod1Extra.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod1.Content = p.pData.Mod3A.ToString();
                                //            _mainWindow.readingMod1Extra.Content = p.pData.Mod3B.ToString();
                                //            break;
                                //        case 2:
                                //            _mainWindow.readingMod2.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod2Slash.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod2Extra.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod2.Content = p.pData.Mod3A.ToString();
                                //            _mainWindow.readingMod2Extra.Content = p.pData.Mod3B.ToString();
                                //            break;
                                //    }

                                //}
                                //if (p.pAlarmer.Mod4IsVisible == true)
                                //{
                                //    switch (p.pAlarmer.Mod4Position)
                                //    {
                                //        case 1:
                                //            _mainWindow.readingMod1.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod1Slash.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod1Extra.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod1.Content = p.pData.Mod4.ToString();
                                //            break;
                                //        case 2:
                                //            _mainWindow.readingMod2.Visibility = System.Windows.Visibility.Visible;
                                //            _mainWindow.readingMod2Slash.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod2Extra.Visibility = System.Windows.Visibility.Hidden;
                                //            _mainWindow.readingMod2.Content = p.pData.Mod2.ToString();
                                //            break;
                                //    }
                                //}

                                #endregion
                                #endregion
                            }

                            //_systolicPressure.Content = p.pData.Mod3A.ToString();
                            //_diastolicPressure.Content = p.pData.Mod3B.ToString();
                            //_temperature.Content = p.pData.Mod4.ToString();
                            //_pulseRate.Content = p.pData.Mod1.ToString();
                            //_breathingRate.Content = p.pData.Mod2.ToString();
                        }
                    }));
        }
 public void setSelectedPatient(Patient p)
 {
     selectedPaitent = p;
 }
 //new code
 public void setLabels(Patient p)
 {
 }