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'], ]; // ДОПОЛНИТЕЛЬНО: проверяем миграции на наличие выбытия в периоде