forked from Bahmni/default-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Bahmni#50 from Bahmni-Covid19/master
BAH-1125 - Swati/Praveena - Hide 'Join teleconsultation' button on non-teleconsultation Appointments
- Loading branch information
Showing
5 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
UPDATE global_property ('bahmni.sqlGet.pastAppointments', | ||
SET property_value= "SELECT | ||
app_service.name AS `DASHBOARD_APPOINTMENTS_SERVICE_KEY`, | ||
app_service_type.name AS `DASHBOARD_APPOINTMENTS_SERVICE_TYPE_KEY`, | ||
DATE_FORMAT(start_date_time, \"%d/%m/%Y\") AS `DASHBOARD_APPOINTMENTS_DATE_KEY`, | ||
CONCAT(DATE_FORMAT(start_date_time, \"%l:%i %p\"), \" - \", DATE_FORMAT(end_date_time, \"%l:%i %p\")) AS `DASHBOARD_APPOINTMENTS_SLOT_KEY`, | ||
CONCAT(pn.given_name, ' ', pn.family_name) AS `DASHBOARD_APPOINTMENTS_PROVIDER_KEY`, | ||
pa.status AS `DASHBOARD_APPOINTMENTS_STATUS_KEY` | ||
FROM | ||
patient_appointment pa | ||
JOIN person p ON p.person_id = pa.patient_id AND pa.voided IS FALSE | ||
JOIN appointment_service app_service | ||
ON app_service.appointment_service_id = pa.appointment_service_id AND app_service.voided IS FALSE | ||
LEFT JOIN patient_appointment_provider pap on pa.patient_appointment_id = pap.patient_appointment_id AND (pap.voided=0 OR pap.voided IS NULL) | ||
LEFT JOIN provider prov ON prov.provider_id = pap.provider_id AND prov.retired IS FALSE | ||
LEFT JOIN person_name pn ON pn.person_id = prov.person_id AND pn.voided IS FALSE | ||
LEFT JOIN appointment_service_type app_service_type | ||
ON app_service_type.appointment_service_type_id = pa.appointment_service_type_id | ||
WHERE p.uuid = ${patientUuid} AND start_date_time < CURDATE() AND (app_service_type.voided IS FALSE OR app_service_type.voided IS NULL) | ||
ORDER BY start_date_time DESC | ||
LIMIT 5;" | ||
WHERE property='bahmni.sqlGet.pastAppointments' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters