|
@@ -9,10 +9,16 @@
|
|
|
<a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
<form url="/api/client/updateRmEligibility" class="mcp-theme-1">
|
|
|
<input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ @if($patient->is_enrolled_in_rm == 'YES')
|
|
|
+ <div class="alert alert-info p-1 mb-1">
|
|
|
+ Patient is currently enrolled in RPM. Un-enroll the patient to make changes.
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
<div class="mb-2">
|
|
|
<label class="text-sm mb-1 text-secondary">Is Eligible?</label>
|
|
|
<select name="isEligibleForRm"
|
|
|
class="form-control form-control-sm"
|
|
|
+ {{$patient->is_enrolled_in_rm === 'YES' ? 'disabled' : '' }}
|
|
|
onchange="toggleDisabledAsNeeded(this, 'NO', 'not-eligible-for-rm')">
|
|
|
<option value="">-- Select Status --</option>
|
|
|
<option value="YES" {{ $patient->is_eligible_for_rm === 'YES' ? 'selected' : '' }}>YES</option>
|
|
@@ -93,12 +99,53 @@
|
|
|
</div>
|
|
|
|
|
|
@if(!$patient->is_enrolled_in_rm || $patient->is_enrolled_in_rm === 'NO' || $patient->is_enrolled_in_rm === 'UNKNOWN') {{-- correct --}}
|
|
|
+ <?php
|
|
|
+ $rmDisplayData = [
|
|
|
+ 'icd_1' => [
|
|
|
+ 'title' => 'ICD 1',
|
|
|
+ 'reason' => $patient->rm_reason_icd1,
|
|
|
+ 'description' => $patient->rm_reason_icd1description
|
|
|
+ ],
|
|
|
+ 'icd_2' => [
|
|
|
+ 'title' => 'ICD 2',
|
|
|
+ 'reason' => $patient->rm_reason_icd2,
|
|
|
+ 'description' => $patient->rm_reason_icd2description
|
|
|
+ ],
|
|
|
+ 'icd_3' => [
|
|
|
+ 'title' => 'ICD 3',
|
|
|
+ 'reason' => $patient->rm_reason_icd3,
|
|
|
+ 'description' => $patient->rm_reason_icd3description
|
|
|
+ ],
|
|
|
+ 'icd_4' => [
|
|
|
+ 'title' => 'ICD 4',
|
|
|
+ 'reason' => $patient->rm_reason_icd4,
|
|
|
+ 'description' => $patient->rm_reason_icd4description
|
|
|
+ ],
|
|
|
+ ];
|
|
|
+ ?>
|
|
|
+ <?php $emptyICDs = true; ?>
|
|
|
+ @foreach($rmDisplayData as $rmKey=>$rmData)
|
|
|
+ <?php
|
|
|
+ $emptyICD = true;
|
|
|
+ if (!empty($rmData['reason']) || !empty($rmData['description'])) {
|
|
|
+ $emptyICDs = false;
|
|
|
+ $emptyICD = false;
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ @endforeach
|
|
|
<span class="ml-2 text-secondary">|</span>
|
|
|
<div moe wide class="ml-2">
|
|
|
<a start show>Enroll</a>
|
|
|
+ @if($emptyICDs)
|
|
|
+ <form url="" class="mcp-theme-1">
|
|
|
+ <div class="text-danger p-1 mb-0">
|
|
|
+ Please specify relevant RM reason(s) before enrolling the patient.
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ @else
|
|
|
<form url="/api/client/setIsEnrolledInRmToTrue" class="mcp-theme-1">
|
|
|
<input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <h2>RPM Enrollment:</h2>
|
|
|
+ <h2 class="font-weight-bold">RPM Enrollment:</h2>
|
|
|
<h3>Please confirm the following with patient:</h3>
|
|
|
<p class="mb-2">I understand that:</p>
|
|
|
<ul style="list-style:none;" class="pl-2">
|
|
@@ -122,10 +169,8 @@
|
|
|
<button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
<button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
</div>
|
|
|
- <div class="alert alert-warning p-1 mt-3 mb-2">
|
|
|
- Ensure patient has RM reason(s) on file after enrollment.
|
|
|
- </div>
|
|
|
</form>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
@endif
|
|
|
</div>
|
|
@@ -146,99 +191,98 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="my-2">
|
|
|
+ @if(@$note)
|
|
|
+ <div class="my-2">
|
|
|
@include('app.patient.note.partials.care-plan-details')
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
|
|
|
|
|
|
|
|
|
@if($pro->pro_type === 'ADMIN')
|
|
|
- <div>
|
|
|
- <table class="table-sm ">
|
|
|
- <tr>
|
|
|
- <td class="text-secondary p-1">RME Pro:</td>
|
|
|
- <td class="p-1">
|
|
|
- <div class="">
|
|
|
- <div class="d-inline-flex align-items-start">
|
|
|
- <b>{{ $patient->rme ? $patient->rme->displayName() : '-' }}</b>
|
|
|
- <div moe class="ml-2">
|
|
|
- <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/putRmePro" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">RME Pro</label>
|
|
|
- <select provider-search data-pro-uid="{{ @$patient->rme->uid }}" name="rmeProUid" class="form-control form-control-sm">
|
|
|
- <option value=""> --select--</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @if($patient->rme)
|
|
|
- <div moe class="ml-2">
|
|
|
- <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/removeRmePro" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <p>Remove RME Pro?</p>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ <div class="d-flex align-items-start mb-2">
|
|
|
+ <div class="d-flex mr-3">
|
|
|
+ <div class="text-secondary">
|
|
|
+ RME Pro:
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <div class="d-inline-flex align-items-start">
|
|
|
+ <b>{{ $patient->rme ? $patient->rme->displayName() : '-' }}</b>
|
|
|
+ @if(!$patient->rme)
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/client/putRmePro" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">RME Pro</label>
|
|
|
+ <select provider-search data-pro-uid="{{ @$patient->rme->uid }}" name="rmeProUid" class="form-control form-control-sm">
|
|
|
+ <option value=""> --select--</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/client/removeRmePro" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <p>Remove RME Pro?</p>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="d-flex">
|
|
|
+ <div class="text-secondary">
|
|
|
+ RMM Pro:
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <div class="d-inline-flex align-items-start">
|
|
|
+ <b>{{ $patient->rmm ? $patient->rmm->displayName() : '-' }}</b>
|
|
|
+ @if(!$patient->rme)
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/client/putRmmPro" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">RMM Pro</label>
|
|
|
+ <select provider-search data-pro-uid="{{ @$patient->rmm->uid }}" name="rmmProUid" class="form-control form-control-sm">
|
|
|
+ <option value=""> --select--</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="text-secondary p-1">RMM Pro:</td>
|
|
|
- <td class="p-1">
|
|
|
- <div class="">
|
|
|
- <div class="d-inline-flex align-items-start">
|
|
|
- <b>{{ $patient->rmm ? $patient->rmm->displayName() : '-' }}</b>
|
|
|
- <div moe class="ml-2">
|
|
|
- <a start show><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/putRmmPro" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">RMM Pro</label>
|
|
|
- <select provider-search data-pro-uid="{{ @$patient->rmm->uid }}" name="rmmProUid" class="form-control form-control-sm">
|
|
|
- <option value=""> --select--</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @if($patient->rmm)
|
|
|
- <div moe class="ml-2">
|
|
|
- <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/removeRmmPro" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <p>Remove RMM Pro?</p>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
</div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/client/removeRmmPro" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <p>Remove RMM Pro?</p>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
@endif
|
|
|
- <div class="border-top mt-1 pt-2">
|
|
|
- @include('app.patient.partials.client_bp_weight_phone_number_status')
|
|
|
- </div>
|
|
|
|
|
|
</div>
|
|
|
|