Обновление отчета
This commit is contained in:
@@ -136,9 +136,20 @@ class ReportController extends Controller
|
||||
->map(function ($item, $index) {
|
||||
$item->num = $index + 1;
|
||||
return $item;
|
||||
});;
|
||||
});
|
||||
} else if ($status === 'observation') {
|
||||
$patients = ObservationPatient::with(['history'])
|
||||
->where('rf_department_id', $misDepartmentId)
|
||||
->history;
|
||||
} else if ($status === 'deceased') {
|
||||
|
||||
$patients = MisMedicalHistory::select(...$model->getFillable())
|
||||
->deceased()
|
||||
->inDepartment($misDepartmentId, $startDate, $endDate)
|
||||
->get()
|
||||
->map(function ($item, $index) {
|
||||
$item->num = $index + 1;
|
||||
return $item;
|
||||
});
|
||||
}
|
||||
|
||||
$patients->load(['migrations' => function ($query) use ($startDate, $endDate, $misStationarBranchId) {
|
||||
|
||||
Reference in New Issue
Block a user