From bbdd40dac1ebf7e5a4c7b5cb492df1d317abb457 Mon Sep 17 00:00:00 2001 From: Angie-540 <96350406+Angie-540@users.noreply.github.com> Date: Fri, 2 Jun 2023 15:50:07 +0300 Subject: [PATCH] Poc 292a (#1620) * Add sms delivery status to appointments * display sms consent status * sms conset status --------- Co-authored-by: derrick rono Co-authored-by: Kipchumba Bett --- .../daily-schedule-appointments.component.ts | 11 +++++++++-- .../daily-schedule-not-returned.component.ts | 11 +++++++++-- .../daily-schedule/daily-schedule-visits.component.ts | 11 +++++++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-appointments.component.ts b/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-appointments.component.ts index 59ab9a315..5153d74d9 100644 --- a/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-appointments.component.ts +++ b/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-appointments.component.ts @@ -68,8 +68,15 @@ export class DailyScheduleAppointmentsComponent implements OnInit, OnDestroy { }, { headerName: 'SMS Consent Provided', - width: 150, - field: 'sms_consent_provided' + field: 'sms_consent_provided', + width: 200, + cellRenderer: (column: any) => { + if (column.value) { + return column.value; + } else { + return 'Not Consented'; + } + } }, { headerName: 'SMS Time', diff --git a/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-not-returned.component.ts b/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-not-returned.component.ts index b3bd4ef97..10a69bf8a 100644 --- a/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-not-returned.component.ts +++ b/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-not-returned.component.ts @@ -72,8 +72,15 @@ export class DailyScheduleNotReturnedComponent implements OnInit, OnDestroy { }, { headerName: 'SMS Consent Provided', - width: 150, - field: 'sms_consent_provided' + field: 'sms_consent_provided', + width: 200, + cellRenderer: (column: any) => { + if (column.value) { + return column.value; + } else { + return 'Not Consented'; + } + } }, { headerName: 'SMS Time', diff --git a/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-visits.component.ts b/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-visits.component.ts index e21b76749..a2ba64a81 100644 --- a/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-visits.component.ts +++ b/src/app/clinic-schedule-lib/daily-schedule/daily-schedule-visits.component.ts @@ -65,8 +65,15 @@ export class DailyScheduleVisitsComponent implements OnInit, OnDestroy { }, { headerName: 'SMS Consent Provided', - width: 150, - field: 'sms_consent_provided' + field: 'sms_consent_provided', + width: 200, + cellRenderer: (column: any) => { + if (column.value) { + return column.value; + } else { + return 'Not Consented'; + } + } }, { headerName: 'SMS Time',