Изменил вывод операций на сегодня
This commit is contained in:
@@ -122,7 +122,7 @@ class DutyMedicalHistoryService
|
||||
|
||||
// Операции
|
||||
$operations = $sorted->map(function ($h) {
|
||||
return $h['operations'];
|
||||
return $h['latest_migration']['operations'];
|
||||
})->flatten(1);
|
||||
|
||||
// 4. Возвращаем плоский массив + метаданные для фронтенда
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user