@ampath/esm-reports-app 1.0.0-next.26 → 1.0.0-next.27
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/645.js +1 -0
- package/dist/645.js.map +1 -0
- package/dist/812.js +1 -1
- package/dist/ampath-esm-reports-app.js.buildmanifest.json +26 -26
- package/dist/main.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/reports/moh-705B/moh-204b-register.component.tsx +235 -0
- package/src/reports/moh-705B/moh-705b.component.tsx +141 -83
- package/src/reports/moh-705B/moh-705b.scss +4 -1
- package/src/reports/moh-705a/moh-705a.component.tsx +141 -86
- package/src/reports/moh-705a/moh-705a.scss +5 -1
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +320 -0
- package/src/reports/moh-705a/type.ts +6 -0
- package/src/reports/moh-710/moh-710.component.tsx +3 -1
- package/src/reports/moh-710/moh-710.scss +4 -0
- package/src/reports/moh-710/patient-list/moh-710-patient-list.component.tsx +13 -0
- package/src/reports/moh-711/moh-711.component.tsx +30 -12
- package/src/reports/moh-711/moh711.scss +11 -0
- package/src/reports/moh-711/registers/moh-333-register.component.tsx +636 -0
- package/src/reports/moh-711/registers/moh-405-register.component.tsx +518 -0
- package/src/reports/moh-711/registers/moh-406-register.component.tsx +530 -0
- package/src/reports/moh-711/registers/moh-510-register.component.tsx +61 -0
- package/src/reports/moh-711/registers/moh-511-register.component.tsx +263 -0
- package/src/reports/moh-711/registers/type.ts +194 -0
- package/src/reports/moh-711/sections/anc.component.tsx +45 -22
- package/src/reports/moh-711/sections/maternity.component.tsx +79 -40
- package/src/reports/moh-711/sections/pnc.component.tsx +39 -13
- package/src/reports/moh-717/moh-717.component.tsx +28 -10
- package/src/reports/moh-717/moh717.scss +4 -0
- package/src/reports/moh-717/sections/maternity.component.tsx +38 -13
- package/src/reports/moh-745/moh-745.component.tsx +440 -141
- package/src/reports/moh-745/moh-745.scss +5 -0
- package/src/reports/moh-745/registers/moh-412-register.component.tsx +190 -0
- package/src/reports/moh-745/registers/type.ts +29 -0
- package/src/resources/moh-705.resource.ts +57 -0
- package/src/resources/moh-710.resource.ts +26 -0
- package/src/resources/moh-711.resource.ts +141 -0
- package/src/resources/moh-745.resource.ts +32 -2
- package/src/root.component.tsx +18 -0
- package/dist/269.js +0 -1
- package/dist/269.js.map +0 -1
|
@@ -6,18 +6,22 @@ import styles from './moh-705a.scss';
|
|
|
6
6
|
import ReportFiltersComponent from '../../common/report-filters/report-filters.component';
|
|
7
7
|
import { Loading } from '@carbon/react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
+
import { useNavigate } from 'react-router-dom';
|
|
10
|
+
import { type ReportFilters } from './type';
|
|
9
11
|
|
|
10
12
|
const Moh705AComponent: React.FC = () => {
|
|
11
13
|
let errorMessage: string = '';
|
|
12
14
|
const [moh705aData, setMoh705aData] = useState<any>([]);
|
|
13
15
|
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
16
|
+
const [startDate, setStartDate] = useState<string>('');
|
|
17
|
+
const [endDate, setEndDate] = useState<string>('');
|
|
14
18
|
|
|
15
19
|
const session = useSession();
|
|
16
20
|
const locationUuids = session?.sessionLocation?.uuid;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
let endDate = filters
|
|
21
|
+
const navigate = useNavigate();
|
|
22
|
+
|
|
23
|
+
const getReportParams = (filters: ReportFilters) => {
|
|
24
|
+
let { startDate: sDate, endDate: eDate } = filters;
|
|
21
25
|
|
|
22
26
|
if (filters.month) {
|
|
23
27
|
const [year, monthIndex] = filters.month.split('-').map(Number);
|
|
@@ -26,16 +30,27 @@ const Moh705AComponent: React.FC = () => {
|
|
|
26
30
|
const end = new Date(year, monthIndex, 0);
|
|
27
31
|
|
|
28
32
|
const formatLocalDate = (d: Date) => {
|
|
29
|
-
const
|
|
30
|
-
const
|
|
33
|
+
const y = d.getFullYear();
|
|
34
|
+
const m = String(d.getMonth() + 1).padStart(2, '0');
|
|
31
35
|
const day = String(d.getDate()).padStart(2, '0');
|
|
32
|
-
return `${
|
|
36
|
+
return `${y}-${m}-${day}`;
|
|
33
37
|
};
|
|
34
38
|
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
sDate = formatLocalDate(start);
|
|
40
|
+
eDate = formatLocalDate(end);
|
|
37
41
|
}
|
|
38
42
|
|
|
43
|
+
setStartDate(sDate || '');
|
|
44
|
+
setEndDate(eDate || '');
|
|
45
|
+
|
|
46
|
+
return { startDate: sDate, endDate: eDate };
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const fetchMoh705bReportData = async (filters: { startDate?: string; endDate?: string; month?: string }) => {
|
|
50
|
+
setIsLoading(true);
|
|
51
|
+
|
|
52
|
+
const { startDate, endDate } = getReportParams(filters);
|
|
53
|
+
|
|
39
54
|
const params = {
|
|
40
55
|
locationUuids: locationUuids || '',
|
|
41
56
|
startDate,
|
|
@@ -45,14 +60,20 @@ const Moh705AComponent: React.FC = () => {
|
|
|
45
60
|
const data = await getMoh705a(params);
|
|
46
61
|
const flatData = Object.assign({}, ...data.result);
|
|
47
62
|
setMoh705aData(flatData);
|
|
48
|
-
setIsLoading(false);
|
|
49
63
|
} catch (error) {
|
|
50
64
|
errorMessage = error instanceof Error ? error.message : String(error);
|
|
51
|
-
setIsLoading(false);
|
|
52
65
|
throw new Error(`Failed to fetch MOH-710 report data: ${error instanceof Error ? error.message : String(error)}`);
|
|
66
|
+
} finally {
|
|
67
|
+
setIsLoading(false);
|
|
53
68
|
}
|
|
54
69
|
};
|
|
55
70
|
|
|
71
|
+
const navigateToRegister = (indicator: string) => {
|
|
72
|
+
navigate(
|
|
73
|
+
`/moh-204a?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}`,
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
56
77
|
return (
|
|
57
78
|
<>
|
|
58
79
|
<ReportFiltersComponent
|
|
@@ -91,377 +112,411 @@ const Moh705AComponent: React.FC = () => {
|
|
|
91
112
|
<tr>
|
|
92
113
|
<td>1</td>
|
|
93
114
|
<td>Diarrhoea with no dehydration</td>
|
|
94
|
-
<td
|
|
115
|
+
<td onClick={() => navigateToRegister('diarrhoea_with_no_dehydration')}>
|
|
116
|
+
{moh705aData.diarrhoea_with_no_dehydration}
|
|
117
|
+
</td>
|
|
95
118
|
</tr>
|
|
96
119
|
<tr>
|
|
97
120
|
<td>2</td>
|
|
98
121
|
<td>Diarrhoea with some dehydration</td>
|
|
99
|
-
<td
|
|
122
|
+
<td onClick={() => navigateToRegister('diarrhoea_with_some_dehydration')}>
|
|
123
|
+
{moh705aData.diarrhoea_with_some_dehydration}
|
|
124
|
+
</td>
|
|
100
125
|
</tr>
|
|
101
126
|
<tr>
|
|
102
127
|
<td>3</td>
|
|
103
128
|
<td>Diarrhoea with severe dehydration</td>
|
|
104
|
-
<td
|
|
129
|
+
<td onClick={() => navigateToRegister('diarrhoea_with_severe_dehydration')}>
|
|
130
|
+
{moh705aData.diarrhoea_with_severe_dehydration}
|
|
131
|
+
</td>
|
|
105
132
|
</tr>
|
|
106
133
|
<tr>
|
|
107
134
|
<td>4</td>
|
|
108
135
|
<td>Cholera</td>
|
|
109
|
-
<td>{moh705aData.cholera}</td>
|
|
136
|
+
<td onClick={() => navigateToRegister('cholera')}>{moh705aData.cholera}</td>
|
|
110
137
|
</tr>
|
|
111
138
|
<tr>
|
|
112
139
|
<td>5</td>
|
|
113
140
|
<td>Dysentary (Blood diarrhoea)</td>
|
|
114
|
-
<td>{moh705aData.dysentry}</td>
|
|
141
|
+
<td onClick={() => navigateToRegister('dysentry')}>{moh705aData.dysentry}</td>
|
|
115
142
|
</tr>
|
|
116
143
|
<tr>
|
|
117
144
|
<td>6</td>
|
|
118
145
|
<td>Gastroenterities</td>
|
|
119
|
-
<td>{moh705aData.gastroenterities}</td>
|
|
146
|
+
<td onClick={() => navigateToRegister('gastroenterities')}>{moh705aData.gastroenterities}</td>
|
|
120
147
|
</tr>
|
|
121
148
|
<tr>
|
|
122
149
|
<td>7</td>
|
|
123
150
|
<td>Pneomonia</td>
|
|
124
|
-
<td>{moh705aData.pneumonia}</td>
|
|
151
|
+
<td onClick={() => navigateToRegister('pneumonia')}>{moh705aData.pneumonia}</td>
|
|
125
152
|
</tr>
|
|
126
153
|
<tr>
|
|
127
154
|
<td>8</td>
|
|
128
155
|
<td>Severe pneumonia</td>
|
|
129
|
-
<td>{moh705aData.severe_pneumonia}</td>
|
|
156
|
+
<td onClick={() => navigateToRegister('severe_pneumonia')}>{moh705aData.severe_pneumonia}</td>
|
|
130
157
|
</tr>
|
|
131
158
|
<tr>
|
|
132
159
|
<td>9</td>
|
|
133
160
|
<td>Upper Respiratory Tract Infections</td>
|
|
134
|
-
<td
|
|
161
|
+
<td onClick={() => navigateToRegister('upper_respiratory_tract_infections')}>
|
|
162
|
+
{moh705aData.upper_respiratory_tract_infections}
|
|
163
|
+
</td>
|
|
135
164
|
</tr>
|
|
136
165
|
<tr>
|
|
137
166
|
<td>10</td>
|
|
138
167
|
<td>Lower Respiratory Tract Infections</td>
|
|
139
|
-
<td
|
|
168
|
+
<td onClick={() => navigateToRegister('lower_respiratory_tract_infections')}>
|
|
169
|
+
{moh705aData.lower_respiratory_tract_infections}
|
|
170
|
+
</td>
|
|
140
171
|
</tr>
|
|
141
172
|
<tr>
|
|
142
173
|
<td>11</td>
|
|
143
174
|
<td>Asthma</td>
|
|
144
|
-
<td>{moh705aData.asthma}</td>
|
|
175
|
+
<td onClick={() => navigateToRegister('asthma')}>{moh705aData.asthma}</td>
|
|
145
176
|
</tr>
|
|
146
177
|
<tr>
|
|
147
178
|
<td>12</td>
|
|
148
179
|
<td>Presumed Tuberculosis</td>
|
|
149
|
-
<td>{moh705aData.presumed_tuberculosis}</td>
|
|
180
|
+
<td onClick={() => navigateToRegister('presumed_tuberculosis')}>{moh705aData.presumed_tuberculosis}</td>
|
|
150
181
|
</tr>
|
|
151
182
|
<tr>
|
|
152
183
|
<td>13</td>
|
|
153
184
|
<td>Suspected Malaria</td>
|
|
154
|
-
<td>{moh705aData.suspected_malaria}</td>
|
|
185
|
+
<td onClick={() => navigateToRegister('suspected_malaria')}>{moh705aData.suspected_malaria}</td>
|
|
155
186
|
</tr>
|
|
156
187
|
<tr>
|
|
157
188
|
<td>14</td>
|
|
158
189
|
<td>Tested for Malaria</td>
|
|
159
|
-
<td>{moh705aData.tested_for_malaria}</td>
|
|
190
|
+
<td onClick={() => navigateToRegister('tested_for_malaria')}>{moh705aData.tested_for_malaria}</td>
|
|
160
191
|
</tr>
|
|
161
192
|
<tr>
|
|
162
193
|
<td>15</td>
|
|
163
194
|
<td>Confirmed malaria</td>
|
|
164
|
-
<td>{moh705aData.confirmed_malaria}</td>
|
|
195
|
+
<td onClick={() => navigateToRegister('confirmed_malaria')}>{moh705aData.confirmed_malaria}</td>
|
|
165
196
|
</tr>
|
|
166
197
|
<tr>
|
|
167
198
|
<td>16</td>
|
|
168
199
|
<td>Ear infection</td>
|
|
169
|
-
<td>{moh705aData.ear_infection}</td>
|
|
200
|
+
<td onClick={() => navigateToRegister('ear_infection')}>{moh705aData.ear_infection}</td>
|
|
170
201
|
</tr>
|
|
171
202
|
<tr>
|
|
172
203
|
<td>17</td>
|
|
173
204
|
<td>Malnutrition</td>
|
|
174
|
-
<td>{moh705aData.malnutrition}</td>
|
|
205
|
+
<td onClick={() => navigateToRegister('malnutrition')}>{moh705aData.malnutrition}</td>
|
|
175
206
|
</tr>
|
|
176
207
|
<tr>
|
|
177
208
|
<td>18</td>
|
|
178
209
|
<td>Anaemia</td>
|
|
179
|
-
<td>{moh705aData.anaemia}</td>
|
|
210
|
+
<td onClick={() => navigateToRegister('anaemia')}>{moh705aData.anaemia}</td>
|
|
180
211
|
</tr>
|
|
181
212
|
<tr>
|
|
182
213
|
<td>19</td>
|
|
183
214
|
<td>Meningococcal Menengitis</td>
|
|
184
|
-
<td
|
|
215
|
+
<td onClick={() => navigateToRegister('meningococcal_meningitis')}>
|
|
216
|
+
{moh705aData.meningococcal_meningitis}
|
|
217
|
+
</td>
|
|
185
218
|
</tr>
|
|
186
219
|
<tr>
|
|
187
220
|
<td>20</td>
|
|
188
221
|
<td>Other Meningitis</td>
|
|
189
|
-
<td>{moh705aData.other_meningitis}</td>
|
|
222
|
+
<td onClick={() => navigateToRegister('other_meningitis')}>{moh705aData.other_meningitis}</td>
|
|
190
223
|
</tr>
|
|
191
224
|
<tr>
|
|
192
225
|
<td>21</td>
|
|
193
226
|
<td>Neonatal Sepsis</td>
|
|
194
|
-
<td>{moh705aData.neonatal_sepsis}</td>
|
|
227
|
+
<td onClick={() => navigateToRegister('neonatal_sepsis')}>{moh705aData.neonatal_sepsis}</td>
|
|
195
228
|
</tr>
|
|
196
229
|
<tr>
|
|
197
230
|
<td>22</td>
|
|
198
231
|
<td>Neonatal Tetanus</td>
|
|
199
|
-
<td>{moh705aData.neonatal_tetanus}</td>
|
|
232
|
+
<td onClick={() => navigateToRegister('neonatal_tetanus')}>{moh705aData.neonatal_tetanus}</td>
|
|
200
233
|
</tr>
|
|
201
234
|
<tr>
|
|
202
235
|
<td>23</td>
|
|
203
236
|
<td>Poliomyelitis (AFP)</td>
|
|
204
|
-
<td>{moh705aData.poliomyelitis}</td>
|
|
237
|
+
<td onClick={() => navigateToRegister('poliomyelitis')}>{moh705aData.poliomyelitis}</td>
|
|
205
238
|
</tr>
|
|
206
239
|
<tr>
|
|
207
240
|
<td>24</td>
|
|
208
241
|
<td>Chicken Pox</td>
|
|
209
|
-
<td>{moh705aData.chicken_pox}</td>
|
|
242
|
+
<td onClick={() => navigateToRegister('chicken_pox')}>{moh705aData.chicken_pox}</td>
|
|
210
243
|
</tr>
|
|
211
244
|
<tr>
|
|
212
245
|
<td>25</td>
|
|
213
246
|
<td>Measles</td>
|
|
214
|
-
<td>{moh705aData.measles}</td>
|
|
247
|
+
<td onClick={() => navigateToRegister('measles')}>{moh705aData.measles}</td>
|
|
215
248
|
</tr>
|
|
216
249
|
<tr>
|
|
217
250
|
<td>26</td>
|
|
218
251
|
<td>Hepatitis</td>
|
|
219
|
-
<td>{moh705aData.hepatitis}</td>
|
|
252
|
+
<td onClick={() => navigateToRegister('hepatitis')}>{moh705aData.hepatitis}</td>
|
|
220
253
|
</tr>
|
|
221
254
|
<tr>
|
|
222
255
|
<td>27</td>
|
|
223
256
|
<td>Amoebiasis</td>
|
|
224
|
-
<td>{moh705aData.amoebiasis}</td>
|
|
257
|
+
<td onClick={() => navigateToRegister('amoebiasis')}>{moh705aData.amoebiasis}</td>
|
|
225
258
|
</tr>
|
|
226
259
|
<tr>
|
|
227
260
|
<td>28</td>
|
|
228
261
|
<td>Mumps</td>
|
|
229
|
-
<td>{moh705aData.mumps}</td>
|
|
262
|
+
<td onClick={() => navigateToRegister('mumps')}>{moh705aData.mumps}</td>
|
|
230
263
|
</tr>
|
|
231
264
|
<tr>
|
|
232
265
|
<td>29</td>
|
|
233
266
|
<td>Typhoid fever</td>
|
|
234
|
-
<td>{moh705aData.typhoid_fever}</td>
|
|
267
|
+
<td onClick={() => navigateToRegister('typhoid_fever')}>{moh705aData.typhoid_fever}</td>
|
|
235
268
|
</tr>
|
|
236
269
|
<tr>
|
|
237
270
|
<td>30</td>
|
|
238
271
|
<td>Bilharzia (Schistosomiasis)</td>
|
|
239
|
-
<td>{moh705aData.bilharzia}</td>
|
|
272
|
+
<td onClick={() => navigateToRegister('bilharzia')}>{moh705aData.bilharzia}</td>
|
|
240
273
|
</tr>
|
|
241
274
|
<tr>
|
|
242
275
|
<td>31</td>
|
|
243
276
|
<td>Intestinal worms</td>
|
|
244
|
-
<td>{moh705aData.intestinal_worms}</td>
|
|
277
|
+
<td onClick={() => navigateToRegister('intestinal_worms')}>{moh705aData.intestinal_worms}</td>
|
|
245
278
|
</tr>
|
|
246
279
|
<tr>
|
|
247
280
|
<td>32</td>
|
|
248
281
|
<td>Eye Infections</td>
|
|
249
|
-
<td>{moh705aData.eye_infections}</td>
|
|
282
|
+
<td onClick={() => navigateToRegister('eye_infections')}>{moh705aData.eye_infections}</td>
|
|
250
283
|
</tr>
|
|
251
284
|
<tr>
|
|
252
285
|
<td>33</td>
|
|
253
286
|
<td>Tonsilitis</td>
|
|
254
|
-
<td>{moh705aData.tonsilities}</td>
|
|
287
|
+
<td onClick={() => navigateToRegister('tonsilities')}>{moh705aData.tonsilities}</td>
|
|
255
288
|
</tr>
|
|
256
289
|
<tr>
|
|
257
290
|
<td>34</td>
|
|
258
291
|
<td>Urinary Tract Infection</td>
|
|
259
|
-
<td
|
|
292
|
+
<td onClick={() => navigateToRegister('urinary_tract_infections')}>
|
|
293
|
+
{moh705aData.urinary_tract_infections}
|
|
294
|
+
</td>
|
|
260
295
|
</tr>
|
|
261
296
|
<tr>
|
|
262
297
|
<td>35</td>
|
|
263
298
|
<td>Mental Disorders</td>
|
|
264
|
-
<td>{moh705aData.mental_disorders}</td>
|
|
299
|
+
<td onClick={() => navigateToRegister('mental_disorders')}>{moh705aData.mental_disorders}</td>
|
|
265
300
|
</tr>
|
|
266
301
|
<tr>
|
|
267
302
|
<td>36</td>
|
|
268
303
|
<td>Dental Disorders</td>
|
|
269
|
-
<td>{moh705aData.dental_disorders}</td>
|
|
304
|
+
<td onClick={() => navigateToRegister('dental_disorders')}>{moh705aData.dental_disorders}</td>
|
|
270
305
|
</tr>
|
|
271
306
|
<tr>
|
|
272
307
|
<td>37</td>
|
|
273
308
|
<td>Jiggers Infestation</td>
|
|
274
|
-
<td>{moh705aData.jiggers_infestation}</td>
|
|
309
|
+
<td onClick={() => navigateToRegister('jiggers_infestation')}>{moh705aData.jiggers_infestation}</td>
|
|
275
310
|
</tr>
|
|
276
311
|
<tr>
|
|
277
312
|
<td>38</td>
|
|
278
313
|
<td>Diseases fo the skin</td>
|
|
279
|
-
<td>{moh705aData.diseases_of_the_skin}</td>
|
|
314
|
+
<td onClick={() => navigateToRegister('diseases_of_the_skin')}>{moh705aData.diseases_of_the_skin}</td>
|
|
280
315
|
</tr>
|
|
281
316
|
<tr>
|
|
282
317
|
<td>39</td>
|
|
283
318
|
<td>Down's syndrome</td>
|
|
284
|
-
<td>{moh705aData.downs_syndrome}</td>
|
|
319
|
+
<td onClick={() => navigateToRegister('downs_syndrome')}>{moh705aData.downs_syndrome}</td>
|
|
285
320
|
</tr>
|
|
286
321
|
<tr>
|
|
287
322
|
<td>40</td>
|
|
288
323
|
<td>Poisoning</td>
|
|
289
|
-
<td>{moh705aData.poisoning}</td>
|
|
324
|
+
<td onClick={() => navigateToRegister('poisoning')}>{moh705aData.poisoning}</td>
|
|
290
325
|
</tr>
|
|
291
326
|
<tr>
|
|
292
327
|
<td>41</td>
|
|
293
328
|
<td>Road Traffic Injuries</td>
|
|
294
|
-
<td>{moh705aData.road_traffic_injuries}</td>
|
|
329
|
+
<td onClick={() => navigateToRegister('road_traffic_injuries')}>{moh705aData.road_traffic_injuries}</td>
|
|
295
330
|
</tr>
|
|
296
331
|
<tr>
|
|
297
332
|
<td>42</td>
|
|
298
333
|
<td>Deaths due to Road Traffic Injuries</td>
|
|
299
|
-
<td
|
|
334
|
+
<td onClick={() => navigateToRegister('deaths_due_to_road_traffic_injuries')}>
|
|
335
|
+
{moh705aData.deaths_due_to_road_traffic_injuries}
|
|
336
|
+
</td>
|
|
300
337
|
</tr>
|
|
301
338
|
<tr>
|
|
302
339
|
<td>43</td>
|
|
303
340
|
<td>Violence related injuries</td>
|
|
304
|
-
<td
|
|
341
|
+
<td onClick={() => navigateToRegister('violence_related_injuries')}>
|
|
342
|
+
{moh705aData.violence_related_injuries}
|
|
343
|
+
</td>
|
|
305
344
|
</tr>
|
|
306
345
|
<tr>
|
|
307
346
|
<td>44</td>
|
|
308
347
|
<td>Other injuries</td>
|
|
309
|
-
<td>{moh705aData.other_injuries}</td>
|
|
348
|
+
<td onClick={() => navigateToRegister('other_injuries')}>{moh705aData.other_injuries}</td>
|
|
310
349
|
</tr>
|
|
311
350
|
<tr>
|
|
312
351
|
<td>45</td>
|
|
313
352
|
<td>Sexual Violence</td>
|
|
314
|
-
<td>{moh705aData.sexual_violence}</td>
|
|
353
|
+
<td onClick={() => navigateToRegister('sexual_violence')}>{moh705aData.sexual_violence}</td>
|
|
315
354
|
</tr>
|
|
316
355
|
<tr>
|
|
317
356
|
<td>46</td>
|
|
318
357
|
<td>Burns</td>
|
|
319
|
-
<td>{moh705aData.burns}</td>
|
|
358
|
+
<td onClick={() => navigateToRegister('burns')}>{moh705aData.burns}</td>
|
|
320
359
|
</tr>
|
|
321
360
|
<tr>
|
|
322
361
|
<td>47</td>
|
|
323
362
|
<td>Snake Bites</td>
|
|
324
|
-
<td>{moh705aData.snake_bites}</td>
|
|
363
|
+
<td onClick={() => navigateToRegister('snake_bites')}>{moh705aData.snake_bites}</td>
|
|
325
364
|
</tr>
|
|
326
365
|
<tr>
|
|
327
366
|
<td>48</td>
|
|
328
367
|
<td>Dog bites</td>
|
|
329
|
-
<td>{moh705aData.dog_bites}</td>
|
|
368
|
+
<td onClick={() => navigateToRegister('dog_bites')}>{moh705aData.dog_bites}</td>
|
|
330
369
|
</tr>
|
|
331
370
|
<tr>
|
|
332
371
|
<td>49</td>
|
|
333
372
|
<td>Other Bites</td>
|
|
334
|
-
<td>{moh705aData.other_bites}</td>
|
|
373
|
+
<td onClick={() => navigateToRegister('other_bites')}>{moh705aData.other_bites}</td>
|
|
335
374
|
</tr>
|
|
336
375
|
<tr>
|
|
337
376
|
<td>50</td>
|
|
338
377
|
<td>Diabetes</td>
|
|
339
|
-
<td>{moh705aData.diabetes}</td>
|
|
378
|
+
<td onClick={() => navigateToRegister('diabetes')}>{moh705aData.diabetes}</td>
|
|
340
379
|
</tr>
|
|
341
380
|
<tr>
|
|
342
381
|
<td>51</td>
|
|
343
382
|
<td>Epilepsy</td>
|
|
344
|
-
<td>{moh705aData.epilepsy}</td>
|
|
383
|
+
<td onClick={() => navigateToRegister('epilepsy')}>{moh705aData.epilepsy}</td>
|
|
345
384
|
</tr>
|
|
346
385
|
<tr>
|
|
347
386
|
<td>52</td>
|
|
348
387
|
<td>Other Convulsive Disorders</td>
|
|
349
|
-
<td
|
|
388
|
+
<td onClick={() => navigateToRegister('other_convulsive_disorders')}>
|
|
389
|
+
{moh705aData.other_convulsive_disorders}
|
|
390
|
+
</td>
|
|
350
391
|
</tr>
|
|
351
392
|
<tr>
|
|
352
393
|
<td>53</td>
|
|
353
394
|
<td>Rheumatic Fever</td>
|
|
354
|
-
<td>{moh705aData.rheumatic_fever}</td>
|
|
395
|
+
<td onClick={() => navigateToRegister('rheumatic_fever')}>{moh705aData.rheumatic_fever}</td>
|
|
355
396
|
</tr>
|
|
356
397
|
<tr>
|
|
357
398
|
<td>54</td>
|
|
358
399
|
<td>Brucellosis</td>
|
|
359
|
-
<td>{moh705aData.brucellosis}</td>
|
|
400
|
+
<td onClick={() => navigateToRegister('brucellosis')}>{moh705aData.brucellosis}</td>
|
|
360
401
|
</tr>
|
|
361
402
|
<tr>
|
|
362
403
|
<td>55</td>
|
|
363
404
|
<td>Rickets</td>
|
|
364
|
-
<td>{moh705aData.rickets}</td>
|
|
405
|
+
<td onClick={() => navigateToRegister('rickets')}>{moh705aData.rickets}</td>
|
|
365
406
|
</tr>
|
|
366
407
|
<tr>
|
|
367
408
|
<td>56</td>
|
|
368
409
|
<td>Cerebral Palsy</td>
|
|
369
|
-
<td>{moh705aData.cerebral_palsy}</td>
|
|
410
|
+
<td onClick={() => navigateToRegister('cerebral_palsy')}>{moh705aData.cerebral_palsy}</td>
|
|
370
411
|
</tr>
|
|
371
412
|
<tr>
|
|
372
413
|
<td>57</td>
|
|
373
414
|
<td>Autism</td>
|
|
374
|
-
<td>{moh705aData.autism}</td>
|
|
415
|
+
<td onClick={() => navigateToRegister('autism')}>{moh705aData.autism}</td>
|
|
375
416
|
</tr>
|
|
376
417
|
<tr>
|
|
377
418
|
<td>58</td>
|
|
378
419
|
<td>Tryponosomiasis</td>
|
|
379
|
-
<td>{moh705aData.tryponosomiasis}</td>
|
|
420
|
+
<td onClick={() => navigateToRegister('tryponosomiasis')}>{moh705aData.tryponosomiasis}</td>
|
|
380
421
|
</tr>
|
|
381
422
|
<tr>
|
|
382
423
|
<td>59</td>
|
|
383
424
|
<td>Yellow Fever</td>
|
|
384
|
-
<td>{moh705aData.yellow_fever}</td>
|
|
425
|
+
<td onClick={() => navigateToRegister('yellow_fever')}>{moh705aData.yellow_fever}</td>
|
|
385
426
|
</tr>
|
|
386
427
|
<tr>
|
|
387
428
|
<td>60</td>
|
|
388
429
|
<td>Viral Haemorrhagic Fever</td>
|
|
389
|
-
<td
|
|
430
|
+
<td onClick={() => navigateToRegister('viral_haemorrhagic_fever')}>
|
|
431
|
+
{moh705aData.viral_haemorrhagic_fever}
|
|
432
|
+
</td>
|
|
390
433
|
</tr>
|
|
391
434
|
<tr>
|
|
392
435
|
<td>61</td>
|
|
393
436
|
<td>Rift valley fever</td>
|
|
394
|
-
<td>{moh705aData.rift_valley_fever}</td>
|
|
437
|
+
<td onClick={() => navigateToRegister('rift_valley_fever')}>{moh705aData.rift_valley_fever}</td>
|
|
395
438
|
</tr>
|
|
396
439
|
<tr>
|
|
397
440
|
<td>62</td>
|
|
398
441
|
<td>Chikungunya</td>
|
|
399
|
-
<td>{moh705aData.chikungunya}</td>
|
|
442
|
+
<td onClick={() => navigateToRegister('chikungunya')}>{moh705aData.chikungunya}</td>
|
|
400
443
|
</tr>
|
|
401
444
|
<tr>
|
|
402
445
|
<td>63</td>
|
|
403
446
|
<td>Dengue fever</td>
|
|
404
|
-
<td>{moh705aData.dengue_fever}</td>
|
|
447
|
+
<td onClick={() => navigateToRegister('dengue_fever')}>{moh705aData.dengue_fever}</td>
|
|
405
448
|
</tr>
|
|
406
449
|
<tr>
|
|
407
450
|
<td>64</td>
|
|
408
451
|
<td>Leishmaniasis(Kalaazar)</td>
|
|
409
|
-
<td>{moh705aData.leishmaniasis}</td>
|
|
452
|
+
<td onClick={() => navigateToRegister('leishmaniasis')}>{moh705aData.leishmaniasis}</td>
|
|
410
453
|
</tr>
|
|
411
454
|
<tr>
|
|
412
455
|
<td>65</td>
|
|
413
456
|
<td>Cutaneous leishmaniasis</td>
|
|
414
|
-
<td
|
|
457
|
+
<td onClick={() => navigateToRegister('cutaneous_leishmaniasis')}>
|
|
458
|
+
{moh705aData.cutaneous_leishmaniasis}
|
|
459
|
+
</td>
|
|
415
460
|
</tr>
|
|
416
461
|
<tr>
|
|
417
462
|
<td>66</td>
|
|
418
463
|
<td>Suspected anthrax</td>
|
|
419
|
-
<td>{moh705aData.suspected_anthrax}</td>
|
|
464
|
+
<td onClick={() => navigateToRegister('suspected_anthrax')}>{moh705aData.suspected_anthrax}</td>
|
|
420
465
|
</tr>
|
|
421
466
|
<tr>
|
|
422
467
|
<td>67</td>
|
|
423
468
|
<td>Suspected Childhood Cancers</td>
|
|
424
|
-
<td
|
|
469
|
+
<td onClick={() => navigateToRegister('suspected_childhood_cancers')}>
|
|
470
|
+
{moh705aData.suspected_childhood_cancers}
|
|
471
|
+
</td>
|
|
425
472
|
</tr>
|
|
426
473
|
<tr>
|
|
427
474
|
<td>68</td>
|
|
428
475
|
<td>Hypoxaemia (Spo2<90%)</td>
|
|
429
|
-
<td>{moh705aData.hypoxaemia}</td>
|
|
476
|
+
<td onClick={() => navigateToRegister('hypoxaemia')}>{moh705aData.hypoxaemia}</td>
|
|
430
477
|
</tr>
|
|
431
478
|
<tr>
|
|
432
479
|
<td>69</td>
|
|
433
480
|
<td>All Other Diseases</td>
|
|
434
|
-
<td>{moh705aData.all_other_diseases}</td>
|
|
481
|
+
<td onClick={() => navigateToRegister('all_other_diseases')}>{moh705aData.all_other_diseases}</td>
|
|
435
482
|
</tr>
|
|
436
483
|
<tr>
|
|
437
484
|
<td>70</td>
|
|
438
485
|
<td>No. of New Attendances</td>
|
|
439
|
-
<td>{moh705aData.new_attendances}</td>
|
|
486
|
+
<td onClick={() => navigateToRegister('new_attendances')}>{moh705aData.new_attendances}</td>
|
|
440
487
|
</tr>
|
|
441
488
|
<tr>
|
|
442
489
|
<td>71</td>
|
|
443
490
|
<td>No of Re-Attendances</td>
|
|
444
|
-
<td>{moh705aData.re_attendances}</td>
|
|
491
|
+
<td onClick={() => navigateToRegister('re_attendances')}>{moh705aData.re_attendances}</td>
|
|
445
492
|
</tr>
|
|
446
493
|
<tr>
|
|
447
494
|
<td>72</td>
|
|
448
495
|
<td>Referrals From Other Health Facility</td>
|
|
449
|
-
<td
|
|
496
|
+
<td onClick={() => navigateToRegister('referrals_from_other_health_facility')}>
|
|
497
|
+
{moh705aData.referrals_from_other_health_facility}
|
|
498
|
+
</td>
|
|
450
499
|
</tr>
|
|
451
500
|
<tr>
|
|
452
501
|
<td>73</td>
|
|
453
502
|
<td>Referrals To Other Health Facility</td>
|
|
454
|
-
<td
|
|
503
|
+
<td onClick={() => navigateToRegister('referrals_to_other_health_facility')}>
|
|
504
|
+
{moh705aData.referrals_to_other_health_facility}
|
|
505
|
+
</td>
|
|
455
506
|
</tr>
|
|
456
507
|
<tr>
|
|
457
508
|
<td>74</td>
|
|
458
509
|
<td>Referrals From Community Unit</td>
|
|
459
|
-
<td
|
|
510
|
+
<td onClick={() => navigateToRegister('referrals_from_community_unit')}>
|
|
511
|
+
{moh705aData.referrals_from_community_unit}
|
|
512
|
+
</td>
|
|
460
513
|
</tr>
|
|
461
514
|
<tr>
|
|
462
515
|
<td>74</td>
|
|
463
516
|
<td>Referrals To Community Unit</td>
|
|
464
|
-
<td
|
|
517
|
+
<td onClick={() => navigateToRegister('referrals_to_community_unit')}>
|
|
518
|
+
{moh705aData.referrals_to_community_unit}
|
|
519
|
+
</td>
|
|
465
520
|
</tr>
|
|
466
521
|
</tbody>
|
|
467
522
|
</table>
|
|
@@ -31,11 +31,15 @@ h3 {
|
|
|
31
31
|
|
|
32
32
|
.tableBordered td,
|
|
33
33
|
.tableBordered th {
|
|
34
|
-
border: 1px solid
|
|
34
|
+
border: 1px solid black;
|
|
35
35
|
padding: 1rem;
|
|
36
36
|
font-size: small;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.tableStriped tbody tr:nth-of-type(odd) {
|
|
40
40
|
background-color: #f9f9f9;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.buttonContainer {
|
|
44
|
+
margin: 1rem;
|
|
41
45
|
}
|