Skip to content

Commit

Permalink
POC-610: DQA Updates as per nascop dictionary (#1699)
Browse files Browse the repository at this point in the history
* POC-610: Fixed DQA filter to be a ALL by default

* POC-610: Updated DQA Indicators

* POC-610: Updated DQA columns as per request from Mosoriot
  • Loading branch information
henrykorir authored Jan 15, 2024
1 parent 4e3161a commit 63d3f19
Showing 1 changed file with 127 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,37 +71,48 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
hide = false;
}
const extraColumns = {
birthdate: 'DOB',
sex_gender: 'Gender',
NUPI: 'NUPI',
sex_gender: 'Sex',
birthdate: 'Date of Birth',
hiv_start_date: 'Date Confirmed HIV Positive',
arv_first_regimen_start_date: 'Date of ART Initiation',
arv_start_date: 'Date of Current ART Initiation',
drugs_given: 'Current ART Regimen',
cur_arv_med_basis: 'Current ART Regimen',
drugs_duration: 'Drug dosage given (duration)',
weight: 'Weight',
height: 'Height',
muac: 'MUAC',
BMI: 'BMI',
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',
tb_screening_result: 'TB Screening outcomes',
last_ipt_start_date: 'IPT start date',
tpt_status: 'IPT status',
ipt_completion_date: 'IPT outcome date',
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',
sysBP: 'Systolic BP',
dysBP: 'Diastolic BP',
nutrition: 'Nutrition Assessment Done',
DSD: 'DSD Model',
hiv_start_date: 'Date Confirmed HIV Positive',
arv_start_date: 'Date of ART Initiation',
cd4_1: 'Baseline CD4 Test Result',
vl_1: 'Latest Valid VL',
tpt_status: 'IPT Status',
// 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',
last_ipt_start_date: 'IPT Start Date',
ipt_stop_date: 'IPT Stop Date',
ipt_completion_date: 'IPT Completion Date',
last_clinical_encounter: 'Last Clinical Encounter',
last_appointment_date: 'Date of Last Appointment',
next_appointment: 'Date of Next Appointment ',
// last_clinical_encounter: 'Last Clinical Encounter',
// last_appointment_date: 'Date of Last Appointment',
next_appointment: 'Next appointment date',
// next_appointment: 'Date of Next Appointment ',
visit_type: 'Visit Type',
tb_screened_this_visit: 'TB screening',
tb_screening_result: 'TB Screening Outcomes',
status: 'Status',
is_crag_screened: 'Baseline CrAG Screened',
vl_suppression: 'VL Suppression',
cur_who_stage: 'Current Who Stage'
// is_crag_screened: 'Baseline CrAG Screened',
cur_who_stage: 'Current Who Stage',
category: 'Category'
};
for (const indicator in extraColumns) {
if (indicator) {
Expand All @@ -112,63 +123,78 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
}
}
this.overrideColumns.push(
{ field: 'ccc_number', hide: true, pinned: true },
{
field: 'birthdate',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('YYYY-MM-DD');
}
},
// cellRenderer: (column) => {
// if (column.value != null) {
// // return moment(column.value).format('YYYY-MM-DD');
// return moment(column.value).format('DD-MMM-YYYY');
// }
// return 'missing';
// },
pinned: false
},
{
field: 'last_appointment_date',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('DD-MM-YYYY');
}
}
field: 'last_appointment_date'
// cellRenderer: (column) => {
// if (column.value != null) {
// return moment(column.value).format('DD-MM-YYYY');
// }
// }
},
{
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_start_date',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('DD-MM-YYYY');
}
}
// 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'
// cellRenderer: (column) => {
// if (column.value != null) {
// return moment(column.value).format('DD-MM-YYYY');
// }
// }
},
{
field: 'last_clinical_encounter',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('DD-MM-YYYY');
}
}
field: 'last_clinical_encounter'
// cellRenderer: (column) => {
// if (column.value != null) {
// return moment(column.value).format('DD-MM-YYYY');
// }
// }
},
{
field: 'next_appointment',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('DD-MM-YYYY');
}
}
field: 'next_appointment'
// cellRenderer: (column) => {
// if (column.value != null) {
// return moment(column.value).format('DD-MM-YYYY');
// }
// }
},
{
field: 'tb_screened_this_visit',
width: 150,
cellRenderer: (column) => {
if (column.value === 0) {
return 'NO';
return 'No';
}
return 'YES';
return 'Yes';
}
},
{
Expand All @@ -179,7 +205,7 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
}
return column.value;
},
hide: false
hide: true
},
{
field: 'nutrition',
Expand All @@ -193,43 +219,36 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
},
{
field: 'last_ipt_start_date',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('DD-MM-YYYY');
}
},
// 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');
}
},
// 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');
}
},
// cellRenderer: (column) => {
// if (column.value != null) {
// return moment(column.value).format('DD-MM-YYYY');
// }
// },
hide: true,
suppressToolPanel: true
},
{
field: 'arv_start_date',
cellRenderer: (column) => {
if (column.value != null) {
return moment(column.value).format('DD-MM-YYYY');
}
}
},
{
field: 'drugs_given',
width: 280
width: 280,
hide: true
},
{
field: 'height',
Expand Down Expand Up @@ -261,11 +280,23 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
},
{
field: 'NUPI',
width: 150
// pinned: true
},
{
field: 'upi_number',
width: 150,
pinned: true
hide: true,
pinned: true,
suppressToolPanel: true
},
{
field: 'drugs_given',
width: 280,
hide: true
},
{
field: 'cur_arv_med_basis',
width: 280
},
{
Expand Down Expand Up @@ -298,7 +329,9 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
},
{
field: 'age',
width: 150
width: 150,
hide: true,
suppressToolPanel: true
},
{
field: 'sex_gender',
Expand Down Expand Up @@ -361,6 +394,16 @@ export class ChartAbstractionPatientlistComponent implements OnInit {
field: 'is_crag_screened',
width: 150,
hide: false
},
{
field: 'status',
width: 150,
hide: true
},
{
field: 'cd4_1',
width: 150,
hide: true
}
);
}
Expand Down

0 comments on commit 63d3f19

Please sign in to comment.