@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,318 @@
1
+ import React, { useMemo } from "react";
2
+ import TableWrapper from "../../../table-wrapper/table-wrapper.component";
3
+ import styles from '../../../table-wrapper/table-wrapper.scss';
4
+ import TableRowMapper from "../../../table-wrapper/table-row-mapper.component";
5
+ import { getCell } from "../../../../utils/utils";
6
+
7
+ interface BloodChemistryProps {
8
+ data?: any,
9
+ locationUuids?: string,
10
+ startDate?: string,
11
+ endDate?: string
12
+ }
13
+
14
+ const BloodChemistry: React.FC<BloodChemistryProps> = ({ data, locationUuids, startDate, endDate }) => {
15
+ const tableRows = useMemo(() => {
16
+ return [
17
+ {
18
+ tableCells: [
19
+ getCell("", "2. BLOOD CHEMISTRY", 4, 1, true),
20
+ ]
21
+ },
22
+ {
23
+ tableCells: [
24
+ getCell("", "", 4),
25
+ ]
26
+ },
27
+ {
28
+ tableCells: [
29
+ getCell("", "Blood Sugar Test", 1, 1, true),
30
+ getCell("", "Total Exam", 1, 1, true),
31
+ getCell("", "Low", 1, 1, true),
32
+ getCell("", "High", 1, 1, true),
33
+ ]
34
+ },
35
+ {
36
+ tableCells: [
37
+ getCell("", "2.1 Blood sugar"),
38
+ getCell("total_blood_sugar"),
39
+ getCell("min_blood_sugar"),
40
+ getCell("max_blood_sugar"),
41
+ ]
42
+ },
43
+ {
44
+ tableCells: [
45
+ getCell("", "2.2 OGTT"),
46
+ getCell(),
47
+ getCell("min_ogtt"),
48
+ getCell("max_ogtt"),
49
+ ]
50
+ },
51
+ {
52
+ tableCells: [
53
+ getCell("", "2.3 Renal Function Test", 1, 1, true),
54
+ getCell(),
55
+ getCell(),
56
+ getCell(),
57
+ ]
58
+ },
59
+ {
60
+ tableCells: [
61
+ getCell("", "2.4 Creatinine"),
62
+ getCell(),
63
+ getCell("min_creatinine"),
64
+ getCell("max_creatinine"),
65
+ ]
66
+ },
67
+ {
68
+ tableCells: [
69
+ getCell("", "1.4 Proteins"),
70
+ getCell(),
71
+ getCell(),
72
+ getCell(),
73
+ ]
74
+ },
75
+ {
76
+ tableCells: [
77
+ getCell("", "2.5 Urea"),
78
+ getCell(),
79
+ getCell("min_urea"),
80
+ getCell("max_urea"),
81
+ ]
82
+ },
83
+
84
+ {
85
+ tableCells: [
86
+ getCell("", "2.6 Sodium"),
87
+ getCell(),
88
+ getCell(),
89
+ getCell(),
90
+ ]
91
+ },
92
+ {
93
+ tableCells: [
94
+ getCell("", "2.7 Potassium"),
95
+ getCell(),
96
+ getCell(),
97
+ getCell(),
98
+ ]
99
+ },
100
+ {
101
+ tableCells: [
102
+ getCell("", "2.8 Chlorides"),
103
+ getCell(),
104
+ getCell(),
105
+ getCell(),
106
+ ]
107
+ },
108
+ {
109
+ tableCells: [
110
+ getCell("", "2.8 Liver Function Test", 1, 1, true),
111
+ getCell(),
112
+ getCell(),
113
+ getCell(),
114
+ ]
115
+ },
116
+ {
117
+ tableCells: [
118
+ getCell("", "2.9 Direct bilirubin"),
119
+ getCell(),
120
+ getCell("min_direct_bili"),
121
+ getCell("max_direct_bili"),
122
+ ]
123
+ },
124
+ {
125
+ tableCells: [
126
+ getCell("", "2.10 Total bilirubin"),
127
+ getCell(),
128
+ getCell("min_total_bili"),
129
+ getCell("max_total_bili"),
130
+ ]
131
+ },
132
+ {
133
+ tableCells: [
134
+ getCell("", "2.11 ASAT (SGOT)"),
135
+ getCell(),
136
+ getCell("min_ast"),
137
+ getCell("max_ast"),
138
+ ]
139
+ },
140
+ {
141
+ tableCells: [
142
+ getCell("", "2.12 ALAT (SGPT)"),
143
+ getCell(),
144
+ getCell("min_alt"),
145
+ getCell("max_alt"),
146
+ ]
147
+ },
148
+ {
149
+ tableCells: [
150
+ getCell("", "2.13 Serum Protein"),
151
+ getCell(),
152
+ getCell("min_total_protein"),
153
+ getCell("max_total_protein"),
154
+ ]
155
+ },
156
+ {
157
+ tableCells: [
158
+ getCell("", "2.14 Albumin"),
159
+ getCell(),
160
+ getCell(),
161
+ getCell(),
162
+ ]
163
+ },
164
+ {
165
+ tableCells: [
166
+ getCell("", "2.15 Alkaline Phosphatase"),
167
+ getCell(),
168
+ getCell("min_alk_phos"),
169
+ getCell("max_alk_phos"),
170
+ ]
171
+ },
172
+ {
173
+ tableCells: [
174
+ getCell("", "2.16 Lipid Profile", 1, 1, true),
175
+ getCell(),
176
+ getCell("min_lipid_profile"),
177
+ getCell("max_lipid_profile"),
178
+ ]
179
+ },
180
+ {
181
+ tableCells: [
182
+ getCell("", "2.17 Total cholesterol"),
183
+ getCell(),
184
+ getCell("min_total_cholesterol"),
185
+ getCell("max_total_cholesterol"),
186
+ ]
187
+ },
188
+
189
+ {
190
+ tableCells: [
191
+ getCell("", "2.18 Triglycerides"),
192
+ getCell(),
193
+ getCell("min_triglycerides"),
194
+ getCell("max_triglycerides"),
195
+ ]
196
+ },
197
+ {
198
+ tableCells: [
199
+ getCell("", "2.19 LDL"),
200
+ getCell(),
201
+ getCell("min_ldl"),
202
+ getCell("max_ldl"),
203
+ ]
204
+ },
205
+ {
206
+ tableCells: [
207
+ getCell("", "Hormonal Test", 1, 1, true),
208
+ getCell("", "Total Exam", 1, 1, true),
209
+ getCell("", "Low", 1, 1, true),
210
+ getCell("", "High", 1, 1, true),
211
+ ]
212
+ },
213
+ {
214
+ tableCells: [
215
+ getCell("", "2.20 T3"),
216
+ getCell(),
217
+ getCell("min_t3"),
218
+ getCell("max_t3"),
219
+ ]
220
+ },
221
+ {
222
+ tableCells: [
223
+ getCell("", "2.21 T4"),
224
+ getCell(),
225
+ getCell("min_t4"),
226
+ getCell("max_t4"),
227
+ ]
228
+ },
229
+ {
230
+ tableCells: [
231
+ getCell("", "2.22 TSH"),
232
+ getCell(),
233
+ getCell("min_tsh"),
234
+ getCell("max_tsh"),
235
+ ]
236
+ },
237
+ {
238
+ tableCells: [
239
+ getCell("", "Tumor Markers", 1, 1, true),
240
+ getCell("", "Total Exam", 1, 1, true),
241
+ getCell("", "Number Positive", 2, 1, true),
242
+ ]
243
+ },
244
+ {
245
+ tableCells: [
246
+ getCell("", "2.23 PSA"),
247
+ getCell("total_psa"),
248
+ getCell("positive_psa", "", 2),
249
+ ]
250
+ },
251
+ {
252
+ tableCells: [
253
+ getCell("", "2.24 CA 15-3"),
254
+ getCell(),
255
+ getCell("", "", 2),
256
+ ]
257
+ },
258
+ {
259
+ tableCells: [
260
+ getCell("", "2.25 CA 19-9"),
261
+ getCell(),
262
+ getCell("", "", 2),
263
+ ]
264
+ },
265
+ {
266
+ tableCells: [
267
+ getCell("", "2.26 CA 125"),
268
+ getCell(),
269
+ getCell("", "", 2),
270
+ ]
271
+ },
272
+ {
273
+ tableCells: [
274
+ getCell("", "2.27 CEA"),
275
+ getCell(),
276
+ getCell("", "", 2),
277
+ ]
278
+ },
279
+ {
280
+ tableCells: [
281
+ getCell("", "2.28 AFP"),
282
+ getCell(),
283
+ getCell("", "", 2),
284
+ ]
285
+ },
286
+ {
287
+ tableCells: [
288
+ getCell("", "CSF Chemistry", 1, 1, true),
289
+ getCell("", "Total Exam", 1, 1, true),
290
+ getCell("", "Low", 1, 1, true),
291
+ getCell("", "High", 1, 1, true),
292
+ ]
293
+ },
294
+ {
295
+ tableCells: [
296
+ getCell("", "2.29 Proteins"),
297
+ getCell(),
298
+ getCell(),
299
+ getCell(),
300
+ ]
301
+ },
302
+ {
303
+ tableCells: [
304
+ getCell("", "2.30 Glucose"),
305
+ getCell(),
306
+ getCell(),
307
+ getCell(),
308
+ ]
309
+ },
310
+ ]
311
+ }, []);
312
+
313
+ return <TableWrapper>
314
+ <TableRowMapper tableRows={tableRows} data={data} locationUuids={locationUuids} startDate={startDate} endDate={endDate} />
315
+ </TableWrapper>
316
+ }
317
+
318
+ export default BloodChemistry;
@@ -0,0 +1,137 @@
1
+ import React, { useMemo } from "react";
2
+ import TableWrapper from "../../../table-wrapper/table-wrapper.component";
3
+ import TableRowMapper from "../../../table-wrapper/table-row-mapper.component";
4
+ import { getCell } from "../../../../utils/utils";
5
+
6
+ const DrugSusceptibilityTesting: React.FC = () => {
7
+ const cells = Array.from({ length: 25 }, (_, i) => getCell());
8
+
9
+ const tableRows = useMemo(() => {
10
+ return [
11
+ {
12
+ tableCells: [getCell("", "9. DRUG SUSCEPTIBILITY TESTING", 12, 1, true)]
13
+ },
14
+ {
15
+ tableCells: [
16
+ getCell("", "Drug Resistance Pattern", 1, 1, true),
17
+ getCell("", "a. Ciprofloxacin", 1, 1, true),
18
+ getCell("", "b. Levofloxacin", 1, 1, true),
19
+ getCell("", "c. Gentamicin", 1, 1, true),
20
+ getCell("", "d. Tetracycline", 1, 1, true),
21
+ getCell("", "e. Ceftazidime", 1, 1, true),
22
+ getCell("", "f. Cefuroxime", 1, 1, true),
23
+ getCell("", "g. Cefotaxime", 1, 1, true),
24
+ getCell("", "h. Ampicillin", 1, 1, true),
25
+ getCell("", "i. Cefazolin", 1, 1, true),
26
+ getCell("", "j. Amoxillin-Clavulanate", 1, 1, true),
27
+ getCell("", "k. Amikacin", 1, 1, true),
28
+ getCell("", "m. Chloramphenicol", 1, 1, true),
29
+ getCell("", "n. Cefepime", 1, 1, true),
30
+ getCell("", "p. Piperacillin-tazobactam", 1, 1, true),
31
+ getCell("", "q. obramycin", 1, 1, true),
32
+ getCell("", "r. Ampicillin Sulbactam", 1, 1, true),
33
+ getCell("", "s. Trimethoprim Sulfamethoxazole", 1, 1, true),
34
+ getCell("", "t. Penicillin", 1, 1, true),
35
+ getCell("", "u. Vancomycin", 1, 1, true),
36
+ getCell("", "v. Meropenem", 1, 1, true),
37
+ getCell("", "w. Clindamycin", 1, 1, true),
38
+ getCell("", "x. Doxycycline/tetracyclin", 1, 1, true),
39
+ getCell("", "y. Ceftazidime-avibactam", 1, 1, true),
40
+ getCell("", "z. Erythromycin", 1, 1, true),
41
+ getCell("", "aa. Gentamicin", 1, 1, true),
42
+ ]
43
+ },
44
+ {
45
+ tableCells: [
46
+ getCell("", "9.1 E. coli O157:H7"),
47
+ ...cells
48
+ ]
49
+ },
50
+ {
51
+ tableCells: [
52
+ getCell("", "9.2 Proteus spp"),
53
+ ...cells
54
+ ]
55
+ },
56
+ {
57
+ tableCells: [
58
+ getCell("", "9.3 Salmonella spp"),
59
+ ...cells
60
+ ]
61
+ },
62
+ {
63
+ tableCells: [
64
+ getCell("", "9.4 Shigella spp"),
65
+ ...cells
66
+ ]
67
+ },
68
+ {
69
+ tableCells: [
70
+ getCell("", "9.5 Klebsiella pneumoniae"),
71
+ ...cells
72
+ ]
73
+ },
74
+ {
75
+ tableCells: [
76
+ getCell("", "9.6 Pseudomonas spp"),
77
+ ...cells
78
+ ]
79
+ },
80
+ {
81
+ tableCells: [
82
+ getCell("", "9.7 Staphylococcus aureus"),
83
+ ...cells
84
+ ]
85
+ },
86
+ {
87
+ tableCells: [
88
+ getCell("", "9.8 Vibrio cholerae spp"),
89
+ ...cells
90
+ ]
91
+ },
92
+ {
93
+ tableCells: [
94
+ getCell("", "9.9 Neisseria meningitidis"),
95
+ ...cells
96
+ ]
97
+ },
98
+ {
99
+ tableCells: [
100
+ getCell("", "9.10 Neisseria gonorrhoeae"),
101
+ ...cells
102
+ ]
103
+ },
104
+ {
105
+ tableCells: [
106
+ getCell("", "9.11 Streptococcus pneumoniae"),
107
+ ...cells
108
+ ]
109
+ },
110
+ {
111
+ tableCells: [
112
+ getCell("", "9.12 Haemophilus influenzae"),
113
+ ...cells
114
+ ]
115
+ },
116
+ {
117
+ tableCells: [
118
+ getCell("", "9.13 Haemophilus parainfluenzae"),
119
+ ...cells
120
+ ]
121
+ },
122
+ {
123
+ tableCells: [
124
+ getCell("", "9.14 Bacterial vaginosis"),
125
+ ...cells
126
+ ]
127
+ },
128
+ ]
129
+ }, []);
130
+
131
+
132
+ return <TableWrapper>
133
+ <TableRowMapper tableRows={tableRows} />
134
+ </TableWrapper>
135
+ }
136
+
137
+ export default DrugSusceptibilityTesting;
@@ -0,0 +1,179 @@
1
+ import React, { useMemo } from "react";
2
+ import TableWrapper from "../../../table-wrapper/table-wrapper.component";
3
+ import { getCell } from "../../../../utils/utils";
4
+ import TableRowMapper from "../../../table-wrapper/table-row-mapper.component";
5
+
6
+ interface HaematologyProps {
7
+ data?: any,
8
+ locationUuids?: string,
9
+ startDate?: string,
10
+ endDate?: string
11
+ }
12
+
13
+ const Haematology: React.FC<HaematologyProps> = ({ data, locationUuids, startDate, endDate }) => {
14
+ const tableRows = useMemo(() => {
15
+ return [
16
+ {
17
+ tableCells: [
18
+ getCell("", "4 HAEMATOLOGY", 4, 1, true)
19
+ ]
20
+ },
21
+ {
22
+ tableCells: [
23
+ getCell("", "Haematology tests", 1, 1, true),
24
+ getCell("", "Total Exam", 1, 1, true),
25
+ getCell("", "HB <5 g/dl", 1, 1, true),
26
+ getCell("", "HB between 5 and 10 g/dl", 1, 1, true),
27
+ ]
28
+ },
29
+ {
30
+ tableCells: [
31
+ getCell("", "4.1 Full blood count"),
32
+ getCell("total_fbc"),
33
+ getCell("fbc_hb_less_than_5"),
34
+ getCell("fbc_hb_5_to_10")
35
+ ]
36
+ },
37
+ {
38
+ tableCells: [
39
+ getCell("", "4.2 HB estimation tests (other techniques)"),
40
+ getCell(),
41
+ getCell(),
42
+ getCell()
43
+ ]
44
+ },
45
+ {
46
+ tableCells: [
47
+ getCell(),
48
+ getCell("", "Total Exam", 1, 1, true),
49
+ getCell("", "Pre-diabetes", 1, 1, true),
50
+ getCell("", "Diabetes", 1, 1, true),
51
+ ]
52
+ },
53
+ {
54
+ tableCells: [
55
+ getCell("", "Hemoglobin A1c (HbA1c)"),
56
+ getCell(),
57
+ getCell(),
58
+ getCell()
59
+ ]
60
+ },
61
+ {
62
+ tableCells: [
63
+ getCell(),
64
+ getCell("", "Total Exam", 1, 1, true),
65
+ getCell("", "Number <500", 2, 1, true),
66
+ ]
67
+ },
68
+ {
69
+ tableCells: [
70
+ getCell("", "4.4 CD4"),
71
+ getCell("total_cd4"),
72
+ getCell("cd4_less_than_500", "", 2),
73
+ ]
74
+ },
75
+ {
76
+ tableCells: [
77
+ getCell("", "Other Haematology tests", 1, 1, true),
78
+ getCell("", "Total Exam", 1, 1, true),
79
+ getCell("", "Number Positive", 2, 1, true),
80
+ ]
81
+ },
82
+ {
83
+ tableCells: [getCell("", "4.5 Sickling test"), getCell(), getCell("", "", 2)]
84
+ },
85
+ {
86
+ tableCells: [getCell("", "4.6 Peripheral blood films"), getCell(), getCell("", "", 2)]
87
+ },
88
+ {
89
+ tableCells: [getCell("", "4.7 BMA"), getCell(), getCell("", "", 2)]
90
+ },
91
+ {
92
+ tableCells: [getCell("", "4.8 Coagulation profile"), getCell(), getCell("", "", 2)]
93
+ },
94
+ {
95
+ tableCells: [getCell("", "4.9 Reticulocyte"), getCell(), getCell("", "", 2)]
96
+ },
97
+ {
98
+ tableCells: [
99
+ getCell(),
100
+ getCell("", "Total Exam", 1, 1, true),
101
+ getCell("", "High", 2, 1, true),
102
+ ]
103
+ },
104
+ {
105
+ tableCells: [
106
+ getCell("", "4.10 Erythrocyte Sedimentation Rate"),
107
+ getCell(),
108
+ getCell("", "", 2),
109
+ ]
110
+ },
111
+ {
112
+ tableCells: [
113
+ getCell("", "Blood Grouping", 3, 1, true),
114
+ getCell("", "Number", 1, 1, true),
115
+ ]
116
+ },
117
+ {
118
+ tableCells: [
119
+ getCell("", "4.11 Total blood group tests", 3),
120
+ getCell("total_blood_group"),
121
+ ]
122
+ },
123
+ {
124
+ tableCells: [
125
+ getCell("", "4.12 Blood units grouped", 3),
126
+ getCell(),
127
+ ]
128
+ },
129
+ {
130
+ tableCells: [
131
+ getCell("", "Blood Safety", 4, 1, true),
132
+ ]
133
+ },
134
+ {
135
+ tableCells: [getCell("", "4.13 Blood units received from blood transfusion centres", 3), getCell()]
136
+ },
137
+ {
138
+ tableCells: [getCell("", "4.14 Blood units collected at facility", 3), getCell()]
139
+ },
140
+ {
141
+ tableCells: [getCell("", "4.15 Blood units transfused", 3), getCell()]
142
+ },
143
+ {
144
+ tableCells: [getCell("", "4.16 Transfusion reactions reported and investigated", 3), getCell()]
145
+ },
146
+ {
147
+ tableCells: [getCell("", "4.17 Blood grouping and cross matched", 3), getCell()]
148
+ },
149
+ {
150
+ tableCells: [getCell("", "4.18 Blood units discarded", 3), getCell()]
151
+ },
152
+ {
153
+ tableCells: [
154
+ getCell("", "Blood Screening at facility", 3, 1, true),
155
+ getCell("", "Number Positive", 1, 1, true),
156
+ ]
157
+ },
158
+ {
159
+ tableCells: [getCell("", "4.19 HIV", 3), getCell("positive_hiv")]
160
+ },
161
+ {
162
+ tableCells: [getCell("", "4.20 Hepatitis B", 3), getCell("positive_hep_b")]
163
+ },
164
+ {
165
+ tableCells: [getCell("", "4.21 Hepatitis C", 3), getCell("positive_hep_c")]
166
+ },
167
+ {
168
+ tableCells: [getCell("", "4.22 Syphilis", 3), getCell("positive_syphilis")]
169
+ },
170
+ ]
171
+ }, []);
172
+
173
+
174
+ return <TableWrapper>
175
+ <TableRowMapper tableRows={tableRows} data={data} locationUuids={locationUuids} startDate={startDate} endDate={endDate} />
176
+ </TableWrapper>
177
+ }
178
+
179
+ export default Haematology;