public PatientMonitoringController(MainWindow window, IPatientFactory patientFactory)
        {
            _patientFactory = patientFactory;
            _mainWindow = window;
            _alarmMuter = _mainWindow._alarmMuter;

        }
        public PatientMonitoringController(MainWindow window, IPatientFactory patientFactory)
        {
            _patientFactory = patientFactory;
            _mainWindow = window;

            _pulseRate1 = _mainWindow.pulseRate1;
            _breathingRate1 = _mainWindow.breathingRate1;
            _systolicPressure1 = _mainWindow.systolic1;
            _diastolicPressure1 = _mainWindow.diastolic1;
            _temperature1 = _mainWindow.temperature1;

            _pulseRate2 = _mainWindow.pulseRate2;
            _breathingRate2 = _mainWindow.breathingRate2;
            _systolicPressure2 = _mainWindow.systolic2;
            _diastolicPressure2 = _mainWindow.diastolic2;
            _temperature2 = _mainWindow.temperature2;

            _pulseRate3 = _mainWindow.pulseRate3;
            _breathingRate3 = _mainWindow.breathingRate3;
            _systolicPressure3 = _mainWindow.systolic3;
            _diastolicPressure3 = _mainWindow.diastolic3;
            _temperature3 = _mainWindow.temperature3;

            _pulseRate4 = _mainWindow.pulseRate4;
            _breathingRate4 = _mainWindow.breathingRate4;
            _systolicPressure4 = _mainWindow.systolic4;
            _diastolicPressure4 = _mainWindow.diastolic4;
            _temperature4 = _mainWindow.temperature4;

            _pulseRate5 = _mainWindow.pulseRate5;
            _breathingRate5 = _mainWindow.breathingRate5;
            _systolicPressure5 = _mainWindow.systolic5;
            _diastolicPressure5 = _mainWindow.diastolic5;
            _temperature5 = _mainWindow.temperature5;

            _pulseRate6 = _mainWindow.pulseRate6;
            _breathingRate6 = _mainWindow.breathingRate6;
            _systolicPressure6 = _mainWindow.systolic6;
            _diastolicPressure6 = _mainWindow.diastolic6;
            _temperature6 = _mainWindow.temperature6;

            _pulseRate7 = _mainWindow.pulseRate7;
            _breathingRate7 = _mainWindow.breathingRate7;
            _systolicPressure7 = _mainWindow.systolic7;
            _diastolicPressure7 = _mainWindow.diastolic7;
            _temperature7 = _mainWindow.temperature7;

            _pulseRate8 = _mainWindow.pulseRate8;
            _breathingRate8 = _mainWindow.breathingRate8;
            _systolicPressure8 = _mainWindow.systolic8;
            _diastolicPressure8 = _mainWindow.diastolic8;
            _temperature8 = _mainWindow.temperature8;
 
            _alarmMuter = _mainWindow.AlarmMute;
            //_alarmMuter1 = _mainWindow.AlarmMute1;
            //_alarmMuter2 = _mainWindow.AlarmMute2;
            //_alarmMuter3 = _mainWindow.AlarmMute3;
        }
 public PatientCreator(string path, MainWindow _window)
 {
     patientDatbasePath = path;
     window = _window;
     bay = new List<Patient>();
     createPatients();
     setPatientTestDataPath();
     setTestData();
 }
 public PatientMonitoringController(MainWindow window, IPatientFactory patientFactory)
 {
     _patientFactory = patientFactory;
     _mainWindow = window;
     _pulseRate = _mainWindow.pulseRate;
     _breathingRate = _mainWindow.breathingRate;
     _systolicPressure = _mainWindow.systolic;
     _diastolicPressure = _mainWindow.diastolic;
     _temperature = _mainWindow.temperature;
     _alarmMuter = _mainWindow.AlarmMute;
 }
 public PatientMonitoringController(MainWindow window, IPatientFactory patientFactory, PatientCreator _pcreator)
 {
     _patientFactory = patientFactory;
     _mainWindow = window;
     //_pulseRate = _mainWindow.pulseRate;
     //_breathingRate = _mainWindow.breathingRate;
     //_systolicPressure = _mainWindow.systolic;
     //_diastolicPressure = _mainWindow.diastolic;
     //_temperature = _mainWindow.temperature;
     _alarmMuter = _mainWindow.AlarmMute;
     pCreator = _pcreator;
     setSingleBedForms();
 }
 public SingleBed(Patient _p, MainWindow _window)
 {
     p = _p;
     _tickTimer.Start();
     this.Background = Brushes.Yellow;
     _tickTimer.Interval = TimeSpan.FromMilliseconds(1000);
     _tickTimer.Tick += new EventHandler(updateLabels);
     InitializeComponent();
     setLimits();
     patientNameLabel.Content = p.patientName;
     window = _window;
     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;
 }
Exemplo n.º 8
0
		/// <summary>
		/// Readings test.
		/// </summary>
		/// <param name="readings">Readings.</param>
		public void ReadingsTest(IPatientData readings, MainWindow window, int index){
			if (_breathingRateTester.ValueOutsideLimits (readings.BreathingRate)) {
			    if (BreathingRateAlarm != null)
			    {
			        BreathingRateAlarm (this, null);
                    window.ListOfRectangles[index].Alarming(true); //setting the coloured rectangle box to true giving it a colour value of red.
			    }
			}
            if (_pulseRateTester.ValueOutsideLimits(readings.PulseRate))
            {
                if (PulseRateAlarm != null)
                {
                    window.ListOfRectangles[index].Alarming(true);
                    PulseRateAlarm(this, null);
                }

            }
			if (_systolicBpTester.ValueOutsideLimits (readings.SystolicBloodPressure)) {
			    if (SystolicBloodPressureAlarm != null)
			    {
                    window.ListOfRectangles[index].Alarming(true); 
                    SystolicBloodPressureAlarm(this, null);
			    }
			}
			if (_diastolicBpTester.ValueOutsideLimits (readings.DiastolicBloodPressure)) {
			    if (DiastolicBloodPressureAlarm != null)
			    {
                    window.ListOfRectangles[index].Alarming(true); 
                    DiastolicBloodPressureAlarm(this, null);
			    }
			}
			if (_temperatureTester.ValueOutsideLimits (readings.Temperature)) {
			    if (TemperatureAlarm != null)
			    {
                    window.ListOfRectangles[index].Alarming(true); 
                    TemperatureAlarm(this, null);
			    }
			}            
		}
 private void btnSetVitals_Click(object sender, RoutedEventArgs e)
 {
     MainWindow viewSetVitals = new MainWindow();
     viewSetVitals.Show();
 }