|
@@ -88,6 +88,12 @@ class AdminController extends Controller
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if ($request->input('next_appointment_category')) {
|
|
|
+ if($request->input('next_appointment_category') == 'NONE'){
|
|
|
+ $patients = $patients->whereNull('next_mcp_appointment_id');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$this->filterMultiQuery($request, $patients, 'age_in_years', 'age_category', 'age_value_1', 'age_value_2');
|
|
|
$this->filterSimpleQuery($request, $patients, 'sex', 'sex');
|
|
|
$this->filterMultiQuery($request, $patients, 'usual_bmi_max', 'bmi_category', 'bmi_value_1', 'bmi_value_2');
|