From f5fa39b27cb86f338c8d5336918e31ce8dd7afa5 Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Mon, 13 Jul 2026 12:52:57 +0900 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0?= =?UTF-8?q?=D1=85=D0=BE=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BD=D0=B8=D0=BC=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Classification/PatientStatusClassifier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Classification/PatientStatusClassifier.php b/app/Services/Classification/PatientStatusClassifier.php index 5eeed97..674d9dc 100644 --- a/app/Services/Classification/PatientStatusClassifier.php +++ b/app/Services/Classification/PatientStatusClassifier.php @@ -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; }