Профиль хирургии

This commit is contained in:
brusnitsyn
2026-03-25 17:37:32 +09:00
parent 52a80ccd3b
commit f566ab96df
75 changed files with 3841 additions and 1009 deletions

View File

@@ -71,7 +71,9 @@ class MisPatientService
$query->with('migrations')
->whereHas('migrations', function ($q) use ($branchId, $dateRange) {
$q->where('rf_StationarBranchID', $branchId)
->whereBetween('DateIngoing', $dateRange);
->where('DateIngoing', '>', $dateRange[0])
->where('DateIngoing', '<=', $dateRange[1]);
// ->whereBetween('DateIngoing', $dateRange);
});
})
->whereIn('rf_EmerSignID', [2, 4])
@@ -92,7 +94,9 @@ class MisPatientService
$query->with('migrations')
->whereHas('migrations', function ($q) use ($branchId, $dateRange) {
$q->where('rf_StationarBranchID', $branchId)
->whereBetween('DateIngoing', $dateRange);
->where('DateIngoing', '>=', $dateRange[0])
->where('DateIngoing', '<=', $dateRange[1]);
// ->whereBetween('DateIngoing', $dateRange);
})->where('MedicalHistoryID', '<>', 0);
return $query;