From f74f27b17920dd808b039780cfa6a273a1fede19 Mon Sep 17 00:00:00 2001 From: Rehan Iqbal Date: Thu, 21 Sep 2023 15:51:35 +0500 Subject: [PATCH] [Add] New Field for calander c_title to show Practitioner name, Patient Name and Procedure template on calander --- .../doctype/patient_appointment/patient_appointment.py | 3 ++- .../patient_appointment/patient_appointment_calendar.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py b/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py index a61443b63f..19fafcd63c 100755 --- a/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py +++ b/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py @@ -816,7 +816,8 @@ def get_events(start, end, filters=None): `tabPatient Appointment`.practitioner, `tabPatient Appointment`.status, `tabPatient Appointment`.duration, timestamp(`tabPatient Appointment`.appointment_date, `tabPatient Appointment`.appointment_time) as 'start', - `tabAppointment Type`.color + `tabAppointment Type`.color, + CONCAT(COALESCE(`tabPatient Appointment`.practitioner_name,' '),'\n',COALESCE(`tabPatient Appointment`.patient_name,' '),'\n',COALESCE(`tabPatient Appointment`.procedure_template,' ')) c_title from `tabPatient Appointment` left join `tabAppointment Type` on `tabPatient Appointment`.appointment_type=`tabAppointment Type`.name diff --git a/healthcare/healthcare/doctype/patient_appointment/patient_appointment_calendar.js b/healthcare/healthcare/doctype/patient_appointment/patient_appointment_calendar.js index 5976cac483..a471c97c0e 100644 --- a/healthcare/healthcare/doctype/patient_appointment/patient_appointment_calendar.js +++ b/healthcare/healthcare/doctype/patient_appointment/patient_appointment_calendar.js @@ -4,7 +4,7 @@ frappe.views.calendar["Patient Appointment"] = { "start": "start", "end": "end", "id": "name", - "title": "patient", + "title": "c_title", "allDay": "allDay", "eventColor": "color" },