Vijayakrishnan 3 жил өмнө
parent
commit
719cadc0b9

+ 181 - 0
app/Http/Controllers/PracticeManagementController.php

@@ -3705,5 +3705,186 @@ ORDER BY c.name_last, c.name_first
         return view('app.practice-management.notes-resolution-center-v2', compact('rows', 'paginator'));
         return view('app.practice-management.notes-resolution-center-v2', compact('rows', 'paginator'));
     }
     }
 
 
+    public function coverages(Request $request) {
+
+        $columns = "(c.name_first || ' ' || c.name_last) as client_name,
+            c.id,
+            c.uid,
+            c.created_at,
+            c.sex,
+            c.dob,
+            c.age_in_years,
+            row_to_json(lcpc.*)::json as latest_client_primary_coverage,
+            row_to_json(lacpc.*) as latest_auto_client_primary_coverage,
+            row_to_json(lmcpc.*) as latest_manual_client_primary_coverage,
+            row_to_json(lmcpc_payer) as latest_manual_client_primary_coverage_payer
+            ";
+        $from = "FROM client AS c
+            LEFT JOIN client_primary_coverage lcpc on c.latest_client_primary_coverage_id = lcpc.id
+            LEFT JOIN client_primary_coverage lacpc on c.latest_auto_refresh_client_primary_coverage_id = lacpc.id
+            LEFT JOIN client_primary_coverage lmcpc on c.latest_manual_client_primary_coverage_id = lmcpc.id
+            LEFT JOIN payer lmcpc_payer on lmcpc.commercial_payer_id = lmcpc_payer.id
+            ";
+        $where = "WHERE
+            c.client_engagement_status_category <> 'DUMMY' AND
+            c.name_first NOT ILIKE '%test%' AND 
+            c.name_last NOT ILIKE '%test%' AND
+            c.created_at::DATE >= '2022-01-01'::DATE
+             -- lmcpc.id IS NOT NULL ANd lmcpc.plan_type != 'MEDICARE'
+            ";
+        $filters = [];
+
+        if(trim($request->input('f_name'))) {
+            $v = trim($request->input('f_name'));
+            $filters[] = "(c.name_first ILIKE '%{$v}%' OR c.name_last ILIKE '%{$v}%')";
+        }
+        if(trim($request->input('f_covered'))) {
+            $v = trim($request->input('f_covered'));
+            if($v !== 'any') {
+                switch($v) {
+                    case 'covered':
+                        $filters[] = "(
+                        (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.manual_determination_category = 'COVERED') OR
+                        ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'YES')
+                        )";
+                        break;
+                    case 'not-covered':
+                        $filters[] = "(
+                        (lmcpc.id IS NULL OR (lmcpc.is_cancelled IS TRUE OR lmcpc.manual_determination_category = 'NOT_COVERED')) AND
+                        (lacpc.id IS NULL OR (lacpc.is_cancelled IS TRUE OR lacpc.auto_medicare_is_partbprimary = 'NO')) AND
+                        (lmcpc.id IS NOT NULL OR lacpc.id IS NOT NULL)
+                        )";
+                        break;
+                    case 'unknown':
+                        $filters[] = "(
+                        (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.manual_determination_category = 'UNKNOWN') OR
+                        ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'UNKNOWN')
+                        )";
+                        break;
+                }
+            }
+        }
+        if(trim($request->input('f_covered'))) {
+            $v = trim($request->input('f_covered'));
+            if($v !== 'any') {
+                switch($v) {
+                    case 'covered':
+                        $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.manual_determination_category = 'COVERED') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'YES')
+                )";
+                        break;
+                    case 'not-covered':
+                        $filters[] = "(
+                (lmcpc.id IS NULL OR (lmcpc.is_cancelled IS TRUE OR lmcpc.manual_determination_category = 'NOT_COVERED')) AND
+                (lacpc.id IS NULL OR (lacpc.is_cancelled IS TRUE OR lacpc.auto_medicare_is_partbprimary = 'NO')) AND
+                (lmcpc.id IS NOT NULL OR lacpc.id IS NOT NULL)
+                )";
+                        break;
+                    case 'unknown':
+                        $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.manual_determination_category = 'UNKNOWN') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'UNKNOWN')
+                )";
+                        break;
+                }
+            }
+        }
+        if(trim($request->input('f_plan_type'))) {
+            $v = strtoupper(trim($request->input('f_plan_type')));
+            if($v !== 'ANY') {
+                $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.plan_type = '{$v}') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.plan_type = '{$v}')
+                )";
+            }
+        }
+        if(trim($request->input('f_pb_primary'))) {
+            $v = trim($request->input('f_pb_primary'));
+            if($v !== 'any') {
+                switch($v) {
+                    case 'primary':
+                        $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.is_partbprimary = 'YES') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'YES')
+                )";
+                        break;
+                    case 'not-primary':
+                        $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.is_partbprimary = 'NO') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'NO')
+                )";
+                        break;
+                    case 'unknown':
+                        $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.is_partbprimary = 'UNKNOWN') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.auto_medicare_is_partbprimary = 'UNKNOWN')
+                )";
+                        break;
+                }
+            }
+        }
+        if(trim($request->input('f_pb_active'))) {
+            $v = trim($request->input('f_pb_active'));
+            // TODO
+        }
+        if(trim($request->input('f_pc_active'))) {
+            $v = trim($request->input('f_pc_active'));
+            // TODO
+        }
+        if(trim($request->input('f_comm_payer'))) {
+            $v = trim($request->input('f_comm_payer'));
+            $filters[] = "(lmcpc_payer.name ILIKE '%{$v}%')";
+        }
+        if(trim($request->input('f_comm_member_id'))) {
+            $v = trim($request->input('f_comm_member_id'));
+            if($v !== 'any') {
+                $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.commercial_member_identifier ILIKE '%{$v}%') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.commercial_member_identifier ILIKE '%{$v}%')
+                )";
+            }
+        }
+        if(trim($request->input('f_comm_group_num'))) {
+            $v = trim($request->input('f_comm_group_num'));
+            if($v !== 'any') {
+                $filters[] = "(
+                (lmcpc.id IS NOT NULL AND lmcpc.is_cancelled IS NOT TRUE AND lmcpc.commercial_group_number ILIKE '%{$v}%') OR
+                ((lmcpc.id IS NULL OR lmcpc.is_cancelled IS TRUE) AND lacpc.id IS NOT NULL AND lacpc.is_cancelled IS NOT TRUE AND lacpc.commercial_group_number ILIKE '%{$v}%')
+                )";
+            }
+        }
+
+        if(count($filters)) {
+            $filters = 'AND ' . implode(' AND ',  $filters);
+        }
+        else {
+            $filters = '';
+        }
+        // $filters = '';
+        $orderBy = "ORDER BY client_name ASC";
+
+        $countQuery = "SELECT count(*) {$from} {$where} {$filters}";
+        // dd($countQuery);
+        $countResult = DB::select($countQuery);
+        $total = $countResult[0]->count;
+
+        $defaultPageSize = 10;
+
+        $page = $request->input('page') ?: 1;
+        $perPage = $request->input('per_page') ?: $defaultPageSize;
+        $offset = ($page - 1) * $perPage;
+
+        $dataQuery = "SELECT {$columns} {$from} {$where} {$filters} {$orderBy} OFFSET {$offset} LIMIT {$perPage}";
+        $rows = DB::select($dataQuery);
+
+        $paginator = new LengthAwarePaginator($rows, $total, $request->input('per_page') ?: $defaultPageSize, $request->input('page') ?: 1);
+        $paginator->setPath(route('practice-management.coverages'));
+
+        // dd($rows);
+
+        return view('app.practice-management.coverages', compact('rows', 'paginator'));
+    }
+
    
    
 }
 }

+ 30 - 0
resources/views/app/practice-management/_cpc.blade.php

@@ -0,0 +1,30 @@
+<table class="table table-sm m-0 text-sm">
+    <tr>
+        <td class="width-70px">{{friendly_date($cpc->created_at)}}</td>
+        <td class="width-70px">{{$cpc->plan_type}}</td>
+        <td>
+            <!--NEW
+AUTO_REFRESH
+MANUAL_DETERMINATION-->
+            @if($cpc->plan_type === 'MEDICARE')
+                @if($cpc->creation_strategy === 'AUTO_REFRESH')
+                    <span class="text-secondary">Part B Primary:</span> {{@$cpc->auto_medicare_is_partbprimary ?: '-'}}<br>
+                    <span class="text-secondary">Part B Active:</span> {{@$cpc->auto_medicare_is_partbactive ?: '-'}}<br>
+                    <span class="text-secondary">Part C Active:</span> {{@$cpc->auto_medicare_is_partcactive ?: '-'}}
+                @elseif($cpc->creation_strategy === 'MANUAL_DETERMINATION')
+                    <span class="text-secondary">Manual Determination:</span> {{$cpc->manual_determination_category}}<br>
+                    <span class="text-secondary">Part B Primary:</span> {{@$cpc->is_partbprimary ?: '-'}}
+                @elseif($cpc->creation_strategy === 'NEW')
+                @endif
+            @elseif($cpc->plan_type === 'MEDICAID')
+            @elseif($cpc->plan_type === 'COMMERCIAL')
+                <span class="text-secondary">Manual Determination:</span> {{$cpc->manual_determination_category}}<br>
+                @if(@$cpc->lmcpc_payer && @$cpc->lmcpc_payer->name)
+                    <span class="text-secondary">Payer:</span> {{@$cpc->lmcpc_payer->name}}<br>
+                @endif
+                <span class="text-secondary">Member ID:</span> {{@$cpc->commercial_member_identifier ?: '-'}}<br>
+                <span class="text-secondary">Group #:</span> {{@$cpc->commercial_group_number ?: '-'}}
+            @endif
+        </td>
+    </tr>
+</table>

+ 234 - 0
resources/views/app/practice-management/coverages.blade.php

@@ -0,0 +1,234 @@
+@extends ('layouts/template')
+
+@section('content')
+    <div class="p-3 mcp-theme-1">
+        <div class="card">
+            <div class="card-header px-2 py-1 d-flex align-items-center">
+                <strong class="mr-4">
+                    <i class="fas fa-user"></i>
+                    Coverage Center
+                </strong>
+            </div>
+            <div class="card-header p-3">
+                <form class="d-flex align-items-start mt-2 pt-1 border-top" onsubmit="return fastLoad('{{route('practice-management.coverages')}}?' + $(this).serialize());">
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">Patient</label>
+                        <input type="text" class="mr-2 form-control form-control-sm min-width-unset max-width-110px" name="f_name" value="{{request()->input('f_name')}}">
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">Covered</label>
+                        <div class="d-flex align-items-start">
+                            <select name="f_covered" class="mr-2 form-control form-control-sm min-width-unset max-width-110px pl-0">
+                                <option {{!request()->input('f_covered') || request()->input('f_covered') === 'any' ? 'selected' : ''}} value="any">Any</option>
+                                <option {{request()->input('f_covered') === 'covered' ? 'selected' : ''}} value="covered">Covered</option>
+                                <option {{request()->input('f_covered') === 'not-covered' ? 'selected' : ''}} value="not-covered">Not Covered</option>
+                                <option {{request()->input('f_covered') === 'unknown' ? 'selected' : ''}} value="unknown">Unknown</option>
+                            </select>
+                        </div>
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">Type</label>
+                        <div class="d-flex align-items-start">
+                            <select name="f_plan_type" class="mr-2 form-control form-control-sm min-width-unset max-width-110px pl-0">
+                                <option {{!request()->input('f_plan_type') || request()->input('f_plan_type') === 'any' ? 'selected' : ''}} value="any">Any</option>
+                                <option {{request()->input('f_plan_type') === 'medicare' ? 'selected' : ''}} value="medicare">Medicare</option>
+                                <option {{request()->input('f_plan_type') === 'medicaid' ? 'selected' : ''}} value="medicaid">Medicaid</option>
+                                <option {{request()->input('f_plan_type') === 'commercial' ? 'selected' : ''}} value="commercial">Commercial</option>
+                            </select>
+                        </div>
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">PB Primary:</label>
+                        <div class="d-flex align-items-start">
+                            <select name="f_pb_primary" class="mr-2 form-control form-control-sm min-width-unset max-width-110px pl-0">
+                                <option {{!request()->input('f_pb_primary') || request()->input('f_pb_primary') === 'any' ? 'selected' : ''}} value="any">Any</option>
+                                <option {{request()->input('f_pb_primary') === 'primary' ? 'selected' : ''}} value="primary">Primary</option>
+                                <option {{request()->input('f_pb_primary') === 'not-primary' ? 'selected' : ''}} value="not-primary">Not Primary</option>
+                                <option {{request()->input('f_pb_primary') === 'unknown' ? 'selected' : ''}} value="unknown">Unknown</option>
+                            </select>
+                        </div>
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">PB Active:</label>
+                        <div class="d-flex align-items-start">
+                            <select name="f_pb_active" class="mr-2 form-control form-control-sm min-width-unset max-width-110px pl-0">
+                                <option {{!request()->input('f_pb_active') || request()->input('f_pb_active') === 'any' ? 'selected' : ''}} value="any">Any</option>
+                                <option {{request()->input('f_pb_active') === 'active' ? 'selected' : ''}} value="active">Active</option>
+                                <option {{request()->input('f_pb_active') === 'not-active' ? 'selected' : ''}} value="not-active">Not Active</option>
+                                <option {{request()->input('f_pb_active') === 'unknown' ? 'selected' : ''}} value="unknown">Unknown</option>
+                            </select>
+                        </div>
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">PC Active:</label>
+                        <div class="d-flex align-items-start">
+                            <select name="f_pc_active" class="mr-2 form-control form-control-sm min-width-unset max-width-110px pl-0">
+                                <option {{!request()->input('f_pc_active') || request()->input('f_pc_active') === 'any' ? 'selected' : ''}} value="any">Any</option>
+                                <option {{request()->input('f_pc_active') === 'active' ? 'selected' : ''}} value="active">Active</option>
+                                <option {{request()->input('f_pc_active') === 'not-active' ? 'selected' : ''}} value="not-active">Not Active</option>
+                                <option {{request()->input('f_pc_active') === 'unknown' ? 'selected' : ''}} value="unknown">Unknown</option>
+                            </select>
+                        </div>
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">Comm. Payer</label>
+                        <input type="text" class="mr-2 form-control form-control-sm min-width-unset max-width-110px" name="f_comm_payer" value="{{request()->input('f_comm_payer')}}">
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">Comm. Member ID:</label>
+                        <input type="text" class="mr-2 form-control form-control-sm min-width-unset max-width-110px" name="f_comm_member_id" value="{{request()->input('f_comm_member_id')}}">
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">Comm. Group #:</label>
+                        <input type="text" class="mr-2 form-control form-control-sm min-width-unset max-width-110px" name="f_comm_group_num" value="{{request()->input('f_comm_group_num')}}">
+                    </div>
+
+                    <div>
+                        <label class="mb-0 text-sm text-secondary">&nbsp;</label>
+                        <div class="d-flex align-items-start">
+                            <button type="button" class="btn-apply btn btn-sm btn-primary mr-2"
+                                    onclick="return fastLoad('{{route('practice-management.coverages')}}?' + $(this).closest('form').serialize());">
+                                <i class="fa fa-check"></i>
+                            </button>
+                            <button type="button" class="btn-reset btn btn-sm btn-default bg-white text-secondary border"
+                                    onclick="return fastLoad('{{route('practice-management.coverages')}}');">
+                                <i class="fa fa-times"></i>
+                            </button>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="card-body p-0">
+                <table class="table table-sm table-striped p-0 m-0">
+                    <thead class="bg-light">
+                        <tr>
+                            <th class="border-0">Patient</th>
+                            <th class="border-0">DOB</th>
+                            <th class="border-0">Covered?</th>
+                            <th class="border-0">Effective Coverage</th>
+                            <th class="border-0 width-500px">Latest Auto Refresh</th>
+                            <th class="border-0 width-500px">Latest Manual Verif.</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        @foreach($rows as $row)
+                            <?php
+                            $lcpc = null;
+                            $lacpc = null;
+                            $lmcpc = null;
+                            $lmcpc_payer = null;
+                            if($row->latest_client_primary_coverage) {
+                                $lcpc = json_decode($row->latest_client_primary_coverage);
+                            }
+                            if($row->latest_auto_client_primary_coverage) {
+                                $lacpc = json_decode($row->latest_auto_client_primary_coverage);
+                            }
+                            if($row->latest_manual_client_primary_coverage) {
+                                $lmcpc = json_decode($row->latest_manual_client_primary_coverage);
+                            }
+
+                            $coveredState = -1;
+                            $effective = '-';
+                            if($lmcpc && !$lmcpc->is_cancelled) {
+
+                                if($lmcpc->manual_determination_category == 'COVERED') {
+                                    $coveredState = 1;
+                                }
+                                else if($lmcpc->manual_determination_category == 'NOT_COVERED') {
+                                    $coveredState = 2;
+                                }
+                                else {
+                                    $coveredState = 3; // unknown
+                                }
+
+                                $effective = 'Latest Manual';
+                                if($row->latest_manual_client_primary_coverage_payer) {
+                                    $lmcpc_payer = json_decode($row->latest_manual_client_primary_coverage_payer);
+                                }
+                                $lmcpc->lmcpc_payer = $lmcpc_payer;
+                            }
+                            else if($lacpc && !$lacpc->is_cancelled) {
+
+                                if($lacpc->auto_medicare_is_partbprimary == 'YES') {
+                                    $coveredState = 1;
+                                }
+                                else if($lacpc->auto_medicare_is_partbprimary == 'NO') {
+                                    $coveredState = 2;
+                                }
+                                else {
+                                    $coveredState = 3; // unknown
+                                }
+
+                                $effective = 'Latest Auto';
+                            }
+                            ?>
+                            <tr>
+                                <td>
+                                    <div class="d-flex align-items-baseline">
+                                        <a href="/mc/patients/view/primary-coverage/{{$row->uid}}"
+                                           native
+                                           target="_blank">{{$row->client_name}}</a>
+                                        <span class="ml-1 text-nowrap">({{$row->sex}})</span>
+                                    </div>
+                                </td>
+                                <td>
+                                    {{$row->dob}} ({{$row->age_in_years}} y)
+                                </td>
+                                <td>
+                                    @if($coveredState === 1)
+                                        <div class="text-success">
+                                            <i class="fa fa-check"></i>
+                                            Covered
+                                        </div>
+                                    @elseif($coveredState === 2)
+                                        <div class="text-secondary">
+                                            <i class="fa fa-times"></i>
+                                            Not Covered
+                                        </div>
+                                    @else
+                                        <div class="text-warning-dark">
+                                            <i class="fa fa-exclamation-triangle"></i>
+                                            Unknown
+                                        </div>
+                                    @endif
+                                </td>
+                                <td>{{$effective}}</td>
+                                <td class="p-0">
+                                    @if($lacpc && !$lacpc->is_cancelled)
+                                        @include('app.practice-management._cpc', ['cpc' => $lacpc])
+                                    @else
+                                        -
+                                    @endif
+                                </td>
+                                <td class="p-0">
+                                    @if($lmcpc && !$lmcpc->is_cancelled)
+                                        @include('app.practice-management._cpc', ['cpc' => $lmcpc])
+                                    @else
+                                        -
+                                    @endif
+                                </td>
+
+                            </tr>
+                        @endforeach
+                    </tbody>
+                </table>
+            </div>
+        </div>
+
+        <div class="d-flex align-items-baseline mt-3">
+            {!! $paginator->withQueryString()->links() !!}
+            <div class="mb-3">
+                <div class="ml-4 mb-3">Showing <b>{{$paginator->firstItem()}}</b> to <b>{{$paginator->lastItem()}}</b> (page {{$paginator->currentPage()}}) of <b>{{$paginator->total()}}</b> coverages</div>
+            </div>
+        </div>
+    </div>
+@endsection

+ 2 - 0
routes/web.php

@@ -237,6 +237,8 @@ Route::middleware('pro.auth')->group(function () {
         Route::get('notes-resolution-center', 'PracticeManagementController@notesResolutionCenter')->name('notes-resolution-center');
         Route::get('notes-resolution-center', 'PracticeManagementController@notesResolutionCenter')->name('notes-resolution-center');
         Route::get('notes-resolution-center-v2', 'PracticeManagementController@notesResolutionCenterV2')->name('notes-resolution-center-v2');
         Route::get('notes-resolution-center-v2', 'PracticeManagementController@notesResolutionCenterV2')->name('notes-resolution-center-v2');
 
 
+        Route::get('coverages', 'PracticeManagementController@coverages')->name('coverages');
+
         Route::get('rates/{selectedProUid?}', 'PracticeManagementController@rates')->name('rates');
         Route::get('rates/{selectedProUid?}', 'PracticeManagementController@rates')->name('rates');
         Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
         Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
         Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');
         Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');