浏览代码

added claims resolver view

unknown 4 年之前
父节点
当前提交
d8de8c1aad
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      resources/views/app/patient/claims-resolver.blade.php

+ 6 - 0
resources/views/app/patient/claims-resolver.blade.php

@@ -13,6 +13,7 @@
             <th>Days in Program</th>
             <th>Days in Program</th>
             <th>Days in MCP Program</th>
             <th>Days in MCP Program</th>
             <th>Days with HCP</th>
             <th>Days with HCP</th>
+            <th>Note Count</th>
             <th>Days Since Last Note by HCP</th>
             <th>Days Since Last Note by HCP</th>
             <th>Days Since Last MCP Type Visit</th>
             <th>Days Since Last MCP Type Visit</th>
             <th>Loop check</th>
             <th>Loop check</th>
@@ -27,11 +28,13 @@
             $firstDateEverSeenByMcpTypePro = null;
             $firstDateEverSeenByMcpTypePro = null;
             $firstDateSeenByHcpMap = [];
             $firstDateSeenByHcpMap = [];
             $loopLastDateSeenByHcpMap = [];
             $loopLastDateSeenByHcpMap = [];
+            $hcpNoteCountMap = [];
             $loopLastDateSeenByMcpTypePro = null;
             $loopLastDateSeenByMcpTypePro = null;
             foreach($patient->notesAscending as $note){
             foreach($patient->notesAscending as $note){
 
 
                 $d = $note->effective_dateest;
                 $d = $note->effective_dateest;
                 $firstDateSeenByHcpMap[$note->hcp_pro_id] = isset($firstDateSeenByHcpMap[$note->hcp_pro_id]) ? $firstDateSeenByHcpMap[$note->hcp_pro_id] : $d;
                 $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;
 
 
                 $firstDateSeenByThisHcp = $firstDateSeenByHcpMap[$note->hcp_pro_id];
                 $firstDateSeenByThisHcp = $firstDateSeenByHcpMap[$note->hcp_pro_id];
 
 
@@ -66,6 +69,9 @@
             <td>
             <td>
                 {{ $daysWithHcp }}
                 {{ $daysWithHcp }}
             </td>
             </td>
+            <td>
+                {{ $noteCount }}
+            </td>
             <td>
             <td>
                 {{$daysSinceLastNoteByThisHcp}}
                 {{$daysSinceLastNoteByThisHcp}}
             </td>
             </td>