|
@@ -1215,14 +1215,14 @@ $leanView = request()->input('popupmode') && request()->input('fromNoteUid');
|
|
|
</div>
|
|
|
@endif
|
|
|
|
|
|
- @if($careMonth->number_of_days_with_remote_measurements >= 16)
|
|
|
+ {{--@if($careMonth->number_of_days_with_remote_measurements >= 16)--}}
|
|
|
|
|
|
{{-- bills --}} {{-- only admins --}}
|
|
|
@if($pro->pro_type === 'ADMIN')
|
|
|
|
|
|
<hr class="m-negator my-0">
|
|
|
|
|
|
- <div class="screen-only m-neg-4 mb-3">
|
|
|
+ <div class="screen-only m-neg-3 mb-3">
|
|
|
@include('app.generic-bills.inline-for-cm', ['patient' => $patient, 'careMonth' => $careMonth, 'class' => 'p-3 border-bottom', 'label' => 'MCP'])
|
|
|
</div>
|
|
|
|
|
@@ -1518,24 +1518,24 @@ $leanView = request()->input('popupmode') && request()->input('fromNoteUid');
|
|
|
<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/createFromClaimForPrimaryPayer">
|
|
|
- <input type="hidden" name="claimUid"
|
|
|
- value="{{$claim->uid}}">
|
|
|
+ <div moe class="d-block mb-2" title="Submit Claim">
|
|
|
+ <a class="" href="" show start>Generate Submission</a>
|
|
|
+ <form url="/api/mbClaim/createFromClaimForPrimaryPayer">
|
|
|
+ <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>
|
|
|
+ <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>
|
|
|
+ <div class="d-block" title="Submit Claim">
|
|
|
+ <a class="generate-submission-and-close"
|
|
|
+ data-claim-uid="{{$claim->uid}}"
|
|
|
+ data-caremonth-uid="{{$careMonth->uid}}"
|
|
|
+ href="#" show start>Generate & Close Claiming</a>
|
|
|
+ </div>
|
|
|
+
|
|
|
</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -1643,7 +1643,7 @@ $leanView = request()->input('popupmode') && request()->input('fromNoteUid');
|
|
|
@endif
|
|
|
@endif
|
|
|
|
|
|
- @endif
|
|
|
+ {{--@endif--}}
|
|
|
|
|
|
{{-- invoices --}}
|
|
|
@if($pro->pro_type === 'ADMIN')
|
|
@@ -1811,6 +1811,39 @@ $leanView = request()->input('popupmode') && request()->input('fromNoteUid');
|
|
|
runMCInitializer('vitalsGraphUnified_{{$careMonth->id}}');
|
|
|
}
|
|
|
|
|
|
+ // generate and close
|
|
|
+ $('.generate-submission-and-close')
|
|
|
+ .off('click.gcc')
|
|
|
+ .on('click.gcc', function(_e) {
|
|
|
+
|
|
|
+ _e.preventDefault();
|
|
|
+ _e.stopPropagation();
|
|
|
+
|
|
|
+ showMask();
|
|
|
+
|
|
|
+ // generate submission
|
|
|
+ $.post('/api/mbClaim/createFromClaimForPrimaryPayer', {
|
|
|
+ claimUid: $(this).attr('data-claim-uid')
|
|
|
+ }, function (_data) {
|
|
|
+ if(!hasResponseError(_data)) {
|
|
|
+
|
|
|
+ // close claiming
|
|
|
+ $.post('/api/careMonth/closeClaiming', {
|
|
|
+ uid: $(this).attr('data-caremonth-uid')
|
|
|
+ }, function (_data) {
|
|
|
+ if(!hasResponseError(_data)) {
|
|
|
+
|
|
|
+ // done
|
|
|
+ fastReload();
|
|
|
+
|
|
|
+ }
|
|
|
+ }, 'json')
|
|
|
+ }
|
|
|
+ }, 'json')
|
|
|
+
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
|
|
|
addMCInitializer('care-month-dashboard-{{$patient->uid}}', init, '#care-month-container-{{$patient->uid}}');
|