@ampath/esm-reports-app 1.0.0-next.80 → 1.0.0-next.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/410.js +1 -1
- package/dist/410.js.map +1 -1
- package/dist/544.css +1 -0
- package/dist/544.css.map +1 -0
- package/dist/544.js +1 -0
- package/dist/544.js.map +1 -0
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/ampath-esm-reports-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/local-config.json +5 -0
- package/package.json +3 -2
- package/src/common/report-register/report-parents.ts +2 -0
- package/src/dashboard/report-catalog.ts +16 -0
- package/src/reports/moh-643/moh-643.component.tsx +222 -0
- package/src/reports/moh-643/moh-643.rows.ts +77 -0
- package/src/reports/moh-643/moh-643.scss +164 -0
- package/src/reports/moh-643/registers/moh-643-register.component.tsx +112 -0
- package/src/reports/moh-643/registers/moh-643.columns.ts +32 -0
- package/src/reports/moh-645/moh-645.component.tsx +331 -0
- package/src/reports/moh-645/moh-645.scss +147 -0
- package/src/reports/moh-645/registers/moh-645-register.component.tsx +125 -0
- package/src/reports/moh-645/registers/moh-645.columns.ts +40 -0
- package/src/reports/moh-740/moh-740.component.tsx +10 -3
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +20 -0
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +45 -11
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +6 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +29 -1
- package/src/reports/moh-745/moh-745.component.tsx +1 -1
- package/src/reports/moh-745/registers/moh-412-register.component.scss +6 -0
- package/src/reports/moh-745/registers/moh-412-register.component.tsx +29 -3
- package/src/resources/moh-643.resource.ts +61 -0
- package/src/resources/moh-645.resource.ts +61 -0
- package/src/root.component.tsx +8 -0
- package/dist/0.css +0 -1
- package/dist/0.css.map +0 -1
- package/dist/0.js +0 -1
- package/dist/0.js.map +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export const STOCK_COLUMNS = [
|
|
2
|
+
{ key: 'beginning', label: 'Beginning balance' },
|
|
3
|
+
{ key: 'received_kemsa', label: 'Received from central warehouse (e.g. KEMSA)' },
|
|
4
|
+
{ key: 'received_other', label: 'Received from other sources' },
|
|
5
|
+
{ key: 'qty_used', label: 'Total quantity used' },
|
|
6
|
+
{ key: 'tests_done', label: 'Number of tests done' },
|
|
7
|
+
{ key: 'qaqc', label: 'QA/QC and repeats' },
|
|
8
|
+
{ key: 'losses', label: 'Losses and wastage' },
|
|
9
|
+
{ key: 'adj_pos', label: 'Positive adjustment' },
|
|
10
|
+
{ key: 'adj_neg', label: 'Negative adjustment' },
|
|
11
|
+
{ key: 'physical', label: 'End of month physical stock count' },
|
|
12
|
+
{ key: 'expiring', label: 'Quantity expiring in less than 6 months' },
|
|
13
|
+
{ key: 'stockout_days', label: 'Days out of stock this month' },
|
|
14
|
+
{ key: 'qty_requested', label: 'Quantity requested for re-supply' },
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
export type Moh643Row =
|
|
18
|
+
| { kind: 'section'; label: string }
|
|
19
|
+
| { kind: 'note'; label: string }
|
|
20
|
+
| { kind: 'item'; label: string; unit: string; slug?: string };
|
|
21
|
+
|
|
22
|
+
export const COMMODITY_ROWS: Moh643Row[] = [
|
|
23
|
+
{ kind: 'section', label: 'Rapid test kits' },
|
|
24
|
+
{ kind: 'item', label: 'Rapid HIV 1+2 Test 1', unit: 'Test', slug: 'hiv_rapid' },
|
|
25
|
+
{ kind: 'item', label: 'Rapid HIV 1+2 Test 2', unit: 'Test' },
|
|
26
|
+
{ kind: 'item', label: 'Rapid HIV 1+2 Test 3', unit: 'Test' },
|
|
27
|
+
{ kind: 'item', label: 'HIV / Syphilis duo kit', unit: 'Test' },
|
|
28
|
+
{ kind: 'item', label: 'HIV self test kit, oral', unit: 'Test' },
|
|
29
|
+
{ kind: 'item', label: 'HIV self test kit, blood based', unit: 'Test' },
|
|
30
|
+
{ kind: 'item', label: 'HIV recency testing', unit: 'Test' },
|
|
31
|
+
{ kind: 'item', label: 'Rapid HBV screening test', unit: 'Test', slug: 'hbv_rapid' },
|
|
32
|
+
{ kind: 'section', label: 'CD4 tests' },
|
|
33
|
+
{ kind: 'item', label: 'Pima CD3/CD4', unit: 'Test', slug: 'cd4' },
|
|
34
|
+
{ kind: 'item', label: 'PIMA', unit: 'Test' },
|
|
35
|
+
{ kind: 'item', label: 'CD4 RDT', unit: 'Test' },
|
|
36
|
+
{ kind: 'section', label: 'Viral load and EID testing' },
|
|
37
|
+
{ kind: 'item', label: 'KIT COBAS 6800/8800 HIV-1 Quantitative 192T CE-IVD', unit: 'Test', slug: 'viral_load' },
|
|
38
|
+
{ kind: 'item', label: 'Aptima HIV-1 Quant Dx Assay / Panther Run Kit', unit: 'Test' },
|
|
39
|
+
{ kind: 'item', label: 'ABBOTT Alinity RealTime HIV-1 Amplification kit', unit: 'Test' },
|
|
40
|
+
{ kind: 'section', label: 'Viral load and EID point of care (PoC)' },
|
|
41
|
+
{ kind: 'item', label: 'GeneXpert Quantitative', unit: 'Test' },
|
|
42
|
+
{ kind: 'item', label: 'mPima Quantitative', unit: 'Test' },
|
|
43
|
+
{ kind: 'item', label: 'HBV Quantitative', unit: 'Test' },
|
|
44
|
+
{ kind: 'item', label: 'DBS Bundles', unit: 'Pieces' },
|
|
45
|
+
{ kind: 'item', label: 'PPT', unit: 'Pieces' },
|
|
46
|
+
{ kind: 'section', label: 'Other HIV related tests' },
|
|
47
|
+
{ kind: 'item', label: 'HPV test', unit: 'Tests' },
|
|
48
|
+
{ kind: 'item', label: 'CrAg test', unit: 'Tests', slug: 'crag' },
|
|
49
|
+
{ kind: 'item', label: 'DRT', unit: 'Tests' },
|
|
50
|
+
{ kind: 'item', label: 'LF TB LAM', unit: 'Tests' },
|
|
51
|
+
{ kind: 'section', label: 'Haematology' },
|
|
52
|
+
{ kind: 'note', label: 'Indicate the type of equipment in your facility (e.g. Celltac 6400, Coulter, Celltac 8222)' },
|
|
53
|
+
{ kind: 'item', label: 'Full haemogram', unit: 'Tests', slug: 'fbc' },
|
|
54
|
+
{ kind: 'item', label: 'Haemoglobin', unit: 'Tests', slug: 'hb' },
|
|
55
|
+
{ kind: 'section', label: 'Biochemistry' },
|
|
56
|
+
{
|
|
57
|
+
kind: 'note',
|
|
58
|
+
label: 'Indicate the type of equipment in your facility (e.g. BTS 330/310/350, Unisysel, Humalyzer 2000/3000, C111 Cobas)',
|
|
59
|
+
},
|
|
60
|
+
{ kind: 'item', label: 'Albumin', unit: 'Tests', slug: 'albumin' },
|
|
61
|
+
{ kind: 'item', label: 'Alkaline phosphatase', unit: 'Tests', slug: 'alp' },
|
|
62
|
+
{ kind: 'item', label: 'ALT (SGPT)', unit: 'Tests', slug: 'alt' },
|
|
63
|
+
{ kind: 'item', label: 'Creatinine', unit: 'Tests', slug: 'creatinine' },
|
|
64
|
+
{ kind: 'item', label: 'Potassium', unit: 'Tests', slug: 'potassium' },
|
|
65
|
+
{ kind: 'item', label: 'Sodium', unit: 'Tests', slug: 'sodium' },
|
|
66
|
+
{ kind: 'item', label: 'Chloride', unit: 'Tests', slug: 'chloride' },
|
|
67
|
+
{ kind: 'item', label: 'Gamma GT', unit: 'Tests', slug: 'ggt' },
|
|
68
|
+
{ kind: 'item', label: 'Glucose test strips', unit: 'Tests', slug: 'glucose' },
|
|
69
|
+
{ kind: 'item', label: 'HDL Cholesterol', unit: 'Tests', slug: 'hdl' },
|
|
70
|
+
{ kind: 'item', label: 'Pregnancy test strips', unit: 'Tests', slug: 'hcg' },
|
|
71
|
+
{ kind: 'item', label: 'Serum Amylase test kit', unit: 'Tests', slug: 'amylase' },
|
|
72
|
+
{ kind: 'item', label: 'Serum protein kit', unit: 'Tests', slug: 'protein' },
|
|
73
|
+
{ kind: 'item', label: 'Total Cholesterol', unit: 'Tests', slug: 'cholesterol' },
|
|
74
|
+
{ kind: 'item', label: 'Triglycerides', unit: 'Tests', slug: 'triglycerides' },
|
|
75
|
+
{ kind: 'item', label: 'Bilirubin', unit: 'Tests', slug: 'bilirubin' },
|
|
76
|
+
{ kind: 'item', label: 'Urea', unit: 'Tests', slug: 'urea' },
|
|
77
|
+
];
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* MOH-643 laid out for A4, matching MOH-645: geometry in millimetres,
|
|
2
|
+
type in points, one rule weight. Headers rotate because the FCDRR
|
|
3
|
+
has many stock columns. */
|
|
4
|
+
|
|
5
|
+
$ink: #000;
|
|
6
|
+
$bar: #d9d9d9;
|
|
7
|
+
$rule: 1px solid $ink;
|
|
8
|
+
|
|
9
|
+
$text: 6pt;
|
|
10
|
+
$title: 7.5pt;
|
|
11
|
+
$sub: 7pt;
|
|
12
|
+
$meta: 6pt;
|
|
13
|
+
|
|
14
|
+
.headerContainer {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mainTitleBox {
|
|
21
|
+
width: 100%;
|
|
22
|
+
padding: 2.5mm;
|
|
23
|
+
text-align: center;
|
|
24
|
+
border: $rule;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mainTitle {
|
|
28
|
+
margin: 0;
|
|
29
|
+
font-size: $title;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.subTitle {
|
|
34
|
+
margin: 1mm 0 0;
|
|
35
|
+
font-size: $sub;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.topMeta {
|
|
40
|
+
width: 100%;
|
|
41
|
+
table-layout: fixed;
|
|
42
|
+
border-collapse: collapse;
|
|
43
|
+
border: $rule;
|
|
44
|
+
border-top: none;
|
|
45
|
+
|
|
46
|
+
td {
|
|
47
|
+
width: 17%;
|
|
48
|
+
padding: 1.2mm;
|
|
49
|
+
font-size: $meta;
|
|
50
|
+
vertical-align: top;
|
|
51
|
+
word-break: break-word;
|
|
52
|
+
border: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
td:first-child {
|
|
56
|
+
width: 32%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.table {
|
|
61
|
+
width: 100%;
|
|
62
|
+
border-collapse: collapse;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.table th,
|
|
66
|
+
.table td {
|
|
67
|
+
padding: 0.8mm 1mm;
|
|
68
|
+
font-size: $text;
|
|
69
|
+
text-align: center;
|
|
70
|
+
border: $rule;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.table th {
|
|
74
|
+
font-weight: 700;
|
|
75
|
+
background-color: $bar;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.table td:first-child,
|
|
79
|
+
.table th:first-child {
|
|
80
|
+
text-align: left;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.commodity {
|
|
84
|
+
max-width: 42mm;
|
|
85
|
+
word-break: break-word;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.unit {
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.sectionHeader {
|
|
93
|
+
font-weight: 700;
|
|
94
|
+
text-align: center;
|
|
95
|
+
text-transform: uppercase;
|
|
96
|
+
letter-spacing: 0.02em;
|
|
97
|
+
background-color: #cfcfcf;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.noteRow td {
|
|
101
|
+
font-style: italic;
|
|
102
|
+
text-align: left;
|
|
103
|
+
background-color: #f3f3f3;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.table tbody tr:nth-of-type(odd) {
|
|
107
|
+
background-color: #fafafa;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.clickable {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.clickable:hover {
|
|
116
|
+
background-color: #e8e8e8;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.rotateUp {
|
|
120
|
+
writing-mode: vertical-rl;
|
|
121
|
+
transform: rotate(180deg);
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
max-height: 38mm;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.signOff {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-wrap: nowrap;
|
|
129
|
+
align-items: baseline;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
gap: 2.5mm;
|
|
132
|
+
padding: 2.5mm;
|
|
133
|
+
font-size: $meta;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
border: $rule;
|
|
136
|
+
border-top: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.line,
|
|
140
|
+
.shortLine {
|
|
141
|
+
display: inline-block;
|
|
142
|
+
padding: 0 0.5mm;
|
|
143
|
+
margin-left: 1mm;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
text-align: center;
|
|
147
|
+
text-overflow: ellipsis;
|
|
148
|
+
vertical-align: bottom;
|
|
149
|
+
border-bottom: $rule;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.line {
|
|
153
|
+
width: 36mm;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.shortLine {
|
|
157
|
+
width: 22mm;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@media print {
|
|
161
|
+
.table tbody tr:nth-of-type(odd) {
|
|
162
|
+
background-color: transparent;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Link, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@carbon/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { useSearchParams } from 'react-router-dom';
|
|
5
|
+
|
|
6
|
+
import styles from '../../../common/report-register/register-table.scss';
|
|
7
|
+
import { RegisterLayout, usePatientList } from '../../../common/report-register';
|
|
8
|
+
import { getMoh643PatientList } from '../../../resources/moh-643.resource';
|
|
9
|
+
import { moh643ExportColumns } from './moh-643.columns';
|
|
10
|
+
|
|
11
|
+
function formatDateValue(value: unknown): string {
|
|
12
|
+
if (!value) {
|
|
13
|
+
return '';
|
|
14
|
+
}
|
|
15
|
+
const text = String(value);
|
|
16
|
+
return text.includes('T') ? text.slice(0, 10) : text;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function countForIndicator(row: Record<string, any>, indicator?: string | null): string {
|
|
20
|
+
if (indicator && row[indicator] != null && row[indicator] !== '') {
|
|
21
|
+
return String(row[indicator]);
|
|
22
|
+
}
|
|
23
|
+
return '';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const Moh643Register: React.FC = () => {
|
|
27
|
+
const [searchParams] = useSearchParams();
|
|
28
|
+
|
|
29
|
+
const startDate = searchParams.get('startDate');
|
|
30
|
+
const endDate = searchParams.get('endDate');
|
|
31
|
+
const locationUuids = searchParams.get('locationUuids');
|
|
32
|
+
const indicators = searchParams.get('indicators');
|
|
33
|
+
|
|
34
|
+
const { rows: patientlist, total, isTotalExact, isLoading, page, pageSize, onPageChange, fetchAll } = usePatientList(
|
|
35
|
+
({ startIndex, limit }) =>
|
|
36
|
+
getMoh643PatientList({
|
|
37
|
+
startDate: startDate || '',
|
|
38
|
+
endDate: endDate || '',
|
|
39
|
+
locationUuids: locationUuids || '',
|
|
40
|
+
indicators: indicators || '',
|
|
41
|
+
startIndex,
|
|
42
|
+
limit,
|
|
43
|
+
}),
|
|
44
|
+
[startDate, endDate, locationUuids, indicators],
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
const exportColumns = moh643ExportColumns.map((column) =>
|
|
48
|
+
column.header === 'Count'
|
|
49
|
+
? { ...column, value: (row: Record<string, any>) => countForIndicator(row, indicators) }
|
|
50
|
+
: column,
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<RegisterLayout
|
|
55
|
+
parentLabel="MOH-643 Report"
|
|
56
|
+
parentPath="/moh-643"
|
|
57
|
+
title="MOH 643 Laboratory Commodities Register"
|
|
58
|
+
isLoading={isLoading}
|
|
59
|
+
isEmpty={patientlist.length === 0}
|
|
60
|
+
page={page}
|
|
61
|
+
pageSize={pageSize}
|
|
62
|
+
total={total}
|
|
63
|
+
isTotalExact={isTotalExact}
|
|
64
|
+
onPageChange={onPageChange}
|
|
65
|
+
fetchAll={fetchAll}
|
|
66
|
+
columns={exportColumns}
|
|
67
|
+
>
|
|
68
|
+
<div className={styles.tableContainer}>
|
|
69
|
+
<Table className={classNames(styles.table, styles.tableBordered, styles.tableStriped)}>
|
|
70
|
+
<TableHead>
|
|
71
|
+
<TableRow>
|
|
72
|
+
<TableHeader>No</TableHeader>
|
|
73
|
+
<TableHeader>Visit date</TableHeader>
|
|
74
|
+
<TableHeader>Facility</TableHeader>
|
|
75
|
+
<TableHeader>Patient name</TableHeader>
|
|
76
|
+
<TableHeader>Sex</TableHeader>
|
|
77
|
+
<TableHeader>Age</TableHeader>
|
|
78
|
+
<TableHeader>Identifier</TableHeader>
|
|
79
|
+
<TableHeader>Phone</TableHeader>
|
|
80
|
+
<TableHeader>Test</TableHeader>
|
|
81
|
+
<TableHeader>Count</TableHeader>
|
|
82
|
+
</TableRow>
|
|
83
|
+
</TableHead>
|
|
84
|
+
<TableBody>
|
|
85
|
+
{patientlist.map((patient, index) => (
|
|
86
|
+
<TableRow key={patient.patient_uuid ?? patient.person_id ?? index}>
|
|
87
|
+
<TableCell>{(page - 1) * pageSize + index + 1}</TableCell>
|
|
88
|
+
<TableCell>{formatDateValue(patient.visit_date)}</TableCell>
|
|
89
|
+
<TableCell>{patient.facility ?? ''}</TableCell>
|
|
90
|
+
<TableCell>
|
|
91
|
+
{patient.patient_uuid ? (
|
|
92
|
+
<Link href={`${window.spaBase}/patient/${patient.patient_uuid}/chart/`}>{patient.person_name}</Link>
|
|
93
|
+
) : (
|
|
94
|
+
patient.person_name
|
|
95
|
+
)}
|
|
96
|
+
</TableCell>
|
|
97
|
+
<TableCell>{patient.gender ?? ''}</TableCell>
|
|
98
|
+
<TableCell>{patient.age_years ?? ''}</TableCell>
|
|
99
|
+
<TableCell>{patient.amrs_universal_id ?? ''}</TableCell>
|
|
100
|
+
<TableCell>{patient.phone_number ?? ''}</TableCell>
|
|
101
|
+
<TableCell>{patient.test_name ?? ''}</TableCell>
|
|
102
|
+
<TableCell>{countForIndicator(patient, indicators)}</TableCell>
|
|
103
|
+
</TableRow>
|
|
104
|
+
))}
|
|
105
|
+
</TableBody>
|
|
106
|
+
</Table>
|
|
107
|
+
</div>
|
|
108
|
+
</RegisterLayout>
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export default Moh643Register;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type RegisterColumn } from '../../../common/report-register';
|
|
2
|
+
|
|
3
|
+
function formatDateValue(value: unknown): string {
|
|
4
|
+
if (!value) {
|
|
5
|
+
return '';
|
|
6
|
+
}
|
|
7
|
+
const text = String(value);
|
|
8
|
+
return text.includes('T') ? text.slice(0, 10) : text;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function countForIndicator(row: Record<string, any>, indicator?: string | null): string {
|
|
12
|
+
if (indicator && row[indicator] != null && row[indicator] !== '') {
|
|
13
|
+
return String(row[indicator]);
|
|
14
|
+
}
|
|
15
|
+
const tests = Object.keys(row).filter((key) => key.startsWith('tests_') && Number(row[key]));
|
|
16
|
+
if (tests.length === 1) {
|
|
17
|
+
return String(row[tests[0]]);
|
|
18
|
+
}
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const moh643ExportColumns: RegisterColumn[] = [
|
|
23
|
+
{ header: 'Visit date', value: (row) => formatDateValue(row.visit_date) },
|
|
24
|
+
{ header: 'Facility', value: (row) => row.facility ?? '' },
|
|
25
|
+
{ header: 'Patient name', value: (row) => row.person_name ?? '' },
|
|
26
|
+
{ header: 'Sex', value: (row) => row.gender ?? '' },
|
|
27
|
+
{ header: 'Age (years)', value: (row) => row.age_years ?? '' },
|
|
28
|
+
{ header: 'Identifier', value: (row) => row.amrs_universal_id ?? '', text: true },
|
|
29
|
+
{ header: 'Phone', value: (row) => row.phone_number ?? '', text: true },
|
|
30
|
+
{ header: 'Test', value: (row) => row.test_name ?? '' },
|
|
31
|
+
{ header: 'Count', value: (row) => countForIndicator(row) },
|
|
32
|
+
];
|