|
|
@@ -582,18 +582,18 @@ namespace HealthMonitor.Service.Biz.db |
|
|
|
.OrderByDescending(i => i.SystolicValue) |
|
|
|
.ThenByDescending(i => i.DiastolicValue) |
|
|
|
.ToList(); |
|
|
|
_logger.LogInformation($"计算时间段排列数据集:{JsonConvert.SerializeObject(sortedList)}"); |
|
|
|
//_logger.LogInformation($"计算时间段排列数据集:{JsonConvert.SerializeObject(sortedList)}"); |
|
|
|
// 去除最大值和最小值各一个(列表的头和尾) |
|
|
|
var trimmedList = sortedList? |
|
|
|
.Skip(1) |
|
|
|
.Take(sortedList.Count - 2) |
|
|
|
.ToList(); |
|
|
|
|
|
|
|
_logger.LogInformation($"计算去除最大值和最小值各一个数据集:{JsonConvert.SerializeObject(trimmedList)}"); |
|
|
|
//_logger.LogInformation($"计算去除最大值和最小值各一个数据集:{JsonConvert.SerializeObject(trimmedList)}"); |
|
|
|
// 去除异常值 |
|
|
|
var filteredList = trimmedList?.Where(bp => bp.SystolicValue < SafeType.SafeInt(systolicRefValue!)).ToList(); |
|
|
|
|
|
|
|
_logger.LogInformation($"计算除异常值个数据集:{JsonConvert.SerializeObject(filteredList)}"); |
|
|
|
//_logger.LogInformation($"计算除异常值个数据集:{JsonConvert.SerializeObject(filteredList)}"); |
|
|
|
|
|
|
|
if (filteredList?.Count < 2) |
|
|
|
{ |
|
|
@@ -620,18 +620,18 @@ namespace HealthMonitor.Service.Biz.db |
|
|
|
.OrderByDescending(i => i.SystolicValue) |
|
|
|
.ThenByDescending(i => i.DiastolicValue) |
|
|
|
.ToList(); |
|
|
|
_logger.LogInformation($"计算时间段排列数据集:{JsonConvert.SerializeObject(sortedList)}"); |
|
|
|
//_logger.LogInformation($"计算时间段排列数据集:{JsonConvert.SerializeObject(sortedList)}"); |
|
|
|
// 去除最大值和最小值各一个(列表的头和尾) |
|
|
|
var trimmedList = sortedList? |
|
|
|
.Skip(1) |
|
|
|
.Take(sortedList.Count - 2) |
|
|
|
.ToList(); |
|
|
|
|
|
|
|
_logger.LogInformation($"计算去除最大值和最小值各一个数据集:{JsonConvert.SerializeObject(trimmedList)}"); |
|
|
|
//_logger.LogInformation($"计算去除最大值和最小值各一个数据集:{JsonConvert.SerializeObject(trimmedList)}"); |
|
|
|
|
|
|
|
var filteredList = trimmedList?.ToList(); |
|
|
|
|
|
|
|
_logger.LogInformation($"计算除异常值个数据集:{JsonConvert.SerializeObject(filteredList)}"); |
|
|
|
//_logger.LogInformation($"计算除异常值个数据集:{JsonConvert.SerializeObject(filteredList)}"); |
|
|
|
|
|
|
|
if (filteredList?.Count < 2) |
|
|
|
{ |
|
|
|