Samson Mutunga 3 yıl önce
ebeveyn
işleme
a4d81a11ed
38 değiştirilmiş dosya ile 209 ekleme ve 39 silme
  1. 11 2
      app/Http/Controllers/McpController.php
  2. 1 1
      resources/views/app/dna/patients.blade.php
  3. 1 1
      resources/views/app/mcp/measurements_pending_stamping.blade.php
  4. 69 2
      resources/views/app/mcp/reports.blade.php
  5. 94 0
      resources/views/app/mcp/reports_filters.blade.php
  6. 1 1
      resources/views/app/practice-management/bill-matrix.blade.php
  7. 1 1
      resources/views/app/practice-management/billing-manager-v1.blade.php
  8. 1 1
      resources/views/app/practice-management/billing-manager.blade.php
  9. 1 1
      resources/views/app/practice-management/billing-report.blade.php
  10. 1 1
      resources/views/app/practice-management/bills-under-processing.blade.php
  11. 1 1
      resources/views/app/practice-management/bills.blade.php
  12. 1 1
      resources/views/app/practice-management/care-month-report.blade.php
  13. 1 1
      resources/views/app/practice-management/cellular-device-manager.blade.php
  14. 1 1
      resources/views/app/practice-management/claims-pdf.blade.php
  15. 1 1
      resources/views/app/practice-management/dna-notes-pending-mcp-sign.blade.php
  16. 1 1
      resources/views/app/practice-management/financial-transactions.blade.php
  17. 1 1
      resources/views/app/practice-management/handouts.blade.php
  18. 1 1
      resources/views/app/practice-management/hcp-bill-matrix.blade.php
  19. 1 1
      resources/views/app/practice-management/mc-code-checks.blade.php
  20. 1 1
      resources/views/app/practice-management/medicare-partb-claims.blade.php
  21. 1 1
      resources/views/app/practice-management/my-favorites.blade.php
  22. 1 1
      resources/views/app/practice-management/my-teams.blade.php
  23. 1 1
      resources/views/app/practice-management/my-text-shortcuts.blade.php
  24. 1 1
      resources/views/app/practice-management/my-tickets.blade.php
  25. 1 1
      resources/views/app/practice-management/na-billable-signed-notes.blade.php
  26. 1 1
      resources/views/app/practice-management/notes-processing-center.blade.php
  27. 1 1
      resources/views/app/practice-management/notes.blade.php
  28. 1 1
      resources/views/app/practice-management/patient-claim-summary.blade.php
  29. 1 1
      resources/views/app/practice-management/patients-without-coverage.blade.php
  30. 1 1
      resources/views/app/practice-management/pro-availability.blade.php
  31. 1 1
      resources/views/app/practice-management/pro-financials.blade.php
  32. 1 1
      resources/views/app/practice-management/processing-bill-matrix.blade.php
  33. 1 1
      resources/views/app/practice-management/rates.blade.php
  34. 1 1
      resources/views/app/practice-management/remote-monitoring-report.blade.php
  35. 1 1
      resources/views/app/practice-management/rm-bills-to-sign.blade.php
  36. 1 1
      resources/views/app/practice-management/tickets.blade.php
  37. 1 1
      resources/views/app/practice-management/unacknowledged-cancelled-bills.blade.php
  38. 1 1
      resources/views/app/unmapped-sms.blade.php

+ 11 - 2
app/Http/Controllers/McpController.php

@@ -188,8 +188,17 @@ class McpController extends Controller
 
     public function reports(Request $request)
     {
-        $data = [];
-        return view('app.mcp.reports', $data);
+        $filters = $request->all();
+        $reports = IncomingReport::where('hcp_pro_id', $this->performer->pro->id);
+        $this->filterMultiQuery($request, $reports, 'report_date', 'date_category', 'date_value_1', 'date_value_2');
+        $status = $request->get('status');
+        if($status){
+            if($status == 'SIGNED') $reports = $reports->where('has_hcp_pro_signed', true);
+            if($status == 'NOT_SIGNED') $reports = $reports->where('has_hcp_pro_signed', false);
+        }
+
+        $reports = $reports->orderBy('created_at', 'DESC')->paginate(20);
+        return view('app.mcp.reports', compact('reports', 'filters'));
     }
 
     public function supply_orders(Request $request)

+ 1 - 1
resources/views/app/dna/patients.blade.php

@@ -6,7 +6,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Patients
             </strong>
         </div>

+ 1 - 1
resources/views/app/mcp/measurements_pending_stamping.blade.php

@@ -3,7 +3,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center border-bottom-0 hide-inside-popup">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Measurements Pending Stamping
             </strong>
         </div>

+ 69 - 2
resources/views/app/mcp/reports.blade.php

@@ -1,5 +1,72 @@
 @extends ('layouts/template')
 
 @section('content')
-    <h1>Hi</h1>
-@endsection
+<div class="p-3 mcp-theme-1" id="patients-list">
+    <div class="card">
+
+        <div class="card-header px-3 py-2 d-flex align-items-center">
+            <strong class="mr-4">
+                <i class="fas fa-file-invoice-dollar"></i>
+                Reports Pending Signature
+            </strong>
+        </div>
+
+        <div class="card-body p-0">
+            <div class="p-3">
+                @include('app.mcp.reports_filters')
+            </div>
+            <table class="table table-condensed p-0 m-0">
+                <thead class="bg-light">
+                    <tr>
+                        <th class="px-3 border-0">Patient</th>
+                        <th class="px-3 border-0">Title</th>
+                        <th class="px-3 border-0">Category</th>
+                        <th class="px-3 border-0">Report Date</th>
+                        <th class="px-3 border-0">Sign</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    @foreach($reports as $report)
+                    <tr class="{{$report->is_entry_error ? 'entry-error' : ''}}">
+                        <td class="border-bottom-0">{{$report->client->displayName()}}</td>
+                        <td>
+                            <a native target="_blank" href="{{route('patients.view.incoming-reports', ['patient' => $report->client, 'currentReport' => $report])}}" class="{{@$currentReport->uid === $report->uid ? 'font-weight-bold' : ''}}">
+                                {{ $report->title ? $report->title : '(not set)' }}
+                            </a>
+                        </td>
+                        <td>{{ $report->category }}{{ $report->subcategory ? ' / ' . $report->subcategory : '' }}</td>
+                        <td>{{ friendly_date_time($report->report_date, false) }}</td>
+                        <td>
+                            @if(!$report->has_hcp_pro_signed)
+                            -
+                            @else
+                            <div class="text-success mb-1">
+                                <i class="fa fa-check"></i>
+                                Signed
+                            </div>
+                            @if($report->hcp)
+                            <div class="text-secondary">
+                                <div class="text-sm font-weight-bold">{{$report->hcp->displayName()}}</div>
+                                <div class="text-sm">{{friendlier_date_time($report->hcp_pro_signed_at)}}</div>
+                            </div>
+                            @endif
+                            @endif
+                        </td>
+                    </tr>
+                    @endforeach
+
+                    @if(count($reports) === 0)
+                    <tr>
+                        <td colspan="5">No records found!</td>
+                    </tr>
+                    @endif
+                </tbody>
+
+            </table>
+            <div class="ml-2 mt-2">
+                {{ $reports->appends(request()->input())->links() }}
+            </div>
+        </div>
+    </div>
+</div>
+@endsection

+ 94 - 0
resources/views/app/mcp/reports_filters.blade.php

@@ -0,0 +1,94 @@
+<style>
+	#mcp-reports-filters label {
+		font-weight: bold;
+	}
+
+	#mcp-reports-filters .mw-100px {
+		min-width: 100px;
+	}
+</style>
+<form id="mcp-reports-filters" method="GET" action="{{ route('mcp.reports') }}" class="row align-items-end" v-cloak>
+	<!-- DATE	 -->
+	<div class="col-md-2">
+		<div class="form-group">
+			<label>Date:</label>
+			<select name="date_category" class="form-control input-sm" v-model="filters.date_category">
+				<option value="">All</option>
+				<option value="EXACTLY">Exactly</option>
+				<option value="LESS_THAN">Less Than</option>
+				<option value="GREATER_THAN">Greater Than</option>
+				<option value="BETWEEN">Between</option>
+				<option value="NOT_BETWEEN">Not Between</option>
+			</select>
+			<div v-show="filters.date_category" class="row mt-2">
+				<div :class="filters.date_category === 'BETWEEN' || filters.date_category === 'NOT_BETWEEN' ? 'col-md-6' : 'col-md-12'">
+					<input name="date_value_1" v-model="filters.date_value_1" type="date" class="form-control input-sm" :placeholder="(filters.date_category === 'BETWEEN' || filters.date_category === 'NOT_BETWEEN') ? 'From' : 'Date'" />
+				</div>
+				<div v-show="filters.date_category === 'BETWEEN' || filters.date_category === 'NOT_BETWEEN'" class="col-md-6">
+					<input name="date_value_2" v-model="filters.date_value_2" type="date" class="form-control input-sm" placeholder="To" />
+				</div>
+			</div>
+		</div>
+	</div>
+	<!-- STATUS -->
+	<div class="col-md-2">
+		<div class="form-group">
+			<label>Status:</label>
+			<select name="status" class="form-control input-sm" v-model="filters.status">
+				<option value="">All</option>
+				<option value="SIGNED">Signed</option>
+				<option value="NOT_SIGNED">Not Signed</option>
+			</select>
+		</div>
+	</div>
+
+	<div class="col-md-2">
+		<div class="form-group d-flex">
+			<label>&nbsp;</label>
+			<button type="submit" v-on:click.prevent="doSubmit()" class="btn btn-primary btn-sm mr-2 mw-100px">Apply Filters</button>
+			<a href="#" v-on:click.prevent="fastLoad('{{route('mcp.reports')}}')" class="btn btn-danger btn-sm text-white mw-100px">Clear Filters</a>
+		</div>
+	</div>
+</form>
+<?php
+$loadedFilters = $filters;
+$allFilterKeys = [
+	'date_category',
+	'date_value_1',
+	'date_value_2',
+	'status'
+];
+for ($i = 0; $i < count($allFilterKeys); $i++) {
+	if (!isset($loadedFilters[$allFilterKeys[$i]]) || !$loadedFilters[$allFilterKeys[$i]]) {
+		$loadedFilters[$allFilterKeys[$i]] = '';
+	}
+}
+?>
+<script>
+	(function() {
+		function init() {
+			window.apapp = new Vue({
+				el: '#mcp-reports-filters',
+				delimiters: ['@{{', '}}'],
+				data: {
+					filters: <?= json_encode($loadedFilters) ?>
+				},
+				methods: {
+					doSubmit: function() {
+						fastLoad('{{ route("mcp.reports") }}?' + $('#mcp-reports-filters').serialize());
+						return false;
+					},
+					init: function() {
+
+					}
+				},
+				mounted: function() {
+					this.init();
+				},
+			});
+
+
+		}
+		addMCInitializer('mcp-reports-filters', init, '#mcp-reports-filters');
+	})();
+</script>

+ 1 - 1
resources/views/app/practice-management/bill-matrix.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Bills
             </strong>
             <a href="/practice-management/bill-matrix" class="ml-auto">Clear Filters</a>

+ 1 - 1
resources/views/app/practice-management/billing-manager-v1.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4 font-size-14">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Billing Manager
                     @if(request()->input('date'))
                         - Notes on {{friendlier_date(request()->input('date'))}}

+ 1 - 1
resources/views/app/practice-management/billing-manager.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4 font-size-14">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Billing Manager
                     @if(request()->input('date'))
                         - Notes on {{friendlier_date(request()->input('date'))}}

+ 1 - 1
resources/views/app/practice-management/billing-report.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Note Billing Report
             </strong>
         </div>

+ 1 - 1
resources/views/app/practice-management/bills-under-processing.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2">
                 <div class="font-weight-bold text-nowrap mb-2">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Bills Under Processing
                 </div>
             </div>

+ 1 - 1
resources/views/app/practice-management/bills.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Bills
             </strong>
             <select class="ml-auto max-width-300px form-control form-control-sm" onchange="fastLoad('/practice-management/bills/' + this.value, true, false, false)">

+ 1 - 1
resources/views/app/practice-management/care-month-report.blade.php

@@ -6,7 +6,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Care Month Report: {{date('M Y', strtotime($date))}}
                 </strong>
                 <div class="ml-auto">

+ 1 - 1
resources/views/app/practice-management/cellular-device-manager.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4 flex-grow-1">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Cellular Device Manager
                 </strong>
                 <div class="width-200px ml-auto">

+ 1 - 1
resources/views/app/practice-management/claims-pdf.blade.php

@@ -3,7 +3,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Claims
             </strong>
             <a href="{{route('practice-management.download-claims')}}">Download</a>

+ 1 - 1
resources/views/app/practice-management/dna-notes-pending-mcp-sign.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Notes Pending MCP Sign
             </strong>
         </div>

+ 1 - 1
resources/views/app/practice-management/financial-transactions.blade.php

@@ -5,7 +5,7 @@
         <div class="card">
             <div class="card-header p-3 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Financial Transactions
                 </strong>
                 <div class="ml-auto">

+ 1 - 1
resources/views/app/practice-management/handouts.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Handouts
             </strong>
             <span class="mx-2 text-secondary">|</span>

+ 1 - 1
resources/views/app/practice-management/hcp-bill-matrix.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     HCP Bill Matrix
                 </strong>
                 <select class="ml-auto max-width-300px form-control form-control-sm"

+ 1 - 1
resources/views/app/practice-management/mc-code-checks.blade.php

@@ -5,7 +5,7 @@
         <div class="card">
             <div class="card-header p-3 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     MC Code Checks
                 </strong>
             </div>

+ 1 - 1
resources/views/app/practice-management/medicare-partb-claims.blade.php

@@ -7,7 +7,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Claims
                 </strong>
                 <a native href="{{route('practice-management.download-claims')}}" target="_blank">Download</a>

+ 1 - 1
resources/views/app/practice-management/my-favorites.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Favorites
             </strong>
             <span class="ml-3 text-secondary">

+ 1 - 1
resources/views/app/practice-management/my-teams.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 My Teams
             </strong>
         </div>

+ 1 - 1
resources/views/app/practice-management/my-text-shortcuts.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Text Shortcuts
             </strong>
             <span class="mx-2 text-secondary">|</span>

+ 1 - 1
resources/views/app/practice-management/my-tickets.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 My Tickets
             </strong>
             <select class="ml-auto max-width-300px form-control form-control-sm"

+ 1 - 1
resources/views/app/practice-management/na-billable-signed-notes.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Billable Signed Notes ({{count($notes)}})
             </strong>
         </div>

+ 1 - 1
resources/views/app/practice-management/notes-processing-center.blade.php

@@ -12,7 +12,7 @@
 
             <div class="card-header p-2 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Notes Processing Center
                 </strong>
             </div>

+ 1 - 1
resources/views/app/practice-management/notes.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Notes
             </strong>
             <select class="ml-auto max-width-300px form-control form-control-sm" onchange="fastLoad('/practice-management/notes/' + this.value, true, false, false)">

+ 1 - 1
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -119,7 +119,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4 d-inline-block">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Patient Claim Summary
                 </strong>
                 <select class="ml-auto max-width-300px form-control form-control-sm d-inline-block"

+ 1 - 1
resources/views/app/practice-management/patients-without-coverage.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Patients pending coverage info/verification
             </strong>
             <select class="ml-auto max-width-300px form-control form-control-sm"

+ 1 - 1
resources/views/app/practice-management/pro-availability.blade.php

@@ -584,7 +584,7 @@
             <div class="card">
                 <div class="card-header px-3 py-2 d-flex align-items-center">
                     <strong class="">
-                        <i class="fas fa-user-injured"></i>
+                        <i class="fas fa-user"></i>
                         Pro Availability
                     </strong>
                     <div class="ml-auto d-inline-flex align-items-center">

+ 1 - 1
resources/views/app/practice-management/pro-financials.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="text-nowrap">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Pro Financials
                 </strong>
                 <span class="mx-2">for</span>

+ 1 - 1
resources/views/app/practice-management/processing-bill-matrix.blade.php

@@ -8,7 +8,7 @@
 
             <div class="card-header px-3 py-2">
                 <div class="font-weight-bold text-nowrap mb-2">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Processing Bills
                 </div>
                 <div class="d-flex align-items-center mb-2">

+ 1 - 1
resources/views/app/practice-management/rates.blade.php

@@ -7,7 +7,7 @@
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="text-nowrap">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Payment Rates
                 </strong>
                 <span class="mx-2">for</span>

+ 1 - 1
resources/views/app/practice-management/remote-monitoring-report.blade.php

@@ -5,7 +5,7 @@
         <div class="card">
             <div class="card-header p-3 d-flex align-items-center">
                 <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
+                    <i class="fas fa-user"></i>
                     Remote Monitoring Report
                 </strong>
             </div>

+ 1 - 1
resources/views/app/practice-management/rm-bills-to-sign.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 RM Bills to Sign
             </strong>
             @if($pro->is_hcp && $bills && count($bills))

+ 1 - 1
resources/views/app/practice-management/tickets.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Tickets
             </strong>
             

+ 1 - 1
resources/views/app/practice-management/unacknowledged-cancelled-bills.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4 font-size-16">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Unacknowledged Cancelled Bills
             </strong>
         </div>

+ 1 - 1
resources/views/app/unmapped-sms.blade.php

@@ -7,7 +7,7 @@
 
         <div class="card-header px-3 py-2 d-flex align-items-center">
             <strong class="mr-4">
-                <i class="fas fa-user-injured"></i>
+                <i class="fas fa-user"></i>
                 Unmapped SMS
             </strong>
             {{--<select class="ml-auto max-width-300px form-control form-control-sm" onchange="fastLoad('/patients/' + this.value, true, false, false)">