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

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 (32) hide show
  1. package/dist/260.js +1 -1
  2. package/dist/402.js +1 -0
  3. package/dist/402.js.map +1 -0
  4. package/dist/812.js +1 -1
  5. package/dist/812.js.map +1 -1
  6. package/dist/959.js +2 -0
  7. package/dist/{367.js.map → 959.js.map} +1 -1
  8. package/dist/ampath-esm-reports-app.js +1 -1
  9. package/dist/ampath-esm-reports-app.js.buildmanifest.json +37 -37
  10. package/dist/main.js +1 -1
  11. package/dist/main.js.map +1 -1
  12. package/dist/routes.json +1 -1
  13. package/package.json +1 -1
  14. package/src/dashboard/reports-dasboard.tsx +3 -0
  15. package/src/reports/moh-706/moh-706.component.tsx +26 -0
  16. package/src/reports/moh-706/moh-706.scss +18 -0
  17. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +132 -0
  18. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +324 -0
  19. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +152 -0
  20. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +187 -0
  21. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +103 -0
  22. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +129 -0
  23. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +55 -0
  24. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +54 -0
  25. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +116 -0
  26. package/src/reports/moh-706/table-wrapper/table-wrapper.component.tsx +21 -0
  27. package/src/reports/moh-706/table-wrapper/table-wrapper.scss +31 -0
  28. package/src/root.component.tsx +2 -0
  29. package/dist/367.js +0 -2
  30. package/dist/86.js +0 -1
  31. package/dist/86.js.map +0 -1
  32. /package/dist/{367.js.LICENSE.txt → 959.js.LICENSE.txt} +0 -0
@@ -0,0 +1,324 @@
1
+ import React, { useMemo } from "react";
2
+ import { TableRow, TableCell } from '@carbon/react';
3
+ import TableWrapper from "../../table-wrapper/table-wrapper.component";
4
+ import styles from '../../table-wrapper/table-wrapper.scss';
5
+
6
+ const BloodChemistry: React.FC = () => {
7
+ const getCell = (key = "", value = "", colSpan = 1, strong = false) => ({
8
+ key,
9
+ value,
10
+ strong,
11
+ colSpan
12
+ });
13
+
14
+ const tableRows = useMemo(() => {
15
+ return [
16
+ {
17
+ tableCells: [
18
+ getCell("", "2. BLOOD CHEMISTRY", 4, true),
19
+ ]
20
+ },
21
+ {
22
+ tableCells: [
23
+ getCell("", "", 4),
24
+ ]
25
+ },
26
+ {
27
+ tableCells: [
28
+ getCell("", "Blood Sugar Test", 1, true),
29
+ getCell("", "Total Exam", 1, true),
30
+ getCell("", "Low", 1, true),
31
+ getCell("", "High", 1, true),
32
+ ]
33
+ },
34
+ {
35
+ tableCells: [
36
+ getCell("", "2.1 Blood sugar"),
37
+ getCell(),
38
+ getCell(),
39
+ getCell(),
40
+ ]
41
+ },
42
+ {
43
+ tableCells: [
44
+ getCell("", "2.2 OGTT"),
45
+ getCell(),
46
+ getCell(),
47
+ getCell(),
48
+ ]
49
+ },
50
+ {
51
+ tableCells: [
52
+ getCell("", "2.3 Renal Function Test", 1, true),
53
+ getCell(),
54
+ getCell(),
55
+ getCell(),
56
+ ]
57
+ },
58
+ {
59
+ tableCells: [
60
+ getCell("", "2.4 Creatinine"),
61
+ getCell(),
62
+ getCell(),
63
+ getCell(),
64
+ ]
65
+ },
66
+ {
67
+ tableCells: [
68
+ getCell("", "1.4 Proteins"),
69
+ getCell(),
70
+ getCell(),
71
+ getCell(),
72
+ ]
73
+ },
74
+ {
75
+ tableCells: [
76
+ getCell("", "2.5 Urea"),
77
+ getCell(),
78
+ getCell(),
79
+ getCell(),
80
+ ]
81
+ },
82
+ {
83
+ tableCells: [
84
+ getCell("", "2.6 Sodium"),
85
+ getCell(),
86
+ getCell(),
87
+ getCell(),
88
+ ]
89
+ },
90
+ {
91
+ tableCells: [
92
+ getCell("", "2.7 Potassium"),
93
+ getCell(),
94
+ getCell(),
95
+ getCell(),
96
+ ]
97
+ },
98
+ {
99
+ tableCells: [
100
+ getCell("", "2.8 Chlorides"),
101
+ getCell(),
102
+ getCell(),
103
+ getCell(),
104
+ ]
105
+ },
106
+ {
107
+ tableCells: [
108
+ getCell("", "2.8 Liver Function Test", 1, true),
109
+ getCell(),
110
+ getCell(),
111
+ getCell(),
112
+ ]
113
+ },
114
+ {
115
+ tableCells: [
116
+ getCell("", "2.9 Direct bilirubin"),
117
+ getCell(),
118
+ getCell(),
119
+ getCell(),
120
+ ]
121
+ },
122
+ {
123
+ tableCells: [
124
+ getCell("", "2.10 Total bilirubin"),
125
+ getCell(),
126
+ getCell(),
127
+ getCell(),
128
+ ]
129
+ },
130
+ {
131
+ tableCells: [
132
+ getCell("", "2.11 ASAT (SGOT)"),
133
+ getCell(),
134
+ getCell(),
135
+ getCell(),
136
+ ]
137
+ },
138
+ {
139
+ tableCells: [
140
+ getCell("", "2.12 ALAT (SGPT)"),
141
+ getCell(),
142
+ getCell(),
143
+ getCell(),
144
+ ]
145
+ },
146
+ {
147
+ tableCells: [
148
+ getCell("", "2.13 Serum Protein"),
149
+ getCell(),
150
+ getCell(),
151
+ getCell(),
152
+ ]
153
+ },
154
+ {
155
+ tableCells: [
156
+ getCell("", "2.14 Albumin"),
157
+ getCell(),
158
+ getCell(),
159
+ getCell(),
160
+ ]
161
+ },
162
+ {
163
+ tableCells: [
164
+ getCell("", "2.15 Alkaline Phosphatase"),
165
+ getCell(),
166
+ getCell(),
167
+ getCell(),
168
+ ]
169
+ },
170
+ {
171
+ tableCells: [
172
+ getCell("", "2.16 Lipid Profile", 1, true),
173
+ getCell(),
174
+ getCell(),
175
+ getCell(),
176
+ ]
177
+ },
178
+ {
179
+ tableCells: [
180
+ getCell("", "2.17 Total cholesterol"),
181
+ getCell(),
182
+ getCell(),
183
+ getCell(),
184
+ ]
185
+ },
186
+ {
187
+ tableCells: [
188
+ getCell("", "2.18 Triglycerides"),
189
+ getCell(),
190
+ getCell(),
191
+ getCell(),
192
+ ]
193
+ },
194
+ {
195
+ tableCells: [
196
+ getCell("", "2.19 LDL"),
197
+ getCell(),
198
+ getCell(),
199
+ getCell(),
200
+ ]
201
+ },
202
+ {
203
+ tableCells: [
204
+ getCell("", "Hormonal Test", 1, true),
205
+ getCell("", "Total Exam", 1, true),
206
+ getCell("", "Low", 1, true),
207
+ getCell("", "High", 1, true),
208
+ ]
209
+ },
210
+ {
211
+ tableCells: [
212
+ getCell("", "2.20 T3"),
213
+ getCell(),
214
+ getCell(),
215
+ getCell(),
216
+ ]
217
+ },
218
+ {
219
+ tableCells: [
220
+ getCell("", "2.21 T4"),
221
+ getCell(),
222
+ getCell(),
223
+ getCell(),
224
+ ]
225
+ },
226
+ {
227
+ tableCells: [
228
+ getCell("", "2.22 TSH"),
229
+ getCell(),
230
+ getCell(),
231
+ getCell(),
232
+ ]
233
+ },
234
+ {
235
+ tableCells: [
236
+ getCell("", "Tumor Markers", 1, true),
237
+ getCell("", "Total Exam", 1, true),
238
+ getCell("", "Number Positive", 2, true),
239
+ ]
240
+ },
241
+ {
242
+ tableCells: [
243
+ getCell("", "2.23 PSA"),
244
+ getCell(),
245
+ getCell("", "", 2),
246
+ ]
247
+ },
248
+ {
249
+ tableCells: [
250
+ getCell("", "2.24 CA 15-3"),
251
+ getCell(),
252
+ getCell("", "", 2),
253
+ ]
254
+ },
255
+ {
256
+ tableCells: [
257
+ getCell("", "2.25 CA 19-9"),
258
+ getCell(),
259
+ getCell("", "", 2),
260
+ ]
261
+ },
262
+ {
263
+ tableCells: [
264
+ getCell("", "2.26 CA 125"),
265
+ getCell(),
266
+ getCell("", "", 2),
267
+ ]
268
+ },
269
+ {
270
+ tableCells: [
271
+ getCell("", "2.27 CEA"),
272
+ getCell(),
273
+ getCell("", "", 2),
274
+ ]
275
+ },
276
+ {
277
+ tableCells: [
278
+ getCell("", "2.28 AFP"),
279
+ getCell(),
280
+ getCell("", "", 2),
281
+ ]
282
+ },
283
+ {
284
+ tableCells: [
285
+ getCell("", "CSF Chemistry", 1, true),
286
+ getCell("", "Total Exam", 1, true),
287
+ getCell("", "Low", 1, true),
288
+ getCell("", "High", 1, true),
289
+ ]
290
+ },
291
+ {
292
+ tableCells: [
293
+ getCell("", "2.29 Proteins"),
294
+ getCell(),
295
+ getCell(),
296
+ getCell(),
297
+ ]
298
+ },
299
+ {
300
+ tableCells: [
301
+ getCell("", "2.30 Glucose"),
302
+ getCell(),
303
+ getCell(),
304
+ getCell(),
305
+ ]
306
+ },
307
+ ]
308
+ }, []);
309
+
310
+
311
+ return <TableWrapper>
312
+ {tableRows.map((tR) => (
313
+ <TableRow>
314
+ {tR.tableCells.map((tC) => (
315
+ <TableCell className={styles.dataCell} colSpan={tC.colSpan}>
316
+ {tC.strong ? <strong>{tC.value}</strong> : tC.value}
317
+ </TableCell>
318
+ ))}
319
+ </TableRow>
320
+ ))}
321
+ </TableWrapper>
322
+ }
323
+
324
+ export default BloodChemistry;
@@ -0,0 +1,152 @@
1
+ import React, { useMemo } from "react";
2
+ import { TableRow, TableCell } from '@carbon/react';
3
+ import TableWrapper from "../../table-wrapper/table-wrapper.component";
4
+ import styles from '../../table-wrapper/table-wrapper.scss';
5
+
6
+ const DrugSusceptibilityTesting: React.FC = () => {
7
+ const getCell = (key = "", value = "", colSpan = 1, strong = false) => ({
8
+ key,
9
+ value,
10
+ strong,
11
+ colSpan
12
+ });
13
+
14
+ const cells = Array.from({ length: 25}, (_, i) => getCell());
15
+
16
+ const tableRows = useMemo(() => {
17
+ return [
18
+ {
19
+ tableCells: [getCell("", "9. DRUG SUSCEPTIBILITY TESTING", 12, true)]
20
+ },
21
+ {
22
+ tableCells: [
23
+ getCell("", "Drug Resistance Pattern", 1, true),
24
+ getCell("", "a. Ciprofloxacin", 1, true),
25
+ getCell("", "b. Levofloxacin", 1, true),
26
+ getCell("", "c. Gentamicin", 1, true),
27
+ getCell("", "d. Tetracycline", 1, true),
28
+ getCell("", "e. Ceftazidime", 1, true),
29
+ getCell("", "f. Cefuroxime", 1, true),
30
+ getCell("", "g. Cefotaxime", 1, true),
31
+ getCell("", "h. Ampicillin", 1, true),
32
+ getCell("", "i. Cefazolin", 1, true),
33
+ getCell("", "j. Amoxillin-Clavulanate", 1, true),
34
+ getCell("", "k. Amikacin", 1, true),
35
+ getCell("", "m. Chloramphenicol", 1, true),
36
+ getCell("", "n. Cefepime", 1, true),
37
+ getCell("", "p. Piperacillin-tazobactam", 1, true),
38
+ getCell("", "q. obramycin", 1, true),
39
+ getCell("", "r. Ampicillin Sulbactam", 1, true),
40
+ getCell("", "s. Trimethoprim Sulfamethoxazole", 1, true),
41
+ getCell("", "t. Penicillin", 1, true),
42
+ getCell("", "u. Vancomycin", 1, true),
43
+ getCell("", "v. Meropenem", 1, true),
44
+ getCell("", "w. Clindamycin", 1, true),
45
+ getCell("", "x. Doxycycline/tetracyclin", 1, true),
46
+ getCell("", "y. Ceftazidime-avibactam", 1, true),
47
+ getCell("", "z. Erythromycin", 1, true),
48
+ getCell("", "aa. Gentamicin", 1, true),
49
+ ]
50
+ },
51
+ {
52
+ tableCells: [
53
+ getCell("", "9.1 E. coli O157:H7"),
54
+ ...cells
55
+ ]
56
+ },
57
+ {
58
+ tableCells: [
59
+ getCell("", "9.2 Proteus spp"),
60
+ ...cells
61
+ ]
62
+ },
63
+ {
64
+ tableCells: [
65
+ getCell("", "9.3 Salmonella spp"),
66
+ ...cells
67
+ ]
68
+ },
69
+ {
70
+ tableCells: [
71
+ getCell("", "9.4 Shigella spp"),
72
+ ...cells
73
+ ]
74
+ },
75
+ {
76
+ tableCells: [
77
+ getCell("", "9.5 Klebsiella pneumoniae"),
78
+ ...cells
79
+ ]
80
+ },
81
+ {
82
+ tableCells: [
83
+ getCell("", "9.6 Pseudomonas spp"),
84
+ ...cells
85
+ ]
86
+ },
87
+ {
88
+ tableCells: [
89
+ getCell("", "9.7 Staphylococcus aureus"),
90
+ ...cells
91
+ ]
92
+ },
93
+ {
94
+ tableCells: [
95
+ getCell("", "9.8 Vibrio cholerae spp"),
96
+ ...cells
97
+ ]
98
+ },
99
+ {
100
+ tableCells: [
101
+ getCell("", "9.9 Neisseria meningitidis"),
102
+ ...cells
103
+ ]
104
+ },
105
+ {
106
+ tableCells: [
107
+ getCell("", "9.10 Neisseria gonorrhoeae"),
108
+ ...cells
109
+ ]
110
+ },
111
+ {
112
+ tableCells: [
113
+ getCell("", "9.11 Streptococcus pneumoniae"),
114
+ ...cells
115
+ ]
116
+ },
117
+ {
118
+ tableCells: [
119
+ getCell("", "9.12 Haemophilus influenzae"),
120
+ ...cells
121
+ ]
122
+ },
123
+ {
124
+ tableCells: [
125
+ getCell("", "9.13 Haemophilus parainfluenzae"),
126
+ ...cells
127
+ ]
128
+ },
129
+ {
130
+ tableCells: [
131
+ getCell("", "9.14 Bacterial vaginosis"),
132
+ ...cells
133
+ ]
134
+ },
135
+ ]
136
+ }, []);
137
+
138
+
139
+ return <TableWrapper>
140
+ {tableRows.map((tR) => (
141
+ <TableRow>
142
+ {tR.tableCells.map((tC) => (
143
+ <TableCell className={styles.dataCell} colSpan={tC.colSpan}>
144
+ {tC.strong ? <strong>{tC.value}</strong> : tC.value}
145
+ </TableCell>
146
+ ))}
147
+ </TableRow>
148
+ ))}
149
+ </TableWrapper>
150
+ }
151
+
152
+ export default DrugSusceptibilityTesting;
@@ -0,0 +1,187 @@
1
+ import React, { useMemo } from "react";
2
+ import { TableRow, TableCell } from '@carbon/react';
3
+ import TableWrapper from "../../table-wrapper/table-wrapper.component";
4
+ import styles from '../../table-wrapper/table-wrapper.scss';
5
+
6
+ const Haematology: React.FC = () => {
7
+ const getCell = (key = "", value = "", colSpan = 1, strong = false) => ({
8
+ key,
9
+ value,
10
+ strong,
11
+ colSpan
12
+ });
13
+
14
+ const tableRows = useMemo(() => {
15
+ return [
16
+ {
17
+ tableCells: [
18
+ getCell("", "4 HAEMATOLOGY", 4, true)
19
+ ]
20
+ },
21
+ {
22
+ tableCells: [
23
+ getCell("", "Haematology tests", 1, true),
24
+ getCell("", "Total Exam", 1, true),
25
+ getCell("", "HB <5 g/dl", 1, true),
26
+ getCell("", "HB between 5 and 10 g/dl", 1, true),
27
+ ]
28
+ },
29
+ {
30
+ tableCells: [
31
+ getCell("", "4.1 Full blood count"),
32
+ getCell(),
33
+ getCell(),
34
+ getCell()
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, true),
49
+ getCell("", "Pre-diabetes", 1, true),
50
+ getCell("", "Diabetes", 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, true),
65
+ getCell("", "Number <500", 2, true),
66
+ ]
67
+ },
68
+ {
69
+ tableCells: [
70
+ getCell("", "4.4 CD4"),
71
+ getCell(),
72
+ getCell("", "", 2),
73
+ ]
74
+ },
75
+ {
76
+ tableCells: [
77
+ getCell("", "Other Haematology tests", 1, true),
78
+ getCell("", "Total Exam", 1, true),
79
+ getCell("", "Number Positive", 2, 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, true),
101
+ getCell("", "High", 2, 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, true),
114
+ getCell("", "Number", 1, true),
115
+ ]
116
+ },
117
+ {
118
+ tableCells: [
119
+ getCell("", "4.11 Total blood group tests", 3),
120
+ getCell(),
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, 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, true),
155
+ getCell("", "Number Positive", 1, true),
156
+ ]
157
+ },
158
+ {
159
+ tableCells: [getCell("", "4.19 HIV", 3), getCell()]
160
+ },
161
+ {
162
+ tableCells: [getCell("", "4.20 Hepatitis B", 3), getCell()]
163
+ },
164
+ {
165
+ tableCells: [getCell("", "4.21 Hepatitis C", 3), getCell()]
166
+ },
167
+ {
168
+ tableCells: [getCell("", "4.22 Syphilis", 3), getCell()]
169
+ },
170
+ ]
171
+ }, []);
172
+
173
+
174
+ return <TableWrapper>
175
+ {tableRows.map((tR) => (
176
+ <TableRow>
177
+ {tR.tableCells.map((tC) => (
178
+ <TableCell className={styles.dataCell} colSpan={tC.colSpan}>
179
+ {tC.strong ? <strong>{tC.value}</strong> : tC.value}
180
+ </TableCell>
181
+ ))}
182
+ </TableRow>
183
+ ))}
184
+ </TableWrapper>
185
+ }
186
+
187
+ export default Haematology;