@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,521 @@
1
+ import { Button, Loading, TableCell, TableRow } 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 { getMoh405PatientList } from '../../../resources/moh-711.resource';
8
+ import { moh405Columns } from './type';
9
+
10
+ const Moh405Register: 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) 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 getMoh405PatientList(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
+ function navigateBack() {
52
+ navigate('/moh-711');
53
+ }
54
+ return (
55
+ <>
56
+ <div className={styles.buttonContainer}>
57
+ <Button onClick={navigateBack}>Back</Button>
58
+ </div>
59
+ <div>{isLoading && <Loading />}</div>
60
+ <div className={styles.tableContainer}>
61
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
62
+ <thead>
63
+ <tr>
64
+ <th rowSpan={7}>Date of visit</th>
65
+ <th>(New Client)</th>
66
+ <th rowSpan={7}>
67
+ ANC <br />
68
+ Number/NUPI
69
+ <br />
70
+ (Re Visit)
71
+ </th>
72
+ <th rowSpan={7}>AMRSID</th>
73
+ <th rowSpan={7}>
74
+ Number of <br />
75
+ Visits <br />
76
+ (1st,2nd,3rd,
77
+ <br />
78
+ 4th ….)
79
+ </th>
80
+ <th rowSpan={7}>
81
+ Full Name
82
+ <br />
83
+ (First, Middle, Surname)
84
+ </th>
85
+ <th rowSpan={1}>
86
+ Date of Birth
87
+ <br />
88
+ (DD/MM/YYYY)
89
+ </th>
90
+ <th rowSpan={7}>Subcounty/ County</th>
91
+ <th rowSpan={1}>Village/Estate/ Landmark</th>
92
+ <th rowSpan={7}>
93
+ <u>Marital Status</u>
94
+ <br />
95
+ NM=Never <br />
96
+ Married/Single
97
+ <br />
98
+ MM=Married <br />
99
+ Monogamous
100
+ <br />
101
+ MP=Married
102
+ <br />
103
+ Polygamous
104
+ <br />
105
+ W=Widowed
106
+ <br />
107
+ D=Divorced
108
+ <br />
109
+ S=Separated
110
+ </th>
111
+ <th rowSpan={7}>Parity</th>
112
+ <th rowSpan={7}>Gravidae</th>
113
+ <th rowSpan={1}>
114
+ Date of Last Menstrual <br />
115
+ Period (LMP)
116
+ </th>
117
+ <th rowSpan={1}>Expected Date of Delivery (EDD)</th>
118
+ <th rowSpan={7}>
119
+ Gestation in
120
+ <br />
121
+ Weeks
122
+ </th>
123
+ <th rowSpan={7}>
124
+ MUAC <br />
125
+ 1= Green, <br />
126
+ 2=Yellow, <br />
127
+ 3=Red
128
+ </th>
129
+ <th rowSpan={7}>Height (cm)</th>
130
+ <th rowSpan={7}>Weight (kg)</th>
131
+ <th rowSpan={7}>Blood Pressure</th>
132
+ <th rowSpan={7}>
133
+ Breast Exam
134
+ <br />
135
+ 1=normal <br />
136
+ 2=abnormal
137
+ </th>
138
+ <th rowSpan={1}>FGM (Y/N)</th>
139
+ <th rowSpan={1} colSpan={12}>
140
+ Laboratory
141
+ </th>
142
+ <th rowSpan={1}>Maternal HAART</th>
143
+ <th rowSpan={1}>Infant Prophylaxis</th>
144
+ <th rowSpan={1}>Partner HIV Testing</th>
145
+ <th rowSpan={1}>Other Conditions and Treatment</th>
146
+ <th rowSpan={1}>Deworming</th>
147
+ <th rowSpan={1}>IPT 1-3</th>
148
+ <th rowSpan={1}>TT Dose</th>
149
+ <th rowSpan={1}>Supplementation</th>
150
+ <th rowSpan={1}>LLITNs</th>
151
+ <th rowSpan={1} colSpan={3}>
152
+ Referrrals
153
+ </th>
154
+ <th rowSpan={7}>Remarks</th>
155
+ </tr>
156
+ <tr>
157
+ <th>ANC Number</th>
158
+ <th rowSpan={6}>Age</th>
159
+ <th rowSpan={6}>Phone Number</th>
160
+ <th rowSpan={6}>(dd/mm/yyyy)</th>
161
+ <th rowSpan={6}>(dd/mm/yyyy)</th>
162
+ <th rowSpan={6}>
163
+ FGM associated <br />
164
+ complications:
165
+ <br />
166
+ 1=Scarring
167
+ <br />
168
+ 2=Keloids
169
+ <br />
170
+ 3=Dyspaneuria
171
+ <br />
172
+ 4=UTI 5 = NA
173
+ </th>
174
+ <th rowSpan={6}>
175
+ Haemoglobin <br />
176
+ (Level/ ND/NA)
177
+ </th>
178
+ <th rowSpan={6}>
179
+ Blood Sugar Testing <br />
180
+ for Diabetes: <br />
181
+ 1=RBS&lt; 11.1 <br />
182
+ mmol/L, No <br />
183
+ Diabetes,
184
+ <br />
185
+ 2=RBS&gt;11.1
186
+ <br />
187
+ mmol/L, Has <br />
188
+ Diabetes,
189
+ <br />
190
+ 3=No RBS done
191
+ </th>
192
+ <th rowSpan={6}>
193
+ Blood group <br />
194
+ and rhesus <br />
195
+ (Y/N)
196
+ </th>
197
+ <th rowSpan={6}>
198
+ Urinalysis
199
+ <br />
200
+ (Y/N)
201
+ </th>
202
+ <th rowSpan={1}>
203
+ Type of Test <br />
204
+ RPR/ VDRL/ <br />
205
+ Duo Test/ NA
206
+ </th>
207
+ <th rowSpan={1}>
208
+ Hepatitis B virus <br />
209
+ Sceening Result
210
+ <br />
211
+ (P/N/ND)
212
+ </th>
213
+ <th rowSpan={1}>
214
+ TB Screening:
215
+ <br />
216
+ Codes (1-5)
217
+ </th>
218
+ <th rowSpan={1} colSpan={5}></th>
219
+ <th rowSpan={6}>
220
+ N = New on ART.
221
+ <br />
222
+ OA = On ART
223
+ <br />
224
+ NA = Not
225
+ <br />
226
+ Applicable
227
+ </th>
228
+ <th rowSpan={6}>
229
+ AN = AZT&NVP <br />
230
+ A = AZT
231
+ <br />
232
+ N = NVP
233
+ <br />
234
+ NA
235
+ </th>
236
+ <th rowSpan={6}>N/P/KP/NA</th>
237
+ <th rowSpan={1}>
238
+ 1=Hypertension; <br />
239
+ 2=Diabetes; <br />
240
+ 3=Epilepsy; <br />
241
+ 4=Malaria in Pregnancy; <br />
242
+ 5=STIs/RTI; <br />
243
+ 6=Others (Specify) <br />
244
+ 7=None <br />
245
+ Record all that apply
246
+ </th>
247
+ <th rowSpan={6}>(Y/N/NA)</th>
248
+ <th rowSpan={6}>(1,2,3,N,NA)</th>
249
+ <th rowSpan={6}>
250
+ 1=TT Dose 1st <br />
251
+ dose 2=2nd dose <br />
252
+ 3=3rd dose <br />
253
+ 4=4th dose <br />
254
+ 5=5th dose <br />
255
+ NA=None
256
+ </th>
257
+ <th rowSpan={6}>
258
+ Given
259
+ <br />
260
+ Supplementation <br />
261
+ 1=Combined IFAs
262
+ <br />
263
+ 2=Iron <br />
264
+ 3=Folate <br />
265
+ 4=Iron+Folate <br />
266
+ Separately <br />
267
+ 5=Calcium
268
+ </th>
269
+ <th rowSpan={6}>
270
+ Received
271
+ <br />
272
+ LLITNs <br />
273
+ (Y/N)
274
+ </th>
275
+ <th rowSpan={1}>From</th>
276
+ <th rowSpan={1}>To</th>
277
+ <th rowSpan={6}>
278
+ Reason for referral
279
+ <br />
280
+ (specify)
281
+ </th>
282
+ </tr>
283
+ <tr>
284
+ <th rowSpan={5}>NUPI</th>
285
+ <th rowSpan={5}>
286
+ Test Results <br />
287
+ (P/N/NA)
288
+ </th>
289
+ <th rowSpan={5}>
290
+ Treatment
291
+ <br />
292
+ (Y/N/NA)
293
+ </th>
294
+ <th rowSpan={5}>
295
+ 1=Presumed TB <br />
296
+ 2=No Signs <br />
297
+ 3=On TB <br />
298
+ Treatment <br />
299
+ 4=On TPT
300
+ <br />
301
+ 5=Not Done
302
+ </th>
303
+ <th rowSpan={1}>
304
+ HIV Testing <br />
305
+ (Initial or Retest,
306
+ <br />
307
+ Known Poitive or <br />
308
+ Revisit)
309
+ </th>
310
+ <th rowSpan={1}>HIV Test 1</th>
311
+ <th rowSpan={1}>HIV Test 2</th>
312
+ <th rowSpan={1}>HIV Test 3</th>
313
+ <th rowSpan={1}>HIV Results</th>
314
+ <th rowSpan={5}>Treatment (Y/N/NA)</th>
315
+ <th rowSpan={5}>
316
+ 1=From <br />
317
+ Community Unit <br />
318
+ 2=Another
319
+ <br />
320
+ Health Facility <br />
321
+ 3=Not Applicable
322
+ </th>
323
+ <th rowSpan={5}>
324
+ 1=To Community <br />
325
+ Unit <br />
326
+ 2=HIV preventive <br />
327
+ services
328
+ <br />
329
+ 3=Another Health <br />
330
+ Facility 4=Not <br />
331
+ Applicable
332
+ </th>
333
+ </tr>
334
+ <tr>
335
+ <th rowSpan={5}>(I/R/KP/ND/Rev)</th>
336
+ <th rowSpan={1}>Kit Name</th>
337
+ <th rowSpan={1}>Kit Name</th>
338
+ <th rowSpan={1}>Kit Name</th>
339
+ <th rowSpan={5}>(N/P/Ic/U/N A)</th>
340
+ </tr>
341
+ <tr>
342
+ <th rowSpan={1}>Expiry / /</th>
343
+ <th rowSpan={1}>Expiry / /</th>
344
+ <th rowSpan={1}>Expiry / /</th>
345
+ </tr>
346
+ <tr>
347
+ <th rowSpan={1}>(N/P/I/NA)</th>
348
+ <th rowSpan={1}>(N/P/I/NA)</th>
349
+ <th rowSpan={1}>(N/P/I/NA)</th>
350
+ </tr>
351
+ </thead>
352
+ <tbody>
353
+ <tr>
354
+ <td className={styles.textCenter}>(a)</td>
355
+ <td className={styles.textCenter}>(b)</td>
356
+ <td className={styles.textCenter}>(c)</td>
357
+ <td className={styles.textCenter}>(d)</td>
358
+ <td className={styles.textCenter}>(e)</td>
359
+ <td className={styles.textCenter}>(f)</td>
360
+ <td className={styles.textCenter}>(g)</td>
361
+ <td className={styles.textCenter}>(h)</td>
362
+ <td className={styles.textCenter}>(i)</td>
363
+ <td className={styles.textCenter}>(j)</td>
364
+ <td className={styles.textCenter}>(k)</td>
365
+ <td className={styles.textCenter}>(l)</td>
366
+ <td className={styles.textCenter}>(m)</td>
367
+ <td className={styles.textCenter}>(n)</td>
368
+ <td className={styles.textCenter}>(o)</td>
369
+ <td className={styles.textCenter}>(p)</td>
370
+ <td className={styles.textCenter}>(q)</td>
371
+ <td className={styles.textCenter}>(r)</td>
372
+ <td className={styles.textCenter}>(s)</td>
373
+ <td className={styles.textCenter}>(t)</td>
374
+ <td className={styles.textCenter}>(u)</td>
375
+ <td className={styles.textCenter}>(v)</td>
376
+ <td className={styles.textCenter}>(w)</td>
377
+ <td className={styles.textCenter}>(x)</td>
378
+ <td className={styles.textCenter}>(y)</td>
379
+ <td className={styles.textCenter}>(z)</td>
380
+ <td className={styles.textCenter}>(aa)</td>
381
+ <td className={styles.textCenter}>(ab)</td>
382
+ <td className={styles.textCenter}>(ac)</td>
383
+ <td className={styles.textCenter}>(ad)</td>
384
+ <td className={styles.textCenter}>(ae)</td>
385
+ <td className={styles.textCenter}>(af)</td>
386
+ <td className={styles.textCenter}>(ag)</td>
387
+ <td className={styles.textCenter}>(ah)</td>
388
+ <td className={styles.textCenter}>(ai)</td>
389
+ <td className={styles.textCenter}>(aj)</td>
390
+ <td className={styles.textCenter}>(ak)</td>
391
+ <td className={styles.textCenter}>(al)</td>
392
+ <td className={styles.textCenter}>(am)</td>
393
+ <td className={styles.textCenter}>(an)</td>
394
+ <td className={styles.textCenter}>(ao)</td>
395
+ <td className={styles.textCenter}>(ap)</td>
396
+ <td className={styles.textCenter}>(aq)</td>
397
+ <td className={styles.textCenter}>(ar)</td>
398
+ <td className={styles.textCenter}>(as)</td>
399
+ <td className={styles.textCenter}>(at)</td>
400
+ </tr>
401
+ {patientlist?.length > 0 ? (
402
+ patientlist.map((patient, rowIndex) => (
403
+ <React.Fragment key={rowIndex}>
404
+ <tr>
405
+ <td rowSpan={2}>
406
+ {patient.date_of_visit ? new Date(patient.date_of_visit).toLocaleDateString('en-GB') : ''}
407
+ </td>
408
+ <td>{patient.anc_number}</td>
409
+ <td rowSpan={2}>{patient.anc_number_NUPI}</td>
410
+ <td rowSpan={2}>{patient.amrsID}</td>
411
+ <td rowSpan={2}>{patient.number_of_anc_visits}</td>
412
+ <td rowSpan={2}>{patient.full_names}</td>
413
+ <td>{patient.date_of_birth ? new Date(patient.date_of_birth).toLocaleDateString('en-GB') : ''}</td>
414
+ <td rowSpan={2}>{patient.subcounty_county}</td>
415
+ <td>{patient.village_estate_landmark}</td>
416
+ <td rowSpan={2}>{patient.marital_status}</td>
417
+ <td rowSpan={2}>{patient.parity}</td>
418
+ <td rowSpan={2}>{patient.gravidae}</td>
419
+ <td rowSpan={2}>
420
+ {patient.last_lmp_date ? new Date(patient.last_lmp_date).toLocaleDateString('en-GB') : ''}
421
+ </td>
422
+ <td rowSpan={2}>{patient.edd ? new Date(patient.edd).toLocaleDateString('en-GB') : ''}</td>
423
+ <td rowSpan={2}>{patient.gestation_in_weeks}</td>
424
+ <td rowSpan={2}>{patient.muac}</td>
425
+ <td rowSpan={2}>{patient.height}</td>
426
+ <td rowSpan={2}>{patient.weight}</td>
427
+ <td rowSpan={2}>{patient.blood_pressure}</td>
428
+ <td rowSpan={2}>{patient.breast_exam}</td>
429
+ <td>{patient.fgm}</td>
430
+ <td rowSpan={2}>{patient.haemoglobin}</td>
431
+ <td rowSpan={2}>{patient.blood_sugar_test}</td>
432
+ <td rowSpan={2}>{patient.blood_group_rhesus}</td>
433
+ <td rowSpan={2}>{patient.urinalysis}</td>
434
+ <td>{patient.rpr_vdrl_duo}</td>
435
+ <td>{patient.hepatitisB}</td>
436
+ <td rowSpan={2}>{patient.tb_screening}</td>
437
+ <td rowSpan={2}>{patient.hiv_test_type}</td>
438
+
439
+ <td>
440
+ {patient.hiv_test_1_kit_name} / {patient.hiv_test_1_lot_no} /{' '}
441
+ {patient.hiv_test_1_expiry_date
442
+ ? new Date(patient.hiv_test_1_expiry_date).toLocaleDateString('en-GB')
443
+ : ''}{' '}
444
+ / {patient.hiv_test_1_test_result}
445
+ </td>
446
+
447
+ <td>
448
+ {patient.hiv_test_2_kit_name} / {patient.hiv_test_2_lot_number} /{' '}
449
+ {patient.hiv_test_2_expiry_date
450
+ ? new Date(patient.hiv_test_2_expiry_date).toLocaleDateString('en-GB')
451
+ : ''}{' '}
452
+ / {patient.hiv_test_2_test_result}
453
+ </td>
454
+
455
+ <td>
456
+ {patient.hiv_test_3_kit_name} / {patient.hiv_test_3_lot_number} /{' '}
457
+ {patient.hiv_test_3_expiry_date
458
+ ? new Date(patient.hiv_test_3_expiry_date).toLocaleDateString('en-GB')
459
+ : ''}{' '}
460
+ / {patient.hiv_test_3_test_result}
461
+ </td>
462
+
463
+ <td rowSpan={2}>{patient.hiv_results}</td>
464
+ <td rowSpan={2}>{patient.maternal_haart}</td>
465
+ <td rowSpan={2}>{patient.infant_prophylaxis}</td>
466
+ <td rowSpan={2}>{patient.partner_hiv_testing}</td>
467
+ <td>{patient.other_conditions}</td>
468
+ <td rowSpan={2}>{patient.deworming}</td>
469
+ <td rowSpan={2}>{patient.ipt_1_3}</td>
470
+ <td rowSpan={2}>{patient.tt_dose}</td>
471
+ <td rowSpan={2}>{patient.supplementation}</td>
472
+ <td rowSpan={2}>{patient.llitns}</td>
473
+ <td rowSpan={2}>{patient.referrals_from}</td>
474
+ <td rowSpan={2}>{patient.referrals_to}</td>
475
+ <td rowSpan={2}>{patient.reason_for_referral}</td>
476
+ <td rowSpan={2}>{patient.remarks}</td>
477
+ </tr>
478
+
479
+ <tr>
480
+ <td>{patient.NUPI}</td>
481
+ <td>{patient.age}</td>
482
+ <td>{patient.phone_number}</td>
483
+ <td>{patient.fgm_complications}</td>
484
+ <td>{patient.rpr_vdrl_duo_results}</td>
485
+ <td>{patient.hepatitisB_treatment}</td>
486
+
487
+ <td>
488
+ {patient.hiv_test_1_expiry_date
489
+ ? new Date(patient.hiv_test_1_expiry_date).toLocaleDateString('en-GB')
490
+ : ''}
491
+ </td>
492
+
493
+ <td>
494
+ {patient.hiv_test_2_expiry_date
495
+ ? new Date(patient.hiv_test_2_expiry_date).toLocaleDateString('en-GB')
496
+ : ''}
497
+ </td>
498
+
499
+ <td>
500
+ {patient.hiv_test_3_expiry_date
501
+ ? new Date(patient.hiv_test_3_expiry_date).toLocaleDateString('en-GB')
502
+ : ''}
503
+ </td>
504
+
505
+ <td>{patient.other_conditions_treatment}</td>
506
+ </tr>
507
+ </React.Fragment>
508
+ ))
509
+ ) : (
510
+ <TableRow>
511
+ <TableCell colSpan={moh405Columns.length}>No data available</TableCell>
512
+ </TableRow>
513
+ )}
514
+ </tbody>
515
+ </table>
516
+ </div>
517
+ </>
518
+ );
519
+ };
520
+
521
+ export default Moh405Register;