@ampath/esm-reports-app 1.0.0-next.92 → 1.0.0-next.94
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/410.js +1 -1
- package/dist/410.js.map +1 -1
- package/dist/8.css.map +1 -0
- package/dist/8.js +1 -0
- package/dist/8.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/package.json +1 -1
- package/src/common/report-filters/use-restore-period.ts +14 -4
- package/src/common/report-register/register-layout.component.tsx +1 -0
- package/src/reports/moh-705B/linelist/moh-705b-linelist.component.tsx +78 -0
- package/src/reports/moh-705B/moh-204b-register.component.tsx +1 -1
- package/src/reports/moh-705B/moh-705b.component.tsx +79 -79
- package/src/reports/moh-705a/linelist/moh-705a-linelist.component.tsx +84 -0
- package/src/reports/moh-705a/moh-705a.component.tsx +80 -80
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +1 -1
- package/src/reports/moh-711/linelist/moh-711-anc-linelist.component.tsx +3 -2
- package/src/reports/moh-711/linelist/moh-711-maternity-linelist.component.tsx +3 -2
- package/src/reports/moh-711/linelist/moh-711-pnc-linelist.component.tsx +3 -2
- package/src/reports/moh-717/sections/maternity.component.tsx +9 -11
- package/src/reports/moh-717/sections/outpatient.component.tsx +41 -43
- package/src/resources/moh-705.resource.ts +2 -0
- package/src/resources/moh-711.resource.ts +3 -3
- package/src/root.component.tsx +4 -0
- package/dist/325.css.map +0 -1
- package/dist/325.js +0 -1
- package/dist/325.js.map +0 -1
- /package/dist/{325.css → 8.css} +0 -0
|
@@ -136,16 +136,16 @@ const Moh705BComponent: React.FC = () => {
|
|
|
136
136
|
placeholder. */
|
|
137
137
|
useRestorePeriod(fetchMoh705bReportData);
|
|
138
138
|
|
|
139
|
-
const
|
|
139
|
+
const openLinelist = (indicator: string, day?: number) => {
|
|
140
140
|
const selectedDate = day ? dayjs(startDate).startOf('month').date(day) : undefined;
|
|
141
141
|
if (selectedDate && day && day > dayjs(startDate).daysInMonth()) {
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
const
|
|
144
|
+
const listStartDate = selectedDate?.format('YYYY-MM-DD') ?? startDate;
|
|
145
|
+
const listEndDate = selectedDate?.format('YYYY-MM-DD') ?? endDate;
|
|
146
146
|
|
|
147
147
|
navigate(
|
|
148
|
-
`/moh-
|
|
148
|
+
`/moh-705b-linelist?startDate=${listStartDate}&endDate=${listEndDate}&locationUuids=${locationUuids}&indicator=${indicator}&from=moh-705b`,
|
|
149
149
|
);
|
|
150
150
|
};
|
|
151
151
|
|
|
@@ -215,425 +215,425 @@ const Moh705BComponent: React.FC = () => {
|
|
|
215
215
|
<tr>
|
|
216
216
|
<td>1</td>
|
|
217
217
|
<td>Diarrhoea</td>
|
|
218
|
-
<td onClick={() =>
|
|
218
|
+
<td onClick={() => openLinelist('diarrhoea')}>{moh705bData.diarrhoea}</td>
|
|
219
219
|
</tr>
|
|
220
220
|
<tr>
|
|
221
221
|
<td>2</td>
|
|
222
222
|
<td>Tuberculosis</td>
|
|
223
|
-
<td onClick={() =>
|
|
223
|
+
<td onClick={() => openLinelist('tuberculosis')}>{moh705bData.tuberculosis}</td>
|
|
224
224
|
</tr>
|
|
225
225
|
<tr>
|
|
226
226
|
<td>3</td>
|
|
227
227
|
<td>Dysentry (Bloody diarrhoea)</td>
|
|
228
|
-
<td onClick={() =>
|
|
228
|
+
<td onClick={() => openLinelist('dysentry')}>{moh705bData.dysentry}</td>
|
|
229
229
|
</tr>
|
|
230
230
|
<tr>
|
|
231
231
|
<td>4</td>
|
|
232
232
|
<td>Cholera</td>
|
|
233
|
-
<td onClick={() =>
|
|
233
|
+
<td onClick={() => openLinelist('cholera')}>{moh705bData.cholera}</td>
|
|
234
234
|
</tr>
|
|
235
235
|
<tr>
|
|
236
236
|
<td>5</td>
|
|
237
237
|
<td>Meningococcal Meningitis</td>
|
|
238
|
-
<td onClick={() =>
|
|
238
|
+
<td onClick={() => openLinelist('meningococcal_meningitis')}>
|
|
239
239
|
{moh705bData.meningococcal_meningitis}
|
|
240
240
|
</td>
|
|
241
241
|
</tr>
|
|
242
242
|
<tr>
|
|
243
243
|
<td>6</td>
|
|
244
244
|
<td>Other Meningitis</td>
|
|
245
|
-
<td onClick={() =>
|
|
245
|
+
<td onClick={() => openLinelist('other_meningitis')}>{moh705bData.other_meningitis}</td>
|
|
246
246
|
</tr>
|
|
247
247
|
<tr>
|
|
248
248
|
<td>7</td>
|
|
249
249
|
<td>Tetanus</td>
|
|
250
|
-
<td onClick={() =>
|
|
250
|
+
<td onClick={() => openLinelist('tetanus')}>{moh705bData.tetanus}</td>
|
|
251
251
|
</tr>
|
|
252
252
|
<tr>
|
|
253
253
|
<td>8</td>
|
|
254
254
|
<td>Poliomyelitis (AFP)</td>
|
|
255
|
-
<td onClick={() =>
|
|
255
|
+
<td onClick={() => openLinelist('poliomyelitis')}>{moh705bData.poliomyelitis}</td>
|
|
256
256
|
</tr>
|
|
257
257
|
<tr>
|
|
258
258
|
<td>9</td>
|
|
259
259
|
<td>Chicken Pox</td>
|
|
260
|
-
<td onClick={() =>
|
|
260
|
+
<td onClick={() => openLinelist('chicken_pox')}>{moh705bData.chicken_pox}</td>
|
|
261
261
|
</tr>
|
|
262
262
|
<tr>
|
|
263
263
|
<td>10</td>
|
|
264
264
|
<td>Measles</td>
|
|
265
|
-
<td onClick={() =>
|
|
265
|
+
<td onClick={() => openLinelist('measles')}>{moh705bData.measles}</td>
|
|
266
266
|
</tr>
|
|
267
267
|
<tr>
|
|
268
268
|
<td>11</td>
|
|
269
269
|
<td>Hepatitis</td>
|
|
270
|
-
<td onClick={() =>
|
|
270
|
+
<td onClick={() => openLinelist('hepatitis')}>{moh705bData.hepatitis}</td>
|
|
271
271
|
</tr>
|
|
272
272
|
<tr>
|
|
273
273
|
<td>12</td>
|
|
274
274
|
<td>Mumps</td>
|
|
275
|
-
<td onClick={() =>
|
|
275
|
+
<td onClick={() => openLinelist('mumps')}>{moh705bData.mumps}</td>
|
|
276
276
|
</tr>
|
|
277
277
|
<tr>
|
|
278
278
|
<td>13</td>
|
|
279
279
|
<td>Suspected Malaria</td>
|
|
280
|
-
<td onClick={() =>
|
|
280
|
+
<td onClick={() => openLinelist('suspected_malaria')}>{moh705bData.suspected_malaria}</td>
|
|
281
281
|
</tr>
|
|
282
282
|
<tr>
|
|
283
283
|
<td>14</td>
|
|
284
284
|
<td>Confirmed Malaria</td>
|
|
285
|
-
<td onClick={() =>
|
|
285
|
+
<td onClick={() => openLinelist('confirmed_malaria')}>{moh705bData.confirmed_malaria}</td>
|
|
286
286
|
</tr>
|
|
287
287
|
<tr>
|
|
288
288
|
<td>15</td>
|
|
289
289
|
<td>Malaria in Pregnancy</td>
|
|
290
|
-
<td onClick={() =>
|
|
290
|
+
<td onClick={() => openLinelist('malaria_in_pregnancy')}>
|
|
291
291
|
{moh705bData.malaria_in_pregnancy}
|
|
292
292
|
</td>
|
|
293
293
|
</tr>
|
|
294
294
|
<tr>
|
|
295
295
|
<td>16</td>
|
|
296
296
|
<td>Amoebiasis</td>
|
|
297
|
-
<td onClick={() =>
|
|
297
|
+
<td onClick={() => openLinelist('amoebiasis')}>{moh705bData.amoebiasis}</td>
|
|
298
298
|
</tr>
|
|
299
299
|
<tr>
|
|
300
300
|
<td>17</td>
|
|
301
301
|
<td>Typhoid fever</td>
|
|
302
|
-
<td onClick={() =>
|
|
302
|
+
<td onClick={() => openLinelist('typhoid_fever')}>{moh705bData.typhoid_fever}</td>
|
|
303
303
|
</tr>
|
|
304
304
|
<tr>
|
|
305
305
|
<td>18</td>
|
|
306
306
|
<td>Sexually Transmitted Infections</td>
|
|
307
|
-
<td onClick={() =>
|
|
307
|
+
<td onClick={() => openLinelist('sexually_transmitted_infections')}>
|
|
308
308
|
{moh705bData.sexually_transmitted_infections}
|
|
309
309
|
</td>
|
|
310
310
|
</tr>
|
|
311
311
|
<tr>
|
|
312
312
|
<td>19</td>
|
|
313
313
|
<td>Urinary Tract Infections</td>
|
|
314
|
-
<td onClick={() =>
|
|
314
|
+
<td onClick={() => openLinelist('urinary_tract_infections')}>
|
|
315
315
|
{moh705bData.urinary_tract_infections}
|
|
316
316
|
</td>
|
|
317
317
|
</tr>
|
|
318
318
|
<tr>
|
|
319
319
|
<td>20</td>
|
|
320
320
|
<td>Bilharzia (Schistosomiasis)</td>
|
|
321
|
-
<td onClick={() =>
|
|
321
|
+
<td onClick={() => openLinelist('bilharzia')}>{moh705bData.bilharzia}</td>
|
|
322
322
|
</tr>
|
|
323
323
|
<tr>
|
|
324
324
|
<td>21</td>
|
|
325
325
|
<td>Intestinal worms</td>
|
|
326
|
-
<td onClick={() =>
|
|
326
|
+
<td onClick={() => openLinelist('intestinal_worms')}>{moh705bData.intestinal_worms}</td>
|
|
327
327
|
</tr>
|
|
328
328
|
<tr>
|
|
329
329
|
<td>22</td>
|
|
330
330
|
<td>Malnutrition</td>
|
|
331
|
-
<td onClick={() =>
|
|
331
|
+
<td onClick={() => openLinelist('malnutrition')}>{moh705bData.malnutrition}</td>
|
|
332
332
|
</tr>
|
|
333
333
|
<tr>
|
|
334
334
|
<td>23</td>
|
|
335
335
|
<td>Anaemia</td>
|
|
336
|
-
<td onClick={() =>
|
|
336
|
+
<td onClick={() => openLinelist('anaemia')}>{moh705bData.anaemia}</td>
|
|
337
337
|
</tr>
|
|
338
338
|
<tr>
|
|
339
339
|
<td>24</td>
|
|
340
340
|
<td>Eye Infections/Conditions</td>
|
|
341
|
-
<td onClick={() =>
|
|
341
|
+
<td onClick={() => openLinelist('eye_infections')}>{moh705bData.eye_infections}</td>
|
|
342
342
|
</tr>
|
|
343
343
|
<tr>
|
|
344
344
|
<td>25</td>
|
|
345
345
|
<td>Ear Infections/Conditions</td>
|
|
346
|
-
<td onClick={() =>
|
|
346
|
+
<td onClick={() => openLinelist('ear_infections')}>{moh705bData.ear_infections}</td>
|
|
347
347
|
</tr>
|
|
348
348
|
<tr>
|
|
349
349
|
<td>26</td>
|
|
350
350
|
<td>Upper Respiratory Tract Infections </td>
|
|
351
|
-
<td onClick={() =>
|
|
351
|
+
<td onClick={() => openLinelist('upper_respiratory_tract_infections')}>
|
|
352
352
|
{moh705bData.upper_respiratory_tract_infections}
|
|
353
353
|
</td>
|
|
354
354
|
</tr>
|
|
355
355
|
<tr>
|
|
356
356
|
<td>27</td>
|
|
357
357
|
<td>Asthma</td>
|
|
358
|
-
<td onClick={() =>
|
|
358
|
+
<td onClick={() => openLinelist('asthma')}>{moh705bData.asthma}</td>
|
|
359
359
|
</tr>
|
|
360
360
|
<tr>
|
|
361
361
|
<td>28</td>
|
|
362
362
|
<td>Pneumonia</td>
|
|
363
|
-
<td onClick={() =>
|
|
363
|
+
<td onClick={() => openLinelist('pneumonia')}>{moh705bData.pneumonia}</td>
|
|
364
364
|
</tr>
|
|
365
365
|
<tr>
|
|
366
366
|
<td>29</td>
|
|
367
367
|
<td>Other Lower Respiratory tract infections</td>
|
|
368
|
-
<td onClick={() =>
|
|
368
|
+
<td onClick={() => openLinelist('other_lower_respiratory_tract_infections')}>
|
|
369
369
|
{moh705bData.other_lower_respiratory_tract_infections}
|
|
370
370
|
</td>
|
|
371
371
|
</tr>
|
|
372
372
|
<tr>
|
|
373
373
|
<td>30</td>
|
|
374
374
|
<td>Abortion</td>
|
|
375
|
-
<td onClick={() =>
|
|
375
|
+
<td onClick={() => openLinelist('abortion')}>{moh705bData.abortion}</td>
|
|
376
376
|
</tr>
|
|
377
377
|
<tr>
|
|
378
378
|
<td>31</td>
|
|
379
379
|
<td>Dis. of Puerperium & Childbirth</td>
|
|
380
|
-
<td onClick={() =>
|
|
380
|
+
<td onClick={() => openLinelist('puerperium_childbirth')}>
|
|
381
381
|
{moh705bData.puerperium_childbirth}
|
|
382
382
|
</td>
|
|
383
383
|
</tr>
|
|
384
384
|
<tr>
|
|
385
385
|
<td>32</td>
|
|
386
386
|
<td>Hypertension</td>
|
|
387
|
-
<td onClick={() =>
|
|
387
|
+
<td onClick={() => openLinelist('hypertention')}>{moh705bData.hypertention}</td>
|
|
388
388
|
</tr>
|
|
389
389
|
<tr>
|
|
390
390
|
<td>33</td>
|
|
391
391
|
<td>Mental Disorders</td>
|
|
392
|
-
<td onClick={() =>
|
|
392
|
+
<td onClick={() => openLinelist('mental_disorders')}>{moh705bData.mental_disorders}</td>
|
|
393
393
|
</tr>
|
|
394
394
|
<tr>
|
|
395
395
|
<td>34</td>
|
|
396
396
|
<td>Dental Disorders</td>
|
|
397
|
-
<td onClick={() =>
|
|
397
|
+
<td onClick={() => openLinelist('dental_disorders')}>{moh705bData.dental_disorders}</td>
|
|
398
398
|
</tr>
|
|
399
399
|
<tr>
|
|
400
400
|
<td>35</td>
|
|
401
401
|
<td>Jiggers Infestation</td>
|
|
402
|
-
<td onClick={() =>
|
|
402
|
+
<td onClick={() => openLinelist('jiggers_infestation')}>
|
|
403
403
|
{moh705bData.jiggers_infestation}
|
|
404
404
|
</td>
|
|
405
405
|
</tr>
|
|
406
406
|
<tr>
|
|
407
407
|
<td>36</td>
|
|
408
408
|
<td>Disease of the skin</td>
|
|
409
|
-
<td onClick={() =>
|
|
409
|
+
<td onClick={() => openLinelist('diseases_of_the_skin')}>
|
|
410
410
|
{moh705bData.diseases_of_the_skin}
|
|
411
411
|
</td>
|
|
412
412
|
</tr>
|
|
413
413
|
<tr>
|
|
414
414
|
<td>37</td>
|
|
415
415
|
<td>Athritis, Joint pains etc.</td>
|
|
416
|
-
<td onClick={() =>
|
|
416
|
+
<td onClick={() => openLinelist('athritis')}>{moh705bData.athritis}</td>
|
|
417
417
|
</tr>
|
|
418
418
|
<tr>
|
|
419
419
|
<td>38</td>
|
|
420
420
|
<td>Poisoning</td>
|
|
421
|
-
<td onClick={() =>
|
|
421
|
+
<td onClick={() => openLinelist('poisoning')}>{moh705bData.poisoning}</td>
|
|
422
422
|
</tr>
|
|
423
423
|
<tr>
|
|
424
424
|
<td>39</td>
|
|
425
425
|
<td>Road Traffic Injuries</td>
|
|
426
|
-
<td onClick={() =>
|
|
426
|
+
<td onClick={() => openLinelist('road_traffic_injuries')}>
|
|
427
427
|
{moh705bData.road_traffic_injuries}
|
|
428
428
|
</td>
|
|
429
429
|
</tr>
|
|
430
430
|
<tr>
|
|
431
431
|
<td>40</td>
|
|
432
432
|
<td>Deaths due to Road Traffic Injuries</td>
|
|
433
|
-
<td onClick={() =>
|
|
433
|
+
<td onClick={() => openLinelist('deaths_due_to_road_traffic_injuries')}>
|
|
434
434
|
{moh705bData.deaths_due_to_road_traffic_injuries}
|
|
435
435
|
</td>
|
|
436
436
|
</tr>
|
|
437
437
|
<tr>
|
|
438
438
|
<td>41</td>
|
|
439
439
|
<td>Other Injuries</td>
|
|
440
|
-
<td onClick={() =>
|
|
440
|
+
<td onClick={() => openLinelist('other_injuries')}>{moh705bData.other_injuries}</td>
|
|
441
441
|
</tr>
|
|
442
442
|
<tr>
|
|
443
443
|
<td>42</td>
|
|
444
444
|
<td>Sexual Violence</td>
|
|
445
|
-
<td onClick={() =>
|
|
445
|
+
<td onClick={() => openLinelist('sexual_violence')}>{moh705bData.sexual_violence}</td>
|
|
446
446
|
</tr>
|
|
447
447
|
<tr>
|
|
448
448
|
<td>43</td>
|
|
449
449
|
<td>Violence related Injuries</td>
|
|
450
|
-
<td onClick={() =>
|
|
450
|
+
<td onClick={() => openLinelist('violence_related_injuries')}>
|
|
451
451
|
{moh705bData.violence_related_injuries}
|
|
452
452
|
</td>
|
|
453
453
|
</tr>
|
|
454
454
|
<tr>
|
|
455
455
|
<td>44</td>
|
|
456
456
|
<td>Burns</td>
|
|
457
|
-
<td onClick={() =>
|
|
457
|
+
<td onClick={() => openLinelist('burns')}>{moh705bData.burns}</td>
|
|
458
458
|
</tr>
|
|
459
459
|
<tr>
|
|
460
460
|
<td>45</td>
|
|
461
461
|
<td>Snake Bites</td>
|
|
462
|
-
<td onClick={() =>
|
|
462
|
+
<td onClick={() => openLinelist('snake_bites')}>{moh705bData.snake_bites}</td>
|
|
463
463
|
</tr>
|
|
464
464
|
<tr>
|
|
465
465
|
<td>46</td>
|
|
466
466
|
<td>Dog Bites</td>
|
|
467
|
-
<td onClick={() =>
|
|
467
|
+
<td onClick={() => openLinelist('dog_bites')}>{moh705bData.dog_bites}</td>
|
|
468
468
|
</tr>
|
|
469
469
|
<tr>
|
|
470
470
|
<td>47</td>
|
|
471
471
|
<td>Other Bites</td>
|
|
472
|
-
<td onClick={() =>
|
|
472
|
+
<td onClick={() => openLinelist('other_bites')}>{moh705bData.other_bites}</td>
|
|
473
473
|
</tr>
|
|
474
474
|
<tr>
|
|
475
475
|
<td>48</td>
|
|
476
476
|
<td>Diabetes</td>
|
|
477
|
-
<td onClick={() =>
|
|
477
|
+
<td onClick={() => openLinelist('diabetes')}>{moh705bData.diabetes}</td>
|
|
478
478
|
</tr>
|
|
479
479
|
<tr>
|
|
480
480
|
<td>49</td>
|
|
481
481
|
<td>Epilepsy</td>
|
|
482
|
-
<td onClick={() =>
|
|
482
|
+
<td onClick={() => openLinelist('epilepsy')}>{moh705bData.epilepsy}</td>
|
|
483
483
|
</tr>
|
|
484
484
|
<tr>
|
|
485
485
|
<td>50</td>
|
|
486
486
|
<td>Brucellosis</td>
|
|
487
|
-
<td onClick={() =>
|
|
487
|
+
<td onClick={() => openLinelist('brucellosis')}>{moh705bData.brucellosis}</td>
|
|
488
488
|
</tr>
|
|
489
489
|
<tr>
|
|
490
490
|
<td>51</td>
|
|
491
491
|
<td>Cardiovascular conditions</td>
|
|
492
|
-
<td onClick={() =>
|
|
492
|
+
<td onClick={() => openLinelist('cardiovascular_conditions')}>
|
|
493
493
|
{moh705bData.cardiovascular_conditions}
|
|
494
494
|
</td>
|
|
495
495
|
</tr>
|
|
496
496
|
<tr>
|
|
497
497
|
<td>52</td>
|
|
498
498
|
<td>Central Nervous System Conditions</td>
|
|
499
|
-
<td onClick={() =>
|
|
499
|
+
<td onClick={() => openLinelist('central_nervous_system_conditions')}>
|
|
500
500
|
{moh705bData.central_nervous_system_conditions}
|
|
501
501
|
</td>
|
|
502
502
|
</tr>
|
|
503
503
|
<tr>
|
|
504
504
|
<td>53</td>
|
|
505
505
|
<td>Overweight (BMI > 25)</td>
|
|
506
|
-
<td onClick={() =>
|
|
506
|
+
<td onClick={() => openLinelist('overweight')}>{moh705bData.overweight}</td>
|
|
507
507
|
</tr>
|
|
508
508
|
<tr>
|
|
509
509
|
<td>54</td>
|
|
510
510
|
<td>Muscular skeletal conditions</td>
|
|
511
|
-
<td onClick={() =>
|
|
511
|
+
<td onClick={() => openLinelist('mascular_skeletal_conditions')}>
|
|
512
512
|
{moh705bData.mascular_skeletal_conditions}
|
|
513
513
|
</td>
|
|
514
514
|
</tr>
|
|
515
515
|
<tr>
|
|
516
516
|
<td>55</td>
|
|
517
517
|
<td>Fistula (Birth related)</td>
|
|
518
|
-
<td onClick={() =>
|
|
518
|
+
<td onClick={() => openLinelist('fistula')}>{moh705bData.fistula}</td>
|
|
519
519
|
</tr>
|
|
520
520
|
<tr>
|
|
521
521
|
<td>56</td>
|
|
522
522
|
<td>Suspected Neoplams/Cancers</td>
|
|
523
|
-
<td onClick={() =>
|
|
523
|
+
<td onClick={() => openLinelist('suspected_neoplams_cancers')}>
|
|
524
524
|
{moh705bData.suspected_neoplams_cancers}
|
|
525
525
|
</td>
|
|
526
526
|
</tr>
|
|
527
527
|
<tr>
|
|
528
528
|
<td>57</td>
|
|
529
529
|
<td>Physical Disability</td>
|
|
530
|
-
<td onClick={() =>
|
|
530
|
+
<td onClick={() => openLinelist('physical_disability')}>
|
|
531
531
|
{moh705bData.physical_disability}
|
|
532
532
|
</td>
|
|
533
533
|
</tr>
|
|
534
534
|
<tr>
|
|
535
535
|
<td>58</td>
|
|
536
536
|
<td>Trypanosomiasis</td>
|
|
537
|
-
<td onClick={() =>
|
|
537
|
+
<td onClick={() => openLinelist('trypanosomiasis')}>{moh705bData.trypanosomiasis}</td>
|
|
538
538
|
</tr>
|
|
539
539
|
<tr>
|
|
540
540
|
<td>59</td>
|
|
541
541
|
<td>Rift valley fever</td>
|
|
542
|
-
<td onClick={() =>
|
|
542
|
+
<td onClick={() => openLinelist('rift_valley_fever')}>{moh705bData.rift_valley_fever}</td>
|
|
543
543
|
</tr>
|
|
544
544
|
<tr>
|
|
545
545
|
<td>60</td>
|
|
546
546
|
<td>Yellow Fever</td>
|
|
547
|
-
<td onClick={() =>
|
|
547
|
+
<td onClick={() => openLinelist('yellow_fever')}>{moh705bData.yellow_fever}</td>
|
|
548
548
|
</tr>
|
|
549
549
|
<tr>
|
|
550
550
|
<td>61</td>
|
|
551
551
|
<td>Viral Haemorrhagic Fever</td>
|
|
552
|
-
<td onClick={() =>
|
|
552
|
+
<td onClick={() => openLinelist('viral_haemorrhagic_fever')}>
|
|
553
553
|
{moh705bData.viral_haemorrhagic_fever}
|
|
554
554
|
</td>
|
|
555
555
|
</tr>
|
|
556
556
|
<tr>
|
|
557
557
|
<td>62</td>
|
|
558
558
|
<td>Chikungunya</td>
|
|
559
|
-
<td onClick={() =>
|
|
559
|
+
<td onClick={() => openLinelist('chikungunya')}>{moh705bData.chikungunya}</td>
|
|
560
560
|
</tr>
|
|
561
561
|
<tr>
|
|
562
562
|
<td>63</td>
|
|
563
563
|
<td>Dengue fever</td>
|
|
564
|
-
<td onClick={() =>
|
|
564
|
+
<td onClick={() => openLinelist('dengue_fever')}>{moh705bData.dengue_fever}</td>
|
|
565
565
|
</tr>
|
|
566
566
|
<tr>
|
|
567
567
|
<td>64</td>
|
|
568
568
|
<td>Leishmaniasis(Kala-azar)</td>
|
|
569
|
-
<td onClick={() =>
|
|
569
|
+
<td onClick={() => openLinelist('leishmaniasis')}>{moh705bData.leishmaniasis}</td>
|
|
570
570
|
</tr>
|
|
571
571
|
<tr>
|
|
572
572
|
<td>65</td>
|
|
573
573
|
<td>Cuteneous leishmaniasis</td>
|
|
574
|
-
<td onClick={() =>
|
|
574
|
+
<td onClick={() => openLinelist('cutaneous_leishmaniasis')}>
|
|
575
575
|
{moh705bData.cutaneous_leishmaniasis}
|
|
576
576
|
</td>
|
|
577
577
|
</tr>
|
|
578
578
|
<tr>
|
|
579
579
|
<td>66</td>
|
|
580
580
|
<td>Suspected Anthrax</td>
|
|
581
|
-
<td onClick={() =>
|
|
581
|
+
<td onClick={() => openLinelist('suspected_anthrax')}>{moh705bData.suspected_anthrax}</td>
|
|
582
582
|
</tr>
|
|
583
583
|
<tr>
|
|
584
584
|
<td>67</td>
|
|
585
585
|
<td>ALL OTHER DISEASES</td>
|
|
586
|
-
<td onClick={() =>
|
|
586
|
+
<td onClick={() => openLinelist('all_other_diseases')}>{moh705bData.all_other_diseases}</td>
|
|
587
587
|
</tr>
|
|
588
588
|
<tr>
|
|
589
589
|
<td>68</td>
|
|
590
590
|
<td>Tested for Malaria</td>
|
|
591
|
-
<td onClick={() =>
|
|
591
|
+
<td onClick={() => openLinelist('tested_for_malaria')}>{moh705bData.tested_for_malaria}</td>
|
|
592
592
|
</tr>
|
|
593
593
|
<tr>
|
|
594
594
|
<td>69</td>
|
|
595
595
|
<td>NO. OF FIRST ATTENDANCES</td>
|
|
596
|
-
<td onClick={() =>
|
|
596
|
+
<td onClick={() => openLinelist('no_of_first_attendances')}>
|
|
597
597
|
{moh705bData.no_of_first_attendances}
|
|
598
598
|
</td>
|
|
599
599
|
</tr>
|
|
600
600
|
<tr>
|
|
601
601
|
<td>70</td>
|
|
602
602
|
<td>RE-ATTENDANCES</td>
|
|
603
|
-
<td onClick={() =>
|
|
603
|
+
<td onClick={() => openLinelist('re_attendances')}>{moh705bData.re_attendances}</td>
|
|
604
604
|
</tr>
|
|
605
605
|
<tr>
|
|
606
606
|
<td>71</td>
|
|
607
607
|
<td>Referrals from other health facilities</td>
|
|
608
|
-
<td onClick={() =>
|
|
608
|
+
<td onClick={() => openLinelist('referrals_from_other_health_facility')}>
|
|
609
609
|
{moh705bData.referrals_from_other_health_facility}
|
|
610
610
|
</td>
|
|
611
611
|
</tr>
|
|
612
612
|
<tr>
|
|
613
613
|
<td>72</td>
|
|
614
614
|
<td>Referrals to other health facilities</td>
|
|
615
|
-
<td onClick={() =>
|
|
615
|
+
<td onClick={() => openLinelist('referrals_to_other_health_facility')}>
|
|
616
616
|
{moh705bData.referrals_to_other_health_facility}
|
|
617
617
|
</td>
|
|
618
618
|
</tr>
|
|
619
619
|
<tr>
|
|
620
620
|
<td>73</td>
|
|
621
621
|
<td>Referrals from community unit</td>
|
|
622
|
-
<td onClick={() =>
|
|
622
|
+
<td onClick={() => openLinelist('referrals_from_community_unit')}>
|
|
623
623
|
{moh705bData.referrals_from_community_unit}
|
|
624
624
|
</td>
|
|
625
625
|
</tr>
|
|
626
626
|
<tr>
|
|
627
627
|
<td>74</td>
|
|
628
628
|
<td>Referrals to community unit</td>
|
|
629
|
-
<td onClick={() =>
|
|
629
|
+
<td onClick={() => openLinelist('referrals_to_community_unit')}>
|
|
630
630
|
{moh705bData.referrals_to_community_unit}
|
|
631
631
|
</td>
|
|
632
632
|
</tr>
|
|
633
633
|
</>,
|
|
634
634
|
moh705bData,
|
|
635
635
|
indicators,
|
|
636
|
-
|
|
636
|
+
openLinelist,
|
|
637
637
|
)}
|
|
638
638
|
</tbody>
|
|
639
639
|
</table>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import { useSearchParams } from 'react-router-dom';
|
|
3
|
+
|
|
4
|
+
import { type LinelistColumn, LinelistTable, useAllRows } from '../../../common/linelist-table';
|
|
5
|
+
import { RegisterLayout, useLocationName } from '../../../common/report-register';
|
|
6
|
+
import { getMoh705aPatientList } from '../../../resources/moh-705.resource';
|
|
7
|
+
|
|
8
|
+
const MOH_705A_LINELIST_COLUMNS: LinelistColumn[] = [
|
|
9
|
+
{ header: 'Date', field: 'date' },
|
|
10
|
+
{ header: 'OPD No. (New)', field: 'opd_number_new_visit' },
|
|
11
|
+
{ header: 'OPD No. (Revisit)', field: 'opd_number_return_visit' },
|
|
12
|
+
{ header: 'Referred From', field: 'referred_from' },
|
|
13
|
+
{ header: 'Full Names', field: 'full_names' },
|
|
14
|
+
{ header: 'Age', field: 'age' },
|
|
15
|
+
{ header: 'Sex', field: 'sex' },
|
|
16
|
+
{ header: 'County/Sub-county', field: 'county_sub_county' },
|
|
17
|
+
{ header: 'Village / Estate / Landmark', field: 'village_estate_landmark' },
|
|
18
|
+
{ header: "Parent/Caregiver's Telephone No.", field: 'caregiver_phone_number' },
|
|
19
|
+
{ header: 'Weight (kg)', field: 'weight' },
|
|
20
|
+
{ header: 'Height / Length (cm)', field: 'height' },
|
|
21
|
+
{ header: 'MUAC', field: 'muac' },
|
|
22
|
+
{ header: 'Temp (oC)', field: 'temp' },
|
|
23
|
+
{ header: 'Respiratory Rate', field: 'respiratory_rate' },
|
|
24
|
+
{ header: 'Oxygen Saturation (SPO2)', field: 'oxygen_saturation' },
|
|
25
|
+
{ header: 'Pulse Rate', field: 'pulse_rate' },
|
|
26
|
+
{ header: 'Danger Signs', field: 'danger_signs' },
|
|
27
|
+
{ header: 'Current Illness Duration', field: 'duration_of_illness' },
|
|
28
|
+
{ header: 'Malaria Status', field: 'suspected_malaria_cases' },
|
|
29
|
+
{ header: 'IMNCI Classification / Diagnosis', field: 'diagnosis' },
|
|
30
|
+
{ header: 'Tracer Drugs', field: 'tracer_drugs_prescribed' },
|
|
31
|
+
{ header: 'Other Treatments', field: 'all_other_treatments_prescribed' },
|
|
32
|
+
{ header: 'Immunisation Status Up to Date', field: 'immunization_status_up_to_date' },
|
|
33
|
+
{ header: 'TB Screening', field: 'tb_screening' },
|
|
34
|
+
{ header: 'Nutrition / Dietetics', field: 'nutrition_dietetics' },
|
|
35
|
+
{ header: 'Referred To', field: 'referred_to' },
|
|
36
|
+
{ header: 'Remarks / Outcome', field: 'remarks' },
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const Moh705ALinelist: React.FC = () => {
|
|
40
|
+
const [searchParams] = useSearchParams();
|
|
41
|
+
const startDate = searchParams.get('startDate') ?? '';
|
|
42
|
+
const endDate = searchParams.get('endDate') ?? '';
|
|
43
|
+
const locationUuids = searchParams.get('locationUuids') ?? '';
|
|
44
|
+
const indicator = searchParams.get('indicator') ?? '';
|
|
45
|
+
const from = searchParams.get('from') || undefined;
|
|
46
|
+
const locationName = useLocationName(locationUuids);
|
|
47
|
+
|
|
48
|
+
const fetchPatientList = useCallback(
|
|
49
|
+
({ startIndex, limit }: { startIndex: number; limit: number }) =>
|
|
50
|
+
getMoh705aPatientList({
|
|
51
|
+
startDate: startDate || undefined,
|
|
52
|
+
endDate: endDate || undefined,
|
|
53
|
+
locationUuids,
|
|
54
|
+
...(indicator ? { indicator } : {}),
|
|
55
|
+
reportName: 'moh705aReport',
|
|
56
|
+
startIndex,
|
|
57
|
+
limit,
|
|
58
|
+
from,
|
|
59
|
+
}),
|
|
60
|
+
[startDate, endDate, locationUuids, indicator, from],
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
const { rows, isLoading } = useAllRows(fetchPatientList, [startDate, endDate, locationUuids, indicator, from]);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<RegisterLayout
|
|
67
|
+
parentLabel="MOH-705A Report"
|
|
68
|
+
parentPath="/moh-705a"
|
|
69
|
+
title="MOH-705A Linelist"
|
|
70
|
+
location={locationName}
|
|
71
|
+
isLoading={isLoading}
|
|
72
|
+
isEmpty={!isLoading && rows.length === 0}
|
|
73
|
+
>
|
|
74
|
+
<LinelistTable
|
|
75
|
+
rows={rows}
|
|
76
|
+
columns={MOH_705A_LINELIST_COLUMNS}
|
|
77
|
+
layoutKey={`moh-705a:${indicator}`}
|
|
78
|
+
exportName={`MOH-705A ${indicator || 'linelist'} ${startDate} ${endDate}`}
|
|
79
|
+
/>
|
|
80
|
+
</RegisterLayout>
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export default Moh705ALinelist;
|