Skip to content

Commit

Permalink
POC-651: Enhancement of DQA Report
Browse files Browse the repository at this point in the history
POC-651: Enhancement of DQA Report

POC-651: Enhancement of DQA Report

POC-651: Enhancement of DQA Report
  • Loading branch information
henrykorir committed Feb 10, 2024
1 parent cb44ba3 commit 8b59f69
Showing 1 changed file with 102 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,46 +73,45 @@ 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)',
sysBP: 'Systolic BP',
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) {
Expand All @@ -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',
Expand All @@ -205,7 +164,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
}
return column.value;
},
hide: true
hide: false
},
{
field: 'nutrition',
Expand All @@ -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
Expand All @@ -260,7 +200,8 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
},
{
field: 'muac',
width: 100
width: 100,
hide: true
},
{
field: 'visit_type',
Expand All @@ -280,8 +221,9 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
},
{
field: 'NUPI',
width: 150
// pinned: true
width: 150,
hide: true,
pinned: true
},
{
field: 'upi_number',
Expand All @@ -293,7 +235,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
{
field: 'drugs_given',
width: 280,
hide: true
hide: false
},
{
field: 'cur_arv_med_basis',
Expand Down Expand Up @@ -330,8 +272,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
{
field: 'age',
width: 150,
hide: true,
suppressToolPanel: true
hide: false
},
{
field: 'sex_gender',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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
}
);
}
Expand Down

0 comments on commit 8b59f69

Please sign in to comment.