Browse Source

Removed FU stuff

Samson Mutunga 1 year ago
parent
commit
c969db9019

+ 1 - 12
resources/views/app/dashboard-admin.blade.php

@@ -371,7 +371,7 @@
                         </div>
                     @endif
                 </div>
-                <?php $fus = $pro->followupsScheduledForToday(); ?>
+                
                 <div class="col-md-9">
                     <ul class="nav nav-tabs">
                         <li class="nav-item">
@@ -434,14 +434,6 @@
                                 Supply Orders ({{$numSupplyOrders}})
                             </a>
                         </li>
-                        <li class="nav-item">
-                            <a native data-tab="calls_pending"
-                               class="nav-link {{$fus && count($fus) ? 'text-danger font-weight-bold' : ''}}"
-                               :class="tab == 'calls_pending' ? 'active' : ''" href="#"
-                               v-on:click.prevent="tab='calls_pending'">
-                                Calls Pending ({{count($fus)}})
-                            </a>
-                        </li>
                     </ul>
 
                     <div class="border-left border-right border-bottom p-3">
@@ -640,9 +632,6 @@
                         <div v-show="tab==='supply_orders'">
                             @include('app.dashboard.supply_orders')
                         </div>
-                        <div v-show="tab==='calls_pending'">
-                            @include('app.dashboard.calls_pending')
-                        </div>
                     </div>
 
                     <div class="row mt-3">

+ 0 - 60
resources/views/app/dashboard/calls_pending.blade.php

@@ -1,60 +0,0 @@
-<div class="d-flex align-items-end mb-3">
-    <b class="large">Calls pending for today</b>
-</div>
-<?php
-$nextFUStatus = [
-    "SCHEDULED",
-    "CANCELLED",
-    "COMPLETED",
-];
-?>
-@if(count($fus))
-    <table class="table table-sm table-striped table-bordered m-0">
-        <thead>
-        <tr>
-            <th class="border-0">Client</th>
-            <th class="border-0">Assigned To</th>
-            <th class="border-0">Reason</th>
-            <th class="border-0">Status</th>
-            <th class="border-0"></th>
-        </tr>
-        </thead>
-        <tbody>
-        @foreach($fus as $fu)
-            <tr>
-                <td><a href="/patients/view/{{$fu->client_uid}}">{{$fu->client_name}}</a></td>
-                <td>{{$fu->pro_first_name}} {{$fu->pro_last_name}}</td>
-                <td>{{$fu->next_follow_up_reason}}</td>
-                <td>{{$fu->status}}</td>
-                <td>
-                    <div moe relative="">
-                        <a href="#" start show>Edit Status</a>
-                        <form url="/api/clientRepFollowUp/update-status" right>
-                            <input type="hidden" name="uid" value="{{$fu->uid}}">
-                            <div class="mb-2">
-                                <label for="" class="text-secondary mb-1">Status</label>
-                                <select class="form-control input-sm" name="status">
-                                    <option value=""></option>
-                                    @foreach($nextFUStatus as $fuStatus)
-                                        <option {{ $fu->status == $fuStatus ? 'selected':'' }}>{{ $fuStatus }}</option>
-                                    @endforeach
-                                </select>
-                            </div>
-                            <div class="mb-2">
-                                <label for="" class="text-sm text-secondary mb-1">Call Memo</label>
-                                <textarea class="form-control input-sm" name="nextFollowUpMemo">{{ $fu->next_follow_up_memo ?: '' }}</textarea>
-                            </div>
-                            <div class="d-flex align-items-center">
-                                <button class="btn btn-sm btn-primary mr-2" submit>Submit</button>
-                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
-                            </div>
-                        </form>
-                    </div>
-                </td>
-            </tr>
-        @endforeach
-        </tbody>
-    </table>
-@else
-    <div class="text-secondary p-2">No follow ups scheduled for today!</div>
-@endif

+ 0 - 135
resources/views/app/patient/partials/fu-form.blade.php

@@ -1,135 +0,0 @@
-<?php
-    $nextFUReasons = [
-        "Appointment Confirmation",
-        "New Appointment",
-        "Missed Appointment",
-        "Appointment Reschedule",
-        "Appointment Cancellation",
-        "Response to Pt's Voicemail",
-        "Regarding ERx/Lab/Image Orders",
-        "Regarding Supply Orders",
-        "Regarding RPM",
-        "Pt Profile Related Matters",
-        "Pt Insurance Related Matters",
-        "Incoming Referrals",
-        "Outgoing Referrals",
-        "Insurance Verification",
-        "Questions Related to Past Visit",
-        "Provider Recommended follow-up",
-        "Care Coordination",
-        "Patient Consent",
-        "Patient Feedback",
-        "Goals Follow Up",
-        "Other-- (check recent memo)",
-    ];
-    $nextFUStatus = [
-        "SCHEDULED",
-        "CANCELLED",
-        "COMPLETED",
-    ];
-?>
-<div moe wide>
-    <a href="#" start show class="d-flex align-items-baseline" title="Next FU"><img src="{{ asset('img/p-phone.png') }}" alt="" style="width:20px"></a>
-    <form url="/api/client/putClientRepFollowUp" class="mcp-theme-1">
-        <div id="viewNextFuData" class="{{ $patient->clientRepFollowUp ? '':'d-none' }}" fu-screen>
-            @if($patient->clientRepFollowUp)
-                <div class="d-flex align-items-center mb-2">
-                <a id="updateNextFu" class="c-pointer" data-show="#updateNextFuData" next-fu-screen>Update</a>
-                <a id="updateFuStatus" class="c-pointer ml-3" data-show="#updateStatus" next-fu-screen >Update Status</a>
-                </div>
-                <table class="table table-sm table-striped table-bordered m-0">
-                    <tr>
-                        <td><b>Client Rep</b></td>
-                        <td>{{ $patient->clientRepFollowUp->pro->displayName() }}</td>
-                    </tr>
-                    <tr>
-                        <td><b>Status</b></td>
-                        <td>{{ $patient->clientRepFollowUp->status }}</td>
-                    </tr>
-                    <tr>
-                        <td><b>Next Followup Date</b></td>
-                        <td>{{ friendly_date_time($patient->clientRepFollowUp->next_follow_up_date) }}</td>
-                    </tr>
-                    <tr>
-                        <td><b>Next Followup Reason</b></td>
-                        <td>{{ $patient->clientRepFollowUp->next_follow_up_reason }}</td>
-                    </tr>
-                    <tr>
-                        <td><b>Next Followup Memo</b></td>
-                        <td>{{ $patient->clientRepFollowUp->next_follow_up_memo }}</td>
-                    </tr>
-                </table>
-            @endif
-        </div>
-        @if($patient->clientRepFollowUp)
-            <div id="updateStatus" class="{{ $patient->clientRepFollowUp ? 'd-none':'' }}" fu-screen>
-            <a class="c-pointer mb-2" data-show="#updateNextFuData" next-fu-screen>View FU</a>
-                <div class="mb-2">
-                    <label for="" class="text-secondary mb-1">Update Status</label>
-                    <select class="form-control input-sm" data-uid="{{ $patient->clientRepFollowUp->uid }}"  submit-status>
-                        <option value=""></option>
-                        @foreach($nextFUStatus as $fuStatus)
-                            <option {{ $patient->clientRepFollowUp->status == $fuStatus ? 'selected':'' }}>{{ $fuStatus }}</option>
-                        @endforeach
-                    </select>
-                </div>
-            </div>
-        @endif
-        <div id="updateNextFuData" class="{{ $patient->clientRepFollowUp ? 'd-none':'' }}" fu-screen>
-            <a id="showNextFu" class="c-pointer" data-show="#viewNextFuData" next-fu-screen>Show FU</a>
-            <input type="hidden" name="uid" value="{{ $patient->uid }}">
-            <div class="mb-2">
-                <label for="" class="text-sm text-secondary mb-1">Next Calling Date</label>
-                <input type="date" class="form-control input-sm" name="nextFollowUpDate" value="{{ $patient->clientRepFollowUp ? $patient->clientRepFollowUp->next_follow_up_date : '' }}" />
-            </div>
-            <div class="mb-2">
-                <label for="" class="text-sm text-secondary mb-1">Call Assigned To</label>
-                <select provider-search name="clientRepProUid" class="form-control input-sm">
-                    @if($patient->clientRepFollowUp)
-                    <option value="{{ $patient->clientRepFollowUp->pro->uid }}">{{ $patient->clientRepFollowUp->pro->displayName() }}</option>
-                    @endif
-                </select>
-                @if($patient->clientRepFollowUp)
-                    <small class="text-muted">Current: <b>{{ $patient->clientRepFollowUp->pro->displayName() }}</b></small>
-                @endif
-            </div>
-            <div class="mb-2">
-                <label for="" class="text-sm text-secondary mb-1">Call Reason</label>
-                <select name="nextFollowUpReason" class="form-control input-sm">
-                    <option value=""></option>
-                    @foreach($nextFUReasons as $fuReason)
-                        <option @if($patient->clientRepFollowUp){{ $patient->clientRepFollowUp->next_follow_up_reason == $fuReason ? 'selected':'' }} @endif>{{ $fuReason }}</option>
-                    @endforeach
-                </select>
-            </div>
-            <div class="mb-2">
-                <label for="" class="text-sm text-secondary mb-1">Call Memo</label>
-                <textarea class="form-control input-sm" name="nextFollowUpMemo">{{ $patient->clientRepFollowUp ? $patient->clientRepFollowUp->next_follow_up_memo : '' }}</textarea>
-            </div>
-            <div class="d-flex align-items-center">
-                <button class="btn btn-sm btn-primary mr-2" submit>Submit</button>
-                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
-            </div>
-        </div>
-    </form>
-</div>
-
-<script>
-    $(document).ready(function() {
-        $('[next-fu-screen]').click(function(){
-            var showRef = $(this).data('show');
-            $('[fu-screen]').addClass('d-none');
-            $(showRef).removeClass('d-none');
-        });
-
-        $('[submit-status]').change(function(){
-            var value = $(this).val();
-            var uid = $(this).data('uid');
-            $.post('/api/clientRepFollowUp/update-status', {uid: uid, status: value}, function(response){
-                if(response.success){
-                    fastReload();
-                }
-            }, 'json')
-        });
-    });
-</script>

+ 0 - 1
resources/views/app/patient/partials/quick-actions-buttons.blade.php

@@ -51,5 +51,4 @@
 	<div class="mr-2">
 		<a href="#" start class="ml-2 d-block" show onclick="return openInRHS('/pro/meet/{{ $patient->uid }}')"><i class="fa fa-video mr-1"></i></a>
 	</div>
-	@include('app.patient.partials.fu-form')
 </div>