Pārlūkot izejas kodu

调整高频阈值

datasub12_fetal_heart_rate_0
H Vs pirms 3 mēnešiem
vecāks
revīzija
ab6d5eabe6
1 mainītis faili ar 16 papildinājumiem un 2 dzēšanām
  1. +16
    -2
      HealthMonitor.Service/Biz/db/TDengineService.cs

+ 16
- 2
HealthMonitor.Service/Biz/db/TDengineService.cs Parādīt failu

@@ -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,


Notiek ielāde…
Atcelt
Saglabāt