소스 검색

renamed routes to pros

= 3 년 전
부모
커밋
6805dae79e

+ 1 - 1
app/Http/Kernel.php

@@ -67,6 +67,6 @@ class Kernel extends HttpKernel
         'pro.auth.redirect' => \App\Http\Middleware\RedirectAuthenticatedPro::class,
         'pro.auth.admin' => \App\Http\Middleware\EnsureAdminPro::class,
         'pro.auth.can-access-patient' => \App\Http\Middleware\EnsureProCanAccessPatient::class,
-        'client.not-shadow-of-pro' => \App\Http\Middleware\EnsureClientIsShadowOfPro::class,
+        'client.shadow-of-pro' => \App\Http\Middleware\EnsureClientIsShadowOfPro::class,
     ];
 }

+ 1 - 1
resources/views/app/admin/patients-table.blade.php

@@ -54,7 +54,7 @@
 				</td>
 				<td class="text-nowrap">
 					@if($pro->shadowClient)
-						<a href="{{route('patients.view.dashboard', $pro->shadowClient)}}">
+						<a href="{{route('pros.view.dashboard', $pro->shadowClient)}}">
 							{{ $pro->name_last }}@if($pro->name_first), {{ $pro->name_first }}@endif
 						</a>
 						<div>

+ 3 - 3
resources/views/app/admin/patients_filters.blade.php

@@ -21,7 +21,7 @@
 		width: 125px !important;
 	}
 </style>
-<form id="admin-patients-filters" method="GET" action="{{ route('admin.patients') }}" class="filter-container" v-cloak>
+<form id="admin-patients-filters" method="GET" action="{{ route('admin.pros') }}" class="filter-container" v-cloak>
 	<div class="sm-section">
 		<div class="">
 			<label>Name:</label>
@@ -271,7 +271,7 @@
 			<label>&nbsp;</label>
 			<div class=" d-flex">
 				<button type="button" v-on:click.prevent="doSubmit()" class="btn btn-primary btn-sm mr-2"><i class="fas fa-filter"></i> Filter</button>
-				<a href="#" v-on:click.prevent="fastLoad('{{route('admin.patients')}}')" class="btn btn-link btn-sm text-danger">Clear</a>
+				<a href="#" v-on:click.prevent="fastLoad('{{route('admin.pros')}}')" class="btn btn-link btn-sm text-danger">Clear</a>
 			</div>
 		</div>
 	</div>
@@ -323,7 +323,7 @@ for ($i=0; $i < count($allFilterKeys); $i++) {
 
 					},
 					doSubmit: function() {
-						fastLoad('{{ route('admin.patients') }}?' + $('#admin-patients-filters').serialize());
+						fastLoad('{{ route('admin.pros') }}?' + $('#admin-patients-filters').serialize());
 						return false;
 					}
 				},

+ 24 - 24
resources/views/layouts/patient.blade.php

@@ -5,7 +5,7 @@
 <?php
 $trimLayout = true;
 $routeName = request()->route()->getName();
-$isVisitNote = ($routeName === 'patients.view.notes.view.dashboard' && @$note && !!$note->visitTemplate);
+$isVisitNote = ($routeName === 'pros.view.notes.view.dashboard' && @$note && !!$note->visitTemplate);
 $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1);
 ?>
 <style media="screen">
@@ -21,56 +21,56 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 				<div class="sidebar-sticky pt-3">
 					<ul class="nav flex-column mcp-theme-1">
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.dashboard') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.dashboard', ['patient' => $patient]) }}">Dashboard</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.dashboard') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.dashboard', ['patient' => $patient]) }}">Dashboard</a>
 						</li>
                         
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.calendar') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.calendar', ['patient' => $patient]) }}">Calendar</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.calendar') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.calendar', ['patient' => $patient]) }}">Calendar</a>
 						</li>
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.appointments') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.appointments', ['patient' => $patient, 'forPro' => 'all', 'status' => 'all']) }}">Appointments</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.appointments') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.appointments', ['patient' => $patient, 'forPro' => 'all', 'status' => 'all']) }}">Appointments</a>
 						</li>
 						
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.notes') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.notes', ['patient' => $patient]) }}">Notes</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.notes') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.notes', ['patient' => $patient]) }}">Notes</a>
 						</li>
 						
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.handouts') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.handouts', ['patient' => $patient]) }}">Handouts</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.handouts') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.handouts', ['patient' => $patient]) }}">Handouts</a>
 						</li>
 						
 						
 						<li class="nav-item">
-							<a class="nav-link {{ $routeName === 'patients.view.sms' ? 'active' : '' }}"
-							   href="{{ route('patients.view.sms', ['patient' => $patient]) }}">SMS</a>
+							<a class="nav-link {{ $routeName === 'pros.view.sms' ? 'active' : '' }}"
+							   href="{{ route('pros.view.sms', ['patient' => $patient]) }}">SMS</a>
 						</li>
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.sms-numbers') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.sms-numbers', ['patient' => $patient]) }}">SMS Numbers</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.sms-numbers') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.sms-numbers', ['patient' => $patient]) }}">SMS Numbers</a>
 						</li>
 						
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.settings') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.settings', ['patient' => $patient]) }}">Settings</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.settings') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.settings', ['patient' => $patient]) }}">Settings</a>
 						</li>
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.sms-reminders') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.sms-reminders', ['patient' => $patient]) }}">SMS Reminders</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.sms-reminders') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.sms-reminders', ['patient' => $patient]) }}">SMS Reminders</a>
 						</li>
 						
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.pros') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.pros', ['patient' => $patient]) }}">Pros</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.pros') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.pros', ['patient' => $patient]) }}">Pros</a>
 						</li>
 						@if($performer->pro->pro_type == 'ADMIN')
 						<li class="nav-item">
-							<a class="nav-link {{ strpos($routeName, 'patients.view.client-pro-access') === 0 ? 'active' : '' }}"
-							   href="{{ route('patients.view.client-pro-access', ['patient' => $patient]) }}">Client Pro Access</a>
+							<a class="nav-link {{ strpos($routeName, 'pros.view.client-pro-access') === 0 ? 'active' : '' }}"
+							   href="{{ route('pros.view.client-pro-access', ['patient' => $patient]) }}">Client Pro Access</a>
 						</li>
 						@endif
 					
@@ -292,7 +292,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 							</div>
 						@endif
 					</div>--}}
-					<div class="card-body {{$routeName === 'patients.view.notes.view.dashboard' ? 'p-0' : ''}}">
+					<div class="card-body {{$routeName === 'pros.view.notes.view.dashboard' ? 'p-0' : ''}}">
 						{{--<h1 class="h3">@yield('section-title')</h1>--}}
 						<div class="mcp-theme-1">
 							@yield('inner-content')

+ 4 - 4
resources/views/layouts/template.blade.php

@@ -98,7 +98,7 @@
         <div class="collapse navbar-collapse" id="navBar">
             <ul class="navbar-nav mr-auto">
                 <li class="nav-item"><a class="nav-link" href="{{ route('admin.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
-                <li class="nav-item"><a class="nav-link" href="{{ route('admin.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
+                <li class="nav-item"><a class="nav-link" href="{{ route('admin.pros') }}"><i class="mr-1 fas fa-user"></i> Pros</a> </li>
 
                 <li class="nav-item dropdown">
                     <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@@ -122,7 +122,7 @@
             </div> --}}
             <a href="#" class="mr-2 text-white small" onclick="return fastReload()"><i class="fa fa-sync"></i></a>
             <div class="d-inline-flex pr-2 mcp-theme-1 position-relative">
-                <input id="patient-search" type="search" class="form-control form-control-sm outline-0" autocomplete="off" placeholder="Search Patients">
+                <input id="patient-search" type="search" class="form-control form-control-sm outline-0" autocomplete="off" placeholder="Search Pros">
                 <div class="patient-search-results suggestions-outer position-absolute d-none">
 
                 </div>
@@ -223,7 +223,7 @@
                         $('.patient-search-results.suggestions-outer')
                             .html('<span class="d-block no-suggest-items">Searching...</span>')
                             .removeClass('d-none');
-                        $.get('/patients-suggest?term=' + term, function(_data) {
+                        $.get('/pros-suggest?term=' + term, function(_data) {
                             $('.patient-search-results.suggestions-outer').html(_data).removeClass('d-none');
                         });
                         lastTerm = term;
@@ -303,7 +303,7 @@
             $(document).on('mousedown', '.suggest-item.patient-suggest[data-target-uid]', function() {
                 $('#patient-search').val('');
                 $('.patient-search-results.suggestions-outer').addClass('d-none');
-                fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
+                fastLoad('/pros/view/' + $(this).attr('data-target-uid'), true, false, false);
                 return false;
             });
             $(document)

+ 12 - 135
routes/web.php

@@ -66,136 +66,19 @@ Route::middleware('pro.auth')->group(function () {
     Route::get('/new-patient', 'HomeController@newPatient')->name('new-patient');
     Route::get('/new-non-mcn-patient', 'HomeController@newNonMcnPatient')->name('new-non-mcn-patient');
 
-    Route::get('/patients/{filter?}', 'HomeController@patients')->name('patients');
+    Route::get('/pros/{filter?}', 'HomeController@patients')->name('pros');
 
     Route::get('/unmapped-sms/{filter?}', 'HomeController@unmappedSMS')->name('unmapped-sms');
 
     Route::get('/can-access-patient/{uid}', 'HomeController@canAccessPatient')->name('can-access-patient');
 
-    Route::name('mcp.')->prefix('m')->group(function () {
-
-        Route::get('dashboard', 'HomeController@dashboard_MCP')->name('dashboard');
-
-        Route::get('patients', 'McpController@patients')->name('patients');
-        Route::get('notes', 'McpController@notes')->name('notes');
-        Route::get('appointments', 'McpController@appointments')->name('appointments');
-        Route::get('bills', 'McpController@bills')->name('bills');
-        Route::get('erx-and-orders', 'McpController@erx_and_orders')->name('erx_and_orders');
-        Route::get('reports', 'McpController@reports')->name('reports');
-        Route::get('supply-orders', 'McpController@supply_orders')->name('supply_orders');
-        Route::get('client-messages', 'McpController@client_messages')->name('client_messages');
-        Route::get('clients-bdt-devices', 'McpController@clients_bdt_devices')->name('clients_bdt_devices');
-        Route::get('patients-accounts-invites', 'McpController@patients_accounts_invites')->name('patients_accounts_invites');
-        Route::get('memos', 'McpController@memos')->name('memos');
-
-
-        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-summary-suggestion', 'McpController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
-        Route::get('notes-rejected-summary-suggestion', 'McpController@notes_rejected_summary_suggestion')->name('notes_rejected_summary_suggestion');
-        Route::get('notes-pending-billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
-        Route::get('bills-pending-signature', 'McpController@bills_pending_signature')->name('bills_pending_signature');
-        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-for-visit', 'McpController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
-        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::get('supply-orders-awaiting-shipment', 'McpController@supply_orders_awaiting_shipment')->name('supply_orders_awaiting_shipment');
-
-        Route::get('measurements-pending-stamping', 'McpController@measurements_pending_stamping')->name('measurements_pending_stamping');
-
-    });
-
-    Route::name('hcp.')->prefix('h')->group(function () {
-
-        Route::get('dashboard', 'HomeController@dashboard_HCP')->name('dashboard');
-
-        //TODO HCP CONTROLLER
-//        Route::get('patients', 'McpController@patients')->name('patients');
-//        Route::get('notes', 'McpController@notes')->name('notes');
-//        Route::get('appointments', 'McpController@appointments')->name('appointments');
-//        Route::get('bills', 'McpController@bills')->name('bills');
-//        Route::get('erx-and-orders', 'McpController@erx_and_orders')->name('erx_and_orders');
-//        Route::get('reports', 'McpController@reports')->name('reports');
-//        Route::get('supply-orders', 'McpController@supply_orders')->name('supply_orders');
-//        Route::get('client-messages', 'McpController@client_messages')->name('client_messages');
-//        Route::get('clients-bdt-devices', 'McpController@clients_bdt_devices')->name('clients_bdt_devices');
-//        Route::get('patients-accounts-invites', 'McpController@patients_accounts_invites')->name('patients_accounts_invites');
-//        Route::get('memos', 'McpController@memos')->name('memos');
-//
-//
-//        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('bills-pending-signature', 'McpController@bills_pending_signature')->name('bills_pending_signature');
-//        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-for-visit', 'McpController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
-//        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::get('supply-orders-awaiting-shipment', 'McpController@supply_orders_awaiting_shipment')->name('supply_orders_awaiting_shipment');
-//
-//        Route::get('measurements-pending-stamping', 'McpController@measurements_pending_stamping')->name('measurements_pending_stamping');
-
-    });
-
-    Route::name('dna.')->prefix('n')->group(function () {
-
-        Route::get('dashboard', 'HomeController@dashboard_DNA')->name('dashboard');
-
-        Route::get('patients', 'DnaController@patients')->name('patients');
-        Route::get('encounters', 'DnaController@encounters')->name('encounters');
-        Route::get('notes', 'DnaController@notes')->name('notes');
-        Route::get('appointments', 'DnaController@appointments')->name('appointments');
-        Route::get('care-months', 'DnaController@careMonths')->name('careMonths');
-        Route::get('financial-transactions', 'DnaController@financialTransactions')->name('financialTransactions');
-        Route::get('my-bills', 'DnaController@myBills')->name('myBills');
-        Route::get('my-clinical-teams', 'DnaController@myClinicalTeams')->name('myClinicalTeams');
-
-        Route::get('bills', 'DnaController@bills')->name('bills');
-        Route::get('erx-and-orders', 'DnaController@erx_and_orders')->name('erx_and_orders');
-        Route::get('reports', 'DnaController@reports')->name('reports');
-        Route::get('supply-orders', 'DnaController@supply_orders')->name('supply_orders');
-
-        Route::get('new_patients_awaiting_visit', 'DnaController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
-        Route::get('notes_pending_signature', 'DnaController@notes_pending_signature')->name('notes_pending_signature');
-        Route::get('notes_pending_billing', 'DnaController@notes_pending_billing')->name('notes_pending_billing');
-        Route::get('reports_pending_signature', 'DnaController@reports_pending_signature')->name('reports_pending_signature');
-        Route::get('patients_without_appointments', 'DnaController@patients_without_appointments')->name('patients_without_appointments');
-        Route::get('patients_overdue_for_visit', 'DnaController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
-        Route::get('cancelled_appointments_pending_review', 'DnaController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
-        Route::get('cancelled_bills_pending_review', 'DnaController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
-        Route::get('cancelled_supply_orders_pending_review', 'DnaController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
-        Route::get('erx_and_orders_pending_signature', 'DnaController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
-        Route::get('supply_orders_pending_signature', 'DnaController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
-
-        //from the new spec
-        Route::get('my-patients', 'DnaController@myPatients')->name('my-patients');
-        Route::get('patients_awaiting_mcp_visit', 'DnaController@patientsAwaitingMcpVisit')->name('patients_awaiting_mcp_visit');
-        Route::get('patients_without_appointment', 'DnaController@patientsWithoutAppointment')->name('patients_without_appointment');
-        Route::get('encounters_pending_my_review', 'DnaController@encountersPendingMyReview')->name('encounters_pending_my_review');
-        Route::get('encounters_in_progress', 'DnaController@encountersInProgress')->name('encounters_in_progress');
-        Route::get('appointments_pending_confirmation', 'DnaController@appointmentsPendingConfirmation')->name('appointments_pending_confirmation');
-        Route::get('cancelled_appointments_pending_ack', 'DnaController@cancelledAppointmentsPendingAck')->name('cancelled_appointments_pending_ack');
-        Route::get('reports_pending_ack', 'DnaController@reportsPendingAck')->name('reports_pending_ack');
-        Route::get('supply_orders_pending_my_ack', 'DnaController@supplyOrdersPendingMyAck')->name('supply_orders_pending_my_ack');
-        Route::get('supply_orders_pending_hcp_approval', 'DnaController@supplyOrdersPendingHcpApproval')->name('supply_orders_pending_hcp_approval');
-
-    });
-  
 
     Route::name('admin.')->prefix('a')->middleware('pro.auth.admin')->group(function () {
         // TODO
 
         Route::get('dashboard', 'HomeController@dashboard_ADMIN')->name('dashboard');
 
-        Route::get('patients', 'AdminController@patients')->name('patients');
+        Route::get('pros', 'AdminController@patients')->name('pros');
         Route::get('notes', 'AdminController@notes')->name('notes');
         Route::get('notes-pending-summary-suggestion', 'AdminController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
         Route::get('notes-rejected-summary-suggestion', 'AdminController@notes_rejected_summary_suggestion')->name('notes_rejected_summary_suggestion');
@@ -256,6 +139,7 @@ Route::middleware('pro.auth')->group(function () {
         Route::get('visit-template/{visitTemplate}', 'PracticeManagementController@visitTemplate')->name('visitTemplate');
         Route::get('client-ccm-rm-status', 'PracticeManagementController@clientCcmRmStatus')->name('client-ccm-rm-status');
 
+
         Route::get('hcp-note-activity', 'PracticeManagementController@hcpNoteActivity')->name('hcp-note-activity');
 
         Route::middleware('pro.auth.admin')->group(function () {
@@ -392,22 +276,12 @@ Route::middleware('pro.auth')->group(function () {
 
     });
 
-    // Route::middleware('pro.auth.admin')->group(function () {
-        Route::get('patients/view/mcp-requests/{patient?}', 'PatientController@mcpRequests')->name('patients.view.mcp-requests');
-        Route::get('patients/view/eligible-refreshes/{patient}', 'PatientController@eligibleRefreshes')->name('patients.view.eligible-refreshes');
-        Route::get('patients/view/insurance-coverage/{patient}', 'PatientController@insuranceCoverage')->name('patients.view.insurance-coverage');
-        Route::get('patients/view/client-primarycoverages/{patient}', 'PatientController@clientPrimaryCoverages')->name('patients.view.client-primary-coverages');
-        Route::get('patients/view/primary-coverage/{patient}', 'PatientController@primaryCoverage')->name('patients.view.primary-coverage');
-        Route::get('patients/view/client-pro-access/{patient}', 'PatientController@clientProAccess')->name('patients.view.client-pro-access');
+    Route::name('pros.view.')->prefix('pros/view/{patient}')->group(function () {
 
-        Route::get('patients/view/primary-coverage-form/{patient}', 'PatientController@primaryCoverageForm')->name('patients.view.primary-coverage-form');
-        Route::get('patients/view/primary-coverage-manual-determination-modal/{patient}', 'PatientController@primaryCoverageManualDeterminationModal')->name('patients.view.primary-coverage-manual-determination-modal');
-    // });
 
-    Route::name('patients.view.')->prefix('patients/view/{patient}')->group(function () {
-
-        Route::middleware(['pro.auth.can-access-patient', 'client.not-shadow-of-pro'])->group(function () {
 
+        Route::middleware(['pro.auth.can-access-patient', 'client.shadow-of-pro'])->group(function () {
+            
             Route::get('', 'PatientController@dashboard')->name('dashboard');
             Route::get('canvas-migrate', 'PatientController@canvasMigrate')->name('migrate-canvas');
             Route::get('intake', 'PatientController@intake')->name('intake');
@@ -496,6 +370,9 @@ Route::middleware('pro.auth')->group(function () {
 
             Route::get('accounts', 'PatientController@accounts')->name('accounts');
 
+            Route::get('view/client-pro-access', 'PatientController@clientProAccess')->name('client-pro-access');
+
+
         });
 
     });
@@ -556,7 +433,7 @@ Route::middleware('pro.auth')->group(function () {
     Route::get('/note-template-set/{section}/{template}', 'HomeController@noteTemplateSet');
 
     // Patient suggest
-    Route::get('/patients-suggest', 'HomeController@patientsSuggest');
+    Route::get('/pros-suggest', 'HomeController@patientsSuggest');
 
     // column suggest
     Route::get('/column-suggest', 'StatTreeLineController@columnSuggest');
@@ -572,7 +449,7 @@ Route::middleware('pro.auth')->group(function () {
     Route::get('/embed/{patient}/{section}/{selectable}', 'PatientController@embedSection')->name('embed-section');
 
     // AJAX presence poll
-    Route::get('/patients/{patient}/presence', 'PatientController@presence');
+    Route::get('/pros/{patient}/presence', 'PatientController@presence');
 
     // refresh single ticket
     Route::get('/get-ticket/{ticket}', 'HomeController@getTicket');
@@ -590,7 +467,7 @@ Route::middleware('pro.auth')->group(function () {
     Route::get('/pro/meet/{uid?}', 'PracticeManagementController@meet');
     Route::post('/pro/meet/get-participant-info', 'PracticeManagementController@getParticipantInfo');
     Route::get('/pro/get-opentok-session-key/{uid}', 'PracticeManagementController@getOpentokSessionKey');
-    Route::get('/patients-in-queue', 'PracticeManagementController@getPatientsInQueue');
+    Route::get('/pros-in-queue', 'PracticeManagementController@getPatientsInQueue');
     Route::get('/current-work', 'PracticeManagementController@currentWork');
 
     //Notes stuff