|
@@ -356,100 +356,25 @@
|
|
|
y.o {{$patient->sex}})
|
|
|
</div>
|
|
|
<div>
|
|
|
- @if($patient->is_coverage_manually_verified || ($patient->was_medicare_validation_successful && $patient->is_part_b_primary == 'YES'))
|
|
|
- Covered <span style="color:green"><i class="fa fa-check-circle"></i> </span>
|
|
|
- @elseif($patient->was_medicare_validation_successful)
|
|
|
- <span>
|
|
|
- @if($patient->is_part_b_primary == 'YES')
|
|
|
- Medicare Part B
|
|
|
- @else
|
|
|
- Not Medicare Part B <i class="fa fa-times"></i>
|
|
|
- @if($patient->is_medicare_advantage == 'YES')
|
|
|
- , Medicare Advantage,
|
|
|
- {{$patient->medicare_advantage_plan}}
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </span>
|
|
|
- @elseif($patient->payer_name && $patient->payer_member_id)
|
|
|
- <b class="text-secondary">{{$patient->payer_name}}</b> {{--[{{$patient->payer_member_id}}]--}}
|
|
|
+ <?php
|
|
|
+ $coverageStatus = $patient->getPrimaryCoverageStatus();
|
|
|
+ $coverage = $patient->getPrimaryCoverage();
|
|
|
+ ?>
|
|
|
+ @if($coverageStatus === 'YES')
|
|
|
+ Covered <i class="fa fa-check-circle text-success"></i>
|
|
|
+ @elseif($coverageStatus === 'NO')
|
|
|
+ Not Covered <i class="fa fa-times text-danger"></i>
|
|
|
@else
|
|
|
- <div moe>
|
|
|
- <a href="" start show>
|
|
|
- @if($patient->mcn)
|
|
|
- {{$patient->mcn}} Invalid MCN <i
|
|
|
- class="fa fa-times"></i>
|
|
|
- @elseif($patient->is_coverage_manually_verified)
|
|
|
- {{$patient->coverage_manual_verification_memo}} <span style="color:green"><i class="fa fa-check-circle"></i>
|
|
|
- @else
|
|
|
- No Info Provided
|
|
|
- @endif
|
|
|
- </a>
|
|
|
- <form url="/api/client/putMedicareInfo" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm"
|
|
|
- name="nameFirst"
|
|
|
- value="{{$patient->name_first}}"
|
|
|
- placeholder="First Name">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm"
|
|
|
- name="nameLast"
|
|
|
- value="{{$patient->name_last}}"
|
|
|
- placeholder="Last Name">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="date" class="form-control form-control-sm"
|
|
|
- name="dob"
|
|
|
- value="{{$patient->dob}}"
|
|
|
- placeholder="Date of Birth">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm"
|
|
|
- name="mcn"
|
|
|
- value="{{$patient->mcn}}"
|
|
|
- placeholder="Medicare Number">
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-2">
|
|
|
- Submit
|
|
|
- </button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">
|
|
|
- Cancel
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
+ Unknown <i
|
|
|
+ class="fa fa-exclamation-triangle text-warning-mellow"></i>
|
|
|
@endif
|
|
|
- @if(!$patient->was_medicare_validation_successful)
|
|
|
- @if(!$patient->is_coverage_manually_verified)
|
|
|
- <div moe relative class="ml-2 hide-inside-popup">
|
|
|
- <a start show class="font-weight-bold">Manually verify coverage</a>
|
|
|
- <form url="/api/client/markCoverageAsManuallyVerified" class="mcp-theme-1" right>
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="form-group">
|
|
|
- <textarea name="memo" class="fom-control"></textarea>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-success mr-1">Yes</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">No</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- {{--@if($patient->is_coverage_manually_verified)
|
|
|
- <div moe relative class="ml-2">
|
|
|
- <a start show class="font-weight-bold">Undo manual verification</a>
|
|
|
- <form url="/api/client/undoMarkCoverageAsManuallyVerified" class="mcp-theme-1" right>
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <p>Undo coverage verification</p>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-success mr-1">Yes</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">No</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif--}}
|
|
|
+ @if($coverage)
|
|
|
+
|
|
|
+ {{$coverage->toString()}}
|
|
|
+ @endif
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
+
|
|
|
+ <a href="{{route('patients.view.client-primary-coverages', ['patient' => $patient])}}">View</a>
|
|
|
@endif
|
|
|
</div>
|
|
|
</div>
|