private HealthSample CreateBloodPressureSample(DateTimeOffset date, BloodPressureUnit systolic, BloodPressureUnit diastolic)
        {
            var dateRange = new HealthSample.HealthSampleDateRange(date, date);
            var sample    = new HealthSample()
            {
                DateRange          = dateRange,
                Type               = "blood_pressure",
                ClientAssignedId   = Guid.NewGuid().ToString(),
                CorrelationObjects = new List <HealthSample>()
                {
                    new HealthSample()
                    {
                        DateRange        = dateRange,
                        Type             = "blood_pressure_systolic",
                        QuantityValue    = systolic,
                        ClientAssignedId = Guid.NewGuid().ToString()
                    },
                    new HealthSample()
                    {
                        DateRange        = dateRange,
                        Type             = "blood_pressure_diastolic",
                        QuantityValue    = diastolic,
                        ClientAssignedId = Guid.NewGuid().ToString()
                    }
                }
            };

            return(sample);
        }
Beispiel #2
0
 public CustomHealthCheck(HealthSample healthSample) => _healthSample = healthSample;
 public CustomReadyCheck(HealthSample healthSample) => _healthSample = healthSample;