Example #1
0
 void StarMeasuring()
 {
     vitalSignsProcessingHR = new VitalSignsProcessing();
     vitalSignsProcessingO2 = new VitalSignsProcessing();
     CameraVisible          = true;
     InstructionsVisible    = false;
     Analytics.TrackEvent("Star measurings");
 }
Example #2
0
        void MeasureO2(byte[] data, Size size)
        {
            if (vitalSignsProcessingO2 == null)
            {
                return;
            }
            //we need to handle errors here
            var o2 = vitalSignsProcessingO2.O2Processsing(data, size);

            if (o2 > 0)
            {
                Instructions        = $"Your results for O2 saturation is {o2}";
                CameraVisible       = false;
                InstructionsVisible = true;
                Analytics.TrackEvent($"Measuring success o2 results",
                                     new Dictionary <string, string>()
                {
                    { "o2", o2.ToString() }
                });
                vitalSignsProcessingO2 = null;
            }
        }
Example #3
0
        void MeasureBeats(byte[] data, Size size)
        {
            if (vitalSignsProcessingHR == null)
            {
                return;
            }
            //we need to handle errors here
            var beats = vitalSignsProcessingHR.HRProcesssing(data, size);

            if (beats > 0)
            {
                Instructions        = $"Your results for heart rate is {beats}";
                CameraVisible       = false;
                InstructionsVisible = true;
                Analytics.TrackEvent($"Measuring success beats",
                                     new Dictionary <string, string>()
                {
                    { "Beats", beats.ToString() }
                });
                vitalSignsProcessingHR = null;
            }
        }