From 0cdcca9d080a4f386580c0d98170a7eec65e242e Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Thu, 25 Jun 2026 14:13:28 +0900 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D0=B5=D1=86=20=D0=A2?= =?UTF-8?q?=D0=B8=D0=BF=20=D0=BE=D0=BF=D0=BB=D0=B0=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ReportNursePatient.php | 3 ++- app/Services/DutyReportService.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/ReportNursePatient.php b/app/Models/ReportNursePatient.php index afd3e54..4fb79ee 100644 --- a/app/Models/ReportNursePatient.php +++ b/app/Models/ReportNursePatient.php @@ -21,7 +21,8 @@ class ReportNursePatient extends Model 'hospital_result_id', 'visit_result_id', 'comment', - 'user_id' + 'user_id', + 'profit_type_id' ]; protected $casts = [ diff --git a/app/Services/DutyReportService.php b/app/Services/DutyReportService.php index d2eb976..1138f6b 100644 --- a/app/Services/DutyReportService.php +++ b/app/Services/DutyReportService.php @@ -239,6 +239,7 @@ class DutyReportService 'hospital_result_id' => $h->hospital_result_id, 'visit_result_id' => $h->visit_result_id, 'comment' => $h->comment, + 'profit_type_id' => $h->profit_type_id, 'migrations' => $h->migrations->map(fn ($m) => [ 'id' => $m->original_id, @@ -350,6 +351,7 @@ class DutyReportService 'urgency_id' => $patient['urgency_id'], 'comment' => $patient['comment'] ?? null, 'user_id' => $userId, + 'profit_type_id' => $patient['profit_type_id'], ]; // ДОПОЛНИТЕЛЬНО: проверяем миграции на наличие выбытия в периоде