Изменил формулу расчета койко-дня для вывода из статистики
This commit is contained in:
@@ -217,6 +217,7 @@ class StatisticsService
|
||||
21 => $preoperativeAverageSum += $value,
|
||||
26 => $preoperativeSum += $value,
|
||||
27 => $preoperativePatientCount += (int) $value,
|
||||
18 => $avgBedDays += $value,
|
||||
// 24 => $completePlanProgress = (int)$value,
|
||||
default => null
|
||||
};
|
||||
@@ -240,7 +241,7 @@ class StatisticsService
|
||||
$percentLoaded = $bedsCount > 0 ? round($currentCount * 100 / $bedsCount) : 0;
|
||||
|
||||
// Средний койко-день
|
||||
$avgBedDays = $outcome > 0 ? round($bedDaysSum / $outcome, 1) : 0;
|
||||
$avgBedDays = $outcome > 0 ? round($bedDaysSum / ($outcome + $currentCount), 1) : 0;
|
||||
|
||||
// Предоперационный койко-день
|
||||
$canUsePreoperativeTotals = $preoperativePatientCount > 0
|
||||
|
||||
Reference in New Issue
Block a user