Фикс определения нахождения в реанимации

This commit is contained in:
brusnitsyn
2026-07-13 12:52:57 +09:00
parent 049ef906d7
commit f5fa39b27c

View File

@@ -62,8 +62,8 @@ class PatientStatusClassifier
{
if ($reanimations === null || $reanimations->isEmpty()) return false;
if ($reanimations
->where('out_date', '<', $dateRange->endSql())
->where('out_date', '>=', $dateRange->startSql())
->where('out_date', '<=', $dateRange->endSql())
->whereNull('out_date')
->isNotEmpty()) {
return true;
}