|
@@ -85,20 +85,20 @@
|
|
$oPatient = \App\Models\Client::where('uid', $iPatient->client_uid)->first();
|
|
$oPatient = \App\Models\Client::where('uid', $iPatient->client_uid)->first();
|
|
|
|
|
|
$daysDiff = -1;
|
|
$daysDiff = -1;
|
|
- if($oPatient->most_recent_completed_mcp_note_date) {
|
|
|
|
|
|
+ if($iPatient->most_recent_completed_mcp_note_date) {
|
|
$careMonthLastDay = date_add(date_create($rcmStartDate), date_interval_create_from_date_string("1 month"));
|
|
$careMonthLastDay = date_add(date_create($rcmStartDate), date_interval_create_from_date_string("1 month"));
|
|
$careMonthLastDay = date_sub($careMonthLastDay, date_interval_create_from_date_string("1 day"));
|
|
$careMonthLastDay = date_sub($careMonthLastDay, date_interval_create_from_date_string("1 day"));
|
|
- $daysDiff = date_diff($careMonthLastDay, date_create($oPatient->most_recent_completed_mcp_note_date))->days;
|
|
|
|
|
|
+ $daysDiff = date_diff($careMonthLastDay, date_create($iPatient->most_recent_completed_mcp_note_date))->days;
|
|
}
|
|
}
|
|
$lastVisitWithin90Days = ($daysDiff !== -1 && $daysDiff <= 90);
|
|
$lastVisitWithin90Days = ($daysDiff !== -1 && $daysDiff <= 90);
|
|
|
|
|
|
- $careMonth = \App\Models\CareMonth::where('uid', $iPatient->care_month_uid)->first();
|
|
|
|
|
|
+ // $careMonth = \App\Models\CareMonth::where('uid', $iPatient->care_month_uid)->first();
|
|
$performerRole = false;
|
|
$performerRole = false;
|
|
if ($pro->pro_type === 'ADMIN') {
|
|
if ($pro->pro_type === 'ADMIN') {
|
|
$performerRole = 'ADMIN';
|
|
$performerRole = 'ADMIN';
|
|
- } else if ($careMonth->mcp_pro_id === $pro->id) {
|
|
|
|
|
|
+ } else if ($iPatient->care_month_mcp_pro_id === $pro->id) {
|
|
$performerRole = 'MCP';
|
|
$performerRole = 'MCP';
|
|
- } else if ($careMonth->rmm_pro_id === $pro->id) {
|
|
|
|
|
|
+ } else if ($iPatient->care_month_rmm_pro_id === $pro->id) {
|
|
$performerRole = 'RMM';
|
|
$performerRole = 'RMM';
|
|
}
|
|
}
|
|
|
|
|
|
@@ -111,7 +111,7 @@
|
|
<td>{{friendly_date($iPatient->dob)}}</td>
|
|
<td>{{friendly_date($iPatient->dob)}}</td>
|
|
<td>{!! $iPatient->is_enrolled_in_rm === 'YES' ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
|
|
<td>{!! $iPatient->is_enrolled_in_rm === 'YES' ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
|
|
<td>{!! $oPatient->hasBPDevice() ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
|
|
<td>{!! $oPatient->hasBPDevice() ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
|
|
- <td>{!! $oPatient->hasBPDevice() ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
|
|
|
|
|
|
+ <td>{!! $oPatient->hasWeightScaleDevice() ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
|
|
<td>
|
|
<td>
|
|
{{$iPatient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$iPatient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}
|
|
{{$iPatient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$iPatient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}
|
|
@if($iPatient->most_recent_cellular_bp_measurement_at)
|
|
@if($iPatient->most_recent_cellular_bp_measurement_at)
|
|
@@ -180,11 +180,9 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
- <div class="row">
|
|
|
|
- <div class="col-12">
|
|
|
|
- <div cm-rte data-content="Interacted with the patient" data-name="contentText"></div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Memo</label>
|
|
|
|
+ <textarea class="form-control form-control-sm w-100" name="contentText"
|
|
|
|
+ required>Interacted with the patient</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex align-items-center">
|
|
<div class="d-flex align-items-center">
|
|
<button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
<button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
@@ -209,7 +207,7 @@
|
|
<input type="hidden" name="uid" value="{{ $iPatient->client_uid }}">
|
|
<input type="hidden" name="uid" value="{{ $iPatient->client_uid }}">
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label for="" class="text-sm text-secondary mb-1">Cell Number</label>
|
|
<label for="" class="text-sm text-secondary mb-1">Cell Number</label>
|
|
- <input type="text" class="form-control form-control-sm" name="cellNumber" value="{{$oPatient->cell_number}}">
|
|
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="cellNumber" value="{{$iPatient->cell_number}}">
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label for="" class="text-sm text-secondary mb-1">Message</label>
|
|
<label for="" class="text-sm text-secondary mb-1">Message</label>
|