|
@@ -10,6 +10,7 @@
|
|
<?php
|
|
<?php
|
|
$firstDateEverSeenByAnyone = null;
|
|
$firstDateEverSeenByAnyone = null;
|
|
$firstDateEverSeenByMcpTypePro = null;
|
|
$firstDateEverSeenByMcpTypePro = null;
|
|
|
|
+ $firstDateEverSeenByCurrentMcp = null;
|
|
$firstDateSeenByHcpMap = [];
|
|
$firstDateSeenByHcpMap = [];
|
|
$loopLastDateSeenByHcpMap = [];
|
|
$loopLastDateSeenByHcpMap = [];
|
|
$hcpNoteCountMap = [];
|
|
$hcpNoteCountMap = [];
|
|
@@ -26,6 +27,9 @@
|
|
$firstDateEverSeenByAnyone = $firstDateEverSeenByAnyone ? $firstDateEverSeenByAnyone : $d;
|
|
$firstDateEverSeenByAnyone = $firstDateEverSeenByAnyone ? $firstDateEverSeenByAnyone : $d;
|
|
if($note->hcpPro->is_enrolled_as_mcp){
|
|
if($note->hcpPro->is_enrolled_as_mcp){
|
|
$firstDateEverSeenByMcpTypePro = $firstDateEverSeenByMcpTypePro ? $firstDateEverSeenByMcpTypePro : $d;
|
|
$firstDateEverSeenByMcpTypePro = $firstDateEverSeenByMcpTypePro ? $firstDateEverSeenByMcpTypePro : $d;
|
|
|
|
+ if($note->hcpPro->id == $note->client->mcpPro->id){
|
|
|
|
+ $firstDateEverSeenByCurrentMcp = $firstDateEverSeenByMcpTypePro;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
$daysInProgram = (strtotime($d) - strtotime($firstDateEverSeenByAnyone)) / (60 * 60 * 24);
|
|
$daysInProgram = (strtotime($d) - strtotime($firstDateEverSeenByAnyone)) / (60 * 60 * 24);
|
|
$daysInMcpProgram = $firstDateEverSeenByMcpTypePro ? (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24) : null;
|
|
$daysInMcpProgram = $firstDateEverSeenByMcpTypePro ? (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24) : null;
|
|
@@ -43,6 +47,21 @@
|
|
<h2>
|
|
<h2>
|
|
<strong>HCP notes signed: </strong>{{$hcpSignedNotesCount}}
|
|
<strong>HCP notes signed: </strong>{{$hcpSignedNotesCount}}
|
|
</h2>
|
|
</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>
|
|
<h2><strong>All HCPs:</strong></h2>
|
|
<table class="table table-sm table-condensed table-striped">
|
|
<table class="table table-sm table-condensed table-striped">
|
|
<tr>
|
|
<tr>
|