@@ -1096,6 +1096,7 @@ namespace HealthMonitor.Service.Resolver | |||
{ | |||
// 取12个值的最小值心率值转换为胎心值。 | |||
selectedHrValue = lastPhr.Select(i => i.PregnancyHeartRate).Min(); | |||
_logger.LogInformation($"{heartRate.Serialno} 取12个值的最小值心率值转换为胎心值"); | |||
} | |||
if (lastPhr.Select(i => i.PregnancyHeartRate).Min() < triggerHighFreqLow) | |||
@@ -1107,6 +1108,7 @@ namespace HealthMonitor.Service.Resolver | |||
selectedHrValue = lastNormalPhr | |||
.Select(i => i.PregnancyHeartRate) | |||
.Min(); | |||
_logger.LogInformation($"{heartRate.Serialno} 有正常值,取正常范围内的最小值心率值转换为胎心值,不产生告警"); | |||
} | |||
// 无正常值 | |||
if (!lastNormalPhr.Any()) | |||
@@ -1114,13 +1116,14 @@ namespace HealthMonitor.Service.Resolver | |||
selectedHrValue = lastPhr | |||
.Select(i => i.PregnancyHeartRate) | |||
.Max(); | |||
_logger.LogInformation($"{heartRate.Serialno} 无正常值,则取异常范围最大值心率值转换为胎心值,并产生胎心过缓告警"); | |||
} | |||
} | |||
_logger.LogInformation($"{heartRate.Serialno} 高频选择心率值:{selectedHrValue}"); | |||
var fetalHeartRate = await _serviceTDengine.GetFetalHeartRateAsync(heartRate.Serialno, selectedHrValue); | |||
_logger.LogInformation($"高频状态计算,由高频心率 {selectedHrValue} 根据胎心算法转换的胎心值 {fetalHeartRate}"); | |||
_logger.LogInformation($"{heartRate.Serialno} 高频状态计算,由高频心率 {selectedHrValue} 根据胎心算法转换的胎心值 {fetalHeartRate}"); | |||
#endregion | |||
#region 判断是否够highFreqSampleTimes,540s | |||
@@ -2330,6 +2330,7 @@ namespace HealthMonitor.WebApi | |||
{ | |||
// 取12个值的最小值心率值转换为胎心值。 | |||
selectedHrValue = lastPhr.Select(i => i.PregnancyHeartRate).Min(); | |||
_logger.LogInformation($"{heartRate.Serialno} 取12个值的最小值心率值转换为胎心值"); | |||
} | |||
if (lastPhr.Select(i => i.PregnancyHeartRate).Min() < triggerHighFreqLow) | |||
@@ -2341,6 +2342,7 @@ namespace HealthMonitor.WebApi | |||
selectedHrValue = lastNormalPhr | |||
.Select(i => i.PregnancyHeartRate) | |||
.Min(); | |||
_logger.LogInformation($"{heartRate.Serialno} 有正常值,取正常范围内的最小值心率值转换为胎心值,不产生告警"); | |||
} | |||
// 无正常值 | |||
if (!lastNormalPhr.Any()) | |||
@@ -2348,13 +2350,14 @@ namespace HealthMonitor.WebApi | |||
selectedHrValue = lastPhr | |||
.Select(i => i.PregnancyHeartRate) | |||
.Max(); | |||
_logger.LogInformation($"{heartRate.Serialno} 无正常值,则取异常范围最大值心率值转换为胎心值,并产生胎心过缓告警"); | |||
} | |||
} | |||
_logger.LogInformation($"{heartRate.Serialno} 高频选择心率值:{selectedHrValue}"); | |||
var fetalHeartRate = await _serviceTDengine.GetFetalHeartRateAsync(heartRate.Serialno, selectedHrValue); | |||
_logger.LogInformation($"高频状态计算,由高频心率 {selectedHrValue} 根据胎心算法转换的胎心值 {fetalHeartRate}"); | |||
_logger.LogInformation($"{heartRate.Serialno} 高频状态计算,由高频心率 {selectedHrValue} 根据胎心算法转换的胎心值 {fetalHeartRate}"); | |||
#endregion | |||
#region 判断是否够highFreqSampleTimes,540s | |||