Browse Source

调整

datasub12_fetal_heart_rate_0
H Vs 3 months ago
parent
commit
df9e6241ca
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs

+ 4
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs View File

@@ -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)
)
{


Loading…
Cancel
Save