|
@@ -20,6 +20,20 @@
|
|
|
}
|
|
|
?>
|
|
|
|
|
|
+ @if(!count($pro->companyProPayers) || /* pro has no assoc with any payer */
|
|
|
+ ($patient->is_part_b_primary !== 'YES' && !$patient->non_mc_primary_payer_id) || /* patient is not part_b and has no primary non-mc payer */
|
|
|
+ ($patient->is_part_b_primary === 'YES' && !$pro->isAssociatedWithMCPayer()) || /* patient is part_b but pro has no mc payer assoc */
|
|
|
+ ($patient->is_part_b_primary !== 'YES' && $patient->non_mc_primary_payer_id && /* patient is not part_b and has non-mc-primary, but pro has no assoc with that payer */
|
|
|
+ !$pro->isAssociatedWithNonMCPayer($patient->non_mc_primary_payer_id))
|
|
|
+ )
|
|
|
+ <div class="alert alert-warning mcp-theme-1 p-3 hide-inside-ticket-popup">
|
|
|
+ <div class="font-size-14 font-weight-bold">
|
|
|
+ <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
|
|
|
+ This patient may not be covered for this visit. Please check with practice administrator.
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+
|
|
|
<div id="note-single-header" class="pt-2 pb-3 d-flex align-items-start">
|
|
|
<h6 class="my-0 text-secondary d-flex align-items-start w-100">
|
|
|
<a href="/patients/view/{{ $patient->uid }}/notes" class="small text-decoration-none mr-3">
|
|
@@ -226,13 +240,22 @@
|
|
|
<form url="/api/note/updateMethod">
|
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
<div class="mb-2">
|
|
|
- <select name="method" class="form-control form-control-sm" required>
|
|
|
+ <select name="method" class="form-control form-control-sm note-method-select" required>
|
|
|
<option value="AUDIO" {{ $note->method === "AUDIO" ? "selected" : "" }}>Audio</option>
|
|
|
<option value="VIDEO" {{ $note->method === "VIDEO" ? "selected" : "" }}>Video</option>
|
|
|
<option value="IN_CLINIC" {{ $note->method === "IN_CLINIC" ? "selected" : "" }}>In-Clinic</option>
|
|
|
<option value="HOUSE_CALL" {{ $note->method === "HOUSE_CALL" ? "selected" : "" }}>House Call</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
+ <div class="form-group if-in-clinic">
|
|
|
+ <label for="" class="text-secondary text-sm mb-1">Location</label>
|
|
|
+ <select name="hcpCompanyLocationUid" class="form-control">
|
|
|
+ <option value="-- select --"></option>
|
|
|
+ @foreach($pro->companyLocations() as $location)
|
|
|
+ <option value="{{$location->uid}}" {{$location->id === $note->hcp_company_location_id ? 'selected' : ''}}>{{$location->line1}} {{$location->city}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
<div class="mb-0">
|
|
|
<button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
@@ -881,12 +904,103 @@
|
|
|
</div>
|
|
|
@endif
|
|
|
|
|
|
+ @if($note->method === 'IN_CLINIC' || $pro->pro_type === 'ADMIN')
|
|
|
+ <div class="p-3 border-bottom">
|
|
|
+ <div class="ml-auto d-inline-flex align-items-center">
|
|
|
+
|
|
|
+ <span class="text-secondary font-weight-bold">Pro: </span>
|
|
|
+ <b>{{$note->hcpPro ? $note->hcpPro->displayName() : '-'}}</b>
|
|
|
+
|
|
|
+ <span class="mx-3 text-secondary">|</span>
|
|
|
+ <span>
|
|
|
+ <span class="text-secondary font-weight-bold">Payer (1°): </span>
|
|
|
+ <b>{{$note->hcpCompanyProPayer && $note->hcpCompanyProPayer->payer ? $note->hcpCompanyProPayer->payer->name : '-'}}</b>
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/note/putHcpCompanyProPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hcpCompanyProPayerUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
+ <option value="{{$companyProPayer->uid}}">{{$companyProPayer->company->name}} / {{$companyProPayer->payer->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @if($note->hcpCompanyProPayer && $note->hcpCompanyProPayer->payer)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/note/wipeHcpCompanyProPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Wipe payer from this note?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="mx-3 text-secondary">|</span>
|
|
|
+ <span>
|
|
|
+ <span class="text-secondary font-weight-bold">Payer (2°): </span>
|
|
|
+ <b>-</b>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="mx-3 text-secondary">|</span>
|
|
|
+ <span>
|
|
|
+ <span class="text-secondary font-weight-bold">Location: </span><b>{{$note->hcpCompanyLocation ? $note->hcpCompanyLocation->line1 . ', ' . $note->hcpCompanyLocation->city : '-'}}</b>
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/note/putHcpCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hcpCompanyLocationUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @if($note->hcpCompany && $note->hcpCompany->locations)
|
|
|
+ @foreach($note->hcpCompany->locations as $location)
|
|
|
+ <option value="{{$location->uid}}">{{$location->line1 . ', ' . $location->city}}</option>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @if($note->hcpCompanyLocation)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/note/wipeHcpCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Wipe location from this note?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+
|
|
|
{{-- bills --}}
|
|
|
@if($pro->pro_type === 'ADMIN' || ($note->hcpPro && $pro->id === $note->hcpPro->id))
|
|
|
@if($note->bills->count())
|
|
|
<div class="p-3 border-bottom">
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
- <p class="font-weight-bold text-secondary m-0">Bills</p>
|
|
|
+ <p class="font-weight-bold text-secondary font-size-13 m-0">Bills</p>
|
|
|
@include('app/patient/note/_create-bill')
|
|
|
</div>
|
|
|
|
|
@@ -1155,7 +1269,7 @@
|
|
|
</div>
|
|
|
@endif
|
|
|
|
|
|
- @if($bill->is_cancellation_acknowledged)
|
|
|
+ @if($bill->is_cancellation_acknowledged && !$note->is_billing_marked_done)
|
|
|
<div class="mt-2 text-secondary">
|
|
|
<i class="fa fa-check"></i>
|
|
|
Acknowledged
|
|
@@ -1176,7 +1290,7 @@
|
|
|
</td>
|
|
|
<td> <!-- submit payment -->
|
|
|
<div class="my-1">
|
|
|
- @if($pro->pro_type === 'ADMIN' && !$bill->is_cancelled)
|
|
|
+ @if(!$bill->is_cancelled && !$bill->has_hcp_been_paid)
|
|
|
<span class="d-block" moe relative="">
|
|
|
<a class="font-weight-bold" href="" show start>Submit Payment For HCP</a>
|
|
|
<form url="/api/bill/payHcpAmount" right>
|
|
@@ -1192,7 +1306,7 @@
|
|
|
@endif
|
|
|
</div>
|
|
|
<div class="my-1">
|
|
|
- @if($pro->pro_type === 'ADMIN' && !$bill->is_cancelled)
|
|
|
+ @if(!$bill->is_cancelled && !$bill->has_na_been_paid && $bill->ally)
|
|
|
<span class="d-block" moe relative="">
|
|
|
<a class="font-weight-bold" href="" show start>Submit Payment For NA</a>
|
|
|
<form url="/api/bill/payNaAmount" right>
|
|
@@ -1345,105 +1459,354 @@
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<p class="font-weight-bold text-secondary m-0">Claims</p>
|
|
|
@include('app/patient/note/_create-claim')
|
|
|
+ <div class="ml-auto">
|
|
|
+ <select class="form-control form-control-sm"
|
|
|
+ onchange="fastLoad('{{route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $note])}}?claims-filter=' + this.value)">
|
|
|
+ <option value="active" {{!request('claims-filter') || request('claims-filter') === 'active' ? 'selected' : ''}}>Active Claims</option>
|
|
|
+ <option value="all" {{request('claims-filter') === 'all' ? 'selected' : ''}}>All Claims</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<table class="table table-sm tabe-striped mb-3 border-left border-right border-bottom">
|
|
|
<thead class="bg-light">
|
|
|
<tr>
|
|
|
<th class="border-bottom-0 pl-2">IID</th>
|
|
|
- <th class="border-bottom-0 w-50">Details</th>
|
|
|
- <th class="border-bottom-0 text-center">Submitted?</th>
|
|
|
- <th class="border-bottom-0">Actions</th>
|
|
|
+ <th class="border-bottom-0">Details</th>
|
|
|
+ <th class="border-bottom-0">Current Version</th>
|
|
|
+ <th class="border-bottom-0">Status</th>
|
|
|
+ <th class="border-bottom-0">Submissions</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@foreach ($note->claims as $claim)
|
|
|
- <tr class="{{ $claim->is_cancelled ? 'text-secondary bg-light on-hover-opaque' : '' }}"">
|
|
|
- <td class="pl-2">
|
|
|
- {{ $claim->iid }}
|
|
|
- @if($claim->is_cancelled)
|
|
|
- <div class="text-secondary font-weight-bold text-sm mt-1">[CANCELLED]</div>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td class="p-0">
|
|
|
- @if($claim->lines->count())
|
|
|
- <table class="table table-sm table-condensed border-left border-right mb-0">
|
|
|
- <thead>
|
|
|
- <tr class="bg-light">
|
|
|
- <th class="border-0">CPT</th>
|
|
|
- <th class="border-0">Date of Service</th>
|
|
|
- <th class="border-0">ICDs</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody class="pb-3">
|
|
|
- @foreach($claim->lines as $line)
|
|
|
- <tr class="claim-line">
|
|
|
- <td>{{$line->cpt}}</td>
|
|
|
- <td>{{$line->date_of_service}}</td>
|
|
|
- <td>
|
|
|
- @if(count($line->claimLineIcds))
|
|
|
- @foreach($line->claimLineIcds as $icd)
|
|
|
- <div>
|
|
|
- <b>{{$icd->code}}</b> <span class="text-secondary">({{$icd->description}})</span>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <p>No ICDs set</p>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- @else
|
|
|
- <p>No lines for this claim</p>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td class="text-center">{{$claim->was_submitted? 'Yes':'No'}}</td>
|
|
|
-
|
|
|
- <td>
|
|
|
- <div class="d-flex align-items-center">
|
|
|
- @if($claim->was_submitted)
|
|
|
- <span class="d-block text-secondary">
|
|
|
- Submitted
|
|
|
- </span>
|
|
|
+ @if($claim->status !== 'CANCELLED' || request('claims-filter') === 'all')
|
|
|
+ <tr class="bg-secondary on-hover-opaque">
|
|
|
+ <td colspan="5" class="pt-0 pb-1"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="{{ $claim->status === 'CANCELLED' ? 'text-secondary bg-light on-hover-opaque' : '' }}">
|
|
|
+ <td class="pl-2">
|
|
|
+ <div>{{ $claim->iid }}</div>
|
|
|
+ @if($claim->status === 'CANCELLED')
|
|
|
+ <div class="text-secondary font-weight-bold text-sm mt-1">[CANCELLED]</div>
|
|
|
@else
|
|
|
- @include('app/patient/note/_update-claim')
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span moe class="d-block" title="Submit Claim">
|
|
|
- <a class="" href="" show start>Submit</a>
|
|
|
- <form url="/api/claim/submit">
|
|
|
+ <div moe class="text-left mt-1" title="Cancel Claim">
|
|
|
+ <a class="" href="" show start>Cancel</a>
|
|
|
+ <form url="/api/claim/updateStatus">
|
|
|
<input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <p>Submit claim?</p>
|
|
|
+ <input type="hidden" name="status" value="CANCELLED">
|
|
|
+ <p>Cancel this claim?</p>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="control-label">Cancellation Memo</label>
|
|
|
+ <textarea name="memo" class="form-control"></textarea>
|
|
|
+ </div>
|
|
|
<div class="mb-0">
|
|
|
- <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
@endif
|
|
|
- @if($claim->is_cancelled)
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span class="d-block text-secondary">
|
|
|
- Cancelled
|
|
|
- </span>
|
|
|
+ </td>
|
|
|
+ <td class="p-0 border-left border-right">
|
|
|
+ @if($claim->lines->count())
|
|
|
+ <table class="table table-sm table-condensed border-0 mb-0">
|
|
|
+ <thead>
|
|
|
+ <tr class="bg-light">
|
|
|
+ <th class="border-0">CPT</th>
|
|
|
+ <th class="border-0">DOS</th>
|
|
|
+ <th class="border-0">ICDs</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="pb-3">
|
|
|
+ @foreach($claim->lines as $line)
|
|
|
+ <tr class="claim-line">
|
|
|
+ <td>{{$line->cpt}}</td>
|
|
|
+ <td class="text-nowrap">{{friendlier_date($line->date_of_service)}}</td>
|
|
|
+ <td>
|
|
|
+ @if(count($line->claimLineIcds))
|
|
|
+ @foreach($line->claimLineIcds as $icd)
|
|
|
+ <div>
|
|
|
+ <b class="c-pointer border-secondary border-bottom" title="{{$icd->description}}">{{$icd->code}}</b>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <p>No ICDs set</p>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
@else
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span class="d-block" moe>
|
|
|
- <a class="text-danger" href="" show start>Cancel</a>
|
|
|
- <form url="/api/claim/cancel">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <p>Cancel this claim?</p>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-danger btn-sm" submit>Yes</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>No</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
+ <p>No lines for this claim</p>
|
|
|
@endif
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ </td>
|
|
|
+ <td class="border-right">
|
|
|
+ {{$claim->currentVersion ? friendlier_date_time($claim->currentVersion->created_at) : '-'}}
|
|
|
+ </td>
|
|
|
+ <td class="border-right p-0">
|
|
|
+
|
|
|
+ <!-- status -->
|
|
|
+ <div class="p-1 border-bottom">
|
|
|
+ <div>
|
|
|
+ {{$claim->status ? $claim->status : '(not set)'}}
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="d-inline-block text-left ml-1" title="Update Status">
|
|
|
+ <a class="" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/updateStatus">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="control-label">Status</label>
|
|
|
+ <select name="status" class="form-control form-control-sm" required>
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ <option value="NEW" {{$claim->status === 'NEW' ? 'selected' : ''}}>New</option>
|
|
|
+ <option value="PROCESSING" {{$claim->status === 'PROCESSING' ? 'selected' : ''}}>Processing</option>
|
|
|
+ <option value="SUBMITTED" {{$claim->status === 'SUBMITTED' ? 'selected' : ''}}>Submitted</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="control-label">Status Memo</label>
|
|
|
+ <textarea name="memo" class="form-control"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ @if($claim->status_memo)
|
|
|
+ <div class="text-secondary font-italic text-sm">{{$claim->status_memo}}</div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- payer, company, location -->
|
|
|
+ <div class="p-1">
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Payer (1°): </span>
|
|
|
+ <b>{{$claim->primaryPayer ? $claim->primaryPayer->name : '-'}}</b>
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/putPrimaryPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="primaryPayerUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
+ <option value="{{$companyProPayer->payer->uid}}"
|
|
|
+ {{$claim->primaryPayer && $claim->primaryPayer->uid === $companyProPayer->payer->uid ? 'selected' : ''}}>{{$companyProPayer->payer->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @if($claim->primaryPayer)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/claim/wipePrimaryPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <p>Wipe payer from this claim?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Payer (2°): </span>
|
|
|
+ <b>-</b>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Company: </span>
|
|
|
+ <b>{{$claim->companyPro && $claim->companyPro->company ? $claim->companyPro->company->name : '-'}}</b>
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/putCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="companyProUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
+ <option value="{{$companyProPayer->companyPro->uid}}"
|
|
|
+ {{$claim->companyPro && $claim->companyPro->uid === $companyProPayer->companyPro->uid ? 'selected' : ''}}>{{$companyProPayer->company->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @if($claim->companyPro && $claim->companyPro->company)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/claim/wipeCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <p>Wipe company from this claim?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Location: </span>
|
|
|
+ <b>{{$claim->companyLocation ? $claim->companyLocation->line1 . ', ' . $claim->companyLocation->city : '-'}}</b>
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/putCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="companyLocationUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @if($claim->company && $claim->company->locations)
|
|
|
+ @foreach($claim->company->locations as $location)
|
|
|
+ <option value="{{$location->uid}}"
|
|
|
+ {{$claim->companyLocation && $claim->companyLocation->uid === $location->uid ? 'selected' : ''}}>
|
|
|
+ {{$location->line1 . ', ' . $location->city}}
|
|
|
+ </option>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @if($claim->companyLocation)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/claim/wipeCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <p>Wipe location from this claim?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="p-0 border-left border-right">
|
|
|
+ <table class="table table-sm table-condensed border-0 mb-0">
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <thead>
|
|
|
+ <tr class="">
|
|
|
+ <th colspan="3" class="border-top-0 border-bottom">
|
|
|
+ <div>
|
|
|
+ <span moe class="d-block" title="Submit Claim">
|
|
|
+ <a class="" href="" show start>Generate Submission to Payer (1°)</a>
|
|
|
+ <form url="/api/mbClaim/create">
|
|
|
+ <input type="hidden" name="claimUid" value="{{$claim->uid}}">
|
|
|
+ <p>Generate Submission?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ @endif
|
|
|
+ @if(count($claim->mbClaims))
|
|
|
+ <thead>
|
|
|
+ <tr class="bg-light">
|
|
|
+ <th class="border-0">Created</th>
|
|
|
+ <th class="border-0">Status</th>
|
|
|
+ <th class="border-0"> </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="pb-3">
|
|
|
+ @foreach($claim->mbClaims as $mbClaim)
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ @if($mbClaim->claim_version_id !== $claim->current_version_id)
|
|
|
+ <i class="fa fa-exclamation-triangle text-warning-mellow text-sm" title="This submission was generated using an older version of the claim"></i>
|
|
|
+ @else
|
|
|
+ <i class="fa fa-asterisk text-secondary text-sm" title="This submission is up to date"></i>
|
|
|
+ @endif
|
|
|
+ <a native target="_blank"
|
|
|
+ open-in-stag-popup
|
|
|
+ title="Submission Details"
|
|
|
+ href="{{route('mb-claim', ['patient' => $patient, 'mbClaim' => $mbClaim])}}">
|
|
|
+ {{ friendlier_date_time($mbClaim->created_at) }}
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {{$mbClaim->status}}
|
|
|
+ @if($mbClaim->status_memo)
|
|
|
+ <div class="font-italic text-secondary text-sm">{{$mbClaim->status_memo}}</div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td class="text-right pr-2">
|
|
|
+ <span moe relative title="Submit Claim">
|
|
|
+ <a class="" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/mbClaim/updateStatus" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$mbClaim->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Status</label>
|
|
|
+ <select name="status" class="form-control form-control-sm" required>
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ <option value="NEW" {{$mbClaim->status === 'NEW' ? 'selected' : ''}}>New</option>
|
|
|
+ <option value="PROCESSING" {{$mbClaim->status === 'PROCESSING' ? 'selected' : ''}}>Processing</option>
|
|
|
+ <option value="SUBMITTED" {{$mbClaim->status === 'SUBMITTED' ? 'selected' : ''}}>Submitted</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Status Memo</label>
|
|
|
+ <textarea name="memo" class="form-control"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ <a class="ml-1" target="_blank" native href="/api/mbClaim/downloadEDI/{{$mbClaim->uid}}" show start><i class="fa fa-file-download"></i></a>
|
|
|
+ <a class="ml-1 text-success" href="" show start><i class="fa fa-arrow-right"></i></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ @else
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td colspan="3">
|
|
|
+ <p class="p-1 text-secondary m-0">No submissions in this claim</p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ @endif
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
@endforeach
|
|
|
</tbody>
|
|
|
</table>
|