|
@@ -53,64 +53,73 @@
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending Billing</a>
|
|
|
+ <a href="{{ route('mcp.notes_pending_billing') }}">
|
|
|
+ Notes Pending Billing
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
|
|
|
- Signature</a>
|
|
|
+ <a href="{{ route('mcp.reports_pending_signature') }}">
|
|
|
+ Reports Pending Signature</a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
|
|
|
- Appointments</a>
|
|
|
+ <a href="{{ route('mcp.patients_without_appointments') }}">
|
|
|
+ Patients w/o Appointments
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for Visit</a>
|
|
|
+ <a href="{{ route('mcp.patients_overdue_for_visit') }}">
|
|
|
+ Patients Overdue for Visit
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_cancelled_appointments_pending_acknowledgement_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.cancelled_appointments_pending_review') }}">Cancelled
|
|
|
- Appts. Pending Review</a>
|
|
|
+ <a href="{{ route('mcp.cancelled_appointments_pending_review') }}">
|
|
|
+ Cancelled Appts. Pending Review</a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_cancelled_bills_awaiting_review_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.cancelled_bills_pending_review') }}">Cancelled Bills
|
|
|
- Pending Review</a>
|
|
|
+ <a href="{{ route('mcp.cancelled_bills_pending_review') }}">
|
|
|
+ Cancelled Bills Pending Review
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_cancelled_supply_orders_awaiting_review_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.cancelled_supply_orders_pending_review') }}">Cancelled
|
|
|
- Supply Orders Pending Review</a>
|
|
|
+ <a href="{{ route('mcp.cancelled_supply_orders_pending_review') }}">
|
|
|
+ Cancelled Supply Orders Pending Review
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_erx_and_orders_awaiting_signature_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.erx_and_orders_pending_signature') }}">ERx & Orders
|
|
|
- Pending Signature</a>
|
|
|
+ <a href="{{ route('mcp.erx_and_orders_pending_signature') }}">
|
|
|
+ ERx & Orders Pending Signature
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="px-2 text-center">{{$pro->get_supply_orders_awaiting_signature_count_as_mcp()}}</th>
|
|
|
<th class="pl-2">
|
|
|
- <a href="{{ route('mcp.supply_orders_pending_signature') }}">Supply Orders
|
|
|
- Pending Signature</a>
|
|
|
+ <a href="{{ route('mcp.supply_orders_pending_signature') }}">
|
|
|
+ Supply Orders Pending Signature
|
|
|
+ </a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
</tbody>
|
|
@@ -203,93 +212,6 @@
|
|
|
</div>
|
|
|
<div class="col-md-9">
|
|
|
|
|
|
- <div class="row">
|
|
|
- <div class="col-6">
|
|
|
-
|
|
|
- <!-- Appointment Updates -->
|
|
|
-
|
|
|
- @if(false && count($proApptUpdates))
|
|
|
- <div class="card mb-4 ack-container">
|
|
|
- <div class="card-header pl-2">
|
|
|
- <strong>
|
|
|
- Appointment Updates
|
|
|
- </strong>
|
|
|
- </div>
|
|
|
- <div class="card-body p-0">
|
|
|
- <table class="table table-sm mb-0 table-bordered">
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <th>Client</th>
|
|
|
- <th>Appt. Date/Time</th>
|
|
|
- <th>Status</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach($proApptUpdates as $update)
|
|
|
- <tr>
|
|
|
- <td>{{$update->name_first}} {{$update->name_last}}</td>
|
|
|
- <td>{{friendlier_date_time($update->start_time)}}</td>
|
|
|
- <td>{{$update->status}}</td>
|
|
|
- <td>
|
|
|
- <a href="#" class="ack-pro-appt-update"
|
|
|
- data-uid="{{$update->uid}}">Acknowledge</a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
-
|
|
|
- <!-- new associations -->
|
|
|
- @if(count($newMCPAssociations))
|
|
|
- <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
- <p class="pt-1 mb-2"><b>New Patients</b></p>
|
|
|
- @foreach($newMCPAssociations as $assoc)
|
|
|
- <div class="d-flex align-items-start bg-light mb-2 px-2 py-1">
|
|
|
- <div class="flex-grow-1">
|
|
|
- New Patients
|
|
|
- <a href="/patients/view/{{$assoc->patient->uid}}"
|
|
|
- class="">{{$assoc->patient->displayName()}}</a>
|
|
|
- <?php $nextAppt = $assoc->patient->nextAppointment(); ?>
|
|
|
- @if($nextAppt)
|
|
|
- <div class="font-size-11">
|
|
|
- <span class="text-secondary font-size-11">Appt.</span>
|
|
|
- {{$nextAppt->pro->displayName()}}
|
|
|
- <span class="text-secondary font-size-11">on</span>
|
|
|
- {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
|
|
|
- </div>
|
|
|
- @if($nextAppt->status === 'CREATED')
|
|
|
- <div
|
|
|
- class="text-warning-mellow font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-exclamation-triangle"></i>
|
|
|
- Confirmation pending
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if($nextAppt->status === 'CONFIRMED')
|
|
|
- <div class="text-success font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- Confirmed by the patient
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if($nextAppt->status === 'REJECTED')
|
|
|
- <div class="text-danger font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-stop"></i>
|
|
|
- Rejected by the patient
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <a href="#" class="ack-client-pro-change ml-3" data-uid="{{$assoc->uid}}">Stamp</a>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
<div class="row mcp-theme-1" id="pro-dashboard-container" v-cloak>
|
|
|
<div class="col-md-6 mcp-theme-1">
|
|
|
<div class="card mb-4">
|
|
@@ -299,79 +221,7 @@
|
|
|
</strong>
|
|
|
</div>
|
|
|
<div class="card-body p-0">
|
|
|
-
|
|
|
- <table v-if="events.length > 0" class="mb-0 table table-sm table-bordered appointments">
|
|
|
- <tr v-for="event in events" class="">
|
|
|
- <td>
|
|
|
- <a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{
|
|
|
- event.clientName }}</a>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{-- <span class="small d-inline-block text-secondary font-weight-normal"> (@{{ event.clientAge }} y.o. @{{event.clientSex}})</span>--}}
|
|
|
- @{{ event.friendlyStartTime }} - @{{ event.friendlyEndTime }} <span
|
|
|
- class="text-secondary">@{{ formatTimeZone(event.timezone) }}</span>
|
|
|
- <span v-if="event.title"
|
|
|
- class="d-inline-block ml- 2 text-secondary font-weight-bold">
|
|
|
- /
|
|
|
- @{{ event.title }}
|
|
|
- </span>
|
|
|
- <a :href="'/patients/view/' + event.clientUid + '/calendar/' + event.uid">
|
|
|
- <i class="fa fa-edit"></i>
|
|
|
- </a>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
- <!-- <div v-if="event.status === 'CREATED'"
|
|
|
- class="text-warning-mellow font-weight-bold">
|
|
|
- <i class="fa fa-exclamation-triangle"></i>
|
|
|
- Confirmation pending
|
|
|
- </div>
|
|
|
- <div v-else-if="event.status === 'CONFIRMED'"
|
|
|
- class="text-success font-weight-bold">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- Confirmed by the patient
|
|
|
- </div>
|
|
|
- <div v-else-if="event.status === 'REJECTED'"
|
|
|
- class="text-danger font-weight-bold">
|
|
|
- <i class="fa fa-stop"></i>
|
|
|
- Rejected by the patient
|
|
|
- </div> -->
|
|
|
- <select v-model="event.newStatus"
|
|
|
- class="form-control input-sm bg-light"
|
|
|
- v-on:change="updateStatus(event)">
|
|
|
- <option value="CREATED">CREATED</option>
|
|
|
- <option value="CONFIRMED">CONFIRMED</option>
|
|
|
- <option value="CANCELLED">CANCELLED</option>
|
|
|
- <option value="COMPLETED">COMPLETED</option>
|
|
|
- <option value="ABANDONED">ABANDONED</option>
|
|
|
- </select>
|
|
|
- <div v-if="selectedDate === '{{ date('Y-m-d') }}'"
|
|
|
- class="pt-1 text-right"
|
|
|
- :class="event.started ? 'text-danger': 'text-secondary'">
|
|
|
- @{{ event.inHowManyHours }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div>
|
|
|
- <b v-if="event.coverage == 'YES'" class="text-success">Covered</b>
|
|
|
- <b v-else-if="event.coverage == 'NO'" class="text-danger">Not Covered</b>
|
|
|
- <b v-else class="text-warning-mellow">Pending</b>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
-
|
|
|
- <div v-if="numEventsForDate === 0 && selectedDate"
|
|
|
- class="bg-light p-3 text-secondary border bounded">
|
|
|
- <span v-if="filterStatus === ''">You have no appointments on <b>@{{ formatSelectedDate(selectedDate) }}</b></span>
|
|
|
- <span v-if="filterStatus !== ''">You have no appointments on <b>@{{ formatSelectedDate(selectedDate) }}</b> with status <b>@{{ filterStatus }}</b></span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
|
|
|
- Please select a date from the calendar on the left
|
|
|
- </div>
|
|
|
-
|
|
|
+ @include('app.mcp.dashboard.appointments')
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card mb-4">
|
|
@@ -416,6 +266,16 @@
|
|
|
@include('app.mcp.dashboard.notifications')
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="card mb-4">
|
|
|
+ <div class="card-header pl-2">
|
|
|
+ <strong>
|
|
|
+ Reports
|
|
|
+ </strong>
|
|
|
+ </div>
|
|
|
+ <div class="card-body">
|
|
|
+ @include('app.mcp.dashboard.reports')
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="card mb-4">
|
|
|
<div class="card-header pl-2">
|
|
|
<strong>
|
|
@@ -661,45 +521,45 @@
|
|
|
initFastLoad($('#measurements-tab'));
|
|
|
});
|
|
|
},
|
|
|
- getFormattedCurrentDate: function() {
|
|
|
- let date = new Date();
|
|
|
- let day = date.getDate();
|
|
|
- day = day < 10 ? '0' + day : day;
|
|
|
+ getFormattedCurrentDate: function () {
|
|
|
+ let date = new Date();
|
|
|
+ let day = date.getDate();
|
|
|
+ day = day < 10 ? '0' + day : day;
|
|
|
|
|
|
- return date.getFullYear()+'-'+parseInt(date.getMonth()+1) +'-' + day;
|
|
|
+ return date.getFullYear() + '-' + parseInt(date.getMonth() + 1) + '-' + day;
|
|
|
},
|
|
|
- formatSelectedDate: function(_date, _format) {
|
|
|
- _format = _format || 'MM/DD/YYYY';
|
|
|
- if(_date) {
|
|
|
- return moment(_date).format(_format);
|
|
|
- }
|
|
|
+ formatSelectedDate: function (_date, _format) {
|
|
|
+ _format = _format || 'MM/DD/YYYY';
|
|
|
+ if (_date) {
|
|
|
+ return moment(_date).format(_format);
|
|
|
+ }
|
|
|
},
|
|
|
- formatTimeZone: function(_tz) {
|
|
|
- switch (_tz) {
|
|
|
- case 'EASTERN':
|
|
|
- return 'EST'
|
|
|
- break;
|
|
|
- case 'CENTRAL':
|
|
|
- return 'CST'
|
|
|
- break;
|
|
|
- case 'MOUNTAIN':
|
|
|
- return 'MST'
|
|
|
- break;
|
|
|
- case 'PACIFIC':
|
|
|
- return 'PST'
|
|
|
- break;
|
|
|
- case 'ALASKA':
|
|
|
- return 'Alaska'
|
|
|
- break;
|
|
|
- case 'HAWAII':
|
|
|
- return 'Hawaii'
|
|
|
- break;
|
|
|
- case 'PUERTO_RICO':
|
|
|
- return 'Puerto Rico'
|
|
|
- break;
|
|
|
- default:
|
|
|
- return 'N/A';
|
|
|
- }
|
|
|
+ formatTimeZone: function (_tz) {
|
|
|
+ switch (_tz) {
|
|
|
+ case 'EASTERN':
|
|
|
+ return 'EST'
|
|
|
+ break;
|
|
|
+ case 'CENTRAL':
|
|
|
+ return 'CST'
|
|
|
+ break;
|
|
|
+ case 'MOUNTAIN':
|
|
|
+ return 'MST'
|
|
|
+ break;
|
|
|
+ case 'PACIFIC':
|
|
|
+ return 'PST'
|
|
|
+ break;
|
|
|
+ case 'ALASKA':
|
|
|
+ return 'Alaska'
|
|
|
+ break;
|
|
|
+ case 'HAWAII':
|
|
|
+ return 'Hawaii'
|
|
|
+ break;
|
|
|
+ case 'PUERTO_RICO':
|
|
|
+ return 'Puerto Rico'
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return 'N/A';
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted: function () {
|