@ampath/esm-reports-app 1.0.0-next.2 → 1.0.0-next.21
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.
- package/dist/138.js +2 -0
- package/dist/138.js.LICENSE.txt +20 -0
- package/dist/138.js.map +1 -0
- package/dist/184.js +1 -1
- package/dist/184.js.map +1 -1
- package/dist/205.js +1 -0
- package/dist/205.js.map +1 -0
- package/dist/282.js +1 -1
- package/dist/282.js.LICENSE.txt +3 -3
- package/dist/282.js.map +1 -1
- package/dist/311.js +1 -0
- package/dist/311.js.map +1 -0
- package/dist/353.js +1 -1
- package/dist/353.js.map +1 -1
- package/dist/478.js +2 -0
- package/dist/478.js.LICENSE.txt +9 -0
- package/dist/478.js.map +1 -0
- package/dist/51.js +1 -0
- package/dist/51.js.map +1 -0
- package/dist/540.js +1 -1
- package/dist/540.js.map +1 -1
- package/dist/812.js +1 -0
- package/dist/812.js.map +1 -0
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/ampath-esm-reports-app.js.buildmanifest.json +128 -151
- package/dist/ampath-esm-reports-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -1
- package/src/common/report-filters/report-filters.component.tsx +127 -0
- package/src/common/report-filters/report-filters.scss +49 -0
- package/src/config-schema.ts +6 -37
- package/src/createDashboardLink.tsx +9 -0
- package/src/dashboard/reports-dasboard.tsx +44 -0
- package/src/dashboard/reports-dashboard.module.scss +14 -0
- package/src/dashboard-meta/reports-dashboard.meta.ts +6 -0
- package/src/index.ts +6 -35
- package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
- package/src/reports/moh-240/moh-240-header.component.tsx +61 -0
- package/src/reports/moh-240/moh-240.component.tsx +68 -0
- package/src/reports/moh-240/moh-240.scss +3 -0
- package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +72 -0
- package/src/reports/moh-240/sub-reports/page-summary.component.tsx +95 -0
- package/src/reports/moh-505/moh-505-header.component.tsx +62 -0
- package/src/reports/moh-505/moh-505.component.tsx +240 -0
- package/src/reports/moh-505/moh-505.scss +3 -0
- package/src/reports/moh-705B/moh-705b.component.tsx +466 -0
- package/src/reports/moh-705B/moh-705b.scss +41 -0
- package/src/reports/moh-705a/moh-705a.component.tsx +473 -0
- package/src/reports/moh-705a/moh-705a.scss +41 -0
- package/src/reports/moh-706/moh-706-header.component.tsx +61 -0
- package/src/reports/moh-706/moh-706.component.tsx +104 -0
- package/src/reports/moh-706/moh-706.scss +30 -0
- package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +124 -0
- package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +318 -0
- package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
- package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +179 -0
- package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
- package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +121 -0
- package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +47 -0
- package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
- package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +108 -0
- package/src/reports/moh-710/moh-710.component.tsx +663 -0
- package/src/reports/moh-710/moh-710.scss +41 -0
- package/src/reports/moh-711/moh-711.component.tsx +121 -0
- package/src/reports/moh-711/moh711.scss +71 -0
- package/src/reports/moh-711/sections/anc.component.tsx +134 -0
- package/src/reports/moh-711/sections/cervical-cancer.component.tsx +104 -0
- package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
- package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
- package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
- package/src/reports/moh-711/sections/maternity.component.tsx +280 -0
- package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
- package/src/reports/moh-711/sections/other.component.tsx +47 -0
- package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
- package/src/reports/moh-711/sections/pnc.component.tsx +92 -0
- package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
- package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
- package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
- package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
- package/src/reports/moh-717/moh-717.component.tsx +152 -0
- package/src/reports/moh-717/moh717.scss +150 -0
- package/src/reports/moh-717/sections/finance.component.tsx +42 -0
- package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
- package/src/reports/moh-717/sections/maternity.component.tsx +94 -0
- package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
- package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
- package/src/reports/moh-717/sections/operations.component.tsx +53 -0
- package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
- package/src/reports/moh-717/sections/outpatient.component.tsx +489 -0
- package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
- package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
- package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
- package/src/reports/moh-740/moh-740.component.scss +120 -0
- package/src/reports/moh-740/moh-740.component.tsx +907 -0
- package/src/reports/moh-740/moh-740.resource.ts +42 -0
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +6 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +58 -0
- package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
- package/src/reports/moh-740/registers/moh-740-patient-list.tsx +43 -0
- package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
- package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
- package/src/reports/moh-740/types/index.ts +115 -0
- package/src/reports/moh-745/moh-745.component.tsx +629 -0
- package/src/reports/moh-745/moh-745.scss +69 -0
- package/src/reports/table-wrapper/table-row-mapper.component.tsx +51 -0
- package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
- package/src/reports/table-wrapper/table-wrapper.scss +31 -0
- package/src/resources/moh-705.resource.ts +60 -0
- package/src/resources/moh-706.resource.ts +86 -0
- package/src/resources/moh-710.resource.ts +34 -0
- package/src/resources/moh-711.resource.ts +34 -0
- package/src/resources/moh-717.resource.ts +35 -0
- package/src/resources/moh-745.resource.ts +34 -0
- package/src/root.component.tsx +30 -32
- package/src/routes.json +14 -17
- package/src/utils/get-base-url.ts +12 -0
- package/src/utils/utils.ts +36 -0
- package/dist/19.js +0 -2
- package/dist/19.js.LICENSE.txt +0 -39
- package/dist/19.js.map +0 -1
- package/dist/255.js +0 -1
- package/dist/255.js.map +0 -1
- package/dist/389.js +0 -1
- package/dist/389.js.map +0 -1
- package/dist/451.js +0 -1
- package/dist/451.js.map +0 -1
- package/dist/488.js +0 -1
- package/dist/488.js.map +0 -1
- package/dist/557.js +0 -1
- package/dist/557.js.map +0 -1
- package/dist/91.js +0 -1
- package/dist/91.js.map +0 -1
- package/dist/970.js +0 -1
- package/dist/970.js.map +0 -1
- package/src/boxes/extensions/blue-box.component.tsx +0 -15
- package/src/boxes/extensions/box.scss +0 -23
- package/src/boxes/extensions/brand-box.component.tsx +0 -15
- package/src/boxes/extensions/red-box.component.tsx +0 -15
- package/src/boxes/slot/boxes.component.tsx +0 -25
- package/src/boxes/slot/boxes.scss +0 -29
- package/src/greeter/greeter.component.tsx +0 -42
- package/src/greeter/greeter.scss +0 -20
- package/src/greeter/greeter.test.tsx +0 -28
- package/src/patient-getter/patient-getter.component.tsx +0 -40
- package/src/patient-getter/patient-getter.resource.ts +0 -39
- package/src/patient-getter/patient-getter.scss +0 -16
- package/src/patient-getter/patient-getter.test.tsx +0 -40
- package/src/resources/resources.component.tsx +0 -56
- package/src/resources/resources.scss +0 -68
- package/src/root.test.tsx +0 -51
|
@@ -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;
|
package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
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 HistologyAndCytology: React.FC = () => {
|
|
7
|
+
const tableRows = useMemo(() => {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
tableCells: [getCell("", "6 HISTOLOGY AND CYTOLOGY", 4, 1, true)]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
tableCells: [
|
|
14
|
+
getCell("", "Smears", 1, 1, true),
|
|
15
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
16
|
+
getCell("", "Malignant", 1, 1, true),
|
|
17
|
+
getCell(),
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{ tableCells: [getCell("", "6.1 PAP smear"), getCell(), getCell(), getCell(),] },
|
|
21
|
+
{ tableCells: [getCell("", "6.2 Touch preparations"), getCell(), getCell(), getCell()] },
|
|
22
|
+
{ tableCells: [getCell("", "6.3 Tissue impressions"), getCell(), getCell(), getCell()] },
|
|
23
|
+
{
|
|
24
|
+
tableCells: [
|
|
25
|
+
getCell("", "Fine Needle Aspirates", 1, 1, true),
|
|
26
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
27
|
+
getCell("", "Malignant", 1, 1, true),
|
|
28
|
+
getCell()
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{ tableCells: [getCell("", "6.4 Thyroid"), getCell(), getCell(), getCell()] },
|
|
32
|
+
{ tableCells: [getCell("", "6.5 Lymph nodes"), getCell(), getCell(), getCell()] },
|
|
33
|
+
{ tableCells: [getCell("", "6.6 Liver"), getCell(), getCell(), getCell()] },
|
|
34
|
+
{ tableCells: [getCell("", "6.7 Breast"), getCell(), getCell(), getCell()] },
|
|
35
|
+
{ tableCells: [getCell("", "6.8 Soft tissue masses"), getCell(), getCell(), getCell()] },
|
|
36
|
+
{
|
|
37
|
+
tableCells: [
|
|
38
|
+
getCell("", "Fluid Cytology", 1, 1, true),
|
|
39
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
40
|
+
getCell("", "Malignant", 2, 1, true),
|
|
41
|
+
getCell()
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{ tableCells: [getCell("", "6.9 Ascitic fluid"), getCell(), getCell(), getCell()] },
|
|
45
|
+
{ tableCells: [getCell("", "6.10 CSF"), getCell(), getCell(), getCell()] },
|
|
46
|
+
{ tableCells: [getCell("", "6.11 Pleural fluid"), getCell(), getCell(), getCell()] },
|
|
47
|
+
{ tableCells: [getCell("", "6.12 Urine"), getCell(), getCell(), getCell()] },
|
|
48
|
+
{
|
|
49
|
+
tableCells: [
|
|
50
|
+
getCell("", "Tissue Histology", 1, 1, true),
|
|
51
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
52
|
+
getCell("", "Malignant", 1, 1, true),
|
|
53
|
+
getCell("", "TNM Stage", 1, 1, true),
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{ tableCells: [getCell("", "6.13 Prostate"), getCell(), getCell(), getCell()] },
|
|
57
|
+
{ tableCells: [getCell("", "6.14 Breast tissue"), getCell(), getCell(), getCell()] },
|
|
58
|
+
{ tableCells: [getCell("", "6.15 Ovary"), getCell(), getCell(), getCell()] },
|
|
59
|
+
{ tableCells: [getCell("", "6.16 Uterus (Cervix)"), getCell(), getCell(), getCell()] },
|
|
60
|
+
{ tableCells: [getCell("", "6.17 Uterus (Endometrium)"), getCell(), getCell(), getCell()] },
|
|
61
|
+
{ tableCells: [getCell("", "6.18 Skin"), getCell(), getCell(), getCell()] },
|
|
62
|
+
{ tableCells: [getCell("", "6.19 Head and Neck"), getCell(), getCell(), getCell()] },
|
|
63
|
+
{ tableCells: [getCell("", "6.20 Oral"), getCell(), getCell(), getCell()] },
|
|
64
|
+
{ tableCells: [getCell("", "6.21 Esophagus"), getCell(), getCell(), getCell()] },
|
|
65
|
+
{ tableCells: [getCell("", "6.22 Colorectal"), getCell(), getCell(), getCell()] },
|
|
66
|
+
{ tableCells: [getCell("", "6.23 Hepatobiliary"), getCell(), getCell(), getCell()] },
|
|
67
|
+
{ tableCells: [getCell("", "6.24 Soft tissue and bone"), getCell(), getCell(), getCell()] },
|
|
68
|
+
{ tableCells: [getCell("", "6.25 Lymph nodes tissue"), getCell(), getCell(), getCell()] },
|
|
69
|
+
{
|
|
70
|
+
tableCells: [
|
|
71
|
+
getCell("", "Bone Marrow Studies", 1, 1, true),
|
|
72
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
73
|
+
getCell("", "Malignant", 1, 1, true),
|
|
74
|
+
getCell()
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{ tableCells: [getCell("", "6.26 Bone marrow aspirate"), getCell(), getCell(), getCell()] },
|
|
78
|
+
{ tableCells: [getCell("", "6.27 Trephine biopsy"), getCell(), getCell(), getCell()] },
|
|
79
|
+
]
|
|
80
|
+
}, []);
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
return <TableWrapper>
|
|
84
|
+
<TableRowMapper tableRows={tableRows} />
|
|
85
|
+
</TableWrapper>
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export default HistologyAndCytology;
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
interface ParasitologyProps {
|
|
7
|
+
data?: any,
|
|
8
|
+
locationUuids?: string,
|
|
9
|
+
startDate?: string,
|
|
10
|
+
endDate?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const Parasitology: React.FC<ParasitologyProps> = ({ data, locationUuids, startDate, endDate }) => {
|
|
14
|
+
const tableRows = useMemo(() => {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
tableCells: [
|
|
18
|
+
getCell("", "3 PARASITOLOGY", 3, 1, true)
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
tableCells: [
|
|
23
|
+
getCell("", "Malaria Test", 1, 1, true),
|
|
24
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
25
|
+
getCell("", "Number Positive", 1, 1, true)
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
tableCells: [
|
|
30
|
+
getCell("", "3.1 Malaria BS (Under five years)"),
|
|
31
|
+
getCell("total_malaria_bs_under_5"),
|
|
32
|
+
getCell("positive_malaria_bs_under_5")
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
tableCells: [
|
|
37
|
+
getCell("", "3.2 Malaria BS (5 years and above)"),
|
|
38
|
+
getCell("total_malaria_bs_5_and_above"),
|
|
39
|
+
getCell("positive_malaria_bs_5_and_above"),
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
tableCells: [
|
|
44
|
+
getCell("", "3.3 Malaria Rapid Diagnostic Tests (Under five years)"),
|
|
45
|
+
getCell("total_malaria_rdt_under_5"),
|
|
46
|
+
getCell("positive_malaria_rdt_under_5"),
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
tableCells: [
|
|
51
|
+
getCell("", "3.4 Malaria Rapid Diagnostic Tests (5 years and above)"),
|
|
52
|
+
getCell("total_malaria_rdt_5_and_above"),
|
|
53
|
+
getCell("positive_malaria_rdt_5_and_above"),
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
tableCells: [
|
|
58
|
+
getCell("", "Stool Examination", 1, 1, true),
|
|
59
|
+
getCell(),
|
|
60
|
+
getCell("", "Number Positive", 1, 1, true),
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
tableCells: [
|
|
65
|
+
getCell("", "3.5 Taenia spp."),
|
|
66
|
+
getCell(),
|
|
67
|
+
getCell(),
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
tableCells: [
|
|
72
|
+
getCell("", "3.6 Hymenolepis nana"),
|
|
73
|
+
getCell(),
|
|
74
|
+
getCell(),
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
tableCells: [
|
|
79
|
+
getCell("", "3.7 Hookworm"),
|
|
80
|
+
getCell("total_hookworm"),
|
|
81
|
+
getCell("positive_hookworm"),
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
tableCells: [
|
|
86
|
+
getCell("", "3.8 Roundworm"),
|
|
87
|
+
getCell("total_roundworms"),
|
|
88
|
+
getCell("positive_roundworms"),
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
tableCells: [
|
|
93
|
+
getCell("", "3.9 S. mansoni"),
|
|
94
|
+
getCell(),
|
|
95
|
+
getCell(),
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
tableCells: [
|
|
100
|
+
getCell("", "3.10 Trichuris trichura"),
|
|
101
|
+
getCell(),
|
|
102
|
+
getCell(),
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
tableCells: [
|
|
107
|
+
getCell("", "3.11 Amoeba"),
|
|
108
|
+
getCell(),
|
|
109
|
+
getCell(),
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
]
|
|
113
|
+
}, []);
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
return <TableWrapper>
|
|
117
|
+
<TableRowMapper tableRows={tableRows} data={data} locationUuids={locationUuids} startDate={startDate} endDate={endDate} />
|
|
118
|
+
</TableWrapper>
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export default Parasitology;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
interface SerologyProps {
|
|
7
|
+
data?: any,
|
|
8
|
+
locationUuids?: string,
|
|
9
|
+
startDate?: string,
|
|
10
|
+
endDate?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const Serology: React.FC<SerologyProps> = ({ data, locationUuids, startDate, endDate }) => {
|
|
14
|
+
const tableRows = useMemo(() => {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
tableCells: [getCell("", "7. SEROLOGY", 3, 1, true)]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
tableCells: [
|
|
21
|
+
getCell("", "Serological Test", 1, 1, true),
|
|
22
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
23
|
+
getCell("", "Number Positive", 1, 1, true),
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{ tableCells: [getCell("", "7.1 VDRL"), getCell("total_vdrl"), getCell("positive_vdrl")] },
|
|
27
|
+
{ tableCells: [getCell("", "7.2 TPHA"), getCell(), getCell()] },
|
|
28
|
+
{ tableCells: [getCell("", "7.3 ASOT"), getCell(), getCell()] },
|
|
29
|
+
{ tableCells: [getCell("", "7.4 HIV"), getCell("total_hiv"), getCell("positive_hiv")] },
|
|
30
|
+
{ tableCells: [getCell("", "7.5 Brucella"), getCell("total_brucella"), getCell("positive_brucella")] },
|
|
31
|
+
{ tableCells: [getCell("", "7.6 Rheumatoid factor"), getCell("total_rheumatoid_factor"), getCell("positive_rheumatoid_factor")] },
|
|
32
|
+
{ tableCells: [getCell("", "7.7 Helicobacter pylori"), getCell("total_h_pylori"), getCell("positive_h_pylori")] },
|
|
33
|
+
{ tableCells: [getCell("", "7.8 Hepatitis A test"), getCell(), getCell()] },
|
|
34
|
+
{ tableCells: [getCell("", "7.9 Hepatitis B test"), getCell("total_hep_b"), getCell("positive_hep_b")] },
|
|
35
|
+
{ tableCells: [getCell("", "7.10 Hepatitis C test"), getCell("total_hep_c"), getCell("positive_hep_c")] },
|
|
36
|
+
{ tableCells: [getCell("", "7.11 HCG"), getCell("total_hcg"), getCell("positive_hcg")] },
|
|
37
|
+
{ tableCells: [getCell("", "7.12 CRAG Test"), getCell("total_crag"), getCell("positive_crag")] },
|
|
38
|
+
]
|
|
39
|
+
}, []);
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
return <TableWrapper>
|
|
43
|
+
<TableRowMapper tableRows={tableRows} data={data} locationUuids={locationUuids} startDate={startDate} endDate={endDate} />
|
|
44
|
+
</TableWrapper>
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default Serology;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 SpecimenReferralToHigherLevels: React.FC = () => {
|
|
7
|
+
const tableRows = useMemo(() => {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
tableCells: [getCell("", "8. SPECIMEN REFERRAL TO HIGHER LEVELS", 3, 1, true)]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
tableCells: [
|
|
14
|
+
getCell("", "Specimen referral", 1, 1, true),
|
|
15
|
+
getCell("", "No. of specimens", 1, 1, true),
|
|
16
|
+
getCell("", "No. of results received", 1, 1, true),
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{ tableCells: [getCell("", "8.1 CD4"), getCell(), getCell()] },
|
|
20
|
+
{ tableCells: [getCell("", "8.2 Viral load"), getCell(), getCell()] },
|
|
21
|
+
{ tableCells: [getCell("", "8.3 EID"), getCell(), getCell()] },
|
|
22
|
+
{ tableCells: [getCell("", "8.4 Discodant/discrepant"), getCell(), getCell()] },
|
|
23
|
+
{ tableCells: [getCell("", "8.5 TB Culture"), getCell(), getCell()] },
|
|
24
|
+
{ tableCells: [getCell("", "8.6 Virological"), getCell(), getCell()] },
|
|
25
|
+
{ tableCells: [getCell("", "8.7 Clinical Chemistry"), getCell(), getCell()] },
|
|
26
|
+
{ tableCells: [getCell("", "8.8 Histology/cytology"), getCell(), getCell()] },
|
|
27
|
+
{ tableCells: [getCell("", "8.9 Haematological"), getCell(), getCell()] },
|
|
28
|
+
{ tableCells: [getCell("", "8.10 Parasitological"), getCell(), getCell()] },
|
|
29
|
+
{ tableCells: [getCell("", "8.11 Blood samples for transfusion screening"), getCell(), getCell()] },
|
|
30
|
+
]
|
|
31
|
+
}, []);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
return <TableWrapper>
|
|
35
|
+
<TableRowMapper tableRows={tableRows} />
|
|
36
|
+
</TableWrapper>
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default SpecimenReferralToHigherLevels;
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
interface UrineAnalysisProps {
|
|
7
|
+
data?: any,
|
|
8
|
+
locationUuids?: string,
|
|
9
|
+
startDate?: string,
|
|
10
|
+
endDate?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const UrineAnalysis: React.FC<UrineAnalysisProps> = ({ data, locationUuids, startDate, endDate }) => {
|
|
14
|
+
const tableRows = useMemo(() => {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
tableCells: [
|
|
18
|
+
getCell("", "1 URINE ANALYSIS", 2, 1, true),
|
|
19
|
+
getCell()
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
tableCells: [
|
|
24
|
+
getCell(),
|
|
25
|
+
getCell("", "Total Exam", 1, 1, true),
|
|
26
|
+
getCell("", "Number Positive", 1, 1, true)
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
tableCells: [
|
|
31
|
+
getCell("", "1.1 Urine Chemistry", 1, 1, true),
|
|
32
|
+
getCell("total_urinalysis"),
|
|
33
|
+
getCell("positive_urinalysis"),
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
tableCells: [
|
|
38
|
+
getCell("", "1.2 Glucose", 1, 1, false),
|
|
39
|
+
getCell("total_urine_glucose"),
|
|
40
|
+
getCell("positive_urine_glucose"),
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
tableCells: [
|
|
45
|
+
getCell("", "1.3 Ketones", 1, 1, false),
|
|
46
|
+
getCell("total_urine_ketones"),
|
|
47
|
+
getCell("positive_urine_ketones"),
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
tableCells: [
|
|
52
|
+
getCell("", "1.4 Proteins", 1, 1, false),
|
|
53
|
+
getCell("total_urine_proteins"),
|
|
54
|
+
getCell("positive_urine_proteins"),
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
tableCells: [
|
|
59
|
+
getCell("", "1.5 Urine Microscopy", 1, 1, true),
|
|
60
|
+
getCell(),
|
|
61
|
+
getCell("", "Number Positive", 1, 1, true),
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
tableCells: [
|
|
66
|
+
getCell("", "1.6 Pus cells (>5/hpf)", 1, 1, false),
|
|
67
|
+
getCell("total_urine_pus_cells"),
|
|
68
|
+
getCell("positive_urine_pus_cells"),
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
tableCells: [
|
|
73
|
+
getCell("", "1.7 Shistosoma haematobium", 1, 1, false),
|
|
74
|
+
getCell("total_urine_s_haematobium"),
|
|
75
|
+
getCell("positive_urine_s_haematobium"),
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
tableCells: [
|
|
80
|
+
getCell("", "1.8 Trichomona vaginalis", 1, 1, false),
|
|
81
|
+
getCell("total_urine_t_vaginalis"),
|
|
82
|
+
getCell("positive_urine_t_vaginalis"),
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
tableCells: [
|
|
87
|
+
getCell("", "1.9 Yeast cells", 1, 1, false),
|
|
88
|
+
getCell("total_urine_yeast_cells"),
|
|
89
|
+
getCell("positive_urine_yeast_cells"),
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
tableCells: [
|
|
94
|
+
getCell("", "1.10 Bacteria", 1, 1, false),
|
|
95
|
+
getCell(),
|
|
96
|
+
getCell(),
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
]
|
|
100
|
+
}, []);
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
return <TableWrapper>
|
|
104
|
+
<TableRowMapper tableRows={tableRows} data={data} locationUuids={locationUuids} startDate={startDate} endDate={endDate} />
|
|
105
|
+
</TableWrapper>
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export default UrineAnalysis;
|