From 04110814b5129c13b8ad3e982dff374627962e9e Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Wed, 24 Jun 2026 15:20:57 +0900 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5=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=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B5=D0=B3=D0=BE=20=D0=B4=D0=B2?= =?UTF-8?q?=D0=B8=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/MedicalHistory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/MedicalHistory.php b/app/Models/MedicalHistory.php index 041d458..28938ed 100644 --- a/app/Models/MedicalHistory.php +++ b/app/Models/MedicalHistory.php @@ -33,7 +33,7 @@ class MedicalHistory extends MaterializedViewModel public function latestMigration() { return $this->hasOne(MigrationPatient::class, 'medical_history_id', 'id') - ->whereNotNull('out_date') + ->whereNot('stationar_branch_id', 0) // не выписка ->latest('ingoing_date'); }