Изменил вывод операций на сегодня

This commit is contained in:
brusnitsyn
2026-06-24 15:21:32 +09:00
parent 04110814b5
commit 519485cdf0
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ class DutyMedicalHistoryService
// Операции // Операции
$operations = $sorted->map(function ($h) { $operations = $sorted->map(function ($h) {
return $h['operations']; return $h['latest_migration']['operations'];
})->flatten(1); })->flatten(1);
// 4. Возвращаем плоский массив + метаданные для фронтенда // 4. Возвращаем плоский массив + метаданные для фронтенда

View File

@@ -105,7 +105,7 @@ class MedicalHistoryService
// Операции // Операции
$operations = $sorted->map(function ($h) { $operations = $sorted->map(function ($h) {
return $h['operations']; return $h['latest_migration']['operations'];
})->flatten(1); })->flatten(1);
$countInDepartment = $sorted->where('patient_status', 'in_department')->count(); $countInDepartment = $sorted->where('patient_status', 'in_department')->count();