From 519485cdf060d4ee08fa23cf285afc94e02a1240 Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Wed, 24 Jun 2026 15:21:32 +0900 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BE=D0=BF=D0=B5=D1=80=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B9=20=D0=BD=D0=B0=20=D1=81=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=D0=B4=D0=BD=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DutyMedicalHistoryService.php | 2 +- app/Services/MedicalHistoryService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/DutyMedicalHistoryService.php b/app/Services/DutyMedicalHistoryService.php index 4f80f10..74263f2 100644 --- a/app/Services/DutyMedicalHistoryService.php +++ b/app/Services/DutyMedicalHistoryService.php @@ -122,7 +122,7 @@ class DutyMedicalHistoryService // Операции $operations = $sorted->map(function ($h) { - return $h['operations']; + return $h['latest_migration']['operations']; })->flatten(1); // 4. Возвращаем плоский массив + метаданные для фронтенда diff --git a/app/Services/MedicalHistoryService.php b/app/Services/MedicalHistoryService.php index 04e6f73..446fb3b 100644 --- a/app/Services/MedicalHistoryService.php +++ b/app/Services/MedicalHistoryService.php @@ -105,7 +105,7 @@ class MedicalHistoryService // Операции $operations = $sorted->map(function ($h) { - return $h['operations']; + return $h['latest_migration']['operations']; })->flatten(1); $countInDepartment = $sorted->where('patient_status', 'in_department')->count();