@ampath/esm-reports-app 1.0.0-next.10
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/.editorconfig +12 -0
- package/.eslintignore +2 -0
- package/.eslintrc +57 -0
- package/.husky/pre-commit +7 -0
- package/.husky/pre-push +6 -0
- package/.prettierignore +14 -0
- package/.turbo.json +18 -0
- package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
- package/LICENSE +401 -0
- package/README.md +9 -0
- package/__mocks__/react-i18next.js +50 -0
- 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 +2 -0
- package/dist/184.js.LICENSE.txt +14 -0
- package/dist/184.js.map +1 -0
- package/dist/197.js +1 -0
- package/dist/205.js +1 -0
- package/dist/205.js.map +1 -0
- package/dist/282.js +2 -0
- package/dist/282.js.LICENSE.txt +32 -0
- package/dist/282.js.map +1 -0
- package/dist/300.js +1 -0
- package/dist/311.js +1 -0
- package/dist/311.js.map +1 -0
- package/dist/335.js +1 -0
- package/dist/353.js +1 -0
- package/dist/353.js.map +1 -0
- package/dist/478.js +2 -0
- package/dist/478.js.LICENSE.txt +9 -0
- package/dist/478.js.map +1 -0
- package/dist/540.js +2 -0
- package/dist/540.js.LICENSE.txt +9 -0
- package/dist/540.js.map +1 -0
- package/dist/55.js +1 -0
- package/dist/652.js +1 -0
- package/dist/677.js +1 -0
- package/dist/677.js.map +1 -0
- package/dist/812.js +1 -0
- package/dist/812.js.map +1 -0
- package/dist/961.js +2 -0
- package/dist/961.js.LICENSE.txt +19 -0
- package/dist/961.js.map +1 -0
- package/dist/99.js +1 -0
- package/dist/ampath-esm-reports-app.js +1 -0
- package/dist/ampath-esm-reports-app.js.buildmanifest.json +539 -0
- package/dist/ampath-esm-reports-app.js.map +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -0
- package/dist/routes.json +1 -0
- package/e2e/README.md +115 -0
- package/e2e/core/global-setup.ts +32 -0
- package/e2e/core/index.ts +1 -0
- package/e2e/core/test.ts +20 -0
- package/e2e/fixtures/api.ts +26 -0
- package/e2e/fixtures/index.ts +1 -0
- package/e2e/pages/index.ts +1 -0
- package/e2e/pages/root-page.ts +32 -0
- package/e2e/specs/template-app.spec.ts +23 -0
- package/e2e/support/github/Dockerfile +34 -0
- package/e2e/support/github/docker-compose.yml +24 -0
- package/e2e/support/github/run-e2e-docker-env.sh +37 -0
- package/example.env +6 -0
- package/jest.config.js +33 -0
- package/package.json +106 -0
- package/playwright.config.ts +32 -0
- package/prettier.config.js +8 -0
- 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 +12 -0
- package/src/createDashboardLink.tsx +9 -0
- package/src/dashboard/reports-dasboard.tsx +41 -0
- package/src/dashboard/reports-dashboard.module.scss +14 -0
- package/src/dashboard-meta/reports-dashboard.meta.ts +6 -0
- package/src/declarations.d.ts +5 -0
- package/src/index.ts +20 -0
- package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
- package/src/reports/moh-240/moh-240.component.tsx +12 -0
- package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +42 -0
- package/src/reports/moh-240/sub-reports/page-summary.component.tsx +95 -0
- package/src/reports/moh-505/moh-505.component.tsx +234 -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.component.tsx +26 -0
- package/src/reports/moh-706/moh-706.scss +18 -0
- package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +117 -0
- package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +311 -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 +172 -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 +114 -0
- package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +40 -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 +101 -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-745/moh-745.component.tsx +629 -0
- package/src/reports/moh-745/moh-745.scss +67 -0
- package/src/reports/table-wrapper/table-row-mapper.component.tsx +42 -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-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 +35 -0
- package/src/root.scss +15 -0
- package/src/routes.json +27 -0
- package/src/utils/get-base-url.ts +12 -0
- package/src/utils/utils.ts +7 -0
- package/tools/i18next-parser.config.js +89 -0
- package/tools/setup-tests.ts +1 -0
- package/tools/update-openmrs-deps.mjs +43 -0
- package/translations/am.json +24 -0
- package/translations/en.json +24 -0
- package/translations/es.json +24 -0
- package/translations/fr.json +24 -0
- package/translations/he.json +24 -0
- package/translations/km.json +24 -0
- package/tsconfig.json +24 -0
- package/webpack.config.js +1 -0
|
@@ -0,0 +1,234 @@
|
|
|
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 Moh505Report: React.FC = () => {
|
|
7
|
+
const tableRows = useMemo(() => {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
tableCells: [
|
|
11
|
+
getCell("", "Diseases, Conditions or Events", 1, 2, true),
|
|
12
|
+
getCell("", "< 5 years", 2, 1, true),
|
|
13
|
+
getCell("", "≥ 5 years", 6, 1, true),
|
|
14
|
+
getCell("", "Diseases, Conditions or Events", 1, 2, true),
|
|
15
|
+
getCell("", "< 5 years", 2, 1, true),
|
|
16
|
+
getCell("", "≥ 5 years", 2, 1, true),
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
tableCells: [
|
|
21
|
+
,
|
|
22
|
+
getCell("", "Cases", 1, 1, true),
|
|
23
|
+
getCell("", "Deaths", 1, 1, true),
|
|
24
|
+
getCell("", "Cases", 1, 1, true),
|
|
25
|
+
getCell("", "Deaths", 5, 1, true),
|
|
26
|
+
,
|
|
27
|
+
getCell("", "Cases", 1, 1, true),
|
|
28
|
+
getCell("", "Deaths", 1, 1, true),
|
|
29
|
+
getCell("", "Cases", 1, 1, true),
|
|
30
|
+
getCell("", "Deaths", 1, 1, true),
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
tableCells: [
|
|
35
|
+
getCell("", "AEFI*"), getCell(), getCell(), getCell(),
|
|
36
|
+
getCell("", "", 5),
|
|
37
|
+
getCell("", "Meningococcal Meningitis"), getCell(), getCell(), getCell(), getCell()
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
tableCells: [
|
|
42
|
+
getCell("", "Acute Jaundice"), getCell(), getCell(), getCell(),
|
|
43
|
+
getCell("", "", 5),
|
|
44
|
+
getCell("", "Neonatal deaths"), getCell(), getCell(), getCell("", "", 2, 2)
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
tableCells: [
|
|
49
|
+
getCell("", "Acute Malnutrition"), getCell(), getCell(), getCell(),
|
|
50
|
+
getCell("", "", 5),
|
|
51
|
+
getCell("", "Neonatal Tetanus"), getCell(), getCell()
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
tableCells: [
|
|
56
|
+
getCell("", "AFP (Poliomyelitis)**"), getCell(), getCell(), getCell(),
|
|
57
|
+
getCell("", "", 5),
|
|
58
|
+
getCell("", "Plague"), getCell(), getCell(), getCell(), getCell()
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
tableCells: [
|
|
63
|
+
getCell("", "Anthrax"), getCell(), getCell(), getCell(),
|
|
64
|
+
getCell("", "", 5),
|
|
65
|
+
getCell("", "Rabies"), getCell(), getCell(), getCell(), getCell()
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
tableCells: [
|
|
70
|
+
getCell("", "Cholera"), getCell(), getCell(), getCell(),
|
|
71
|
+
getCell("", "", 5),
|
|
72
|
+
getCell("", "Rift Valley Fever"), getCell(), getCell(), getCell(), getCell()
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
tableCells: [
|
|
77
|
+
getCell("", "Dengue"), getCell(), getCell(), getCell(),
|
|
78
|
+
getCell("", "", 5),
|
|
79
|
+
getCell("", "SARI (Cluster ≥3 cases)*****"), getCell(), getCell(), getCell(), getCell()
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
tableCells: [
|
|
84
|
+
getCell("", "Dysentery (Bacillary)"), getCell(), getCell(), getCell(),
|
|
85
|
+
getCell("", "", 5),
|
|
86
|
+
getCell("", "Suspected MDR/XDR TB"), getCell(), getCell(), getCell(), getCell()
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
tableCells: [
|
|
91
|
+
getCell("", "Guinea Worm Disease"), getCell(), getCell(), getCell(),
|
|
92
|
+
getCell("", "", 5),
|
|
93
|
+
getCell("", "Typhoid"), getCell(), getCell(), getCell(), getCell()
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
tableCells: [
|
|
98
|
+
getCell("", "Measles"), getCell(), getCell(), getCell(),
|
|
99
|
+
getCell("", "", 5),
|
|
100
|
+
getCell("", "VHF******", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2)
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
tableCells: [
|
|
105
|
+
getCell("", "Suspected Malaria***"), getCell(), getCell(), getCell(),
|
|
106
|
+
getCell("", "", 5)
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
tableCells: [
|
|
111
|
+
getCell("", "Deaths due to Malaria****", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2),
|
|
112
|
+
getCell("", "", 5, 2),
|
|
113
|
+
getCell("", "Yellow Fever", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2)
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
tableCells: [
|
|
118
|
+
,
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
tableCells: [
|
|
123
|
+
getCell("", "Maternal deaths"), getCell(), getCell(), getCell(),
|
|
124
|
+
getCell("", "", 5),
|
|
125
|
+
getCell("", "Others (Specify)*******"), getCell(), getCell(), getCell(), getCell()
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
tableCells: [
|
|
130
|
+
getCell("", "", 14)
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
tableCells: [
|
|
135
|
+
getCell("", "Disease", 1, 1, true), getCell("", "Microscopy", 3, 1, true),
|
|
136
|
+
getCell("", "mRDT", 5, 1, true),
|
|
137
|
+
getCell("", "Disease", 2, 1, true), getCell("", "Laboratory diagnosis", 3, 1, true),
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
tableCells: [
|
|
142
|
+
getCell("", "Malaria", 1, 1, true), getCell("", "<5 yrs"), getCell("", "≥5 yrs"), getCell("", "Total"),
|
|
143
|
+
getCell("", "<5 yrs", 2), getCell("", "≥5 yrs", 3),
|
|
144
|
+
getCell("", "Shigella Dysentery", 2, 1, true),
|
|
145
|
+
getCell("", "<5 yrs", 2), getCell("", "≥5 yrs", 1),
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
tableCells: [
|
|
150
|
+
getCell("", "Tested"), getCell(), getCell(), getCell(),
|
|
151
|
+
getCell("", "", 2), getCell("", "", 3),
|
|
152
|
+
getCell("", "Tested", 2), getCell("", "", 2), getCell("", "", 1)
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
tableCells: [
|
|
157
|
+
getCell("", "Positive"), getCell(), getCell(), getCell(),
|
|
158
|
+
getCell("", "", 2), getCell("", "", 3),
|
|
159
|
+
getCell("", "Positive", 2), getCell("", "", 2), getCell("", "", 1)
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
tableCells: [
|
|
164
|
+
getCell("", "Bacterial Meningitis", 1, 2, true), getCell("", "No CSF", 1, 2, true),
|
|
165
|
+
getCell("", "No contaminated", 1, 2, true), getCell("", "No Tested", 1, 2, true), getCell("", "+ve Nm", 1, 2, true),
|
|
166
|
+
getCell("", "+ve Sp", 1, 2, true), getCell("", "+ve H influenza", 3, 2, true), getCell("", "Tuberculosis (MDR/XDR)", 2, 2, true),
|
|
167
|
+
getCell("", "<5 yrs", 2, 2,), getCell("", "≥5 yrs", 1, 2,)
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
tableCells: [
|
|
172
|
+
,
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
tableCells: [
|
|
177
|
+
getCell("", "", 1, 2), getCell("", "", 1, 2),
|
|
178
|
+
getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2),
|
|
179
|
+
getCell("", "", 1, 2), getCell("", "", 2, 2), getCell("", "Tested", 2), getCell("", "", 2), getCell()
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
tableCells: [
|
|
184
|
+
, , , , , , , , getCell("", "Positive", 2), getCell("", "", 2), getCell()
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
tableCells: [
|
|
189
|
+
getCell("", "No of CSF Sub-Typed", 1, 2, true),
|
|
190
|
+
getCell("", "+ve NmA", 1, 2, true),
|
|
191
|
+
getCell("", "+ve NmB", 1, 2, true),
|
|
192
|
+
getCell("", "+ve NmC", 1, 2, true),
|
|
193
|
+
getCell("", "+ve NmW 135", 1, 2, true),
|
|
194
|
+
getCell("", "+ve NmX", 1, 2, true),
|
|
195
|
+
getCell("", "+ve NmY", 1, 2, true),
|
|
196
|
+
getCell("", "Indeterminate", 1, 2, true),
|
|
197
|
+
getCell("", "Hib", 1, 2, true),
|
|
198
|
+
getCell("", "Typhoid", 2, 2, true),
|
|
199
|
+
getCell("", "< 5 years", 2, 2),
|
|
200
|
+
getCell("", "≥ 5 years", 1, 2)
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
tableCells: [
|
|
205
|
+
,
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
tableCells: [
|
|
210
|
+
getCell("", "", 1, 2), getCell("", "", 1, 2),
|
|
211
|
+
getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2),
|
|
212
|
+
getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "", 1, 2), getCell("", "Tested", 2), getCell("", "", 2), getCell("", "", 1)
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
tableCells: [
|
|
217
|
+
, , , , , , , , , getCell("", "Positive", 2, 1,), getCell("", "", 2, 1), getCell("", "", 1, 1)
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
tableCells: [
|
|
222
|
+
,
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}, []);
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
return <TableWrapper>
|
|
230
|
+
<TableRowMapper tableRows={tableRows} />
|
|
231
|
+
</TableWrapper>
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export default Moh505Report;
|