diff --git a/src/app/clinic-dashboard/general/clinic-lab-orders/clinic-lab-orders.component.ts b/src/app/clinic-dashboard/general/clinic-lab-orders/clinic-lab-orders.component.ts index f84d8b8ba..a0895a1a0 100644 --- a/src/app/clinic-dashboard/general/clinic-lab-orders/clinic-lab-orders.component.ts +++ b/src/app/clinic-dashboard/general/clinic-lab-orders/clinic-lab-orders.component.ts @@ -504,6 +504,11 @@ export class ClinicLabOrdersComponent implements OnInit, OnDestroy { width: 200, field: 'last_appointment' }, + { + headerName: 'Patient Category', + width: 150, + field: 'patient_category' + }, { headerName: 'Latest RTC Date', width: 150, diff --git a/src/app/clinic-dashboard/general/defaulter-list/defaulter-list.component.ts b/src/app/clinic-dashboard/general/defaulter-list/defaulter-list.component.ts index 99bbe31ab..b1a3b16b7 100644 --- a/src/app/clinic-dashboard/general/defaulter-list/defaulter-list.component.ts +++ b/src/app/clinic-dashboard/general/defaulter-list/defaulter-list.component.ts @@ -91,6 +91,11 @@ export class DefaulterListComponent implements OnInit { width: 200, field: 'last_appointment' }, + { + headerName: 'Patient Category', + width: 150, + field: 'patient_category' + }, { headerName: 'Latest RTC Date', width: 150, diff --git a/src/app/clinic-dashboard/hiv/hiv-enhanced-program/hiv-enhanced-program.component.ts b/src/app/clinic-dashboard/hiv/hiv-enhanced-program/hiv-enhanced-program.component.ts index 0aa313e35..25f745020 100644 --- a/src/app/clinic-dashboard/hiv/hiv-enhanced-program/hiv-enhanced-program.component.ts +++ b/src/app/clinic-dashboard/hiv/hiv-enhanced-program/hiv-enhanced-program.component.ts @@ -89,6 +89,11 @@ export class HivEnhancedComponent implements OnInit { width: 200, field: 'last_appointment_max' }, + { + headerName: 'Patient Category', + width: 150, + field: 'patient_category' + }, { headerName: 'Latest RTC Date', width: 150, diff --git a/src/app/clinic-dashboard/hiv/patient-status-change-visualization/patient-status-change-list.component.ts b/src/app/clinic-dashboard/hiv/patient-status-change-visualization/patient-status-change-list.component.ts index 6ecf9a026..4e004b144 100644 --- a/src/app/clinic-dashboard/hiv/patient-status-change-visualization/patient-status-change-list.component.ts +++ b/src/app/clinic-dashboard/hiv/patient-status-change-visualization/patient-status-change-list.component.ts @@ -28,6 +28,11 @@ export class PatientStatusChangeListComponent implements OnInit, OnDestroy { width: 200, field: 'last_appointment' }, + { + headerName: 'Patient Category', + width: 150, + field: 'patient_category' + }, { headerName: 'Latest RTC Date', width: 150, 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 658701ed3..59ab9a315 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 @@ -76,6 +76,11 @@ export class DailyScheduleAppointmentsComponent implements OnInit, OnDestroy { width: 100, field: 'sms_receive_time' }, + { + headerName: 'VL Category', + width: 250, + field: 'vl_category' + }, { headerName: 'SMS Delivery Status', width: 100, diff --git a/src/app/data-entry-statistics/data-entry-statistics-patient-list.component.ts b/src/app/data-entry-statistics/data-entry-statistics-patient-list.component.ts index c72f84a28..ee89aac79 100644 --- a/src/app/data-entry-statistics/data-entry-statistics-patient-list.component.ts +++ b/src/app/data-entry-statistics/data-entry-statistics-patient-list.component.ts @@ -103,6 +103,11 @@ export class DataEntryStatisticsPatientListComponent width: 200, field: 'last_appointment' }, + { + headerName: 'Patient Category', + width: 150, + field: 'patient_category' + }, { headerName: 'Latest RTC Date', width: 150, diff --git a/src/app/hiv-care-lib/family-testing/contact-list/contact-list.component.ts b/src/app/hiv-care-lib/family-testing/contact-list/contact-list.component.ts index ded634b2c..1ff8a54e7 100644 --- a/src/app/hiv-care-lib/family-testing/contact-list/contact-list.component.ts +++ b/src/app/hiv-care-lib/family-testing/contact-list/contact-list.component.ts @@ -50,9 +50,8 @@ export class ContactListComponent implements OnInit { headerName: 'Reported test date', width: 150 }, - { - field: 'modified_fm_status', + field: 'test_result_value', headerName: 'Current test results', width: 150 }, diff --git a/src/app/hiv-care-lib/ipt-report/ipt-report-patient-list.component.ts b/src/app/hiv-care-lib/ipt-report/ipt-report-patient-list.component.ts index 956507994..17f8d855b 100644 --- a/src/app/hiv-care-lib/ipt-report/ipt-report-patient-list.component.ts +++ b/src/app/hiv-care-lib/ipt-report/ipt-report-patient-list.component.ts @@ -41,6 +41,7 @@ export class IptReportPatientListComponent implements OnInit { phone_number: 'Phone Number', enrollment_date: 'Date Enrolled', last_appointment: 'Latest Appointment', + patient_category: 'Patient Category', latest_rtc_date: 'Latest RTC Date', days_since_rtc_date: 'Days Since RTC', status: 'Current Status', diff --git a/src/app/hiv-care-lib/moh-731-report/moh-731-patientlist.component.ts b/src/app/hiv-care-lib/moh-731-report/moh-731-patientlist.component.ts index 3c67e3e35..9522b7ba9 100644 --- a/src/app/hiv-care-lib/moh-731-report/moh-731-patientlist.component.ts +++ b/src/app/hiv-care-lib/moh-731-report/moh-731-patientlist.component.ts @@ -247,10 +247,12 @@ export class Moh731PatientListComponent implements OnInit, OnChanges { cur_arv_line: 'Current ARV Line (edited)', cur_arv_meds: 'Current ARV Regimen', vl_1: 'Viral Load', + vl_category: 'VL Category', vl_1_date: 'Viral Load Date', has_pending_vl_test: 'Pending Viral Load Test', phone_number: 'Phone Number', last_appointment: 'Latest Appointment', + patient_category: 'Patient Category', latest_rtc_date: 'Latest RTC Date', latest_vl: 'Latest VL', latest_vl_date: 'Latest VL Date', diff --git a/src/app/hiv-care-lib/patient-gains-and-loses/patient-gains-and-loses-patient-list/patient-gains-and-loses-patient-list.component.ts b/src/app/hiv-care-lib/patient-gains-and-loses/patient-gains-and-loses-patient-list/patient-gains-and-loses-patient-list.component.ts index d9b9dedf9..974913ef4 100644 --- a/src/app/hiv-care-lib/patient-gains-and-loses/patient-gains-and-loses-patient-list/patient-gains-and-loses-patient-list.component.ts +++ b/src/app/hiv-care-lib/patient-gains-and-loses/patient-gains-and-loses-patient-list/patient-gains-and-loses-patient-list.component.ts @@ -97,9 +97,7 @@ export class PatientGainsAndLosesPatientListComponent implements OnInit { } ); } - public extraColumns() { - return this.patientListCols; - } + private getPatientList(params: any) { this.patientGainLose .getPatientGainAndLosePatientList(params) diff --git a/src/app/hiv-care-lib/patients-requiring-vl/patients-requiring-vl-base.component.ts b/src/app/hiv-care-lib/patients-requiring-vl/patients-requiring-vl-base.component.ts index ccdf1034b..ee07e65b0 100644 --- a/src/app/hiv-care-lib/patients-requiring-vl/patients-requiring-vl-base.component.ts +++ b/src/app/hiv-care-lib/patients-requiring-vl/patients-requiring-vl-base.component.ts @@ -95,6 +95,14 @@ export class PatientsRequiringVLBaseComponent implements OnInit { cellStyle: { 'white-space': 'normal' } + }, + { + headerName: 'VL Category', + field: 'vl_category', + width: 170, + cellStyle: { + 'white-space': 'normal' + } } ]; } diff --git a/src/app/hiv-care-lib/retention-report/retention-report-patient-list.component.ts b/src/app/hiv-care-lib/retention-report/retention-report-patient-list.component.ts index 68c3b5051..b7102892b 100644 --- a/src/app/hiv-care-lib/retention-report/retention-report-patient-list.component.ts +++ b/src/app/hiv-care-lib/retention-report/retention-report-patient-list.component.ts @@ -98,6 +98,11 @@ export class RetentionReportPatientListComponent implements OnInit { field: 'visit_type', width: 200 }, + { + headerName: 'Patient Category', + width: 150, + field: 'patient_category' + }, { headerName: 'Latest RTC date', field: 'latest_rtc_date', diff --git a/src/app/patient-dashboard/common/patient-reminders/patient-reminders.component.ts b/src/app/patient-dashboard/common/patient-reminders/patient-reminders.component.ts index 524711bd5..2c879f7b5 100644 --- a/src/app/patient-dashboard/common/patient-reminders/patient-reminders.component.ts +++ b/src/app/patient-dashboard/common/patient-reminders/patient-reminders.component.ts @@ -98,6 +98,7 @@ export class PatientRemindersComponent implements OnInit, OnDestroy { this.errorMessage = error; } ); + this.patientReminderService.getVlEligible(); this.subscriptions.push(sub2); } } diff --git a/src/app/patient-dashboard/common/patient-reminders/patient-reminders.service.ts b/src/app/patient-dashboard/common/patient-reminders/patient-reminders.service.ts index 3bac9b47e..4326c660d 100644 --- a/src/app/patient-dashboard/common/patient-reminders/patient-reminders.service.ts +++ b/src/app/patient-dashboard/common/patient-reminders/patient-reminders.service.ts @@ -5,6 +5,7 @@ import { PatientReminderResourceService } from '../../../etl-api/patient-reminde @Injectable() export class PatientReminderService { + public vl_eligible: any; constructor( private patientReminderResourceService: PatientReminderResourceService ) {} @@ -19,6 +20,7 @@ export class PatientReminderService { personUuid: data.person_uuid, generatedReminders: data.reminders }; + this.vl_eligible = data.reminders; return remindersObj; } else { return {}; @@ -30,4 +32,7 @@ export class PatientReminderService { }) ); } + public getVlEligible(): string { + return this.vl_eligible; + } } diff --git a/src/app/patient-dashboard/hiv/hiv-summary/hiv-summary-latest.component.html b/src/app/patient-dashboard/hiv/hiv-summary/hiv-summary-latest.component.html index ed226e9e6..4419d5242 100644 --- a/src/app/patient-dashboard/hiv/hiv-summary/hiv-summary-latest.component.html +++ b/src/app/patient-dashboard/hiv/hiv-summary/hiv-summary-latest.component.html @@ -198,14 +198,14 @@ }}
+ VL Category: {{ this.viralLoadCategory }} +
+