|
|
@@ -26,6 +26,7 @@ using TDengineDriver.Impl; |
|
|
|
using TDengineTMQ; |
|
|
|
using HealthMonitor.Service.Cache; |
|
|
|
using System.Text.RegularExpressions; |
|
|
|
using Etcdserverpb; |
|
|
|
|
|
|
|
namespace HealthMonitor.Service.Biz.db |
|
|
|
{ |
|
|
@@ -1153,6 +1154,19 @@ namespace HealthMonitor.Service.Biz.db |
|
|
|
StatModeAvgFprCoefficient = (float)Math.Round((decimal)map.FetalHeartRateAverage / mode, 3); |
|
|
|
} |
|
|
|
} |
|
|
|
// 如果最大值与最小值在60~100范围内,都按个固定值下发高频阈值。 |
|
|
|
var maxValue = closestToModeData.Max(); |
|
|
|
var minValue = closestToModeData.Min(); |
|
|
|
|
|
|
|
if (maxValue >= 60 && maxValue <= 100) |
|
|
|
{ |
|
|
|
maxValue = 100; |
|
|
|
} |
|
|
|
|
|
|
|
if (minValue >= 60 && minValue <= 100) |
|
|
|
{ |
|
|
|
minValue = 60; |
|
|
|
} |
|
|
|
|
|
|
|
return new PregnancyCommonHeartRateModel() |
|
|
|
{ |
|
|
@@ -1162,8 +1176,8 @@ namespace HealthMonitor.Service.Biz.db |
|
|
|
SerialNumber = collection.First().SerialNumber, |
|
|
|
Mode = mode, |
|
|
|
Percentage = percentage, |
|
|
|
MaxValue = closestToModeData.Max(), |
|
|
|
MinValue = closestToModeData.Min(), |
|
|
|
MaxValue = maxValue, |
|
|
|
MinValue = minValue, |
|
|
|
OriginalMaxValue = res.Max(), |
|
|
|
OriginalMinValue = res.Min(), |
|
|
|
CreateTime = DateTime.Now, |
|
|
|