query('departmentId'); $patients = $patientAction->execute((int) $departmentId); return response()->json($patients); } }