Ver Fonte

updated

unknown há 3 anos atrás
pai
commit
a8bef72281

+ 108 - 0
app/Http/Controllers/McpController.php

@@ -0,0 +1,108 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use App\Models\Appointment;
+use App\Models\BDTDevice;
+use App\Models\CareMonth;
+use App\Models\Client;
+use App\Models\ClientBDTDevice;
+use App\Models\ClientInfoLine;
+use App\Models\Erx;
+use App\Models\Facility;
+use App\Models\Handout;
+use App\Models\IncomingReport;
+use App\Models\MBClaim;
+use App\Models\MBPayer;
+use App\Models\Note;
+use App\Models\NoteTemplate;
+use App\Models\Pro;
+use App\Models\Product;
+use App\Models\ProProAccess;
+use App\Models\SectionTemplate;
+use App\Models\Shipment;
+use App\Models\SupplyOrder;
+use App\Models\Ticket;
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\File;
+
+use Illuminate\Support\Facades\Http;
+use PDF;
+
+class McpController extends Controller
+{
+
+    public function patients(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.patients', $data);
+    }
+
+    public function new_patients_awaiting_visit(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.new_patients_awaiting_visit', $data);
+    }
+
+    public function notes_pending_signature(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.notes_pending_signature', $data);
+    }
+
+    public function notes_pending_billing(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.notes_pending_billing', $data);
+    }
+
+    public function reports_pending_signature(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.reports_pending_signature', $data);
+    }
+
+    public function patients_without_appointments(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.patients_without_appointments', $data);
+    }
+
+    public function patients_overdue(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.patients_overdue', $data);
+    }
+
+    public function cancelled_appointments_pending_review(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.cancelled_appointments_pending_review', $data);
+    }
+
+    public function cancelled_bills_pending_review(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.cancelled_bills_pending_review', $data);
+    }
+
+    public function cancelled_supply_orders_pending_review(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.cancelled_supply_orders_pending_review', $data);
+    }
+
+    public function erx_and_orders_pending_signature(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.erx_and_orders_pending_signature', $data);
+    }
+
+    public function supply_orders_pending_signature(Request $request)
+    {
+        $data = [];
+        return view('app.view.mcp.supply_orders_pending_signature', $data);
+    }
+
+}

+ 1 - 1
app/Models/Pro.php

@@ -418,7 +418,7 @@ WHERE
     function get_patients_without_appointment_count_as_mcp() {
     }
 
-    function get_patients_not_seen_in_45_days_count_as_mcp() {
+    function get_patients_overdue_count_as_mcp() {
     }
 
     function get_patients_without_remote_measurement_in_48_hours_count_as_mcp() {

+ 37 - 13
resources/views/app/dashboard-mcp.blade.php

@@ -30,53 +30,77 @@
                                 <tbody>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
-                                    <th class="pl-2">Patients</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.patients') }}">Patients</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
-                                    <th class="pl-2">New Patients Awaiting Visit</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients Awaiting Visit</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
-                                    <th class="pl-2">Notes Pending Signature</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending Signature</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
-                                    <th class="pl-2">Notes Pending Billing</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending Billing</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
-                                    <th class="pl-2">Reports Pending Signature</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending Signature</a>
+                                    </th>
                                 </tr>
 
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
-                                    <th class="pl-2">Patients w/o Appointments</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o Appointments</a>
+                                    </th>
                                 </tr>
                                 <tr>
-                                    <th class="px-2 text-center">{{$pro->get_patients_not_seen_in_45_days_count_as_mcp()}}</th>
-                                    <th class="pl-2">Patients Not Seen in 45 Days</th>
+                                    <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.patients_overdue') }}">Patients Overdue</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_appointments_pending_acknowledgement_count_as_mcp()}}</th>
-                                    <th class="pl-2">Cancelled Appts. Pending Review</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.cancelled_appointments_pending_review') }}">Cancelled Appts. Pending Review</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_bills_awaiting_review_count_as_mcp()}}</th>
-                                    <th class="pl-2">Cancelled Bills Pending Review</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.cancelled_bills_pending_review') }}">Cancelled Bills Pending Review</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_supply_orders_awaiting_review_count_as_mcp()}}</th>
-                                    <th class="pl-2">Cancelled Supply Orders Pending Review</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.cancelled_supply_orders_pending_review') }}">Cancelled Supply Orders Pending Review</a>
+                                    </th>
                                 </tr>
 
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_erx_and_orders_awaiting_signature_count_as_mcp()}}</th>
-                                    <th class="pl-2">ERx & Orders Pending Signature</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.erx_and_orders_pending_signature') }}">ERx & Orders Pending Signature</a>
+                                    </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_supply_orders_awaiting_signature_count_as_mcp()}}</th>
-                                    <th class="pl-2">Supply Orders Pending Signature</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.supply_orders_pending_signature') }}">Supply Orders Pending Signature</a>
+                                    </th>
                                 </tr>
                                 </tbody>
                             </table>

+ 27 - 0
routes/web.php

@@ -73,6 +73,33 @@ Route::middleware('pro.auth')->group(function () {
 
     Route::get('/can-access-patient/{uid}', 'HomeController@canAccessPatient')->name('can-access-patient');
 
+    Route::name('mcp.')->prefix('m')->group(function(){
+        Route::get('patients', 'McpController@patients')->name('patients');
+        Route::get('new-patients-awaiting-visit', 'McpController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
+        Route::get('notes-pending-signature', 'McpController@notes_pending_signature')->name('notes_pending_signature');
+        Route::get('notes-pending-billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
+        Route::get('reports-pending-signature', 'McpController@reports_pending_signature')->name('reports_pending_signature');
+        Route::get('patients-without-appointments', 'McpController@patients_without_appointments')->name('patients_without_appointments');
+        Route::get('patients-overdue', 'McpController@patients_overdue')->name('patients_overdue');
+        Route::get('cancelled-appointments-pending-review', 'McpController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
+        Route::get('cancelled-bills-pending-review', 'McpController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
+        Route::get('cancelled-supply-orders-pending-review', 'McpController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
+        Route::get('erx-and-orders-pending-signature', 'McpController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
+        Route::get('supply-orders-pending-signature', 'McpController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
+    });
+
+    Route::name('dna.')->prefix('n')->group(function(){
+        Route::get('patients', 'DnaController@patients')->name('patients');
+        Route::get('new-patients-awaiting-visit', 'DnaController@new_patients_awaiting_visit');
+        Route::get('notes-pending-signature', 'DnaController@notes_pending_signature');
+        Route::get('notes-pending-billing', 'DnaController@notes_pending_billing');
+        Route::get('reports-pending-signature', 'DnaController@reports_pending_signature');
+        Route::get('patients-without-appointments', 'DnaController@patients_without_appointments');
+        Route::get('patients-overdue', 'DnaController@patients_overdue');
+        Route::get('cancelled-appointments-pending-review', 'DnaController@cancelled_appointments_pending_review');
+        Route::get('erx-and-orders-pending-signature', 'DnaController@erx_and_orders_pending_signature');
+        Route::get('supply-orders-pending-signature', 'DnaController@supply_orders_pending_signature');
+    });
 
     Route::name('practice-management.')->prefix('practice-management')->group(function () {
         Route::get('remote-monitoring-report', 'PracticeManagementController@remoteMonitoringReport')->name('remoteMonitoringReport');