unknown 4 жил өмнө
parent
commit
0659cc3290

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

@@ -10,6 +10,7 @@
     <?php
     $firstDateEverSeenByAnyone = null;
     $firstDateEverSeenByMcpTypePro = null;
+    $firstDateEverSeenByCurrentMcp = null;
     $firstDateSeenByHcpMap = [];
     $loopLastDateSeenByHcpMap = [];
     $hcpNoteCountMap = [];
@@ -26,6 +27,9 @@
         $firstDateEverSeenByAnyone = $firstDateEverSeenByAnyone ? $firstDateEverSeenByAnyone : $d;
         if($note->hcpPro->is_enrolled_as_mcp){
             $firstDateEverSeenByMcpTypePro = $firstDateEverSeenByMcpTypePro ? $firstDateEverSeenByMcpTypePro : $d;
+            if($note->hcpPro->id == $note->client->mcpPro->id){
+                $firstDateEverSeenByCurrentMcp = $firstDateEverSeenByMcpTypePro;
+            }
         }
         $daysInProgram = (strtotime($d) - strtotime($firstDateEverSeenByAnyone)) / (60 * 60 * 24);
         $daysInMcpProgram = $firstDateEverSeenByMcpTypePro ? (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24) : null;
@@ -43,6 +47,21 @@
     <h2>
         <strong>HCP notes signed: </strong>{{$hcpSignedNotesCount}}
     </h2>
+    <h2><strong>Numbers:</strong></h2>
+    <table class="table table-sm table-striped">
+        <tr>
+            <td>First date ever seen by anyone:</td>
+            <td>{{ $firstDateEverSeenByAnyone }}</td>
+        </tr>
+        <tr>
+            <td>First date with medical professional:</td>
+            <td>{{ $firstDateEverSeenByMcpTypePro }}</td>
+        </tr>
+        <tr>
+            <td>First date ever seen by current MCP:</td>
+            <td>{{ $firstDateEverSeenByCurrentMcp }}</td>
+        </tr>
+    </table>
     <h2><strong>All HCPs:</strong></h2>
     <table class="table table-sm table-condensed table-striped">
         <tr>