|
@@ -685,6 +685,10 @@
|
|
<?php
|
|
<?php
|
|
$patient->nameStr = $patient->displayName();
|
|
$patient->nameStr = $patient->displayName();
|
|
$clientObject = json_encode($patient);
|
|
$clientObject = json_encode($patient);
|
|
|
|
+ $oPro = false;
|
|
|
|
+ if(request()->input('opUid')) {
|
|
|
|
+ $oPro = \App\Models\Pro::where('uid', request()->input('opUid'))->first();
|
|
|
|
+ }
|
|
?>
|
|
?>
|
|
|
|
|
|
function init() {
|
|
function init() {
|
|
@@ -694,7 +698,7 @@
|
|
client: {!! json_encode($patient) !!},
|
|
client: {!! json_encode($patient) !!},
|
|
eventTypes: '{{ $currentAppointment ? 'BOTH_ALL' : 'BOTH' }}',
|
|
eventTypes: '{{ $currentAppointment ? 'BOTH_ALL' : 'BOTH' }}',
|
|
calendar: null,
|
|
calendar: null,
|
|
- proIds: ['{{ $currentAppointment ? $currentAppointment->pro_id : $pro->id }}'],
|
|
|
|
|
|
+ proIds: ['{{ $currentAppointment ? $currentAppointment->pro_id : ($oPro ? $oPro->id : $pro->id) }}'],
|
|
timezone: '{{ $currentAppointment ? $currentAppointment->timezone : 'EASTERN' }}',
|
|
timezone: '{{ $currentAppointment ? $currentAppointment->timezone : 'EASTERN' }}',
|
|
today: new Date('{{ date('Y-m-d 00:00:00') }}'),
|
|
today: new Date('{{ date('Y-m-d 00:00:00') }}'),
|
|
|
|
|
|
@@ -1077,7 +1081,9 @@
|
|
let endTime = this.timeStr(this.selectedSlot.end);
|
|
let endTime = this.timeStr(this.selectedSlot.end);
|
|
this.newAppointment.clientUid = this.client.uid;
|
|
this.newAppointment.clientUid = this.client.uid;
|
|
this.newAppointment.proUid = '';
|
|
this.newAppointment.proUid = '';
|
|
- @if($pro->is_hcp && $pro->is_enrolled_as_mcp)
|
|
|
|
|
|
+ @if($oPro)
|
|
|
|
+ this.newAppointment.proUid = '{{$oPro->uid}}';
|
|
|
|
+ @elseif($pro->is_hcp && $pro->is_enrolled_as_mcp)
|
|
this.newAppointment.proUid = '{{$pro->uid}}';
|
|
this.newAppointment.proUid = '{{$pro->uid}}';
|
|
@elseif($patient->mcp)
|
|
@elseif($patient->mcp)
|
|
this.newAppointment.proUid = '{{$patient->mcp->uid}}';
|
|
this.newAppointment.proUid = '{{$patient->mcp->uid}}';
|