diff --git a/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs b/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs index 680e982..4b088d4 100644 --- a/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs +++ b/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs @@ -1166,7 +1166,7 @@ namespace HealthMonitor.Service.Resolver } isAbnormal = 0; } - // 超过highFreqSampleTimes,540s + // 超过highFreqSampleTimes else { if (fetalHeartRate > 220) @@ -1183,12 +1183,16 @@ namespace HealthMonitor.Service.Resolver } isAbnormal = fetalHeartRate > upperAlarmThreshold ? 1 : (fetalHeartRate < lowerAlarmThreshold ? 2 : 0); - if (!lastNormalPhr.Any()) - { - // 偏低(过缓) - isAbnormal = 2; - _logger.LogInformation($"{heartRate.Serialno} 超过10分钟其没有正常值,设置胎心过缓告警"); - } + //if (!lastNormalPhr.Any()) + //{ + // if (selectedHrValue == lastPhr.Select(i => i.PregnancyHeartRate).Max()) + // { + // // 偏低(过缓) + // isAbnormal = 2; + // _logger.LogInformation($"{heartRate.Serialno} 超过10分钟其没有正常值,则取异常范围最大值心率值转换为胎心值,并产生胎心过缓告警设置胎心过缓告警"); + // } + + //} } #endregion diff --git a/HealthMonitor.WebApi/Worker.cs b/HealthMonitor.WebApi/Worker.cs index c5c0843..56f26ea 100644 --- a/HealthMonitor.WebApi/Worker.cs +++ b/HealthMonitor.WebApi/Worker.cs @@ -2388,7 +2388,7 @@ namespace HealthMonitor.WebApi } isAbnormal = 0; } - // 超过highFreqSampleTimes,540s + // 超过highFreqSampleTimes else { if (fetalHeartRate > 220) @@ -2405,12 +2405,16 @@ namespace HealthMonitor.WebApi } isAbnormal = fetalHeartRate > upperAlarmThreshold ? 1 : (fetalHeartRate < lowerAlarmThreshold ? 2 : 0); - if (!lastNormalPhr.Any()) - { - // 偏低(过缓) - isAbnormal = 2; - _logger.LogInformation($"{heartRate.Serialno} 超过10分钟其没有正常值,设置胎心过缓告警"); - } + //if (!lastNormalPhr.Any()) + //{ + // if (selectedHrValue == lastPhr.Select(i => i.PregnancyHeartRate).Max()) + // { + // // 偏低(过缓) + // isAbnormal = 2; + // _logger.LogInformation($"{heartRate.Serialno} 超过10分钟其没有正常值,则取异常范围最大值心率值转换为胎心值,并产生胎心过缓告警设置胎心过缓告警"); + // } + + //} } #endregion