소스 검색

调整胎心算法调整

datasub12_fetal_heart_rate_1
H Vs 2 일 전
부모
커밋
9a905019f7
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      HealthMonitor.Service/Biz/db/TDengineService.cs

+ 3
- 2
HealthMonitor.Service/Biz/db/TDengineService.cs 파일 보기

@@ -1365,12 +1365,13 @@ namespace HealthMonitor.Service.Biz.db
// 触发高频监测的心率下限值
var triggerHighFreqLow = (int)watchConfig["triggerHighFreqLow"]!;
//增量系数 = (正常胎心最大值 - 正常胎心最小值) / (阀值最大值 - 阀值最小值)
var coefficient = (NormaletalHeartRateMax - NormaletalHeartRateMin) / (triggerHighFreqHigh - triggerHighFreqLow);
var coefficient = (double)(NormaletalHeartRateMax - NormaletalHeartRateMin)! / (triggerHighFreqHigh - triggerHighFreqLow);


//胎心值 = 正常胎心最小值 + 增量系数 * (心率值 - 阀值最小值)
var fetalHeartRate = NormaletalHeartRateMin + coefficient * (heartrateValue - triggerHighFreqLow);

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



Loading…
취소
저장