@ampath/esm-reports-app 1.0.0-next.7 → 1.0.0-next.71

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