@ampath/esm-reports-app 1.0.0-next.4 → 1.0.0-next.41

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.
Files changed (132) hide show
  1. package/dist/110.js +1 -0
  2. package/dist/110.js.map +1 -0
  3. package/dist/{260.js → 205.js} +1 -1
  4. package/dist/{260.js.map → 205.js.map} +1 -1
  5. package/dist/812.js +1 -1
  6. package/dist/812.js.map +1 -1
  7. package/dist/822.js +2 -0
  8. package/dist/822.js.map +1 -0
  9. package/dist/ampath-esm-reports-app.js +1 -1
  10. package/dist/ampath-esm-reports-app.js.buildmanifest.json +95 -74
  11. package/dist/ampath-esm-reports-app.js.map +1 -1
  12. package/dist/main.js +1 -1
  13. package/dist/main.js.map +1 -1
  14. package/dist/routes.json +1 -1
  15. package/package.json +1 -1
  16. package/src/common/report-filters/report-filters.component.tsx +68 -7
  17. package/src/common/report-filters/report-filters.scss +42 -0
  18. package/src/dashboard/reports-dasboard.tsx +21 -0
  19. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
  20. package/src/reports/moh-240/moh-240-header.component.tsx +61 -0
  21. package/src/reports/moh-240/moh-240.component.tsx +93 -0
  22. package/src/reports/moh-240/moh-240.scss +11 -0
  23. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +75 -0
  24. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +98 -0
  25. package/src/reports/moh-505/moh-505-header.component.tsx +62 -0
  26. package/src/reports/moh-505/moh-505.component.tsx +440 -0
  27. package/src/reports/moh-505/moh-505.scss +3 -0
  28. package/src/reports/moh-705B/moh-204b-register.component.tsx +236 -0
  29. package/src/reports/moh-705B/moh-705b.component.tsx +524 -0
  30. package/src/reports/moh-705B/moh-705b.scss +44 -0
  31. package/src/reports/moh-705a/moh-705a.component.tsx +528 -0
  32. package/src/reports/moh-705a/moh-705a.scss +45 -0
  33. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +321 -0
  34. package/src/reports/moh-705a/type.ts +6 -0
  35. package/src/reports/moh-706/moh-706-header.component.tsx +61 -0
  36. package/src/reports/moh-706/moh-706.component.tsx +117 -0
  37. package/src/reports/moh-706/moh-706.scss +30 -0
  38. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +124 -0
  39. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +318 -0
  40. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
  41. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +179 -0
  42. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
  43. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +121 -0
  44. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +47 -0
  45. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
  46. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +108 -0
  47. package/src/reports/moh-710/moh-710.component.tsx +211 -79
  48. package/src/reports/moh-710/moh-710.scss +5 -1
  49. package/src/reports/moh-710/registers/moh-511-710-register.component.tsx +263 -0
  50. package/src/reports/moh-710/registers/type.ts +31 -0
  51. package/src/reports/moh-711/moh-711.component.tsx +109 -1234
  52. package/src/reports/moh-711/moh711.scss +92 -8
  53. package/src/reports/moh-711/registers/moh-333-register.component.tsx +639 -0
  54. package/src/reports/moh-711/registers/moh-405-register.component.tsx +521 -0
  55. package/src/reports/moh-711/registers/moh-406-register.component.tsx +533 -0
  56. package/src/reports/moh-711/registers/moh-510-register.component.tsx +61 -0
  57. package/src/reports/moh-711/registers/moh-511-register.component.tsx +271 -0
  58. package/src/reports/moh-711/registers/type.ts +192 -0
  59. package/src/reports/moh-711/sections/anc.component.tsx +159 -0
  60. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +148 -0
  61. package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
  62. package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
  63. package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
  64. package/src/reports/moh-711/sections/maternity.component.tsx +326 -0
  65. package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
  66. package/src/reports/moh-711/sections/other.component.tsx +47 -0
  67. package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
  68. package/src/reports/moh-711/sections/pnc.component.tsx +125 -0
  69. package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
  70. package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
  71. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
  72. package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
  73. package/src/reports/moh-717/moh-717.component.tsx +120 -946
  74. package/src/reports/moh-717/moh717.scss +138 -3
  75. package/src/reports/moh-717/registers/nutrition-register.component.tsx +48 -0
  76. package/src/reports/moh-717/sections/finance.component.tsx +42 -0
  77. package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
  78. package/src/reports/moh-717/sections/maternity.component.tsx +126 -0
  79. package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
  80. package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
  81. package/src/reports/moh-717/sections/operations.component.tsx +53 -0
  82. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
  83. package/src/reports/moh-717/sections/outpatient.component.tsx +597 -0
  84. package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
  85. package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
  86. package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
  87. package/src/reports/moh-731/moh-731.component.tsx +181 -0
  88. package/src/reports/moh-731/moh-731.scss +118 -0
  89. package/src/reports/moh-731/registers/moh-366.component.tsx +478 -0
  90. package/src/reports/moh-731/registers/moh-366.scss +45 -0
  91. package/src/reports/moh-731/registers/prep-register.component.tsx +292 -0
  92. package/src/reports/moh-731/registers/prep-registers.scss +45 -0
  93. package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +932 -0
  94. package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +569 -0
  95. package/src/reports/moh-731/sections/pmtct.component.tsx +451 -0
  96. package/src/reports/moh-740/moh-740.component.scss +120 -0
  97. package/src/reports/moh-740/moh-740.component.tsx +1271 -0
  98. package/src/reports/moh-740/moh-740.resource.ts +42 -0
  99. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +18 -0
  100. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +104 -0
  101. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +18 -0
  102. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +79 -0
  103. package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
  104. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +66 -0
  105. package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
  106. package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
  107. package/src/reports/moh-740/shared/utils/format-indicator.ts +22 -0
  108. package/src/reports/moh-740/shared/utils/indicator-register-map.ts +157 -0
  109. package/src/reports/moh-740/types/index.ts +216 -0
  110. package/src/reports/moh-745/moh-745.component.tsx +928 -0
  111. package/src/reports/moh-745/moh-745.scss +74 -0
  112. package/src/reports/moh-745/registers/moh-412-register.component.tsx +191 -0
  113. package/src/reports/moh-745/registers/type.ts +30 -0
  114. package/src/reports/table-wrapper/table-row-mapper.component.tsx +53 -0
  115. package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
  116. package/src/reports/table-wrapper/table-wrapper.scss +31 -0
  117. package/src/resources/moh-505.resource.ts +86 -0
  118. package/src/resources/moh-705.resource.ts +117 -0
  119. package/src/resources/moh-706.resource.ts +86 -0
  120. package/src/resources/moh-710.resource.ts +28 -0
  121. package/src/resources/moh-711.resource.ts +146 -0
  122. package/src/resources/moh-717.resource.ts +27 -0
  123. package/src/resources/moh-731.resource.ts +96 -0
  124. package/src/resources/moh-745.resource.ts +64 -0
  125. package/src/root.component.tsx +39 -0
  126. package/src/routes.json +3 -1
  127. package/src/utils/utils.ts +36 -0
  128. package/dist/367.js +0 -2
  129. package/dist/367.js.map +0 -1
  130. package/dist/86.js +0 -1
  131. package/dist/86.js.map +0 -1
  132. /package/dist/{367.js.LICENSE.txt → 822.js.LICENSE.txt} +0 -0
@@ -0,0 +1,639 @@
1
+ import { Button, Loading } from '@carbon/react';
2
+ import React, { useEffect, useState } from 'react';
3
+ import { useLocation, useNavigate, useSearchParams } from 'react-router-dom';
4
+
5
+ import styles from '../moh711.scss';
6
+ import classNames from 'classnames';
7
+ import { getMoh333PatientList } from '../../../resources/moh-711.resource';
8
+ import { moh333Columns } from './type';
9
+
10
+ const Moh333Register: React.FC = () => {
11
+ const navigate = useNavigate();
12
+ const [patientlist, setPatientList] = useState<any[]>([]);
13
+ const [isLoading, setIsLoading] = useState(false);
14
+
15
+ const [searchParams] = useSearchParams();
16
+ const location = useLocation();
17
+
18
+ const startDate = searchParams.get('startDate');
19
+ const endDate = searchParams.get('endDate');
20
+ const locationUuids = searchParams.get('locationUuids');
21
+ const indicator = searchParams.get('indicator');
22
+ const reportName = location.state?.reportName || '';
23
+
24
+ useEffect(() => {
25
+ const fetchData = async () => {
26
+ if (!startDate || !endDate || !locationUuids || !indicator || !reportName) return;
27
+
28
+ setIsLoading(true);
29
+
30
+ try {
31
+ const params = {
32
+ startDate,
33
+ endDate,
34
+ locationUuids,
35
+ indicator,
36
+ reportName,
37
+ };
38
+
39
+ const data = await getMoh333PatientList(params);
40
+
41
+ setPatientList(data?.results.results || []);
42
+ } catch (error) {
43
+ console.error('Failed to fetch register data', error);
44
+ } finally {
45
+ setIsLoading(false);
46
+ }
47
+ };
48
+
49
+ fetchData();
50
+ }, [startDate, endDate, locationUuids, indicator, reportName]);
51
+
52
+ function navigateBack() {
53
+ navigate(location.state?.from || '//moh-711');
54
+ }
55
+ return (
56
+ <>
57
+ {' '}
58
+ <div className={styles.buttonContainer}>
59
+ <Button onClick={navigateBack}>Back</Button>
60
+ </div>
61
+ <div>{isLoading && <Loading />}</div>
62
+ <div className={styles.tableContainer}>
63
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
64
+ <thead>
65
+ <tr>
66
+ <th rowSpan={6}>
67
+ Date of
68
+ <br />
69
+ Admission <br />
70
+ (dd/mm/yyyy)
71
+ </th>
72
+ <th rowSpan={6}>AMRSID</th>
73
+ <th>Admission number (yyyy-mm-nnnn)</th>
74
+ <th rowSpan={6}>
75
+ Full Name
76
+ <br />
77
+ (First, Middle, surname)
78
+ </th>
79
+ <th>
80
+ Date of Birth <br />
81
+ (dd/mm/yyyy)
82
+ </th>
83
+ <th rowSpan={6}>
84
+ County/ <br />
85
+ Subcounty
86
+ </th>
87
+ <th>
88
+ Village/
89
+ <br />
90
+ Estate/
91
+ <br />
92
+ Land mark
93
+ </th>
94
+ <th rowSpan={6}>
95
+ Marital Status <br />
96
+ 1 = Married
97
+ <br />
98
+ 2 = Widowed <br />
99
+ 3 = Single
100
+ <br />
101
+ 4 = Divorced
102
+ <br />5 = Separated
103
+ </th>
104
+ <th rowSpan={6}>
105
+ Parity
106
+ <br />
107
+ (X+Y)
108
+ </th>
109
+ <th rowSpan={6}>Gravidae</th>
110
+ <th rowSpan={6}>
111
+ No. of <br />
112
+ ANC <br />
113
+ visits
114
+ </th>
115
+ <th rowSpan={6}>
116
+ Date of Last
117
+ <br />
118
+ Menstrual
119
+ <br />
120
+ Period (LMP) <br />
121
+ (dd/mm/yyyy)
122
+ </th>
123
+ <th rowSpan={6}>
124
+ Estimated Date <br />
125
+ of Delivery
126
+ <br />
127
+ (EDD)
128
+ <br />
129
+ (dd/mm/yyyy)
130
+ </th>
131
+ <th rowSpan={6}>Diagnosis</th>
132
+ <th colSpan={13}>Delivery</th>
133
+ <th colSpan={9}></th>
134
+ <th>
135
+ VDRL/
136
+ <br />
137
+ RPR
138
+ <br />
139
+ Results
140
+ <br />
141
+ (Specify
142
+ <br />
143
+ 1-VDRL
144
+ <br />
145
+ 2-RPR
146
+ <br />
147
+ 3-Duo
148
+ <br />
149
+ testing)
150
+ </th>
151
+ <th colSpan={4}>Baby</th>
152
+ <th>
153
+ Maternal <br />
154
+ HAART
155
+ </th>
156
+ <th>
157
+ Infant <br />
158
+ Prophylaxis
159
+ </th>
160
+ <th>
161
+ Partner <br />
162
+ Tested for <br />
163
+ HIV
164
+ </th>
165
+ <th rowSpan={6}>
166
+ Counselled <br />
167
+ on infant <br />
168
+ feeding <br />
169
+ (Y/N/NA)
170
+ </th>
171
+ <th rowSpan={6}>
172
+ Delivery <br />
173
+ Conducted by <br />
174
+ (Enter Name)
175
+ </th>
176
+ <th rowSpan={6}>
177
+ Birth <br />
178
+ Notification <br />
179
+ Number
180
+ </th>
181
+ <th colSpan={2}>Discharge</th>
182
+ <th colSpan={3}>Referral</th>
183
+ <th rowSpan={6}>Comments</th>
184
+ </tr>
185
+ <tr>
186
+ <th rowSpan={5}>NUPI</th>
187
+ <th rowSpan={5}>Age</th>
188
+ <th rowSpan={5}>Phone number</th>
189
+ <th rowSpan={5}>
190
+ Duration of <br />
191
+ labour
192
+ <br />
193
+ (hours)
194
+ </th>
195
+ <th rowSpan={5}>
196
+ Date of
197
+ <br />
198
+ Delivery <br />
199
+ (dd/mm/yyyy)
200
+ </th>
201
+ <th rowSpan={5}>
202
+ Time of
203
+ <br />
204
+ Delivery
205
+ </th>
206
+ <th rowSpan={5}>
207
+ Gestation
208
+ <br />
209
+ at Birth
210
+ <br />
211
+ (wks)
212
+ </th>
213
+ <th rowSpan={5}>
214
+ Mode of <br />
215
+ Delivery <br />
216
+ 1) SVD
217
+ <br />
218
+ 2) CS
219
+ <br />
220
+ 3) Breech
221
+ <br />
222
+ 4) AVD
223
+ </th>
224
+ <th rowSpan={5}>
225
+ No.of babies <br />
226
+ delivered
227
+ </th>
228
+ <th rowSpan={5}>
229
+ Placenta
230
+ <br />
231
+ Complete <br />
232
+ 1=Yes
233
+ <br />
234
+ 2=No
235
+ <br />
236
+ 3=BBA
237
+ </th>
238
+ <th rowSpan={5}>
239
+ Uterotonic <br />
240
+ given <br />
241
+ 1=oxytocin <br />
242
+ 2=Carbetocin <br />
243
+ 3=Others <br />
244
+ Specify
245
+ <br />
246
+ 4= None
247
+ </th>
248
+ <th rowSpan={5}>
249
+ Vaginal
250
+ <br />
251
+ Examination
252
+ <br />
253
+ 1= Normal
254
+ <br />
255
+ 2=Episiotomy
256
+ <br />
257
+ 3=Vaginal tear
258
+ <br />
259
+ 4=FGM
260
+ <br />
261
+ 5=Vaginal warts
262
+ </th>
263
+ <th rowSpan={5}>
264
+ Blood
265
+ <br />
266
+ loss
267
+ <br />
268
+ (mls)
269
+ </th>
270
+ <th rowSpan={5}>
271
+ Mother's <br />
272
+ status after <br />
273
+ Delivery
274
+ <br />
275
+ (Alive/ <br />
276
+ Dead)
277
+ </th>
278
+ <th>
279
+ Maternal deaths <br />
280
+ Notified <br />
281
+ (Y/N/NA)
282
+ </th>
283
+ <th rowSpan={5}>
284
+ Delivery
285
+ <br />
286
+ Complications
287
+ <br />
288
+ 1=A.P.H. (Ante Partum <br />
289
+ Haemorrhage); <br />
290
+ 2=P.P.H. (Post Partum <br />
291
+ Haemorrhage); <br />
292
+ 3= Eclampsia; <br />
293
+ 4=Ruptured Uterus;
294
+ <br />
295
+ 5=Obstructed labour; <br />
296
+ 6=Sepsis <br />
297
+ 7= NA
298
+ </th>
299
+ <th rowSpan={5}>
300
+ APGAR <br />
301
+ Score
302
+ </th>
303
+ <th rowSpan={5}>
304
+ Birth
305
+ <br />
306
+ Outcome
307
+ <br />
308
+ (LB/FSB/ <br />
309
+ MSB)
310
+ </th>
311
+ <th rowSpan={5}>
312
+ Birth <br />
313
+ Weight
314
+ <br />
315
+ (grams)
316
+ </th>
317
+ <th rowSpan={5}>
318
+ Sex <br />
319
+ (M/F)
320
+ </th>
321
+ <th>
322
+ Initiated on <br />
323
+ BF in
324
+ <br />
325
+ &lt; 1hr
326
+ <br />
327
+ (Y/N)
328
+ </th>
329
+ <th rowSpan={5}>
330
+ TEO
331
+ <br />
332
+ given at
333
+ <br />
334
+ birth? <br />
335
+ (Y/N)
336
+ </th>
337
+ <th rowSpan={5}>
338
+ Chlorhexidine <br />
339
+ applied on <br />
340
+ cord stump
341
+ <br />
342
+ (Y/N)
343
+ </th>
344
+ <th>
345
+ Birth with <br />
346
+ deformity <br />
347
+ (Y/N)
348
+ </th>
349
+ <th rowSpan={5}>
350
+ Given
351
+ <br />
352
+ Vitamin <br />
353
+ K <br />
354
+ (Y/N)
355
+ </th>
356
+ <th rowSpan={5}>(P/N/ND)</th>
357
+ <th>HIV Test 1</th>
358
+ <th>HIV Test 2</th>
359
+ <th>HIV Test 3</th>
360
+ <th>
361
+ HIV Result <br />
362
+ Maternity <br />
363
+ (N/P/Inc/U/NA)
364
+ </th>
365
+ <th>
366
+ Start at <br />
367
+ Maternity
368
+ </th>
369
+ <th rowSpan={5}>(Y/N/NA)</th>
370
+ <th rowSpan={5}>(Y/N/NA)</th>
371
+ <th rowSpan={5}>
372
+ Date <br />
373
+ (dd/mm/yyyy)
374
+ </th>
375
+ <th rowSpan={5}>
376
+ Status of <br />
377
+ Baby
378
+ <br />
379
+ A= Alive
380
+ <br />
381
+ D= Dead
382
+ </th>
383
+ <th>From</th>
384
+ <th>To</th>
385
+ <th rowSpan={5}>Reason for referral</th>
386
+ </tr>
387
+ <tr>
388
+ <th rowSpan={4}>
389
+ Date Death <br />
390
+ notified
391
+ </th>
392
+ <th rowSpan={4}>
393
+ Kangaroo <br />
394
+ Mother <br />
395
+ Care <br />
396
+ (Y/N)
397
+ </th>
398
+ <th rowSpan={4}>
399
+ 1- congenital <br />
400
+ syphilis.
401
+ <br />
402
+ 2- spina bifida, <br />
403
+ 3- Hydrocephalus,
404
+ <br />
405
+ 4- Talipes
406
+ </th>
407
+ <th>Kit Name:</th>
408
+ <th>Kit Name:</th>
409
+ <th>Kit Name:</th>
410
+ <th rowSpan={4}>
411
+ Initial/Retest/
412
+ <br />
413
+ NA
414
+ </th>
415
+ <th rowSpan={4}>(Y/N/NA)</th>
416
+ <th rowSpan={4}>
417
+ 1= From Community <br />
418
+ Unit,
419
+ <br />
420
+ 2= From Another
421
+ <br />
422
+ Health Facility, <br />
423
+ 3=Not Applicable
424
+ </th>
425
+ <th rowSpan={4}>
426
+ 1= To Community
427
+ <br />
428
+ Unit, <br />
429
+ 2=Referred to HIV <br />
430
+ preventive services
431
+ <br />
432
+ 3=Another Health <br />
433
+ Facility,
434
+ <br />
435
+ 4=Not Applicable
436
+ </th>
437
+ </tr>
438
+ <tr>
439
+ <th>Lot No.</th>
440
+ <th>Lot No.</th>
441
+ <th>Lot No.</th>
442
+ </tr>
443
+ <tr>
444
+ <th>Expiry / /</th>
445
+ <th>Expiry / /</th>
446
+ <th>Expiry / /</th>
447
+ </tr>
448
+ <tr>
449
+ <th>(N/P/I/NA)</th>
450
+ <th>(N/P/I/NA)</th>
451
+ <th>(N/P/I/NA)</th>
452
+ </tr>
453
+ </thead>
454
+ <tbody>
455
+ <tr>
456
+ <td className={styles.textCenter}>(a)</td>
457
+ <td className={styles.textCenter}>(b)</td>
458
+ <td className={styles.textCenter}>(c)</td>
459
+ <td className={styles.textCenter}>(d)</td>
460
+ <td className={styles.textCenter}>(e)</td>
461
+ <td className={styles.textCenter}>(f)</td>
462
+ <td className={styles.textCenter}>(g)</td>
463
+ <td className={styles.textCenter}>(h)</td>
464
+ <td className={styles.textCenter}>(i)</td>
465
+ <td className={styles.textCenter}>(j)</td>
466
+ <td className={styles.textCenter}>(k)</td>
467
+ <td className={styles.textCenter}>(l)</td>
468
+ <td className={styles.textCenter}>(m)</td>
469
+ <td className={styles.textCenter}>(n)</td>
470
+ <td className={styles.textCenter}>(o)</td>
471
+ <td className={styles.textCenter}>(p)</td>
472
+ <td className={styles.textCenter}>(q)</td>
473
+ <td className={styles.textCenter}>(r)</td>
474
+ <td className={styles.textCenter}>(s)</td>
475
+ <td className={styles.textCenter}>(t)</td>
476
+ <td className={styles.textCenter}>(u)</td>
477
+ <td className={styles.textCenter}>(v)</td>
478
+ <td className={styles.textCenter}>(w)</td>
479
+ <td className={styles.textCenter}>(x)</td>
480
+ <td className={styles.textCenter}>(y)</td>
481
+ <td className={styles.textCenter}>(z)</td>
482
+ <td className={styles.textCenter}>(aa)</td>
483
+ <td className={styles.textCenter}>(ab)</td>
484
+ <td className={styles.textCenter}>(ac)</td>
485
+ <td className={styles.textCenter}>(ad)</td>
486
+ <td className={styles.textCenter}>(ae)</td>
487
+ <td className={styles.textCenter}>(af)</td>
488
+ <td className={styles.textCenter}>(ag)</td>
489
+ <td className={styles.textCenter}>(ah)</td>
490
+ <td className={styles.textCenter}>(ai)</td>
491
+ <td className={styles.textCenter}>(aj)</td>
492
+ <td colSpan={3} className={styles.textCenter}>
493
+ (ak)
494
+ </td>
495
+ <td className={styles.textCenter}>(al)</td>
496
+ <td className={styles.textCenter}>(am)</td>
497
+ <td className={styles.textCenter}>(an)</td>
498
+ <td className={styles.textCenter}>(ao)</td>
499
+ <td className={styles.textCenter}>(ap)</td>
500
+ <td className={styles.textCenter}>(aq)</td>
501
+ <td className={styles.textCenter}>(ar)</td>
502
+ <td className={styles.textCenter}>(as)</td>
503
+ <td className={styles.textCenter}>(at)</td>
504
+ <td className={styles.textCenter}>(au)</td>
505
+ <td className={styles.textCenter}>(av)</td>
506
+ <td className={styles.textCenter}>(aw)</td>
507
+ <td className={styles.textCenter}>(ax)</td>
508
+ <td className={styles.textCenter}>(ay)</td>
509
+ </tr>
510
+ {patientlist?.length > 0 ? (
511
+ patientlist.map((row, i) => (
512
+ <React.Fragment key={i}>
513
+ <tr>
514
+ <td rowSpan={2}>
515
+ {row.date_of_admission ? new Date(row.date_of_admission).toLocaleDateString('en-GB') : ''}
516
+ </td>
517
+ <td rowSpan={2}>{row.amrsID}</td>
518
+ <td>{row.admission_number}</td>
519
+ <td rowSpan={2}>{row.full_names}</td>
520
+
521
+ <td>{row.date_of_birth ? new Date(row.date_of_birth).toLocaleDateString('en-GB') : ''}</td>
522
+
523
+ <td rowSpan={2}>{row.subcounty_county}</td>
524
+ <td>{row.village_estate_landmark}</td>
525
+ <td rowSpan={2}>{row.marital_status}</td>
526
+ <td rowSpan={2}>{row.parity}</td>
527
+ <td rowSpan={2}>{row.gravidae}</td>
528
+ <td rowSpan={2}>{row.no_of_anc_visits}</td>
529
+
530
+ <td rowSpan={2}>{row.lmp ? new Date(row.lmp).toLocaleDateString('en-GB') : ''}</td>
531
+
532
+ <td rowSpan={2}>{row.edd ? new Date(row.edd).toLocaleDateString('en-GB') : ''}</td>
533
+
534
+ <td rowSpan={2}>{row.diagnosis}</td>
535
+ <td rowSpan={2}>{row.duration_of_labour}</td>
536
+
537
+ <td rowSpan={2}>
538
+ {row.date_of_delivery ? new Date(row.date_of_delivery).toLocaleDateString('en-GB') : ''}
539
+ </td>
540
+
541
+ <td rowSpan={2}>{row.time_of_delivery}</td>
542
+ <td rowSpan={2}>{row.gestation_at_birth}</td>
543
+ <td rowSpan={2}>{row.mode_of_delivery}</td>
544
+ <td rowSpan={2}>{row.no_of_babies_delivered}</td>
545
+ <td rowSpan={2}>{row.placenta_complete}</td>
546
+ <td rowSpan={2}>{row.uterotonic_given}</td>
547
+ <td rowSpan={2}>{row.vaginal_examination}</td>
548
+ <td rowSpan={2}>{row.blood_loss}</td>
549
+ <td rowSpan={2}>{row.mother_status_after_delivery}</td>
550
+
551
+ <td>{row.maternal_deaths_notified}</td>
552
+
553
+ <td rowSpan={2}>{row.delivery_complications}</td>
554
+ <td rowSpan={2}>{row.apgar_score}</td>
555
+ <td rowSpan={2}>{row.birth_outcome}</td>
556
+ <td rowSpan={2}>{row.birth_weight}</td>
557
+ <td rowSpan={2}>{row.sex}</td>
558
+
559
+ <td>{row.initiated_on_bf_less_one_hour}</td>
560
+
561
+ <td rowSpan={2}>{row.teo_given_at_birth}</td>
562
+ <td rowSpan={2}>{row.chlorhexdine_applied_on_cord_stump}</td>
563
+ <td>{row.birth_with_deformity}</td>
564
+ <td rowSpan={2}>{row.given_vitamin_k}</td>
565
+
566
+ <td>{row.duo_test_result}</td>
567
+
568
+ <td rowSpan={2}>
569
+ {row.hiv_test_1_kit_name} / {row.hiv_test_1_lot_no} /{' '}
570
+ {row.hiv_test_1_expiry_date
571
+ ? new Date(row.hiv_test_1_expiry_date).toLocaleDateString('en-GB')
572
+ : ''}
573
+ </td>
574
+
575
+ <td rowSpan={2}>
576
+ {row.hiv_test_2_kit_name} / {row.hiv_test_2_lot_no} /{' '}
577
+ {row.hiv_test_2_expiry_date
578
+ ? new Date(row.hiv_test_2_expiry_date).toLocaleDateString('en-GB')
579
+ : ''}
580
+ </td>
581
+
582
+ <td rowSpan={2}>
583
+ {row.hiv_test_3_kit_name} / {row.hiv_test_3_lot_no} /{' '}
584
+ {row.hiv_test_3_expiry_date
585
+ ? new Date(row.hiv_test_3_expiry_date).toLocaleDateString('en-GB')
586
+ : ''}
587
+ </td>
588
+
589
+ <td>{row.hiv_test_results_maternity}</td>
590
+
591
+ <td rowSpan={2}>{row.maternal_haart}</td>
592
+ <td rowSpan={2}>{row.infant_prophylaxis}</td>
593
+ <td rowSpan={2}>{row.partner_tested_for_hiv}</td>
594
+ <td rowSpan={2}>{row.counselled_on_infant_feeding}</td>
595
+ <td rowSpan={2}>{row.deleivery_conducted_by}</td>
596
+ <td rowSpan={2}>{row.birth_notification_number}</td>
597
+
598
+ <td rowSpan={2}>
599
+ {row.discharge_date ? new Date(row.discharge_date).toLocaleDateString('en-GB') : ''}
600
+ </td>
601
+
602
+ <td rowSpan={2}>{row.discharge_status_of_baby}</td>
603
+ <td rowSpan={2}>{row.referrals_from}</td>
604
+ <td rowSpan={2}>{row.referrals_to}</td>
605
+ <td rowSpan={2}>{row.reasons_for_refferal}</td>
606
+ <td rowSpan={2}>{row.comments}</td>
607
+ </tr>
608
+
609
+ <tr>
610
+ <td>{row.nupi}</td>
611
+ <td>{row.age}</td>
612
+ <td>{row.phone_number}</td>
613
+
614
+ <td>
615
+ {row.date_maternal_death_notified
616
+ ? new Date(row.date_maternal_death_notified).toLocaleDateString('en-GB')
617
+ : ''}
618
+ </td>
619
+
620
+ <td>{row.kangaroo_mother_care}</td>
621
+ <td>{row.type_of_deformity}</td>
622
+ <td>{row.hiv_test_type}</td>
623
+ <td>{row.hiv_test_type}</td>
624
+ </tr>
625
+ </React.Fragment>
626
+ ))
627
+ ) : (
628
+ <tr>
629
+ <td colSpan={moh333Columns.length}>No data available</td>
630
+ </tr>
631
+ )}
632
+ </tbody>
633
+ </table>
634
+ </div>
635
+ </>
636
+ );
637
+ };
638
+
639
+ export default Moh333Register;