diff --git a/app/Services/DutyMedicalHistoryService.php b/app/Services/DutyMedicalHistoryService.php index 995f8cb..4f80f10 100644 --- a/app/Services/DutyMedicalHistoryService.php +++ b/app/Services/DutyMedicalHistoryService.php @@ -60,7 +60,7 @@ class DutyMedicalHistoryService 'observable', 'operations' => function ($q) use ($departmentId, $dateRange) { $q->where('department_id', $departmentId) - ->where('start_date', '>=', $dateRange->startSql()) + // ->where('start_date', '>=', $dateRange->startSql()) ->where('start_date', '<', $dateRange->endSql()) // Только операции пока пациент реально лежал в отделении ->whereExists(function ($sub) use ($departmentId) { diff --git a/app/Services/MedicalHistoryService.php b/app/Services/MedicalHistoryService.php index 936438a..d0ca194 100644 --- a/app/Services/MedicalHistoryService.php +++ b/app/Services/MedicalHistoryService.php @@ -53,7 +53,7 @@ class MedicalHistoryService 'observable', 'operations' => function ($q) use ($departmentId, $dateRange) { $q->where('department_id', $departmentId) - ->where('start_date', '>=', $dateRange->startSql()) + // ->where('start_date', '>=', $dateRange->startSql()) ->where('start_date', '<', $dateRange->endSql()) // Только операции пока пациент реально лежал в отделении ->whereExists(function ($sub) use ($departmentId) {