Add patient SMS/email messaging and fix Meet video visit errors.
Deploy Ladill Care / deploy (push) Successful in 43s
Deploy Ladill Care / deploy (push) Successful in 43s
Wire Care to Ladill SMS and Bird management APIs on the patient page, and surface Meet auth/config failures as friendly validation errors instead of a 502 page. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -27,6 +27,7 @@ class AppointmentMeetController extends Controller
|
||||
$appointment->loadMissing('patient');
|
||||
$patient = $appointment->patient;
|
||||
$owner = $this->ownerRef($request);
|
||||
$user = $request->user();
|
||||
|
||||
$response = MeetClient::for($owner)->createRoom([
|
||||
'title' => 'Video visit — '.$patient->fullName(),
|
||||
@@ -34,6 +35,8 @@ class AppointmentMeetController extends Controller
|
||||
'scheduled_at' => ($appointment->scheduled_at ?? now()->addHour())->toIso8601String(),
|
||||
'duration_minutes' => 30,
|
||||
'branch_id' => $appointment->branch_id,
|
||||
'host_name' => $user?->name,
|
||||
'host_email' => $user?->email,
|
||||
'source' => [
|
||||
'app' => 'care',
|
||||
'entity_type' => 'appointment',
|
||||
@@ -60,11 +63,14 @@ class AppointmentMeetController extends Controller
|
||||
|
||||
$owner = $this->ownerRef($request);
|
||||
$appointment->loadMissing('patient');
|
||||
$user = $request->user();
|
||||
|
||||
if (! $appointment->meet_room_uuid) {
|
||||
$response = MeetClient::for($owner)->createRoom([
|
||||
'title' => 'Video visit — '.$appointment->patient->fullName(),
|
||||
'description' => $appointment->reason,
|
||||
'host_name' => $user?->name,
|
||||
'host_email' => $user?->email,
|
||||
'source' => [
|
||||
'app' => 'care',
|
||||
'entity_type' => 'appointment',
|
||||
|
||||
Reference in New Issue
Block a user