From 8b59f694ed0aadfc8314f59a2471f3888fa4a204 Mon Sep 17 00:00:00 2001 From: henrykorir Date: Wed, 7 Feb 2024 19:44:13 +0300 Subject: [PATCH] POC-651: Enhancement of DQA Report POC-651: Enhancement of DQA Report POC-651: Enhancement of DQA Report POC-651: Enhancement of DQA Report --- ...chart-abstraction-patientlist.component.ts | 205 +++++++++--------- 1 file changed, 102 insertions(+), 103 deletions(-) diff --git a/src/app/hiv-care-lib/dqa-reports/chart-abstraction-patientlist/chart-abstraction-patientlist.component.ts b/src/app/hiv-care-lib/dqa-reports/chart-abstraction-patientlist/chart-abstraction-patientlist.component.ts index 86c445237..e29f65ac9 100644 --- a/src/app/hiv-care-lib/dqa-reports/chart-abstraction-patientlist/chart-abstraction-patientlist.component.ts +++ b/src/app/hiv-care-lib/dqa-reports/chart-abstraction-patientlist/chart-abstraction-patientlist.component.ts @@ -73,25 +73,28 @@ export class ChartAbstractionPatientlistComponent implements OnInit { const extraColumns = { NUPI: 'NUPI', sex_gender: 'Sex', + height: 'Height', + weight: 'Weight', birthdate: 'Date of Birth (DD/MM/YYYY)', hiv_start_date: 'Date Confirmed HIV Positive (DD/MM/YYYY)', arv_first_regimen_start_date: 'Date of ART Initiation (DD/MM/YYYY)', + cd4_1: 'Baseline CD4', + vl_1: 'Viral Load Results', arv_start_date: 'Date of Current ART Initiation (DD/MM/YYYY)', - drugs_given: 'Current ART Regimen', - cur_arv_med_basis: 'Current ART Regimen', + drugs_given: 'Current Regimen', + cur_arv_med_basis: 'Current ART Regimen Basis', drugs_duration: 'Drug dosage given (duration)', - height: 'Height at Last visit', - weight: 'Weight at Last visit', BMI: 'BMI at Last visit', muac: 'MUAC at Last visit', tb_screened_this_visit: 'Was TB Screening done at last visit', + pcp_prophylaxis: 'PCP Prophylaxis', + ctx_dispensed: 'CTX Dispensed', tb_screening_result: 'TB Screening outcomes', last_ipt_start_date: 'IPT start date (DD/MM/YYYY)', tpt_status: 'IPT status', ipt_completion_date: 'IPT outcome date (DD/MM/YYYY)', viral_load_validity: 'Does the client have a Valid Viral load result', vl_suppression: 'Is the client virally suppressed', - cd4_1: 'Baseline screening for CD4', has_cd4_1: 'Does this client have Baseline screening for CD4', is_crag_screened: 'Does this client have Baseline screening for CrAG', last_clinical_encounter: 'Last clinical encounter date (DD/MM/YYYY)', @@ -99,20 +102,16 @@ export class ChartAbstractionPatientlistComponent implements OnInit { dysBP: 'Diastolic BP', nutrition: 'Nutrition Assessment Done', DSD: 'DSD Model', - // cd4_1: 'Baseline CD4 Test Result', - // vl_1: 'Latest Valid VL', - vl_1: 'Does the client have a Valid viral load result', ovcid_id: 'OVCID', ipt_stop_date: 'IPT Stop Date (DD/MM/YYYY)', - // last_clinical_encounter: 'Last Clinical Encounter', - // last_appointment_date: 'Date of Last Appointment', next_appointment: 'Next appointment date (DD/MM/YYYY)', - // next_appointment: 'Date of Next Appointment ', visit_type: 'Visit Type', status: 'Status', - // is_crag_screened: 'Baseline CrAG Screened', cur_who_stage: 'Current Who Stage', - category: 'Category' + category: 'Category', + delivery_method: 'Delivery Method', + pregnancy_outcome: 'Pregnancy Outcome', + svd_and_live_birth: 'SVD Livebirth' }; for (const indicator in extraColumns) { if (indicator) { @@ -123,79 +122,39 @@ export class ChartAbstractionPatientlistComponent implements OnInit { } } this.overrideColumns.push( - { field: 'ccc_number', hide: true, pinned: true }, + { field: 'ccc_number', hide: false, pinned: true }, { field: 'birthdate', - // cellRenderer: (column) => { - // if (column.value != null) { - // // return moment(column.value).format('YYYY-MM-DD'); - // return moment(column.value).format('DD-MMM-YYYY'); - // } - // return 'missing'; - // }, + hide: true, pinned: false }, { - field: 'last_appointment_date' - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // } + field: 'last_appointment_date', + hide: true }, { - field: 'arv_first_regimen_start_date' - // cellRenderer: (column) => { - // if (column.value != null) { - // if (moment(column.value).isBefore('1900-01-01', 'year')){ - // return column.value; - // } - // return '' - // } - // } + field: 'arv_first_regimen_start_date', + hide: false }, { field: 'arv_start_date', - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // }, hide: true }, { - field: 'hiv_start_date' - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // } + field: 'hiv_start_date', + hide: true }, { - field: 'last_clinical_encounter' - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // } + field: 'last_clinical_encounter', + hide: true }, { - field: 'next_appointment' - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // } + field: 'next_appointment', + hide: true }, { - field: 'tb_screened_this_visit' - // width: 150, - // cellRenderer: (column) => { - // if (column.value === 0) { - // return 'No'; - // } - // return 'Yes'; - // } + field: 'tb_screened_this_visit', + hide: true }, { field: 'vl_1', @@ -205,7 +164,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit { } return column.value; }, - hide: true + hide: false }, { field: 'nutrition', @@ -215,41 +174,22 @@ export class ChartAbstractionPatientlistComponent implements OnInit { return 'YES'; } return 'NO'; - } + }, + hide: true }, { field: 'last_ipt_start_date', - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // }, hide: false }, { field: 'ipt_completion_date', - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // }, hide: false }, { field: 'ipt_stop_date', - // cellRenderer: (column) => { - // if (column.value != null) { - // return moment(column.value).format('DD-MM-YYYY'); - // } - // }, hide: true, suppressToolPanel: true }, - { - field: 'drugs_given', - width: 280, - hide: true - }, { field: 'height', width: 100 @@ -260,7 +200,8 @@ export class ChartAbstractionPatientlistComponent implements OnInit { }, { field: 'muac', - width: 100 + width: 100, + hide: true }, { field: 'visit_type', @@ -280,8 +221,9 @@ export class ChartAbstractionPatientlistComponent implements OnInit { }, { field: 'NUPI', - width: 150 - // pinned: true + width: 150, + hide: true, + pinned: true }, { field: 'upi_number', @@ -293,7 +235,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit { { field: 'drugs_given', width: 280, - hide: true + hide: false }, { field: 'cur_arv_med_basis', @@ -330,8 +272,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit { { field: 'age', width: 150, - hide: true, - suppressToolPanel: true + hide: false }, { field: 'sex_gender', @@ -358,14 +299,12 @@ export class ChartAbstractionPatientlistComponent implements OnInit { { field: 'dysBP', width: 150, - hide: true, - suppressToolPanel: true + hide: true }, { field: 'nutrition', width: 150, - hide: true, - suppressToolPanel: true + hide: true }, { field: 'DSD', @@ -382,18 +321,17 @@ export class ChartAbstractionPatientlistComponent implements OnInit { { field: 'cur_who_stage', width: 150, - hide: true, - suppressToolPanel: true + hide: true }, { field: 'vl_suppression', width: 150, - hide: false + hide: true }, { field: 'is_crag_screened', width: 150, - hide: false + hide: true }, { field: 'status', @@ -403,7 +341,68 @@ export class ChartAbstractionPatientlistComponent implements OnInit { { field: 'cd4_1', width: 150, + hide: false + }, + { + field: 'category', + width: 150, hide: true + }, + { + field: 'has_cd4_1', + width: 150, + hide: true + }, + { + field: 'BMI', + width: 150, + hide: true + }, + { + field: 'tpt_status', + width: 150, + hide: true + }, + { + field: 'ipt_start_date', + width: 150, + hide: true + }, + { + field: 'last_ipt_start_date', + hide: true + }, + { + field: 'ipt_completion_date', + hide: true + }, + { + field: 'cur_arv_med_basis', + hide: true + }, + { + field: 'vl_suppression', + hide: true + }, + { + field: 'viral_load_validity', + hide: true + }, + { + field: 'pcp_prophylaxis', + hide: true + }, + { + field: 'delivery_method', + hide: true + }, + { + field: 'pregnancy_outcome', + hide: true + }, + { + field: 'svd_and_live_birth', + hide: false } ); }