|
@@ -94,6 +94,14 @@ class AdminController extends Controller
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if ($request->input('chart_number_ends_with')) {
|
|
|
+ if($request->input('chart_number_ends_with') == 'ZERO'){
|
|
|
+ $patients = $patients->where('chart_number', 'ILIKE' , '%0');
|
|
|
+ }else{
|
|
|
+ $patients = $patients->where('chart_number', 'ILIKE' , '%'.$request->input('chart_number_ends_with'));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$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');
|