@ampath/esm-reports-app 1.0.0-next.76 → 1.0.0-next.78
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/dist/{255.css → 177.css} +1 -1
- package/dist/{255.css.map → 177.css.map} +1 -1
- package/dist/177.js +1 -0
- package/dist/177.js.map +1 -0
- package/dist/410.js +1 -1
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/registers/register-catalog.ts +74 -2
- package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +3 -3
- package/src/reports/moh-710/registers/moh-413/moh-413.component.tsx +105 -53
- package/src/reports/moh-710/registers/moh-510/moh-510.component.tsx +158 -109
- package/src/reports/moh-711/moh-711.component.tsx +6 -1
- package/src/reports/moh-711/registers/moh-333-register.component.tsx +621 -580
- package/src/reports/moh-711/registers/moh-405-register.component.tsx +519 -475
- package/src/reports/moh-711/registers/moh-406-register.component.tsx +529 -480
- package/src/reports/moh-711/registers/moh-407-register.component.tsx +157 -0
- package/src/reports/moh-711/registers/moh-407.columns.ts +24 -0
- package/src/reports/moh-711/registers/moh-407.scss +64 -0
- package/src/reports/moh-711/registers/moh-512.component.tsx +102 -52
- package/src/reports/moh-711/registers/tb-register.component.tsx +5 -2
- package/src/reports/moh-711/sections/chanis.component.tsx +24 -1
- package/src/resources/moh-711.resource.ts +31 -31
- package/src/root.component.tsx +2 -0
- package/dist/255.js +0 -1
- package/dist/255.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TableCell, TableRow } from '@carbon/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useLocation,
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { useLocation, useSearchParams } from 'react-router-dom';
|
|
4
|
+
import { useSession } from '@openmrs/esm-framework';
|
|
4
5
|
|
|
5
6
|
import styles from '../../../common/report-register/register-table.scss';
|
|
6
7
|
import classNames from 'classnames';
|
|
@@ -8,17 +9,26 @@ import { getMoh405PatientList } from '../../../resources/moh-711.resource';
|
|
|
8
9
|
import { moh405Columns } from './type';
|
|
9
10
|
import { moh405ExportColumns } from './moh-405.columns';
|
|
10
11
|
import { RegisterLayout, usePatientList } from '../../../common/report-register';
|
|
12
|
+
import { ReportFiltersComponent, type ReportPeriod } from '../../../common/report-filters';
|
|
11
13
|
|
|
12
14
|
const Moh405Register: React.FC = () => {
|
|
13
|
-
const [searchParams] = useSearchParams();
|
|
15
|
+
const [searchParams, setSearchParams] = useSearchParams();
|
|
14
16
|
const location = useLocation();
|
|
17
|
+
const session = useSession();
|
|
15
18
|
|
|
16
|
-
const startDate = searchParams.get('startDate');
|
|
17
|
-
const endDate = searchParams.get('endDate');
|
|
18
|
-
const locationUuids = searchParams.get('locationUuids');
|
|
19
|
-
const indicator = searchParams.get('indicator');
|
|
20
|
-
const reportName = location.state?.reportName || '';
|
|
21
19
|
const from = searchParams.get('from');
|
|
20
|
+
const isDrilldown = Boolean(from);
|
|
21
|
+
const [generatedPeriod, setGeneratedPeriod] = useState<{ startDate: string; endDate: string } | null>(() => {
|
|
22
|
+
const startDate = searchParams.get('startDate');
|
|
23
|
+
const endDate = searchParams.get('endDate');
|
|
24
|
+
return !isDrilldown && startDate && endDate ? { startDate, endDate } : null;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const startDate = generatedPeriod?.startDate ?? searchParams.get('startDate');
|
|
28
|
+
const endDate = generatedPeriod?.endDate ?? searchParams.get('endDate');
|
|
29
|
+
const locationUuids = searchParams.get('locationUuids') ?? session?.sessionLocation?.uuid ?? '';
|
|
30
|
+
const indicator = searchParams.get('indicator');
|
|
31
|
+
const reportName = location.state?.reportName || 'moh711Report';
|
|
22
32
|
|
|
23
33
|
const {
|
|
24
34
|
rows: patientlist,
|
|
@@ -30,8 +40,12 @@ const Moh405Register: React.FC = () => {
|
|
|
30
40
|
onPageChange,
|
|
31
41
|
fetchAll,
|
|
32
42
|
} = usePatientList(
|
|
33
|
-
({ startIndex, limit }) =>
|
|
34
|
-
|
|
43
|
+
({ startIndex, limit }) => {
|
|
44
|
+
if (!isDrilldown && !generatedPeriod) {
|
|
45
|
+
return Promise.resolve({ results: [], total: 0, isTotalExact: true });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return getMoh405PatientList({
|
|
35
49
|
startDate,
|
|
36
50
|
endDate,
|
|
37
51
|
locationUuids,
|
|
@@ -40,482 +54,512 @@ const Moh405Register: React.FC = () => {
|
|
|
40
54
|
startIndex,
|
|
41
55
|
limit,
|
|
42
56
|
from,
|
|
43
|
-
})
|
|
44
|
-
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
[startDate, endDate, locationUuids, indicator, reportName, from, isDrilldown, generatedPeriod],
|
|
45
60
|
);
|
|
61
|
+
|
|
62
|
+
const generate = ({ startDate, endDate }: ReportPeriod) => {
|
|
63
|
+
setGeneratedPeriod({ startDate, endDate });
|
|
64
|
+
setSearchParams((currentParams) => {
|
|
65
|
+
const nextParams = new URLSearchParams(currentParams);
|
|
66
|
+
nextParams.set('startDate', startDate);
|
|
67
|
+
nextParams.set('endDate', endDate);
|
|
68
|
+
if (!nextParams.has('locationUuids') && locationUuids) {
|
|
69
|
+
nextParams.set('locationUuids', locationUuids);
|
|
70
|
+
}
|
|
71
|
+
return nextParams;
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
|
|
46
75
|
return (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
<
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
5
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
<
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
1
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
<
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
<
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
<
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
{patient.
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
76
|
+
<>
|
|
77
|
+
{!isDrilldown && (
|
|
78
|
+
<ReportFiltersComponent
|
|
79
|
+
reportName="MOH 405 ANC Register"
|
|
80
|
+
mode="range"
|
|
81
|
+
onGenerate={generate}
|
|
82
|
+
isLoading={isLoading}
|
|
83
|
+
isReportGenerated={Boolean(generatedPeriod)}
|
|
84
|
+
generatedPeriod={generatedPeriod ?? undefined}
|
|
85
|
+
backLink={{ label: 'All registers', to: '/?tab=registers' }}
|
|
86
|
+
/>
|
|
87
|
+
)}
|
|
88
|
+
<RegisterLayout
|
|
89
|
+
parentLabel={isDrilldown ? 'MOH-711 Report' : 'All registers'}
|
|
90
|
+
parentPath={isDrilldown ? '/moh-711' : '/?tab=registers'}
|
|
91
|
+
title="MOH 405 ANC Register"
|
|
92
|
+
isLoading={isLoading}
|
|
93
|
+
isEmpty={(isDrilldown || Boolean(generatedPeriod)) && patientlist.length === 0}
|
|
94
|
+
page={page}
|
|
95
|
+
pageSize={pageSize}
|
|
96
|
+
total={total}
|
|
97
|
+
isTotalExact={isTotalExact}
|
|
98
|
+
onPageChange={onPageChange}
|
|
99
|
+
fetchAll={fetchAll}
|
|
100
|
+
columns={moh405ExportColumns}
|
|
101
|
+
>
|
|
102
|
+
<div className={styles.tableContainer}>
|
|
103
|
+
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
104
|
+
<thead>
|
|
105
|
+
<tr>
|
|
106
|
+
<th rowSpan={7}>Date of visit</th>
|
|
107
|
+
<th>(New Client)</th>
|
|
108
|
+
<th rowSpan={7}>
|
|
109
|
+
ANC <br />
|
|
110
|
+
Number/NUPI
|
|
111
|
+
<br />
|
|
112
|
+
(Re Visit)
|
|
113
|
+
</th>
|
|
114
|
+
<th rowSpan={7}>CRID</th>
|
|
115
|
+
<th rowSpan={7}>
|
|
116
|
+
Number of <br />
|
|
117
|
+
Visits <br />
|
|
118
|
+
(1st,2nd,3rd,
|
|
119
|
+
<br />
|
|
120
|
+
4th ….)
|
|
121
|
+
</th>
|
|
122
|
+
<th rowSpan={7}>
|
|
123
|
+
Full Name
|
|
124
|
+
<br />
|
|
125
|
+
(First, Middle, Surname)
|
|
126
|
+
</th>
|
|
127
|
+
<th rowSpan={1}>
|
|
128
|
+
Date of Birth
|
|
129
|
+
<br />
|
|
130
|
+
(DD/MM/YYYY)
|
|
131
|
+
</th>
|
|
132
|
+
<th rowSpan={7}>Subcounty/ County</th>
|
|
133
|
+
<th rowSpan={1}>Village/Estate/ Landmark</th>
|
|
134
|
+
<th rowSpan={7}>
|
|
135
|
+
<u>Marital Status</u>
|
|
136
|
+
<br />
|
|
137
|
+
NM=Never <br />
|
|
138
|
+
Married/Single
|
|
139
|
+
<br />
|
|
140
|
+
MM=Married <br />
|
|
141
|
+
Monogamous
|
|
142
|
+
<br />
|
|
143
|
+
MP=Married
|
|
144
|
+
<br />
|
|
145
|
+
Polygamous
|
|
146
|
+
<br />
|
|
147
|
+
W=Widowed
|
|
148
|
+
<br />
|
|
149
|
+
D=Divorced
|
|
150
|
+
<br />
|
|
151
|
+
S=Separated
|
|
152
|
+
</th>
|
|
153
|
+
<th rowSpan={7}>Parity</th>
|
|
154
|
+
<th rowSpan={7}>Gravidae</th>
|
|
155
|
+
<th rowSpan={1}>
|
|
156
|
+
Date of Last Menstrual <br />
|
|
157
|
+
Period (LMP)
|
|
158
|
+
</th>
|
|
159
|
+
<th rowSpan={1}>Expected Date of Delivery (EDD)</th>
|
|
160
|
+
<th rowSpan={7}>
|
|
161
|
+
Gestation in
|
|
162
|
+
<br />
|
|
163
|
+
Weeks
|
|
164
|
+
</th>
|
|
165
|
+
<th rowSpan={7}>
|
|
166
|
+
MUAC <br />
|
|
167
|
+
1= Green, <br />
|
|
168
|
+
2=Yellow, <br />
|
|
169
|
+
3=Red
|
|
170
|
+
</th>
|
|
171
|
+
<th rowSpan={7}>Height (cm)</th>
|
|
172
|
+
<th rowSpan={7}>Weight (kg)</th>
|
|
173
|
+
<th rowSpan={7}>Blood Pressure</th>
|
|
174
|
+
<th rowSpan={7}>
|
|
175
|
+
Breast Exam
|
|
176
|
+
<br />
|
|
177
|
+
1=normal <br />
|
|
178
|
+
2=abnormal
|
|
179
|
+
</th>
|
|
180
|
+
<th rowSpan={1}>FGM (Y/N)</th>
|
|
181
|
+
<th rowSpan={1} colSpan={12}>
|
|
182
|
+
Laboratory
|
|
183
|
+
</th>
|
|
184
|
+
<th rowSpan={1}>Maternal HAART</th>
|
|
185
|
+
<th rowSpan={1}>Infant Prophylaxis</th>
|
|
186
|
+
<th rowSpan={1}>Partner HIV Testing</th>
|
|
187
|
+
<th rowSpan={1}>Other Conditions and Treatment</th>
|
|
188
|
+
<th rowSpan={1}>Deworming</th>
|
|
189
|
+
<th rowSpan={1}>IPT 1-3</th>
|
|
190
|
+
<th rowSpan={1}>TT Dose</th>
|
|
191
|
+
<th rowSpan={1}>Supplementation</th>
|
|
192
|
+
<th rowSpan={1}>LLITNs</th>
|
|
193
|
+
<th rowSpan={1} colSpan={3}>
|
|
194
|
+
Referrrals
|
|
195
|
+
</th>
|
|
196
|
+
<th rowSpan={7}>Remarks</th>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<th>ANC Number</th>
|
|
200
|
+
<th rowSpan={6}>Age</th>
|
|
201
|
+
<th rowSpan={6}>Phone Number</th>
|
|
202
|
+
<th rowSpan={6}>(dd/mm/yyyy)</th>
|
|
203
|
+
<th rowSpan={6}>(dd/mm/yyyy)</th>
|
|
204
|
+
<th rowSpan={6}>
|
|
205
|
+
FGM associated <br />
|
|
206
|
+
complications:
|
|
207
|
+
<br />
|
|
208
|
+
1=Scarring
|
|
209
|
+
<br />
|
|
210
|
+
2=Keloids
|
|
211
|
+
<br />
|
|
212
|
+
3=Dyspaneuria
|
|
213
|
+
<br />
|
|
214
|
+
4=UTI 5 = NA
|
|
215
|
+
</th>
|
|
216
|
+
<th rowSpan={6}>
|
|
217
|
+
Haemoglobin <br />
|
|
218
|
+
(Level/ ND/NA)
|
|
219
|
+
</th>
|
|
220
|
+
<th rowSpan={6}>
|
|
221
|
+
Blood Sugar Testing <br />
|
|
222
|
+
for Diabetes: <br />
|
|
223
|
+
1=RBS< 11.1 <br />
|
|
224
|
+
mmol/L, No <br />
|
|
225
|
+
Diabetes,
|
|
226
|
+
<br />
|
|
227
|
+
2=RBS>11.1
|
|
228
|
+
<br />
|
|
229
|
+
mmol/L, Has <br />
|
|
230
|
+
Diabetes,
|
|
231
|
+
<br />
|
|
232
|
+
3=No RBS done
|
|
233
|
+
</th>
|
|
234
|
+
<th rowSpan={6}>
|
|
235
|
+
Blood group <br />
|
|
236
|
+
and rhesus <br />
|
|
237
|
+
(Y/N)
|
|
238
|
+
</th>
|
|
239
|
+
<th rowSpan={6}>
|
|
240
|
+
Urinalysis
|
|
241
|
+
<br />
|
|
242
|
+
(Y/N)
|
|
243
|
+
</th>
|
|
244
|
+
<th rowSpan={1}>
|
|
245
|
+
Type of Test <br />
|
|
246
|
+
RPR/ VDRL/ <br />
|
|
247
|
+
Duo Test/ NA
|
|
248
|
+
</th>
|
|
249
|
+
<th rowSpan={1}>
|
|
250
|
+
Hepatitis B virus <br />
|
|
251
|
+
Sceening Result
|
|
252
|
+
<br />
|
|
253
|
+
(P/N/ND)
|
|
254
|
+
</th>
|
|
255
|
+
<th rowSpan={1}>
|
|
256
|
+
TB Screening:
|
|
257
|
+
<br />
|
|
258
|
+
Codes (1-5)
|
|
259
|
+
</th>
|
|
260
|
+
<th rowSpan={1} colSpan={5}></th>
|
|
261
|
+
<th rowSpan={6}>
|
|
262
|
+
N = New on ART.
|
|
263
|
+
<br />
|
|
264
|
+
OA = On ART
|
|
265
|
+
<br />
|
|
266
|
+
NA = Not
|
|
267
|
+
<br />
|
|
268
|
+
Applicable
|
|
269
|
+
</th>
|
|
270
|
+
<th rowSpan={6}>
|
|
271
|
+
AN = AZT&NVP <br />
|
|
272
|
+
A = AZT
|
|
273
|
+
<br />
|
|
274
|
+
N = NVP
|
|
275
|
+
<br />
|
|
276
|
+
NA
|
|
277
|
+
</th>
|
|
278
|
+
<th rowSpan={6}>N/P/KP/NA</th>
|
|
279
|
+
<th rowSpan={1}>
|
|
280
|
+
1=Hypertension; <br />
|
|
281
|
+
2=Diabetes; <br />
|
|
282
|
+
3=Epilepsy; <br />
|
|
283
|
+
4=Malaria in Pregnancy; <br />
|
|
284
|
+
5=STIs/RTI; <br />
|
|
285
|
+
6=Others (Specify) <br />
|
|
286
|
+
7=None <br />
|
|
287
|
+
Record all that apply
|
|
288
|
+
</th>
|
|
289
|
+
<th rowSpan={6}>(Y/N/NA)</th>
|
|
290
|
+
<th rowSpan={6}>(1,2,3,N,NA)</th>
|
|
291
|
+
<th rowSpan={6}>
|
|
292
|
+
1=TT Dose 1st <br />
|
|
293
|
+
dose 2=2nd dose <br />
|
|
294
|
+
3=3rd dose <br />
|
|
295
|
+
4=4th dose <br />
|
|
296
|
+
5=5th dose <br />
|
|
297
|
+
NA=None
|
|
298
|
+
</th>
|
|
299
|
+
<th rowSpan={6}>
|
|
300
|
+
Given
|
|
301
|
+
<br />
|
|
302
|
+
Supplementation <br />
|
|
303
|
+
1=Combined IFAs
|
|
304
|
+
<br />
|
|
305
|
+
2=Iron <br />
|
|
306
|
+
3=Folate <br />
|
|
307
|
+
4=Iron+Folate <br />
|
|
308
|
+
Separately <br />
|
|
309
|
+
5=Calcium
|
|
310
|
+
</th>
|
|
311
|
+
<th rowSpan={6}>
|
|
312
|
+
Received
|
|
313
|
+
<br />
|
|
314
|
+
LLITNs <br />
|
|
315
|
+
(Y/N)
|
|
316
|
+
</th>
|
|
317
|
+
<th rowSpan={1}>From</th>
|
|
318
|
+
<th rowSpan={1}>To</th>
|
|
319
|
+
<th rowSpan={6}>
|
|
320
|
+
Reason for referral
|
|
321
|
+
<br />
|
|
322
|
+
(specify)
|
|
323
|
+
</th>
|
|
324
|
+
</tr>
|
|
325
|
+
<tr>
|
|
326
|
+
<th rowSpan={5}>NUPI</th>
|
|
327
|
+
<th rowSpan={5}>
|
|
328
|
+
Test Results <br />
|
|
329
|
+
(P/N/NA)
|
|
330
|
+
</th>
|
|
331
|
+
<th rowSpan={5}>
|
|
332
|
+
Treatment
|
|
333
|
+
<br />
|
|
334
|
+
(Y/N/NA)
|
|
335
|
+
</th>
|
|
336
|
+
<th rowSpan={5}>
|
|
337
|
+
1=Presumed TB <br />
|
|
338
|
+
2=No Signs <br />
|
|
339
|
+
3=On TB <br />
|
|
340
|
+
Treatment <br />
|
|
341
|
+
4=On TPT
|
|
342
|
+
<br />
|
|
343
|
+
5=Not Done
|
|
344
|
+
</th>
|
|
345
|
+
<th rowSpan={1}>
|
|
346
|
+
HIV Testing <br />
|
|
347
|
+
(Initial or Retest,
|
|
348
|
+
<br />
|
|
349
|
+
Known Poitive or <br />
|
|
350
|
+
Revisit)
|
|
351
|
+
</th>
|
|
352
|
+
<th rowSpan={1}>HIV Test 1</th>
|
|
353
|
+
<th rowSpan={1}>HIV Test 2</th>
|
|
354
|
+
<th rowSpan={1}>HIV Test 3</th>
|
|
355
|
+
<th rowSpan={1}>HIV Results</th>
|
|
356
|
+
<th rowSpan={5}>Treatment (Y/N/NA)</th>
|
|
357
|
+
<th rowSpan={5}>
|
|
358
|
+
1=From <br />
|
|
359
|
+
Community Unit <br />
|
|
360
|
+
2=Another
|
|
361
|
+
<br />
|
|
362
|
+
Health Facility <br />
|
|
363
|
+
3=Not Applicable
|
|
364
|
+
</th>
|
|
365
|
+
<th rowSpan={5}>
|
|
366
|
+
1=To Community <br />
|
|
367
|
+
Unit <br />
|
|
368
|
+
2=HIV preventive <br />
|
|
369
|
+
services
|
|
370
|
+
<br />
|
|
371
|
+
3=Another Health <br />
|
|
372
|
+
Facility 4=Not <br />
|
|
373
|
+
Applicable
|
|
374
|
+
</th>
|
|
375
|
+
</tr>
|
|
376
|
+
<tr>
|
|
377
|
+
<th rowSpan={5}>(I/R/KP/ND/Rev)</th>
|
|
378
|
+
<th rowSpan={1}>Kit Name</th>
|
|
379
|
+
<th rowSpan={1}>Kit Name</th>
|
|
380
|
+
<th rowSpan={1}>Kit Name</th>
|
|
381
|
+
<th rowSpan={5}>(N/P/Ic/U/N A)</th>
|
|
382
|
+
</tr>
|
|
383
|
+
<tr>
|
|
384
|
+
<th rowSpan={1}>Expiry / /</th>
|
|
385
|
+
<th rowSpan={1}>Expiry / /</th>
|
|
386
|
+
<th rowSpan={1}>Expiry / /</th>
|
|
387
|
+
</tr>
|
|
388
|
+
<tr>
|
|
389
|
+
<th rowSpan={1}>(N/P/I/NA)</th>
|
|
390
|
+
<th rowSpan={1}>(N/P/I/NA)</th>
|
|
391
|
+
<th rowSpan={1}>(N/P/I/NA)</th>
|
|
392
|
+
</tr>
|
|
393
|
+
</thead>
|
|
394
|
+
<tbody>
|
|
395
|
+
<tr>
|
|
396
|
+
<td className={styles.textCentre}>(a)</td>
|
|
397
|
+
<td className={styles.textCentre}>(b)</td>
|
|
398
|
+
<td className={styles.textCentre}>(c)</td>
|
|
399
|
+
<td className={styles.textCentre}>(d)</td>
|
|
400
|
+
<td className={styles.textCentre}>(e)</td>
|
|
401
|
+
<td className={styles.textCentre}>(f)</td>
|
|
402
|
+
<td className={styles.textCentre}>(g)</td>
|
|
403
|
+
<td className={styles.textCentre}>(h)</td>
|
|
404
|
+
<td className={styles.textCentre}>(i)</td>
|
|
405
|
+
<td className={styles.textCentre}>(j)</td>
|
|
406
|
+
<td className={styles.textCentre}>(k)</td>
|
|
407
|
+
<td className={styles.textCentre}>(l)</td>
|
|
408
|
+
<td className={styles.textCentre}>(m)</td>
|
|
409
|
+
<td className={styles.textCentre}>(n)</td>
|
|
410
|
+
<td className={styles.textCentre}>(o)</td>
|
|
411
|
+
<td className={styles.textCentre}>(p)</td>
|
|
412
|
+
<td className={styles.textCentre}>(q)</td>
|
|
413
|
+
<td className={styles.textCentre}>(r)</td>
|
|
414
|
+
<td className={styles.textCentre}>(s)</td>
|
|
415
|
+
<td className={styles.textCentre}>(t)</td>
|
|
416
|
+
<td className={styles.textCentre}>(u)</td>
|
|
417
|
+
<td className={styles.textCentre}>(v)</td>
|
|
418
|
+
<td className={styles.textCentre}>(w)</td>
|
|
419
|
+
<td className={styles.textCentre}>(x)</td>
|
|
420
|
+
<td className={styles.textCentre}>(y)</td>
|
|
421
|
+
<td className={styles.textCentre}>(z)</td>
|
|
422
|
+
<td className={styles.textCentre}>(aa)</td>
|
|
423
|
+
<td className={styles.textCentre}>(ab)</td>
|
|
424
|
+
<td className={styles.textCentre}>(ac)</td>
|
|
425
|
+
<td className={styles.textCentre}>(ad)</td>
|
|
426
|
+
<td className={styles.textCentre}>(ae)</td>
|
|
427
|
+
<td className={styles.textCentre}>(af)</td>
|
|
428
|
+
<td className={styles.textCentre}>(ag)</td>
|
|
429
|
+
<td className={styles.textCentre}>(ah)</td>
|
|
430
|
+
<td className={styles.textCentre}>(ai)</td>
|
|
431
|
+
<td className={styles.textCentre}>(aj)</td>
|
|
432
|
+
<td className={styles.textCentre}>(ak)</td>
|
|
433
|
+
<td className={styles.textCentre}>(al)</td>
|
|
434
|
+
<td className={styles.textCentre}>(am)</td>
|
|
435
|
+
<td className={styles.textCentre}>(an)</td>
|
|
436
|
+
<td className={styles.textCentre}>(ao)</td>
|
|
437
|
+
<td className={styles.textCentre}>(ap)</td>
|
|
438
|
+
<td className={styles.textCentre}>(aq)</td>
|
|
439
|
+
<td className={styles.textCentre}>(ar)</td>
|
|
440
|
+
<td className={styles.textCentre}>(as)</td>
|
|
441
|
+
<td className={styles.textCentre}>(at)</td>
|
|
442
|
+
</tr>
|
|
443
|
+
{patientlist?.length > 0 ? (
|
|
444
|
+
patientlist.map((patient, rowIndex) => (
|
|
445
|
+
<React.Fragment key={rowIndex}>
|
|
446
|
+
<tr>
|
|
447
|
+
<td rowSpan={2}>
|
|
448
|
+
{patient.date_of_visit ? new Date(patient.date_of_visit).toLocaleDateString('en-GB') : ''}
|
|
449
|
+
</td>
|
|
450
|
+
<td>{patient.anc_number}</td>
|
|
451
|
+
<td rowSpan={2}>{patient.anc_number}</td>
|
|
452
|
+
<td rowSpan={2}>{patient.cr_id}</td>
|
|
453
|
+
<td rowSpan={2}>{patient.number_of_anc_visits}</td>
|
|
454
|
+
<td rowSpan={2}>{patient.full_names}</td>
|
|
455
|
+
<td>
|
|
456
|
+
{patient.date_of_birth ? new Date(patient.date_of_birth).toLocaleDateString('en-GB') : ''}
|
|
457
|
+
</td>
|
|
458
|
+
<td rowSpan={2}>{patient.subcounty_county}</td>
|
|
459
|
+
<td>{patient.village_estate_landmark}</td>
|
|
460
|
+
<td rowSpan={2}>{patient.marital_status}</td>
|
|
461
|
+
<td rowSpan={2}>{patient.parity}</td>
|
|
462
|
+
<td rowSpan={2}>{patient.gravidae}</td>
|
|
463
|
+
<td rowSpan={2}>
|
|
464
|
+
{patient.last_lmp_date ? new Date(patient.last_lmp_date).toLocaleDateString('en-GB') : ''}
|
|
465
|
+
</td>
|
|
466
|
+
<td rowSpan={2}>{patient.edd ? new Date(patient.edd).toLocaleDateString('en-GB') : ''}</td>
|
|
467
|
+
<td rowSpan={2}>{patient.gestation_in_weeks}</td>
|
|
468
|
+
<td rowSpan={2}>{patient.muac}</td>
|
|
469
|
+
<td rowSpan={2}>{patient.height}</td>
|
|
470
|
+
<td rowSpan={2}>{patient.weight}</td>
|
|
471
|
+
<td rowSpan={2}>{patient.blood_pressure}</td>
|
|
472
|
+
<td rowSpan={2}>{patient.breast_exam}</td>
|
|
473
|
+
<td>{patient.fgm}</td>
|
|
474
|
+
<td rowSpan={2}>{patient.haemoglobin}</td>
|
|
475
|
+
<td rowSpan={2}>{patient.blood_sugar_test}</td>
|
|
476
|
+
<td rowSpan={2}>{patient.blood_group_rhesus}</td>
|
|
477
|
+
<td rowSpan={2}>{patient.urinalysis}</td>
|
|
478
|
+
<td>{patient.rpr_vdrl_duo}</td>
|
|
479
|
+
<td>{patient.hepatitisB}</td>
|
|
480
|
+
<td rowSpan={2}>{patient.tb_screening}</td>
|
|
481
|
+
<td rowSpan={2}>{patient.hiv_test_type}</td>
|
|
439
482
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
483
|
+
<td>
|
|
484
|
+
{patient.hiv_test_1_kit_name} / {patient.hiv_test_1_lot_no} /{' '}
|
|
485
|
+
{patient.hiv_test_1_expiry_date
|
|
486
|
+
? new Date(patient.hiv_test_1_expiry_date).toLocaleDateString('en-GB')
|
|
487
|
+
: ''}{' '}
|
|
488
|
+
/ {patient.hiv_test_1_test_result}
|
|
489
|
+
</td>
|
|
447
490
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
491
|
+
<td>
|
|
492
|
+
{patient.hiv_test_2_kit_name} / {patient.hiv_test_2_lot_number} /{' '}
|
|
493
|
+
{patient.hiv_test_2_expiry_date
|
|
494
|
+
? new Date(patient.hiv_test_2_expiry_date).toLocaleDateString('en-GB')
|
|
495
|
+
: ''}{' '}
|
|
496
|
+
/ {patient.hiv_test_2_test_result}
|
|
497
|
+
</td>
|
|
455
498
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
499
|
+
<td>
|
|
500
|
+
{patient.hiv_test_3_kit_name} / {patient.hiv_test_3_lot_number} /{' '}
|
|
501
|
+
{patient.hiv_test_3_expiry_date
|
|
502
|
+
? new Date(patient.hiv_test_3_expiry_date).toLocaleDateString('en-GB')
|
|
503
|
+
: ''}{' '}
|
|
504
|
+
/ {patient.hiv_test_3_test_result}
|
|
505
|
+
</td>
|
|
463
506
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
507
|
+
<td rowSpan={2}>{patient.hiv_results}</td>
|
|
508
|
+
<td rowSpan={2}>{patient.maternal_haart}</td>
|
|
509
|
+
<td rowSpan={2}>{patient.infant_prophylaxis}</td>
|
|
510
|
+
<td rowSpan={2}>{patient.partner_hiv_testing}</td>
|
|
511
|
+
<td>{patient.other_conditions}</td>
|
|
512
|
+
<td rowSpan={2}>{patient.deworming}</td>
|
|
513
|
+
<td rowSpan={2}>{patient.ipt_1_3}</td>
|
|
514
|
+
<td rowSpan={2}>{patient.tt_dose}</td>
|
|
515
|
+
<td rowSpan={2}>{patient.supplementation}</td>
|
|
516
|
+
<td rowSpan={2}>{patient.llitns}</td>
|
|
517
|
+
<td rowSpan={2}>{patient.referrals_from}</td>
|
|
518
|
+
<td rowSpan={2}>{patient.referrals_to}</td>
|
|
519
|
+
<td rowSpan={2}>{patient.reason_for_referral}</td>
|
|
520
|
+
<td rowSpan={2}>{patient.remarks}</td>
|
|
521
|
+
</tr>
|
|
479
522
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
523
|
+
<tr>
|
|
524
|
+
<td>{patient.nupi}</td>
|
|
525
|
+
<td>{patient.age}</td>
|
|
526
|
+
<td>{patient.phone_number}</td>
|
|
527
|
+
<td>{patient.fgm_complications}</td>
|
|
528
|
+
<td>{patient.rpr_vdrl_duo_results}</td>
|
|
529
|
+
<td>{patient.hepatitisB_treatment}</td>
|
|
487
530
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
531
|
+
<td>
|
|
532
|
+
{patient.hiv_test_1_expiry_date
|
|
533
|
+
? new Date(patient.hiv_test_1_expiry_date).toLocaleDateString('en-GB')
|
|
534
|
+
: ''}
|
|
535
|
+
</td>
|
|
493
536
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
537
|
+
<td>
|
|
538
|
+
{patient.hiv_test_2_expiry_date
|
|
539
|
+
? new Date(patient.hiv_test_2_expiry_date).toLocaleDateString('en-GB')
|
|
540
|
+
: ''}
|
|
541
|
+
</td>
|
|
499
542
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
543
|
+
<td>
|
|
544
|
+
{patient.hiv_test_3_expiry_date
|
|
545
|
+
? new Date(patient.hiv_test_3_expiry_date).toLocaleDateString('en-GB')
|
|
546
|
+
: ''}
|
|
547
|
+
</td>
|
|
505
548
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
549
|
+
<td>{patient.other_conditions_treatment}</td>
|
|
550
|
+
</tr>
|
|
551
|
+
</React.Fragment>
|
|
552
|
+
))
|
|
553
|
+
) : (
|
|
554
|
+
<TableRow>
|
|
555
|
+
<TableCell colSpan={moh405Columns.length}>No data available</TableCell>
|
|
556
|
+
</TableRow>
|
|
557
|
+
)}
|
|
558
|
+
</tbody>
|
|
559
|
+
</table>
|
|
560
|
+
</div>
|
|
561
|
+
</RegisterLayout>
|
|
562
|
+
</>
|
|
519
563
|
);
|
|
520
564
|
};
|
|
521
565
|
|