|
@@ -19,6 +19,9 @@
|
|
|
$loopLastContentByHcp = [];
|
|
|
$daysInMcpProgramTotal = null;
|
|
|
$hcpIdToProMap = [];
|
|
|
+ $totalNotes = 0;
|
|
|
+ $totalNotesWithBillingClosed = 0;
|
|
|
+ $totalNotesWithClaimingClosed = 0;
|
|
|
foreach($patient->notesAscending as $note){
|
|
|
$hcpIdToProMap[$note->hcp_pro_id] = $note->hcpPro;
|
|
|
$d = $note->effective_dateest;
|
|
@@ -44,12 +47,16 @@
|
|
|
$loopLastDateSeenByMcpTypePro = $d;
|
|
|
}
|
|
|
$daysInMcpProgramTotal = (strtotime(date('Y-m-d')) - strtotime($firstDateSeenByThisHcp)) / (60 * 60 * 24);
|
|
|
- }
|
|
|
+
|
|
|
+ $totalNotes++;
|
|
|
+ if($note->is_bill_closed) $totalNotesWithBillingClosed++;
|
|
|
+ if($note->is_claim_closed) $totalNotesWithClaimingClosed++;
|
|
|
+ }
|
|
|
?>
|
|
|
<h2><strong>Numbers:</strong></h2>
|
|
|
<table class="table table-sm table-striped">
|
|
|
<tr>
|
|
|
- <td>First date ever seen by anyone:</td>
|
|
|
+ <td class="w-25">First date ever seen by anyone:</td>
|
|
|
<td>{{ friendly_date_time($firstDateEverSeenByAnyone, false) }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -68,6 +75,38 @@
|
|
|
<td>Days in MCP program:</td>
|
|
|
<td>{{ $daysInMcpProgramTotal }}</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <td>Total Notes:</td>
|
|
|
+ <td>{{ $totalNotes }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>Total Notes With Billing Closed:</td>
|
|
|
+ <td>
|
|
|
+ <div class="d-flex">
|
|
|
+ <span class="fill-percent-content">{{ $totalNotesWithBillingClosed }} / {{$totalNotes}}</span>
|
|
|
+ <div class="d-inline-flex flex-grow-1 ml-3">
|
|
|
+ <span class="fill-percent-value">{{round($totalNotesWithBillingClosed * 100 / $totalNotes, 1)}}%</span>
|
|
|
+ <div class="flex-grow-1 position-relative fill-bar">
|
|
|
+ <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{$totalNotesWithBillingClosed * 100 / $totalNotes}}%"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>Total Notes With Claiming Closed:</td>
|
|
|
+ <td>
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
+ <span class="fill-percent-content">{{ $totalNotesWithClaimingClosed }} / {{$totalNotes}}</span>
|
|
|
+ <div class="d-inline-flex flex-grow-1 ml-3">
|
|
|
+ <span class="fill-percent-value">{{round($totalNotesWithClaimingClosed * 100 / $totalNotes, 1)}}%</span>
|
|
|
+ <div class="flex-grow-1 position-relative fill-bar">
|
|
|
+ <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{$totalNotesWithClaimingClosed * 100 / $totalNotes}}%"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
<h2><strong>All HCPs:</strong></h2>
|
|
|
<table class="table table-sm table-condensed table-striped">
|
|
@@ -151,6 +190,7 @@
|
|
|
<table class="table table-bordered table-condensed" id="notes-table">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
+ <th>#</th>
|
|
|
<th>HCP</th>
|
|
|
<th>Date</th>
|
|
|
{{-- <th>Days in Program</th>--}}
|
|
@@ -161,6 +201,8 @@
|
|
|
{{-- <th>Days Since Last MCP Type Visit</th>--}}
|
|
|
{{-- <th>Loop check</th>--}}
|
|
|
<th>Signed By HCP?</th>
|
|
|
+ <th>Billing Closed?</th>
|
|
|
+ <th>Claiming Closed?</th>
|
|
|
{{-- <th>Content</th>--}}
|
|
|
<th>Bills</th>
|
|
|
<th>Claims</th>
|
|
@@ -178,8 +220,11 @@
|
|
|
$hcpNoteCountMap = [];
|
|
|
$loopLastDateSeenByMcpTypePro = null;
|
|
|
$loopLastContentByHcp = [];
|
|
|
+ $rowIndex = 0;
|
|
|
foreach($patient->notesAscending as $note){
|
|
|
|
|
|
+ $rowIndex++;
|
|
|
+
|
|
|
$d = $note->effective_dateest;
|
|
|
$firstDateSeenByHcpMap[$note->hcp_pro_id] = isset($firstDateSeenByHcpMap[$note->hcp_pro_id]) ? $firstDateSeenByHcpMap[$note->hcp_pro_id] : $d;
|
|
|
$noteCount = $hcpNoteCountMap[$note->hcp_pro_id] = isset($hcpNoteCountMap[$note->hcp_pro_id]) ? $hcpNoteCountMap[$note->hcp_pro_id] + 1 : 1;
|
|
@@ -217,6 +262,7 @@
|
|
|
|
|
|
?>
|
|
|
<tr>
|
|
|
+ <td>{{$rowIndex}}</td>
|
|
|
<td>
|
|
|
<strong>{{ $note->hcpPro->displayName() }}</strong>
|
|
|
</td>
|
|
@@ -247,13 +293,15 @@
|
|
|
{{-- {{ $loopLastDateSeenByMcpTypePro }}--}}
|
|
|
{{-- </td>--}}
|
|
|
<td>
|
|
|
- {{ $note->is_signed_by_hcp }}
|
|
|
+ {{ $note->is_signed_by_hcp ? 'Yes' : 'No' }}
|
|
|
</td>
|
|
|
+ <td>{{ $note->is_bill_closed ? 'Yes' : 'No' }}</td>
|
|
|
+ <td>{{ $note->is_claim_closed ? 'Yes' : 'No' }}</td>
|
|
|
{{-- <td><div style="max-height: 200px; overflow-y: auto;">{!! $content !!}</div></td>--}}
|
|
|
|
|
|
- <td>
|
|
|
+ <td class="p-0">
|
|
|
<div>
|
|
|
- <table>
|
|
|
+ <table class="table table-sm m-0 border-0">
|
|
|
@foreach($note->bills as $bill)
|
|
|
<tr>
|
|
|
<td>{{$bill->code}}</td>
|
|
@@ -265,9 +313,9 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
</td>
|
|
|
- <td>
|
|
|
+ <td class="p-0">
|
|
|
<div>
|
|
|
- <table class="table table-sm">
|
|
|
+ <table class="table table-sm m-0 border-0">
|
|
|
@foreach($note->claims as $claim)
|
|
|
<?php if($claim->is_cancelled) continue; ?>
|
|
|
<tr>
|
|
@@ -276,20 +324,30 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
- <table class="table table-sm table-striped">
|
|
|
+ <td class="p-0">
|
|
|
+ <table class="table table-sm table-striped m-0">
|
|
|
@foreach($claim->lines as $line)
|
|
|
<tr>
|
|
|
- <td>{{ $line->cpt }}</td>
|
|
|
- <td>{{ $line->units }}</td>
|
|
|
- <td>
|
|
|
- <table class="table table-sm">
|
|
|
+ <td style="width: 80px">{{ $line->cpt }}</td>
|
|
|
+ <td style="width: 30px">{{ $line->units }}</td>
|
|
|
+ <td class="p-0">
|
|
|
+ <table class="table table-sm m-0 border-0">
|
|
|
@foreach($line->claimLineIcds as $icd)
|
|
|
<tr>
|
|
|
<td>{{ $icd->code }}</td>
|
|
|
<td>{{ $icd->description }}</td>
|
|
|
</tr>
|
|
|
@endforeach
|
|
|
+ @if(!$line->claimLineIcds || !count($line->claimLineIcds))
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <b>
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>
|
|
|
+ No ICDs
|
|
|
+ </b>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
</table>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -302,9 +360,10 @@
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <div style="max-height: 250px; overflow-y: auto;">
|
|
|
- <?php echo Diff::toTable(Diff::compare($lastContentText, $contentText)) ?>
|
|
|
- </div>
|
|
|
+{{-- <div style="max-height: 250px; overflow-y: auto;">--}}
|
|
|
+{{-- <?php echo Diff::toTable(Diff::compare($lastContentText, $contentText)) ?>--}}
|
|
|
+{{-- </div>--}}
|
|
|
+ <a href="#">Show Diff</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<?php
|
|
@@ -323,11 +382,11 @@
|
|
|
<script>
|
|
|
(function() {
|
|
|
function init() {
|
|
|
- $('#notes-table').DataTable( {
|
|
|
+ $('#notes-table').DataTable({
|
|
|
paging: false,
|
|
|
scrollY: 500,
|
|
|
scrollX: true
|
|
|
- } );
|
|
|
+ });
|
|
|
}
|
|
|
addMCInitializer('claims-resolver', init);
|
|
|
}).call(window);
|