|
|
@@ -256,9 +256,12 @@ namespace HealthMonitor.Service.Resolver |
|
|
|
//var lastPhr = phr.OrderByDescending(i => i.LastUpdate).Take(stopHighFreqSampleCount).ToList(); |
|
|
|
var lastPhr = phr.Where(i=>i.LastUpdate>= phrFreqstatus!.LastUpdate) |
|
|
|
.OrderByDescending(i => i.LastUpdate).Take(stopHighFreqSampleCount).ToList(); |
|
|
|
_logger.LogInformation($"{heartRate.Serialno} lastPhr.Count {lastPhr.Count},stopHighFreqSampleCount {stopHighFreqSampleCount}"); |
|
|
|
_logger.LogInformation($"{heartRate.Serialno} count :{lastPhr.Count >= stopHighFreqSampleCount}"); |
|
|
|
_logger.LogInformation($"{heartRate.Serialno} All {lastPhr.All(i => i.PregnancyHeartRate >= triggerHighFreqLow && i.PregnancyHeartRate <= triggerHighFreqHigh)}"); |
|
|
|
|
|
|
|
// 检查是否连续12个值都是正常的 |
|
|
|
if (lastPhr.Count >= stopHighFreqSampleCount && |
|
|
|
if ((lastPhr.Count >= stopHighFreqSampleCount) && |
|
|
|
lastPhr.All(i => i.PregnancyHeartRate >= triggerHighFreqLow && i.PregnancyHeartRate <= triggerHighFreqHigh) |
|
|
|
) |
|
|
|
{ |
|
|
|