Procházet zdrojové kódy

调整

datasub12_fetal_heart_rate_0
H Vs před 3 měsíci
rodič
revize
df9e6241ca
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +4
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs

+ 4
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs Zobrazit soubor

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


Načítá se…
Zrušit
Uložit