소스 검색

调整

datasub12_fetal_heart_rate_0
H Vs 3 달 전
부모
커밋
df9e6241ca
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs

+ 4
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs 파일 보기

@@ -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…
취소
저장