@ampath/esm-reports-app 1.0.0-next.97 → 1.0.0-next.98

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.
@@ -13,6 +13,86 @@ import { ReportSkeleton } from '../../common/report-skeleton';
13
13
  import { ReportPage } from '../../common/report-page';
14
14
  import styles from './moh-505.scss';
15
15
 
16
+ const BAND_UNDER_5 = 'dc__age_range__0_to_4__';
17
+ const BAND_5_AND_ABOVE = 'dc__age_range__5_and_above__';
18
+
19
+ /* The form prints each disease's Cases and Deaths per age band. The flat
20
+ table only carries the Cases flags so far - the per-disease death concepts
21
+ still have to be counterchecked against the 705 A/B procedures, so every
22
+ Deaths cell renders blank until they land. */
23
+ const diseases = [
24
+ { label: 'AEFI*', flag: 'aefi' },
25
+ { label: 'Acute Jaundice', flag: 'acute_jaundice' },
26
+ { label: 'Acute Malnutrition', flag: 'acute_malnutrition' },
27
+ { label: 'AFP (Poliomyelitis)**', flag: '' },
28
+ { label: 'Anthrax', flag: 'anthrax' },
29
+ { label: 'Cholera', flag: 'cholera' },
30
+ { label: 'Dengue', flag: 'dengue' },
31
+ { label: 'Dysentery (Bacillary)', flag: 'dysentery_bacillary' },
32
+ { label: 'Guinea Worm Disease', flag: '' },
33
+ { label: 'Measles', flag: 'measles' },
34
+ { label: 'Suspected Malaria***', flag: '' },
35
+ { label: 'Deaths due to Malaria****', flag: '' },
36
+ { label: 'Maternal deaths', flag: 'maternal_deaths' },
37
+ ];
38
+
39
+ const diseasesRight = [
40
+ { label: 'Meningococcal Meningitis', flag: 'bacterial_meningitis' },
41
+ { label: 'Neonatal deaths', flag: 'neonatal_deaths' },
42
+ { label: 'Neonatal Tetanus', flag: 'neonatal_tetanus' },
43
+ { label: 'Plague', flag: 'plague' },
44
+ { label: 'Rabies', flag: 'rabies' },
45
+ { label: 'Rift Valley Fever', flag: '' },
46
+ { label: 'SARI (Cluster ≥3 cases)*****', flag: '' },
47
+ { label: 'Suspected MDR/XDR TB', flag: '' },
48
+ { label: 'Typhoid', flag: 'typhoid' },
49
+ { label: 'VHF******', flag: '' },
50
+ { label: 'Yellow Fever', flag: 'yellow_fever' },
51
+ { label: 'Others (Specify)*******', flag: '' },
52
+ { label: '', flag: '' },
53
+ ];
54
+
55
+ /** The diseases table's 10-cell body row: label, Cases/Deaths per band, twice */
56
+ function diseaseRow(left: { label: string; flag: string }, right: { label: string; flag: string }) {
57
+ const bandCells = (flag: string) => [
58
+ // Cases drill down into the MOH 240 register; Deaths stay blank until the
59
+ // per-disease death concepts are captured by the stored procedure.
60
+ getCell(flag ? `${BAND_UNDER_5}${flag}` : '', ''),
61
+ getCell('', ''),
62
+ getCell(flag ? `${BAND_5_AND_ABOVE}${flag}` : '', ''),
63
+ getCell('', ''),
64
+ ];
65
+ return {
66
+ tableCells: [getCell('', left.label), ...bandCells(left.flag), getCell('', right.label), ...bandCells(right.flag)],
67
+ };
68
+ }
69
+
70
+ const diseaseHeaderRows = [
71
+ {
72
+ tableCells: [
73
+ getCell('', 'Diseases, Conditions or Events', 1, 2, true),
74
+ getCell('', '< 5 years', 2, 1, true),
75
+ getCell('', '≥ 5 years', 2, 1, true),
76
+ getCell('', 'Diseases, Conditions or Events', 1, 2, true),
77
+ getCell('', '< 5 years', 2, 1, true),
78
+ getCell('', '≥ 5 years', 2, 1, true),
79
+ ],
80
+ },
81
+ {
82
+ tableCells: [
83
+ getCell('', 'Cases', 1, 1, true),
84
+ getCell('', 'Deaths', 1, 1, true),
85
+ getCell('', 'Cases', 1, 1, true),
86
+ getCell('', 'Deaths', 1, 1, true),
87
+ getCell('', 'Cases', 1, 1, true),
88
+ getCell('', 'Deaths', 1, 1, true),
89
+ getCell('', 'Cases', 1, 1, true),
90
+ getCell('', 'Deaths', 1, 1, true),
91
+ ],
92
+ },
93
+ ];
94
+
95
+ /* The Moh505Report: a report for the current location counts */
16
96
  const Moh505Report: React.FC = () => {
17
97
  const [moh505Data, setMoh505Data] = useState<any>({});
18
98
  /* Only a report for the current location counts: after switching location the
@@ -64,332 +144,58 @@ const Moh505Report: React.FC = () => {
64
144
  }
65
145
  };
66
146
 
67
- // Static table rows for now - can be updated to use moh505Data
68
- const tableRows = [
69
- {
70
- tableCells: [
71
- getCell('', 'Diseases, Conditions or Events', 1, 2, true),
72
- getCell('', '< 5 years', 2, 1, true),
73
- getCell('', '≥ 5 years', 6, 1, true),
74
- getCell('', 'Diseases, Conditions or Events', 1, 2, true),
75
- getCell('', '< 5 years', 2, 1, true),
76
- getCell('', '≥ 5 years', 2, 1, true),
77
- ],
78
- },
79
- {
80
- tableCells: [
81
- ,
82
- getCell('', 'Cases', 1, 1, true),
83
- getCell('', 'Deaths', 1, 1, true),
84
- getCell('', 'Cases', 1, 1, true),
85
- getCell('', 'Deaths', 5, 1, true),
86
- ,
87
- getCell('', 'Cases', 1, 1, true),
88
- getCell('', 'Deaths', 1, 1, true),
89
- getCell('', 'Cases', 1, 1, true),
90
- getCell('', 'Deaths', 1, 1, true),
91
- ],
92
- },
93
- {
94
- tableCells: [
95
- getCell('', 'AEFI*'),
96
- getCell('dc__age_range__0_to_4__aefi'),
97
- getCell(),
98
- getCell('dc__age_range__5_and_above__aefi'),
99
- getCell('', '', 5),
100
- getCell('', 'Meningococcal Meningitis'),
101
- getCell('dc__age_range__0_to_4__bacterial_meningitis'),
102
- getCell(),
103
- getCell('dc__age_range__5_and_above__bacterial_meningitis'),
104
- getCell(),
105
- ],
106
- },
107
- {
108
- tableCells: [
109
- getCell('', 'Acute Jaundice'),
110
- getCell('dc__age_range__0_to_4__acute_jaundice', ''),
111
- getCell(),
112
- getCell('dc__age_range__5_and_above__acute_jaundice', ''),
113
- getCell('', '', 5),
114
- getCell('', 'Neonatal deaths'),
115
- getCell('dc__age_range__0_to_4__neonatal_deaths', ''),
116
- getCell(),
117
- getCell('dc__age_range__5_and_above__neonatal_deaths', ''),
118
- getCell('', '', 2, 2),
119
- ],
120
- },
121
- {
122
- tableCells: [
123
- getCell('', 'Acute Malnutrition'),
124
- getCell('dc__age_range__0_to_4__acute_malnutrition', ''),
125
- getCell(),
126
- getCell('dc__age_range__5_and_above__acute_malnutrition', ''),
127
- getCell('', '', 5),
128
- getCell('', 'Neonatal Tetanus'),
129
- getCell('dc__age_range__0_to_4__neonatal_tetanus', ''),
130
- getCell(),
131
- ],
132
- },
133
- {
134
- tableCells: [
135
- getCell('', 'AFP (Poliomyelitis)**'),
136
- getCell(),
137
- getCell(),
138
- getCell(),
139
- getCell('', '', 5),
140
- getCell('', 'Plague'),
141
- getCell('dc__age_range__0_to_4__plague', ''),
142
- getCell(),
143
- getCell('dc__age_range__5_and_above__plague', ''),
144
- getCell(),
145
- ],
146
- },
147
- {
148
- tableCells: [
149
- getCell('', 'Anthrax'),
150
- getCell('dc__age_range__0_to_4__anthrax', ''),
151
- getCell(),
152
- getCell('dc__age_range__5_and_above__anthrax', ''),
153
- getCell('', '', 5),
154
- getCell('', 'Rabies'),
155
- getCell('dc__age_range__0_to_4__rabies', ''),
156
- getCell(),
157
- getCell('dc__age_range__5_and_above__rabies', ''),
158
- getCell(),
159
- ],
160
- },
161
- {
162
- tableCells: [
163
- getCell('', 'Cholera'),
164
- getCell('dc__age_range__0_to_4__cholera', ''),
165
- getCell(),
166
- getCell('dc__age_range__5_and_above__cholera', ''),
167
- getCell('', '', 5),
168
- getCell('', 'Rift Valley Fever'),
169
- getCell(),
170
- getCell(),
171
- getCell(),
172
- getCell(),
173
- ],
174
- },
175
- {
176
- tableCells: [
177
- getCell('', 'Dengue'),
178
- getCell('dc__age_range__0_to_4__dengue', ''),
179
- getCell(),
180
- getCell('dc__age_range__5_and_above__dengue', ''),
181
- getCell('', '', 5),
182
- getCell('', 'SARI (Cluster ≥3 cases)*****'),
183
- getCell(),
184
- getCell(),
185
- getCell(),
186
- getCell(),
187
- ],
188
- },
189
- {
190
- tableCells: [
191
- getCell('', 'Dysentery (Bacillary)'),
192
- getCell('dc__age_range__0_to_4__dysentery_bacillary', ''),
193
- getCell(),
194
- getCell('dc__age_range__5_and_above__dysentery_bacillary', ''),
195
- getCell('', '', 5),
196
- getCell('', 'Suspected MDR/XDR TB'),
197
- getCell(),
198
- getCell(),
199
- getCell(),
200
- getCell(),
201
- ],
202
- },
203
- {
204
- tableCells: [
205
- getCell('', 'Guinea Worm Disease'),
206
- getCell(),
207
- getCell(),
208
- getCell(),
209
- getCell('', '', 5),
210
- getCell('', 'Typhoid'),
211
- getCell('dc__age_range__0_to_4__typhoid', ''),
212
- getCell(),
213
- getCell('dc__age_range__5_and_above__typhoid', ''),
214
- getCell(),
215
- ],
216
- },
217
- {
218
- tableCells: [
219
- getCell('', 'Measles'),
220
- getCell('dc__age_range__0_to_4__measles', ''),
221
- getCell(),
222
- getCell('dc__age_range__5_and_above__measles', ''),
223
- getCell('', '', 5),
224
- getCell('', 'VHF******', 1, 2),
225
- getCell('', '', 1, 2),
226
- getCell('', '', 1, 2),
227
- getCell('', '', 1, 2),
228
- getCell('', '', 1, 2),
229
- ],
230
- },
231
- {
232
- tableCells: [getCell('', 'Suspected Malaria***'), getCell(), getCell(), getCell(), getCell('', '', 5)],
233
- },
234
- {
235
- tableCells: [
236
- getCell('', 'Deaths due to Malaria****', 1, 2),
237
- getCell('', '', 1, 2),
238
- getCell('', '', 1, 2),
239
- getCell('', '', 1, 2),
240
- getCell('', '', 5, 2),
241
- getCell('', 'Yellow Fever', 1, 2),
242
- getCell('dc__age_range__0_to_4__yellow_fever', '', 1, 2),
243
- getCell('', '', 1, 2),
244
- getCell('dc__age_range__5_and_above__yellow_fever', '', 1, 2),
245
- getCell('', '', 1, 2),
246
- ],
247
- },
248
- {
249
- tableCells: [,],
250
- },
251
- {
252
- tableCells: [
253
- getCell('', 'Maternal deaths'),
254
- getCell('dc__age_range__0_to_4__maternal_deaths', ''),
255
- getCell(),
256
- getCell('dc__age_range__5_and_above__maternal_deaths', ''),
257
- getCell('', '', 5),
258
- getCell('', 'Others (Specify)*******'),
259
- getCell(),
260
- getCell(),
261
- getCell(),
262
- getCell(),
263
- ],
264
- },
265
- {
266
- tableCells: [getCell('', '', 14)],
267
- },
268
- {
269
- tableCells: [
270
- getCell('', 'Disease', 1, 1, true),
271
- getCell('', 'Microscopy', 3, 1, true),
272
- getCell('', 'mRDT', 5, 1, true),
273
- getCell('', 'Disease', 2, 1, true),
274
- getCell('', 'Laboratory diagnosis', 3, 1, true),
275
- ],
276
- },
277
- {
278
- tableCells: [
279
- getCell('', 'Malaria', 1, 1, true),
280
- getCell('', '<5 yrs'),
281
- getCell('', '≥5 yrs'),
282
- getCell('', 'Total'),
283
- getCell('', '<5 yrs', 2),
284
- getCell('', '≥5 yrs', 3),
285
- getCell('', 'Shigella Dysentery', 2, 1, true),
286
- getCell('', '<5 yrs', 2),
287
- getCell('', '≥5 yrs', 1),
288
- ],
289
- },
290
- {
291
- tableCells: [
292
- getCell('', 'Tested'),
293
- getCell('dc__age_range__0_to_4__malaria_microscopy_tested', ''),
294
- getCell('dc__age_range__5_and_above__malaria_microscopy_tested', ''),
295
- getCell(),
296
- getCell('dc__age_range__0_to_4__malaria_mrdt_tested', '', 2),
297
- getCell('dc__age_range__5_and_above__malaria_mrdt_tested', '', 3),
298
- getCell('', 'Tested', 2),
299
- getCell('dc__age_range__0_to_4__typhoid_lab_tested', '', 2),
300
- getCell('dc__age_range__5_and_above__typhoid_lab_tested', '', 1),
301
- ],
302
- },
303
- {
304
- tableCells: [
305
- getCell('', 'Positive'),
306
- getCell('dc__age_range__0_to_4__malaria_microscopy_positive', ''),
307
- getCell('dc__age_range__5_and_above__malaria_microscopy_positive', ''),
308
- getCell(),
309
- getCell('dc__age_range__0_to_4__malaria_mrdt_positive', '', 2),
310
- getCell('dc__age_range__5_and_above__malaria_mrdt_positive', '', 3),
311
- getCell('', 'Positive', 2),
312
- getCell('dc__age_range__0_to_4__typhoid_lab_positive', '', 2),
313
- getCell('dc__age_range__5_and_above__typhoid_lab_positive', '', 1),
314
- ],
315
- },
316
- {
317
- tableCells: [
318
- getCell('', 'Bacterial Meningitis', 1, 2, true),
319
- getCell('', 'No CSF', 1, 2, true),
320
- getCell('', 'No contaminated', 1, 2, true),
321
- getCell('', 'No Tested', 1, 2, true),
322
- getCell('', '+ve Nm', 1, 2, true),
323
- getCell('', '+ve Sp', 1, 2, true),
324
- getCell('', '+ve H influenza', 3, 2, true),
325
- getCell('', 'Tuberculosis (MDR/XDR)', 2, 2, true),
326
- getCell('', '<5 yrs', 2, 2),
327
- getCell('', '≥5 yrs', 1, 2),
328
- ],
329
- },
330
- {
331
- tableCells: [,],
332
- },
333
- {
334
- tableCells: [
335
- getCell('', '', 1, 2),
336
- getCell('', '', 1, 2),
337
- getCell('', '', 1, 2),
338
- getCell('', '', 1, 2),
339
- getCell('', '', 1, 2),
340
- getCell('', '', 1, 2),
341
- getCell('', '', 1, 2),
342
- getCell('', '', 2, 2),
343
- getCell('', 'Tested', 2),
344
- getCell('', '', 2),
345
- getCell(),
346
- ],
347
- },
348
- {
349
- tableCells: [, , , , , , , , getCell('', 'Positive', 2), getCell('', '', 2), getCell()],
350
- },
351
- {
352
- tableCells: [
353
- getCell('', 'No of CSF Sub-Typed', 1, 2, true),
354
- getCell('', '+ve NmA', 1, 2, true),
355
- getCell('', '+ve NmB', 1, 2, true),
356
- getCell('', '+ve NmC', 1, 2, true),
357
- getCell('', '+ve NmW 135', 1, 2, true),
358
- getCell('', '+ve NmX', 1, 2, true),
359
- getCell('', '+ve NmY', 1, 2, true),
360
- getCell('', 'Indeterminate', 1, 2, true),
361
- getCell('', 'Hib', 1, 2, true),
362
- getCell('', 'Typhoid', 2, 2, true),
363
- getCell('', '< 5 years', 2, 2),
364
- getCell('', '≥ 5 years', 1, 2),
365
- ],
366
- },
367
- {
368
- tableCells: [,],
369
- },
370
- {
147
+ /* The printed form totals Tested/Positive across the two age bands; the
148
+ aggregate only carries the band columns, so the totals sum them here.
149
+ String(0) stays truthy so zero totals still print; a missing flag keeps
150
+ the cell blank rather than printing a misleading 0. */
151
+ const bandedTotal = (flag: string) => {
152
+ if (!flag) {
153
+ return '';
154
+ }
155
+ const under5 = Number(moh505Data[`${BAND_UNDER_5}${flag}`] ?? 0);
156
+ const fiveAndAbove = Number(moh505Data[`${BAND_5_AND_ABOVE}${flag}`] ?? 0);
157
+ return String(under5 + fiveAndAbove);
158
+ };
159
+
160
+ /** Tested/Positive rows for a 7-column lab block: <5, ≥5, Total, twice */
161
+ const labRow = (label: string, first: string, second: string) => ({
162
+ tableCells: [
163
+ getCell('', label),
164
+ getCell(first ? `${BAND_UNDER_5}${first}` : '', ''),
165
+ getCell(first ? `${BAND_5_AND_ABOVE}${first}` : '', ''),
166
+ getCell('', bandedTotal(first)),
167
+ getCell(second ? `${BAND_UNDER_5}${second}` : '', ''),
168
+ getCell(second ? `${BAND_5_AND_ABOVE}${second}` : '', ''),
169
+ getCell('', bandedTotal(second)),
170
+ ],
171
+ });
172
+
173
+ /* Malaria block: the mRDT half has its own flags, so it binds directly */
174
+ const malariaRow = (kind: 'tested' | 'positive') => {
175
+ const suffix = kind === 'tested' ? 'malaria_microscopy_tested' : 'malaria_microscopy_positive';
176
+ const mrdt = kind === 'tested' ? 'malaria_mrdt_tested' : 'malaria_mrdt_positive';
177
+ return {
371
178
  tableCells: [
372
- getCell('', '', 1, 2),
373
- getCell('', '', 1, 2),
374
- getCell('', '', 1, 2),
375
- getCell('', '', 1, 2),
376
- getCell('', '', 1, 2),
377
- getCell('', '', 1, 2),
378
- getCell('', '', 1, 2),
379
- getCell('', '', 1, 2),
380
- getCell('', '', 1, 2),
381
- getCell('', 'Tested', 2),
382
- getCell('', '', 2),
383
- getCell('', '', 1),
179
+ getCell('', kind === 'tested' ? 'Tested' : 'Positive'),
180
+ getCell(`${BAND_UNDER_5}${suffix}`),
181
+ getCell(`${BAND_5_AND_ABOVE}${suffix}`),
182
+ getCell('', bandedTotal(suffix)),
183
+ getCell(`${BAND_UNDER_5}${mrdt}`),
184
+ getCell(`${BAND_5_AND_ABOVE}${mrdt}`),
185
+ getCell('', bandedTotal(mrdt)),
384
186
  ],
385
- },
386
- {
387
- tableCells: [, , , , , , , , , getCell('', 'Positive', 2, 1), getCell('', '', 2, 1), getCell('', '', 1, 1)],
388
- },
389
- {
390
- tableCells: [,],
391
- },
392
- ];
187
+ };
188
+ };
189
+
190
+ const drillDownProps = {
191
+ data: moh505Data,
192
+ locationUuids: filters.locationUuids,
193
+ startDate: filters.startDate,
194
+ endDate: filters.endDate,
195
+ report: 'moh-505',
196
+ };
197
+
198
+ const diseaseBodyRows = diseases.map((left, i) => diseaseRow(left, diseasesRight[i]));
393
199
 
394
200
  return (
395
201
  <>
@@ -408,17 +214,169 @@ const Moh505Report: React.FC = () => {
408
214
  <ReportPage>
409
215
  <div className={styles.sheet}>
410
216
  <MOH505Header facility={facility} startDate={filters.startDate} endDate={filters.endDate} />
217
+
218
+ <TableWrapper>
219
+ <TableRowMapper tableRows={diseaseHeaderRows} />
220
+ <TableRowMapper {...drillDownProps} tableRows={diseaseBodyRows} />
221
+ </TableWrapper>
222
+
223
+ <div className={styles.sectionGap} />
224
+
225
+ <TableWrapper>
226
+ <TableRowMapper
227
+ tableRows={[
228
+ {
229
+ tableCells: [
230
+ getCell('', 'Disease', 1, 1, true),
231
+ getCell('', 'Malaria — Microscopy', 3, 1, true),
232
+ getCell('', 'Malaria — mRDT', 3, 1, true),
233
+ ],
234
+ },
235
+ {
236
+ tableCells: [
237
+ getCell('', '', 1, 1, true),
238
+ getCell('', '<5 yrs', 1, 1, true),
239
+ getCell('', '≥5 yrs', 1, 1, true),
240
+ getCell('', 'Total', 1, 1, true),
241
+ getCell('', '<5 yrs', 1, 1, true),
242
+ getCell('', '≥5 yrs', 1, 1, true),
243
+ getCell('', 'Total', 1, 1, true),
244
+ ],
245
+ },
246
+ malariaRow('tested'),
247
+ malariaRow('positive'),
248
+ ]}
249
+ />
250
+ </TableWrapper>
251
+
252
+ <div className={styles.sectionGap} />
253
+
254
+ <TableWrapper>
255
+ <TableRowMapper
256
+ tableRows={[
257
+ {
258
+ tableCells: [
259
+ getCell('', 'Disease', 1, 1, true),
260
+ getCell('', 'Shigella Dysentery', 3, 1, true),
261
+ getCell('', 'Typhoid — Laboratory diagnosis', 3, 1, true),
262
+ ],
263
+ },
264
+ {
265
+ tableCells: [
266
+ getCell('', '', 1, 1, true),
267
+ getCell('', '<5 yrs', 1, 1, true),
268
+ getCell('', '≥5 yrs', 1, 1, true),
269
+ getCell('', 'Total', 1, 1, true),
270
+ getCell('', '<5 yrs', 1, 1, true),
271
+ getCell('', '≥5 yrs', 1, 1, true),
272
+ getCell('', 'Total', 1, 1, true),
273
+ ],
274
+ },
275
+ /* Shigella dysentery has no lab concepts in the flat table
276
+ yet; typhoid binds its lab tested/positive flags. */
277
+ labRow('Tested', '', 'typhoid_lab_tested'),
278
+ labRow('Positive', '', 'typhoid_lab_positive'),
279
+ ]}
280
+ />
281
+ </TableWrapper>
282
+
283
+ <div className={styles.sectionGap} />
284
+
285
+ <TableWrapper>
286
+ <TableRowMapper
287
+ tableRows={[
288
+ {
289
+ tableCells: [
290
+ getCell('', 'Bacterial Meningitis (CSF)', 1, 1, true),
291
+ getCell('', 'No CSF', 1, 1, true),
292
+ getCell('', 'No contaminated', 1, 1, true),
293
+ getCell('', 'No Tested', 1, 1, true),
294
+ getCell('', '+ve Nm', 1, 1, true),
295
+ getCell('', '+ve Sp', 1, 1, true),
296
+ getCell('', '+ve H. influenza', 2, 1, true),
297
+ ],
298
+ },
299
+ {
300
+ /* Only "No CSF" has a captured concept so far; the rest
301
+ print blank until the CSF block concepts exist. */
302
+ tableCells: [
303
+ getCell('', 'CSF results'),
304
+ getCell('', bandedTotal('meningitis_no_csf')),
305
+ getCell('', ''),
306
+ getCell('', ''),
307
+ getCell('', ''),
308
+ getCell('', ''),
309
+ getCell('', '', 2),
310
+ ],
311
+ },
312
+ ]}
313
+ />
314
+ </TableWrapper>
315
+
316
+ <div className={styles.sectionGap} />
317
+
411
318
  <TableWrapper>
412
319
  <TableRowMapper
413
- tableRows={tableRows}
414
- data={moh505Data}
415
- locationUuids={filters.locationUuids}
416
- startDate={filters.startDate}
417
- endDate={filters.endDate}
418
- report="moh-505"
320
+ tableRows={[
321
+ {
322
+ tableCells: [
323
+ getCell('', 'No of CSF Sub-Typed', 1, 1, true),
324
+ getCell('', '+ve NmA', 1, 1, true),
325
+ getCell('', '+ve NmB', 1, 1, true),
326
+ getCell('', '+ve NmC', 1, 1, true),
327
+ getCell('', '+ve NmW 135', 1, 1, true),
328
+ getCell('', '+ve NmX', 1, 1, true),
329
+ getCell('', '+ve NmY', 1, 1, true),
330
+ getCell('', 'Indeterminate', 1, 1, true),
331
+ ],
332
+ },
333
+ {
334
+ /* CSF sub-typing has no captured concepts yet */
335
+ tableCells: [
336
+ getCell('', ''),
337
+ getCell('', ''),
338
+ getCell('', ''),
339
+ getCell('', ''),
340
+ getCell('', ''),
341
+ getCell('', ''),
342
+ getCell('', ''),
343
+ getCell('', ''),
344
+ ],
345
+ },
346
+ ]}
419
347
  />
420
348
  </TableWrapper>
421
349
 
350
+ <div className={styles.sectionGap} />
351
+
352
+ <TableWrapper>
353
+ <TableRowMapper
354
+ tableRows={[
355
+ {
356
+ tableCells: [
357
+ getCell('', 'Tuberculosis (MDR/XDR)', 1, 1, true),
358
+ getCell('', '< 5 years', 1, 1, true),
359
+ getCell('', '≥ 5 years', 1, 1, true),
360
+ ],
361
+ },
362
+ {
363
+ /* TB MDR/XDR has no captured concepts yet */
364
+ tableCells: [getCell('', 'Tested'), getCell('', ''), getCell('', '')],
365
+ },
366
+ {
367
+ tableCells: [getCell('', 'Positive'), getCell('', ''), getCell('', '')],
368
+ },
369
+ ]}
370
+ />
371
+ </TableWrapper>
372
+
373
+ <p className={styles.notes}>
374
+ *AEFI: Adverse Events Following Immunisation &nbsp;|&nbsp; **AFP: Acute Flaccid Paralysis &nbsp;|&nbsp;
375
+ ***Suspected malaria includes OPD and IPD cases. &nbsp;|&nbsp; ****Deaths due to malaria include all ages.
376
+ &nbsp;|&nbsp; *****SARI cluster: three or more cases in the same week. &nbsp;|&nbsp; ******VHF: Viral
377
+ Haemorrhagic Fever. &nbsp;|&nbsp; *******Specify other diseases/conditions not listed above.
378
+ </p>
379
+
422
380
  <div className={styles.signOff}>
423
381
  <span>
424
382
  Compiled by:<span className={styles.line}>{compiledBy}</span>
@@ -73,6 +73,20 @@ $pad: 3mm;
73
73
  }
74
74
  }
75
75
 
76
+ /* The printed form's blank strip between the table sections */
77
+ .sectionGap {
78
+ height: 1.8mm;
79
+ }
80
+
81
+ /* The asterisked footnotes under the last table */
82
+ .notes {
83
+ margin: 1.4mm 0 0;
84
+ padding: 0;
85
+ font-size: 5.8pt;
86
+ line-height: 1.3;
87
+ text-align: left;
88
+ }
89
+
76
90
  /* Sign-off, enclosed by the form */
77
91
 
78
92
  .signOff {