@@ -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!); | |||
} | |||
@@ -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 | |||
@@ -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 | |||