|
@@ -342,14 +342,6 @@
|
|
|
</div>
|
|
|
@endif
|
|
|
|
|
|
- {{--@if(($daysDiff !== -1 && $daysDiff <= 90) &&
|
|
|
- $careMonth->number_of_days_with_remote_measurements >= 16 &&
|
|
|
- $careMonth->has_mcp_interacted_with_client_about_rm)
|
|
|
- <div class="mt-2 border border-info p-2">
|
|
|
- @include('app.rm-bills.inline', ['patient' => $patient, 'entityType' => 'CareMonth', 'entityUid' => $careMonth->uid, 'label' => 'RM'])
|
|
|
- </div>
|
|
|
- @endif--}}
|
|
|
-
|
|
|
<div class="mt-2">
|
|
|
{{-- rm reasons --}}
|
|
|
<div class="mb-2">
|
|
@@ -357,16 +349,47 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="mb-2">
|
|
|
- @if($careMonth->rmBill && $careMonth->rmBill->code != 'RMB')
|
|
|
- @if(true && 'TODO Check if MCP and echo as needed for rme/rmm')
|
|
|
-
|
|
|
- @endif
|
|
|
- @if($performer->pro->id == $careMonth->mcp_pro_id)
|
|
|
- Reimbursement: {{ $careMonth->rmBill->hcp_payment_amount }}
|
|
|
- @endif
|
|
|
+ @if($careMonth->mcpRmGenericBill == null )
|
|
|
+
|
|
|
+ @php
|
|
|
+ $rpmBillability = $careMonth->calculateBillabilityForMcp();
|
|
|
+ @endphp
|
|
|
+
|
|
|
+ @if(!$rpmBillability['billable'])
|
|
|
+ <div class="alert alert-info">{{$rpmBillability['reason']}}</div>
|
|
|
+ @else
|
|
|
+ <div moe relative class="d-inline-block">
|
|
|
+ <a class="font-weight-bold" href="" show start>Bill for {{$rpmBillability['amount']}}</a>
|
|
|
+ <form url="/api/careMonth/generateRmGenericBillForMcpAndAutoSign" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$careMonth->uid}}">
|
|
|
+ <p>Bill ${{$rpmBillability['amount']}} for this care month?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Bill & Sign</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
@endif
|
|
|
- </div>
|
|
|
+ @else
|
|
|
+ <div class="font-weight-bold">
|
|
|
+ Billed: ${{$careMonth->mcpRmGenericBill->generic_pro_expected_payment_amount}}
|
|
|
+ @if($careMonth->mcpRmGenericBill->is_signed_by_generic_pro)
|
|
|
+ <span class="text-success"><i class="fa fa-check"></i> Signed </span>
|
|
|
+ @else
|
|
|
+ <div moe relative class="d-inline-block">
|
|
|
+ <a class="font-weight-bold" href="" show start>Sign</a>
|
|
|
+ <form url="/api/bill/signAsGenericPro" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$careMonth->mcpRmGenericBill->uid}}">
|
|
|
+ <p>Sign this bill?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|