Browse Source

调整

datasub12_fetal_heart_rate_1
H Vs 2 weeks ago
parent
commit
2cda8bf848
3 changed files with 7 additions and 3 deletions
  1. +1
    -1
      HealthMonitor.Service/Biz/db/TDengineService.cs
  2. +2
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs
  3. +4
    -1
      HealthMonitor.WebApi/Worker.cs

+ 1
- 1
HealthMonitor.Service/Biz/db/TDengineService.cs View File

@@ -1371,7 +1371,7 @@ namespace HealthMonitor.Service.Biz.db
//胎心值 = 正常胎心最小值 + 增量系数 * (心率值 - 阀值最小值)
var fetalHeartRate = NormaletalHeartRateMin + coefficient * (heartrateValue - triggerHighFreqLow);

_logger.LogInformation($"{serialNo} 孕周:{pregnancyWeek}, 正常胎心最大值:{NormaletalHeartRateMax},正常胎心最小值:{NormaletalHeartRateMin},阀值最大值:{triggerHighFreqHigh} ,阀值最小值:{triggerHighFreqLow}, 本次增量系数:{coefficient},本次心率值:{heartrateValue}");
_logger.LogInformation($"{serialNo} 孕周:{pregnancyWeek}, 正常胎心最大值:{NormaletalHeartRateMax},正常胎心最小值:{NormaletalHeartRateMin},高频触发阀值最大值:{triggerHighFreqHigh} ,高频触发阀值最小值:{triggerHighFreqLow}, 本次增量系数:{coefficient},本次心率值:{heartrateValue}");
return SafeType.SafeInt(fetalHeartRate!);
}



+ 2
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs View File

@@ -1141,7 +1141,7 @@ namespace HealthMonitor.Service.Resolver
#endregion

#region 判断是否够highFreqSampleTimes,540s
var ts = DateTimeUtil.GetTimeDifferenceInSeconds((DateTime)heartRate.LastUpdate!, phrFreqstatus!.LastUpdate);
var ts = DateTimeUtil.GetTimeDifferenceInSeconds(statEndTime, statStartTime);
// 判断是否够highFreqSampleTimes,540s
///高频时长不足10分钟停止高频的胎心值生成说明:最近12个数据的最小值生成胎心值,
///对于小于高频下限阀值取高频下限阀值进行转换;
@@ -1187,6 +1187,7 @@ namespace HealthMonitor.Service.Resolver
{
// 偏低(过缓)
isAbnormal = 2;
_logger.LogInformation($"{heartRate.Serialno} 超过10分钟其没有正常值,设置胎心过缓告警");
}
}
#endregion


+ 4
- 1
HealthMonitor.WebApi/Worker.cs View File

@@ -2357,11 +2357,13 @@ namespace HealthMonitor.WebApi
_logger.LogInformation($"{heartRate.Serialno} 高频选择心率值:{selectedHrValue}");

var fetalHeartRate = await _serviceTDengine.GetFetalHeartRateAsync(heartRate.Serialno, selectedHrValue);


_logger.LogInformation($"{heartRate.Serialno} 高频状态计算,由高频心率 {selectedHrValue} 根据胎心算法转换的胎心值 {fetalHeartRate}");
#endregion

#region 判断是否够highFreqSampleTimes,540s
var ts = DateTimeUtil.GetTimeDifferenceInSeconds((DateTime)heartRate.LastUpdate!, phrFreqstatus!.LastUpdate);
var ts = DateTimeUtil.GetTimeDifferenceInSeconds(statEndTime, statStartTime);
// 判断是否够highFreqSampleTimes,540s
///高频时长不足10分钟停止高频的胎心值生成说明:最近12个数据的最小值生成胎心值,
///对于小于高频下限阀值取高频下限阀值进行转换;
@@ -2407,6 +2409,7 @@ namespace HealthMonitor.WebApi
{
// 偏低(过缓)
isAbnormal = 2;
_logger.LogInformation($"{heartRate.Serialno} 超过10分钟其没有正常值,设置胎心过缓告警");
}
}
#endregion


Loading…
Cancel
Save