@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
|
@@ -5,18 +5,23 @@ import { getMoh705b } from '../../resources/moh-705.resource';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import ReportFiltersComponent from '../../common/report-filters/report-filters.component';
|
|
7
7
|
import { Loading } from '@carbon/react';
|
|
8
|
+
import { useNavigate } from 'react-router-dom';
|
|
9
|
+
|
|
10
|
+
import { type ReportFilters } from '../moh-705a/type';
|
|
8
11
|
|
|
9
12
|
const Moh705BComponent: React.FC = () => {
|
|
10
13
|
let errorMessage: string = '';
|
|
11
14
|
const [moh705bData, setMoh705bData] = useState<any>([]);
|
|
12
15
|
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
16
|
+
const [startDate, setStartDate] = useState<string>('');
|
|
17
|
+
const [endDate, setEndDate] = useState<string>('');
|
|
13
18
|
|
|
14
19
|
const session = useSession();
|
|
15
20
|
const locationUuids = session?.sessionLocation?.uuid;
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let endDate = filters
|
|
21
|
+
const navigate = useNavigate();
|
|
22
|
+
|
|
23
|
+
const getReportParams = (filters: ReportFilters) => {
|
|
24
|
+
let { startDate: sDate, endDate: eDate } = filters;
|
|
20
25
|
|
|
21
26
|
if (filters.month) {
|
|
22
27
|
const [year, monthIndex] = filters.month.split('-').map(Number);
|
|
@@ -25,16 +30,27 @@ const Moh705BComponent: React.FC = () => {
|
|
|
25
30
|
const end = new Date(year, monthIndex, 0);
|
|
26
31
|
|
|
27
32
|
const formatLocalDate = (d: Date) => {
|
|
28
|
-
const
|
|
29
|
-
const
|
|
33
|
+
const y = d.getFullYear();
|
|
34
|
+
const m = String(d.getMonth() + 1).padStart(2, '0');
|
|
30
35
|
const day = String(d.getDate()).padStart(2, '0');
|
|
31
|
-
return `${
|
|
36
|
+
return `${y}-${m}-${day}`;
|
|
32
37
|
};
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
sDate = formatLocalDate(start);
|
|
40
|
+
eDate = formatLocalDate(end);
|
|
36
41
|
}
|
|
37
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
|
+
|
|
38
54
|
const params = {
|
|
39
55
|
locationUuids: locationUuids || '',
|
|
40
56
|
startDate,
|
|
@@ -52,6 +68,12 @@ const Moh705BComponent: React.FC = () => {
|
|
|
52
68
|
}
|
|
53
69
|
};
|
|
54
70
|
|
|
71
|
+
const navigateToRegister = (indicator: string) => {
|
|
72
|
+
navigate(
|
|
73
|
+
`/moh-204b?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}`,
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
55
77
|
return (
|
|
56
78
|
<>
|
|
57
79
|
<ReportFiltersComponent
|
|
@@ -90,372 +112,408 @@ const Moh705BComponent: React.FC = () => {
|
|
|
90
112
|
<tr>
|
|
91
113
|
<td>1</td>
|
|
92
114
|
<td>Diarrhoea</td>
|
|
93
|
-
<td>{moh705bData.diarrhoea}</td>
|
|
115
|
+
<td onClick={() => navigateToRegister('diarrhoea')}>{moh705bData.diarrhoea}</td>
|
|
94
116
|
</tr>
|
|
95
117
|
<tr>
|
|
96
118
|
<td>2</td>
|
|
97
119
|
<td>Tuberculosis</td>
|
|
98
|
-
<td>{moh705bData.tuberculosis}</td>
|
|
120
|
+
<td onClick={() => navigateToRegister('tuberculosis')}>{moh705bData.tuberculosis}</td>
|
|
99
121
|
</tr>
|
|
100
122
|
<tr>
|
|
101
123
|
<td>3</td>
|
|
102
124
|
<td>Dysentry (Bloody diarrhoea)</td>
|
|
103
|
-
<td>{moh705bData.dysentry}</td>
|
|
125
|
+
<td onClick={() => navigateToRegister('dysentry')}>{moh705bData.dysentry}</td>
|
|
104
126
|
</tr>
|
|
105
127
|
<tr>
|
|
106
128
|
<td>4</td>
|
|
107
129
|
<td>Cholera</td>
|
|
108
|
-
<td>{moh705bData.cholera}</td>
|
|
130
|
+
<td onClick={() => navigateToRegister('cholera')}>{moh705bData.cholera}</td>
|
|
109
131
|
</tr>
|
|
110
132
|
<tr>
|
|
111
133
|
<td>5</td>
|
|
112
134
|
<td>Meningococcal Meningitis</td>
|
|
113
|
-
<td
|
|
135
|
+
<td onClick={() => navigateToRegister('meningococcal_meningitis')}>
|
|
136
|
+
{moh705bData.meningococcal_meningitis}
|
|
137
|
+
</td>
|
|
114
138
|
</tr>
|
|
115
139
|
<tr>
|
|
116
140
|
<td>6</td>
|
|
117
141
|
<td>Other Meningitis</td>
|
|
118
|
-
<td>{moh705bData.other_meningitis}</td>
|
|
142
|
+
<td onClick={() => navigateToRegister('other_meningitis')}>{moh705bData.other_meningitis}</td>
|
|
119
143
|
</tr>
|
|
120
144
|
<tr>
|
|
121
145
|
<td>7</td>
|
|
122
146
|
<td>Tetanus</td>
|
|
123
|
-
<td>{moh705bData.tetanus}</td>
|
|
147
|
+
<td onClick={() => navigateToRegister('tetanus')}>{moh705bData.tetanus}</td>
|
|
124
148
|
</tr>
|
|
125
149
|
<tr>
|
|
126
150
|
<td>8</td>
|
|
127
151
|
<td>Poliomyelitis (AFP)</td>
|
|
128
|
-
<td>{moh705bData.poliomyelitis}</td>
|
|
152
|
+
<td onClick={() => navigateToRegister('poliomyelitis')}>{moh705bData.poliomyelitis}</td>
|
|
129
153
|
</tr>
|
|
130
154
|
<tr>
|
|
131
155
|
<td>9</td>
|
|
132
156
|
<td>Chicken Pox</td>
|
|
133
|
-
<td>{moh705bData.chicken_pox}</td>
|
|
157
|
+
<td onClick={() => navigateToRegister('chicken_pox')}>{moh705bData.chicken_pox}</td>
|
|
134
158
|
</tr>
|
|
135
159
|
<tr>
|
|
136
160
|
<td>10</td>
|
|
137
161
|
<td>Measles</td>
|
|
138
|
-
<td>{moh705bData.measles}</td>
|
|
162
|
+
<td onClick={() => navigateToRegister('measles')}>{moh705bData.measles}</td>
|
|
139
163
|
</tr>
|
|
140
164
|
<tr>
|
|
141
165
|
<td>11</td>
|
|
142
166
|
<td>Hepatitis</td>
|
|
143
|
-
<td>{moh705bData.hepatitis}</td>
|
|
167
|
+
<td onClick={() => navigateToRegister('hepatitis')}>{moh705bData.hepatitis}</td>
|
|
144
168
|
</tr>
|
|
145
169
|
<tr>
|
|
146
170
|
<td>12</td>
|
|
147
171
|
<td>Mumps</td>
|
|
148
|
-
<td>{moh705bData.mumps}</td>
|
|
172
|
+
<td onClick={() => navigateToRegister('mumps')}>{moh705bData.mumps}</td>
|
|
149
173
|
</tr>
|
|
150
174
|
<tr>
|
|
151
175
|
<td>13</td>
|
|
152
176
|
<td>Suspected Malaria</td>
|
|
153
|
-
<td>{moh705bData.suspected_malaria}</td>
|
|
177
|
+
<td onClick={() => navigateToRegister('suspected_malaria')}>{moh705bData.suspected_malaria}</td>
|
|
154
178
|
</tr>
|
|
155
179
|
<tr>
|
|
156
180
|
<td>14</td>
|
|
157
181
|
<td>Confirmed Malaria</td>
|
|
158
|
-
<td>{moh705bData.confirmed_malaria}</td>
|
|
182
|
+
<td onClick={() => navigateToRegister('confirmed_malaria')}>{moh705bData.confirmed_malaria}</td>
|
|
159
183
|
</tr>
|
|
160
184
|
<tr>
|
|
161
185
|
<td>15</td>
|
|
162
186
|
<td>Malaria in Pregnancy</td>
|
|
163
|
-
<td>{moh705bData.malaria_in_pregnancy}</td>
|
|
187
|
+
<td onClick={() => navigateToRegister('malaria_in_pregnancy')}>{moh705bData.malaria_in_pregnancy}</td>
|
|
164
188
|
</tr>
|
|
165
189
|
<tr>
|
|
166
190
|
<td>16</td>
|
|
167
191
|
<td>Amoebiasis</td>
|
|
168
|
-
<td>{moh705bData.amoebiasis}</td>
|
|
192
|
+
<td onClick={() => navigateToRegister('amoebiasis')}>{moh705bData.amoebiasis}</td>
|
|
169
193
|
</tr>
|
|
170
194
|
<tr>
|
|
171
195
|
<td>17</td>
|
|
172
196
|
<td>Typhoid fever</td>
|
|
173
|
-
<td>{moh705bData.typhoid_fever}</td>
|
|
197
|
+
<td onClick={() => navigateToRegister('typhoid_fever')}>{moh705bData.typhoid_fever}</td>
|
|
174
198
|
</tr>
|
|
175
199
|
<tr>
|
|
176
200
|
<td>18</td>
|
|
177
201
|
<td>Sexually Transmitted Infections</td>
|
|
178
|
-
<td
|
|
202
|
+
<td onClick={() => navigateToRegister('sexually_transmitted_infections')}>
|
|
203
|
+
{moh705bData.sexually_transmitted_infections}
|
|
204
|
+
</td>
|
|
179
205
|
</tr>
|
|
180
206
|
<tr>
|
|
181
207
|
<td>19</td>
|
|
182
208
|
<td>Urinary Tract Infections</td>
|
|
183
|
-
<td
|
|
209
|
+
<td onClick={() => navigateToRegister('urinary_tract_infections')}>
|
|
210
|
+
{moh705bData.urinary_tract_infections}
|
|
211
|
+
</td>
|
|
184
212
|
</tr>
|
|
185
213
|
<tr>
|
|
186
214
|
<td>20</td>
|
|
187
215
|
<td>Bilharzia (Schistosomiasis)</td>
|
|
188
|
-
<td>{moh705bData.bilharzia}</td>
|
|
216
|
+
<td onClick={() => navigateToRegister('bilharzia')}>{moh705bData.bilharzia}</td>
|
|
189
217
|
</tr>
|
|
190
218
|
<tr>
|
|
191
219
|
<td>21</td>
|
|
192
220
|
<td>Intestinal worms</td>
|
|
193
|
-
<td>{moh705bData.intestinal_worms}</td>
|
|
221
|
+
<td onClick={() => navigateToRegister('intestinal_worms')}>{moh705bData.intestinal_worms}</td>
|
|
194
222
|
</tr>
|
|
195
223
|
<tr>
|
|
196
224
|
<td>22</td>
|
|
197
225
|
<td>Malnutrition</td>
|
|
198
|
-
<td>{moh705bData.malnutrition}</td>
|
|
226
|
+
<td onClick={() => navigateToRegister('malnutrition')}>{moh705bData.malnutrition}</td>
|
|
199
227
|
</tr>
|
|
200
228
|
<tr>
|
|
201
229
|
<td>23</td>
|
|
202
230
|
<td>Anaemia</td>
|
|
203
|
-
<td>{moh705bData.anaemia}</td>
|
|
231
|
+
<td onClick={() => navigateToRegister('anaemia')}>{moh705bData.anaemia}</td>
|
|
204
232
|
</tr>
|
|
205
233
|
<tr>
|
|
206
234
|
<td>24</td>
|
|
207
235
|
<td>Eye Infections/Conditions</td>
|
|
208
|
-
<td>{moh705bData.eye_infections}</td>
|
|
236
|
+
<td onClick={() => navigateToRegister('eye_infections')}>{moh705bData.eye_infections}</td>
|
|
209
237
|
</tr>
|
|
210
238
|
<tr>
|
|
211
239
|
<td>25</td>
|
|
212
240
|
<td>Ear Infections/Conditions</td>
|
|
213
|
-
<td>{moh705bData.ear_infections}</td>
|
|
241
|
+
<td onClick={() => navigateToRegister('ear_infections')}>{moh705bData.ear_infections}</td>
|
|
214
242
|
</tr>
|
|
215
243
|
<tr>
|
|
216
244
|
<td>26</td>
|
|
217
245
|
<td>Upper Respiratory Tract Infections </td>
|
|
218
|
-
<td
|
|
246
|
+
<td onClick={() => navigateToRegister('upper_respiratory_tract_infections')}>
|
|
247
|
+
{moh705bData.upper_respiratory_tract_infections}
|
|
248
|
+
</td>
|
|
219
249
|
</tr>
|
|
220
250
|
<tr>
|
|
221
251
|
<td>27</td>
|
|
222
252
|
<td>Asthma</td>
|
|
223
|
-
<td>{moh705bData.asthma}</td>
|
|
253
|
+
<td onClick={() => navigateToRegister('asthma')}>{moh705bData.asthma}</td>
|
|
224
254
|
</tr>
|
|
225
255
|
<tr>
|
|
226
256
|
<td>28</td>
|
|
227
257
|
<td>Pneumonia</td>
|
|
228
|
-
<td>{moh705bData.pneumonia}</td>
|
|
258
|
+
<td onClick={() => navigateToRegister('pneumonia')}>{moh705bData.pneumonia}</td>
|
|
229
259
|
</tr>
|
|
230
260
|
<tr>
|
|
231
261
|
<td>29</td>
|
|
232
262
|
<td>Other Lower Respiratory tract infections</td>
|
|
233
|
-
<td
|
|
263
|
+
<td onClick={() => navigateToRegister('other_lower_respiratory_tract_infections')}>
|
|
264
|
+
{moh705bData.other_lower_respiratory_tract_infections}
|
|
265
|
+
</td>
|
|
234
266
|
</tr>
|
|
235
267
|
<tr>
|
|
236
268
|
<td>30</td>
|
|
237
269
|
<td>Abortion</td>
|
|
238
|
-
<td>{moh705bData.abortion}</td>
|
|
270
|
+
<td onClick={() => navigateToRegister('abortion')}>{moh705bData.abortion}</td>
|
|
239
271
|
</tr>
|
|
240
272
|
<tr>
|
|
241
273
|
<td>31</td>
|
|
242
274
|
<td>Dis. of Puerperium & Childbirth</td>
|
|
243
|
-
<td>{moh705bData.puerperium_childbirth}</td>
|
|
275
|
+
<td onClick={() => navigateToRegister('puerperium_childbirth')}>{moh705bData.puerperium_childbirth}</td>
|
|
244
276
|
</tr>
|
|
245
277
|
<tr>
|
|
246
278
|
<td>32</td>
|
|
247
279
|
<td>Hypertension</td>
|
|
248
|
-
<td>{moh705bData.hypertention}</td>
|
|
280
|
+
<td onClick={() => navigateToRegister('hypertention')}>{moh705bData.hypertention}</td>
|
|
249
281
|
</tr>
|
|
250
282
|
<tr>
|
|
251
283
|
<td>33</td>
|
|
252
284
|
<td>Mental Disorders</td>
|
|
253
|
-
<td>{moh705bData.mental_disorders}</td>
|
|
285
|
+
<td onClick={() => navigateToRegister('mental_disorders')}>{moh705bData.mental_disorders}</td>
|
|
254
286
|
</tr>
|
|
255
287
|
<tr>
|
|
256
288
|
<td>34</td>
|
|
257
289
|
<td>Dental Disorders</td>
|
|
258
|
-
<td>{moh705bData.dental_disorders}</td>
|
|
290
|
+
<td onClick={() => navigateToRegister('dental_disorders')}>{moh705bData.dental_disorders}</td>
|
|
259
291
|
</tr>
|
|
260
292
|
<tr>
|
|
261
293
|
<td>35</td>
|
|
262
294
|
<td>Jiggers Infestation</td>
|
|
263
|
-
<td>{moh705bData.jiggers_infestation}</td>
|
|
295
|
+
<td onClick={() => navigateToRegister('jiggers_infestation')}>{moh705bData.jiggers_infestation}</td>
|
|
264
296
|
</tr>
|
|
265
297
|
<tr>
|
|
266
298
|
<td>36</td>
|
|
267
299
|
<td>Disease of the skin</td>
|
|
268
|
-
<td>{moh705bData.diseases_of_the_skin}</td>
|
|
300
|
+
<td onClick={() => navigateToRegister('diseases_of_the_skin')}>{moh705bData.diseases_of_the_skin}</td>
|
|
269
301
|
</tr>
|
|
270
302
|
<tr>
|
|
271
303
|
<td>37</td>
|
|
272
304
|
<td>Athritis, Joint pains etc.</td>
|
|
273
|
-
<td>{moh705bData.athritis}</td>
|
|
305
|
+
<td onClick={() => navigateToRegister('athritis')}>{moh705bData.athritis}</td>
|
|
274
306
|
</tr>
|
|
275
307
|
<tr>
|
|
276
308
|
<td>38</td>
|
|
277
309
|
<td>Poisoning</td>
|
|
278
|
-
<td>{moh705bData.poisoning}</td>
|
|
310
|
+
<td onClick={() => navigateToRegister('poisoning')}>{moh705bData.poisoning}</td>
|
|
279
311
|
</tr>
|
|
280
312
|
<tr>
|
|
281
313
|
<td>39</td>
|
|
282
314
|
<td>Road Traffic Injuries</td>
|
|
283
|
-
<td>{moh705bData.road_traffic_injuries}</td>
|
|
315
|
+
<td onClick={() => navigateToRegister('road_traffic_injuries')}>{moh705bData.road_traffic_injuries}</td>
|
|
284
316
|
</tr>
|
|
285
317
|
<tr>
|
|
286
318
|
<td>40</td>
|
|
287
319
|
<td>Deaths due to Road Traffic Injuries</td>
|
|
288
|
-
<td
|
|
320
|
+
<td onClick={() => navigateToRegister('deaths_due_to_road_traffic_injuries')}>
|
|
321
|
+
{moh705bData.deaths_due_to_road_traffic_injuries}
|
|
322
|
+
</td>
|
|
289
323
|
</tr>
|
|
290
324
|
<tr>
|
|
291
325
|
<td>41</td>
|
|
292
326
|
<td>Other Injuries</td>
|
|
293
|
-
<td>{moh705bData.other_injuries}</td>
|
|
327
|
+
<td onClick={() => navigateToRegister('other_injuries')}>{moh705bData.other_injuries}</td>
|
|
294
328
|
</tr>
|
|
295
329
|
<tr>
|
|
296
330
|
<td>42</td>
|
|
297
331
|
<td>Sexual Violence</td>
|
|
298
|
-
<td>{moh705bData.sexual_violence}</td>
|
|
332
|
+
<td onClick={() => navigateToRegister('sexual_violence')}>{moh705bData.sexual_violence}</td>
|
|
299
333
|
</tr>
|
|
300
334
|
<tr>
|
|
301
335
|
<td>43</td>
|
|
302
336
|
<td>Violence related Injuries</td>
|
|
303
|
-
<td
|
|
337
|
+
<td onClick={() => navigateToRegister('violence_related_injuries')}>
|
|
338
|
+
{moh705bData.violence_related_injuries}
|
|
339
|
+
</td>
|
|
304
340
|
</tr>
|
|
305
341
|
<tr>
|
|
306
342
|
<td>44</td>
|
|
307
343
|
<td>Burns</td>
|
|
308
|
-
<td>{moh705bData.burns}</td>
|
|
344
|
+
<td onClick={() => navigateToRegister('burns')}>{moh705bData.burns}</td>
|
|
309
345
|
</tr>
|
|
310
346
|
<tr>
|
|
311
347
|
<td>45</td>
|
|
312
348
|
<td>Snake Bites</td>
|
|
313
|
-
<td>{moh705bData.snake_bites}</td>
|
|
349
|
+
<td onClick={() => navigateToRegister('snake_bites')}>{moh705bData.snake_bites}</td>
|
|
314
350
|
</tr>
|
|
315
351
|
<tr>
|
|
316
352
|
<td>46</td>
|
|
317
353
|
<td>Dog Bites</td>
|
|
318
|
-
<td>{moh705bData.dog_bites}</td>
|
|
354
|
+
<td onClick={() => navigateToRegister('dog_bites')}>{moh705bData.dog_bites}</td>
|
|
319
355
|
</tr>
|
|
320
356
|
<tr>
|
|
321
357
|
<td>47</td>
|
|
322
358
|
<td>Other Bites</td>
|
|
323
|
-
<td>{moh705bData.other_bites}</td>
|
|
359
|
+
<td onClick={() => navigateToRegister('other_bites')}>{moh705bData.other_bites}</td>
|
|
324
360
|
</tr>
|
|
325
361
|
<tr>
|
|
326
362
|
<td>48</td>
|
|
327
363
|
<td>Diabetes</td>
|
|
328
|
-
<td>{moh705bData.diabetes}</td>
|
|
364
|
+
<td onClick={() => navigateToRegister('diabetes')}>{moh705bData.diabetes}</td>
|
|
329
365
|
</tr>
|
|
330
366
|
<tr>
|
|
331
367
|
<td>49</td>
|
|
332
368
|
<td>Epilepsy</td>
|
|
333
|
-
<td>{moh705bData.epilepsy}</td>
|
|
369
|
+
<td onClick={() => navigateToRegister('epilepsy')}>{moh705bData.epilepsy}</td>
|
|
334
370
|
</tr>
|
|
335
371
|
<tr>
|
|
336
372
|
<td>50</td>
|
|
337
373
|
<td>Brucellosis</td>
|
|
338
|
-
<td>{moh705bData.brucellosis}</td>
|
|
374
|
+
<td onClick={() => navigateToRegister('brucellosis')}>{moh705bData.brucellosis}</td>
|
|
339
375
|
</tr>
|
|
340
376
|
<tr>
|
|
341
377
|
<td>51</td>
|
|
342
378
|
<td>Cardiovascular conditions</td>
|
|
343
|
-
<td
|
|
379
|
+
<td onClick={() => navigateToRegister('cardiovascular_conditions')}>
|
|
380
|
+
{moh705bData.cardiovascular_conditions}
|
|
381
|
+
</td>
|
|
344
382
|
</tr>
|
|
345
383
|
<tr>
|
|
346
384
|
<td>52</td>
|
|
347
385
|
<td>Central Nervous System Conditions</td>
|
|
348
|
-
<td
|
|
386
|
+
<td onClick={() => navigateToRegister('central_nervous_system_conditions')}>
|
|
387
|
+
{moh705bData.central_nervous_system_conditions}
|
|
388
|
+
</td>
|
|
349
389
|
</tr>
|
|
350
390
|
<tr>
|
|
351
391
|
<td>53</td>
|
|
352
392
|
<td>Overweight (BMI > 25)</td>
|
|
353
|
-
<td>{moh705bData.overweight}</td>
|
|
393
|
+
<td onClick={() => navigateToRegister('overweight')}>{moh705bData.overweight}</td>
|
|
354
394
|
</tr>
|
|
355
395
|
<tr>
|
|
356
396
|
<td>54</td>
|
|
357
397
|
<td>Muscular skeletal conditions</td>
|
|
358
|
-
<td
|
|
398
|
+
<td onClick={() => navigateToRegister('mascular_skeletal_conditions')}>
|
|
399
|
+
{moh705bData.mascular_skeletal_conditions}
|
|
400
|
+
</td>
|
|
359
401
|
</tr>
|
|
360
402
|
<tr>
|
|
361
403
|
<td>55</td>
|
|
362
404
|
<td>Fistula (Birth related)</td>
|
|
363
|
-
<td>{moh705bData.fistula}</td>
|
|
405
|
+
<td onClick={() => navigateToRegister('fistula')}>{moh705bData.fistula}</td>
|
|
364
406
|
</tr>
|
|
365
407
|
<tr>
|
|
366
408
|
<td>56</td>
|
|
367
409
|
<td>Suspected Neoplams/Cancers</td>
|
|
368
|
-
<td
|
|
410
|
+
<td onClick={() => navigateToRegister('suspected_neoplams_cancers')}>
|
|
411
|
+
{moh705bData.suspected_neoplams_cancers}
|
|
412
|
+
</td>
|
|
369
413
|
</tr>
|
|
370
414
|
<tr>
|
|
371
415
|
<td>57</td>
|
|
372
416
|
<td>Physical Disability</td>
|
|
373
|
-
<td>{moh705bData.physical_disability}</td>
|
|
417
|
+
<td onClick={() => navigateToRegister('physical_disability')}>{moh705bData.physical_disability}</td>
|
|
374
418
|
</tr>
|
|
375
419
|
<tr>
|
|
376
420
|
<td>58</td>
|
|
377
421
|
<td>Trypanosomiasis</td>
|
|
378
|
-
<td>{moh705bData.trypanosomiasis}</td>
|
|
422
|
+
<td onClick={() => navigateToRegister('trypanosomiasis')}>{moh705bData.trypanosomiasis}</td>
|
|
379
423
|
</tr>
|
|
380
424
|
<tr>
|
|
381
425
|
<td>59</td>
|
|
382
426
|
<td>Rift valley fever</td>
|
|
383
|
-
<td>{moh705bData.rift_valley_fever}</td>
|
|
427
|
+
<td onClick={() => navigateToRegister('rift_valley_fever')}>{moh705bData.rift_valley_fever}</td>
|
|
384
428
|
</tr>
|
|
385
429
|
<tr>
|
|
386
430
|
<td>60</td>
|
|
387
431
|
<td>Yellow Fever</td>
|
|
388
|
-
<td>{moh705bData.yellow_fever}</td>
|
|
432
|
+
<td onClick={() => navigateToRegister('yellow_fever')}>{moh705bData.yellow_fever}</td>
|
|
389
433
|
</tr>
|
|
390
434
|
<tr>
|
|
391
435
|
<td>61</td>
|
|
392
436
|
<td>Viral Haemorrhagic Fever</td>
|
|
393
|
-
<td
|
|
437
|
+
<td onClick={() => navigateToRegister('viral_haemorrhagic_fever')}>
|
|
438
|
+
{moh705bData.viral_haemorrhagic_fever}
|
|
439
|
+
</td>
|
|
394
440
|
</tr>
|
|
395
441
|
<tr>
|
|
396
442
|
<td>62</td>
|
|
397
443
|
<td>Chikungunya</td>
|
|
398
|
-
<td>{moh705bData.chikungunya}</td>
|
|
444
|
+
<td onClick={() => navigateToRegister('chikungunya')}>{moh705bData.chikungunya}</td>
|
|
399
445
|
</tr>
|
|
400
446
|
<tr>
|
|
401
447
|
<td>63</td>
|
|
402
448
|
<td>Dengue fever</td>
|
|
403
|
-
<td>{moh705bData.dengue_fever}</td>
|
|
449
|
+
<td onClick={() => navigateToRegister('dengue_fever')}>{moh705bData.dengue_fever}</td>
|
|
404
450
|
</tr>
|
|
405
451
|
<tr>
|
|
406
452
|
<td>64</td>
|
|
407
453
|
<td>Leishmaniasis(Kala-azar)</td>
|
|
408
|
-
<td>{moh705bData.leishmaniasis}</td>
|
|
454
|
+
<td onClick={() => navigateToRegister('leishmaniasis')}>{moh705bData.leishmaniasis}</td>
|
|
409
455
|
</tr>
|
|
410
456
|
<tr>
|
|
411
457
|
<td>65</td>
|
|
412
458
|
<td>Cuteneous leishmaniasis</td>
|
|
413
|
-
<td
|
|
459
|
+
<td onClick={() => navigateToRegister('cutaneous_leishmaniasis')}>
|
|
460
|
+
{moh705bData.cutaneous_leishmaniasis}
|
|
461
|
+
</td>
|
|
414
462
|
</tr>
|
|
415
463
|
<tr>
|
|
416
464
|
<td>66</td>
|
|
417
465
|
<td>Suspected Anthrax</td>
|
|
418
|
-
<td>{moh705bData.suspected_anthrax}</td>
|
|
466
|
+
<td onClick={() => navigateToRegister('suspected_anthrax')}>{moh705bData.suspected_anthrax}</td>
|
|
419
467
|
</tr>
|
|
420
468
|
<tr>
|
|
421
469
|
<td>67</td>
|
|
422
470
|
<td>ALL OTHER DISEASES</td>
|
|
423
|
-
<td>{moh705bData.all_other_diseases}</td>
|
|
471
|
+
<td onClick={() => navigateToRegister('all_other_diseases')}>{moh705bData.all_other_diseases}</td>
|
|
424
472
|
</tr>
|
|
425
473
|
<tr>
|
|
426
474
|
<td>68</td>
|
|
427
475
|
<td>Tested for Malaria</td>
|
|
428
|
-
<td>{moh705bData.tested_for_malaria}</td>
|
|
476
|
+
<td onClick={() => navigateToRegister('tested_for_malaria')}>{moh705bData.tested_for_malaria}</td>
|
|
429
477
|
</tr>
|
|
430
478
|
<tr>
|
|
431
479
|
<td>69</td>
|
|
432
480
|
<td>NO. OF FIRST ATTENDANCES</td>
|
|
433
|
-
<td
|
|
481
|
+
<td onClick={() => navigateToRegister('no_of_first_attendances')}>
|
|
482
|
+
{moh705bData.no_of_first_attendances}
|
|
483
|
+
</td>
|
|
434
484
|
</tr>
|
|
435
485
|
<tr>
|
|
436
486
|
<td>70</td>
|
|
437
487
|
<td>RE-ATTENDANCES</td>
|
|
438
|
-
<td>{moh705bData.re_attendances}</td>
|
|
488
|
+
<td onClick={() => navigateToRegister('re_attendances')}>{moh705bData.re_attendances}</td>
|
|
439
489
|
</tr>
|
|
440
490
|
<tr>
|
|
441
491
|
<td>71</td>
|
|
442
492
|
<td>Referrals from other health facilities</td>
|
|
443
|
-
<td
|
|
493
|
+
<td onClick={() => navigateToRegister('referrals_from_other_health_facility')}>
|
|
494
|
+
{moh705bData.referrals_from_other_health_facility}
|
|
495
|
+
</td>
|
|
444
496
|
</tr>
|
|
445
497
|
<tr>
|
|
446
498
|
<td>72</td>
|
|
447
499
|
<td>Referrals to other health facilities</td>
|
|
448
|
-
<td
|
|
500
|
+
<td onClick={() => navigateToRegister('referrals_to_other_health_facility')}>
|
|
501
|
+
{moh705bData.referrals_to_other_health_facility}
|
|
502
|
+
</td>
|
|
449
503
|
</tr>
|
|
450
504
|
<tr>
|
|
451
505
|
<td>73</td>
|
|
452
506
|
<td>Referrals from community unit</td>
|
|
453
|
-
<td
|
|
507
|
+
<td onClick={() => navigateToRegister('referrals_from_community_unit')}>
|
|
508
|
+
{moh705bData.referrals_from_community_unit}
|
|
509
|
+
</td>
|
|
454
510
|
</tr>
|
|
455
511
|
<tr>
|
|
456
512
|
<td>74</td>
|
|
457
513
|
<td>Referrals to community unit</td>
|
|
458
|
-
<td
|
|
514
|
+
<td onClick={() => navigateToRegister('referrals_to_community_unit')}>
|
|
515
|
+
{moh705bData.referrals_to_community_unit}
|
|
516
|
+
</td>
|
|
459
517
|
</tr>
|
|
460
518
|
</tbody>
|
|
461
519
|
</table>
|
|
@@ -31,11 +31,14 @@ 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
|
+
.buttonContainer {
|
|
43
|
+
margin: 1rem;
|
|
41
44
|
}
|