@ampath/esm-reports-app 1.0.0-next.55 → 1.0.0-next.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/295.js +1 -1
  2. package/dist/410.js +1 -1
  3. package/dist/580.js +1 -0
  4. package/dist/580.js.map +1 -0
  5. package/dist/907.js +2 -1
  6. package/dist/907.js.map +1 -1
  7. package/dist/998.css +1 -0
  8. package/dist/998.css.map +1 -0
  9. package/dist/998.js +1 -0
  10. package/dist/998.js.map +1 -0
  11. package/dist/ampath-esm-reports-app.js +1 -1
  12. package/dist/routes.json +1 -1
  13. package/package.json +1 -1
  14. package/src/common/daily-summary-table.tsx +55 -0
  15. package/src/common/linelist-table/index.ts +3 -0
  16. package/src/common/linelist-table/linelist-columns.ts +48 -0
  17. package/src/common/linelist-table/linelist-table.component.tsx +442 -0
  18. package/src/common/linelist-table/linelist-table.scss +306 -0
  19. package/src/common/linelist-table/linelist-table.test.tsx +120 -0
  20. package/src/common/linelist-table/use-all-rows.ts +93 -0
  21. package/src/common/linelist-table/use-column-layout.ts +123 -0
  22. package/src/common/report-filters/report-filters.component.tsx +11 -5
  23. package/src/common/report-filters/report-filters.scss +63 -7
  24. package/src/common/report-page/use-page-scale.ts +27 -17
  25. package/src/common/report-placeholder/index.ts +1 -0
  26. package/src/common/report-placeholder/report-placeholder.component.tsx +57 -32
  27. package/src/common/report-placeholder/report-placeholder.scss +2 -0
  28. package/src/common/report-placeholder/use-generated-location.ts +62 -0
  29. package/src/common/report-register/index.ts +1 -0
  30. package/src/common/report-register/register-layout.component.tsx +26 -4
  31. package/src/common/report-register/register-layout.scss +10 -0
  32. package/src/common/report-register/use-location-name.ts +54 -0
  33. package/src/reports/moh-505/moh-505.component.tsx +9 -3
  34. package/src/reports/moh-705B/moh-204b-register.component.tsx +11 -2
  35. package/src/reports/moh-705B/moh-705b.component.tsx +533 -418
  36. package/src/reports/moh-705B/moh-705b.scss +44 -2
  37. package/src/reports/moh-705a/moh-705a.component.tsx +533 -421
  38. package/src/reports/moh-705a/moh-705a.scss +44 -2
  39. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +12 -3
  40. package/src/reports/moh-706/moh-706.component.tsx +9 -3
  41. package/src/reports/moh-710/moh-710.component.tsx +9 -3
  42. package/src/reports/moh-711/moh-711.component.tsx +9 -3
  43. package/src/reports/moh-717/moh-717.component.tsx +12 -3
  44. package/src/reports/moh-731/linelist/moh-731-indicators.ts +1040 -0
  45. package/src/reports/moh-731/linelist/moh-731-linelist-sections.ts +423 -0
  46. package/src/reports/moh-731/linelist/moh-731-linelist.component.tsx +102 -0
  47. package/src/reports/moh-731/linelist/use-open-moh-731-linelist.ts +50 -0
  48. package/src/reports/moh-731/moh-731.component.tsx +138 -85
  49. package/src/reports/moh-731/moh-731.scss +51 -4
  50. package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +74 -77
  51. package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +84 -70
  52. package/src/reports/moh-731/sections/pmtct.component.tsx +43 -43
  53. package/src/reports/moh-731/summary/moh-731-summary.component.tsx +313 -0
  54. package/src/reports/moh-731/summary/moh-731-summary.config.ts +520 -0
  55. package/src/reports/moh-731/summary/moh-731-summary.scss +242 -0
  56. package/src/reports/moh-740/moh-740.component.scss +3 -1
  57. package/src/reports/moh-740/moh-740.component.tsx +14 -4
  58. package/src/reports/moh-745/moh-745.component.tsx +7 -3
  59. package/src/root.component.tsx +2 -0
  60. package/webpack.config.js +22 -1
  61. package/dist/427.js +0 -2
  62. package/dist/427.js.map +0 -1
  63. package/dist/441.js +0 -1
  64. package/dist/441.js.map +0 -1
  65. package/dist/907.css +0 -1
  66. package/dist/907.css.map +0 -1
  67. /package/dist/{427.js.LICENSE.txt → 907.js.LICENSE.txt} +0 -0
@@ -6,14 +6,95 @@ import { getMoh705b } from '../../resources/moh-705.resource';
6
6
  import classNames from 'classnames';
7
7
  import { ReportFiltersComponent, type ReportPeriod, useRestorePeriod } from '../../common/report-filters';
8
8
  import { showReportError } from '../../common/report-error';
9
- import { hasReportData, ReportPlaceholder } from '../../common/report-placeholder';
9
+ import { hasReportData, ReportPlaceholder, useGeneratedLocation } from '../../common/report-placeholder';
10
10
  import { useNavigate } from 'react-router-dom';
11
11
  import { ReportSkeleton } from '../../common/report-skeleton';
12
12
  import { ReportPage } from '../../common/report-page';
13
+ import { renderDailyReportRows, reportDays } from '../../common/daily-summary-table';
14
+
15
+ const indicators = [
16
+ 'diarrhoea',
17
+ 'tuberculosis',
18
+ 'dysentry',
19
+ 'cholera',
20
+ 'meningococcal_meningitis',
21
+ 'other_meningitis',
22
+ 'tetanus',
23
+ 'poliomyelitis',
24
+ 'chicken_pox',
25
+ 'measles',
26
+ 'hepatitis',
27
+ 'mumps',
28
+ 'suspected_malaria',
29
+ 'confirmed_malaria',
30
+ 'malaria_in_pregnancy',
31
+ 'amoebiasis',
32
+ 'typhoid_fever',
33
+ 'sexually_transmitted_infections',
34
+ 'urinary_tract_infections',
35
+ 'bilharzia',
36
+ 'intestinal_worms',
37
+ 'malnutrition',
38
+ 'anaemia',
39
+ 'eye_infections',
40
+ 'ear_infections',
41
+ 'upper_respiratory_tract_infections',
42
+ 'asthma',
43
+ 'pneumonia',
44
+ 'other_lower_respiratory_tract_infections',
45
+ 'abortion',
46
+ 'puerperium_childbirth',
47
+ 'hypertention',
48
+ 'mental_disorders',
49
+ 'dental_disorders',
50
+ 'jiggers_infestation',
51
+ 'diseases_of_the_skin',
52
+ 'athritis',
53
+ 'poisoning',
54
+ 'road_traffic_injuries',
55
+ 'deaths_due_to_road_traffic_injuries',
56
+ 'other_injuries',
57
+ 'sexual_violence',
58
+ 'violence_related_injuries',
59
+ 'burns',
60
+ 'snake_bites',
61
+ 'dog_bites',
62
+ 'other_bites',
63
+ 'diabetes',
64
+ 'epilepsy',
65
+ 'brucellosis',
66
+ 'cardiovascular_conditions',
67
+ 'central_nervous_system_conditions',
68
+ 'overweight',
69
+ 'mascular_skeletal_conditions',
70
+ 'fistula',
71
+ 'suspected_neoplams_cancers',
72
+ 'physical_disability',
73
+ 'trypanosomiasis',
74
+ 'rift_valley_fever',
75
+ 'yellow_fever',
76
+ 'viral_haemorrhagic_fever',
77
+ 'chikungunya',
78
+ 'dengue_fever',
79
+ 'leishmaniasis',
80
+ 'cutaneous_leishmaniasis',
81
+ 'suspected_anthrax',
82
+ 'all_other_diseases',
83
+ 'tested_for_malaria',
84
+ 'no_of_first_attendances',
85
+ 're_attendances',
86
+ 'referrals_from_other_health_facility',
87
+ 'referrals_to_other_health_facility',
88
+ 'referrals_from_community_unit',
89
+ 'referrals_to_community_unit',
90
+ ];
13
91
 
14
92
  const Moh705BComponent: React.FC = () => {
15
93
  const [moh705bData, setMoh705bData] = useState<any>([]);
16
- const isReportGenerated = hasReportData(moh705bData);
94
+ /* Only a report for the current location counts: after switching location the
95
+ old figures would otherwise be shown, and labelled, as the new location's. */
96
+ const { isForCurrentLocation, hasLocationChanged, markGenerated } = useGeneratedLocation();
97
+ const isReportGenerated = hasReportData(moh705bData) && isForCurrentLocation;
17
98
  const [isLoading, setIsLoading] = useState<boolean>(false);
18
99
  const [startDate, setStartDate] = useState<string>('');
19
100
  const [endDate, setEndDate] = useState<string>('');
@@ -41,8 +122,7 @@ const Moh705BComponent: React.FC = () => {
41
122
  };
42
123
  try {
43
124
  const data = await getMoh705b(params);
44
- const flatData = Object.assign({}, ...data.result);
45
- setMoh705bData(flatData);
125
+ setMoh705bData(data.result ?? []);
46
126
  setIsLoading(false);
47
127
  } catch (error) {
48
128
  setIsLoading(false);
@@ -55,9 +135,16 @@ const Moh705BComponent: React.FC = () => {
55
135
  placeholder. */
56
136
  useRestorePeriod(fetchMoh705bReportData);
57
137
 
58
- const navigateToRegister = (indicator: string) => {
138
+ const navigateToRegister = (indicator: string, day?: number) => {
139
+ const selectedDate = day ? dayjs(startDate).startOf('month').date(day) : undefined;
140
+ if (selectedDate && day && day > dayjs(startDate).daysInMonth()) {
141
+ return;
142
+ }
143
+ const registerStartDate = selectedDate?.format('YYYY-MM-DD') ?? startDate;
144
+ const registerEndDate = selectedDate?.format('YYYY-MM-DD') ?? endDate;
145
+
59
146
  navigate(
60
- `/moh-204b?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&from=moh-705b`,
147
+ `/moh-204b?startDate=${registerStartDate}&endDate=${registerEndDate}&locationUuids=${locationUuids}&indicator=${indicator}&from=moh-705b`,
61
148
  );
62
149
  };
63
150
 
@@ -72,7 +159,9 @@ const Moh705BComponent: React.FC = () => {
72
159
  generatedPeriod={{ startDate, endDate }}
73
160
  />
74
161
  {isLoading && <ReportSkeleton />}
75
- {!isLoading && !isReportGenerated && <ReportPlaceholder reportName="MOH-705B" />}
162
+ {!isLoading && !isReportGenerated && (
163
+ <ReportPlaceholder reportName="MOH-705B" isLocationChanged={hasReportData(moh705bData) && hasLocationChanged} />
164
+ )}
76
165
  {!isLoading && isReportGenerated && (
77
166
  <ReportPage>
78
167
  <div className={styles.mainTitleBox}>
@@ -102,423 +191,449 @@ const Moh705BComponent: React.FC = () => {
102
191
 
103
192
  <div className={styles.container}>
104
193
  <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
194
+ <colgroup>
195
+ <col className={styles.numberColumn} />
196
+ <col className={styles.diseaseColumn} />
197
+ {reportDays.map((day) => (
198
+ <col className={styles.dayColumn} key={day} />
199
+ ))}
200
+ <col className={styles.totalColumn} />
201
+ </colgroup>
105
202
  <thead>
106
203
  <tr>
107
204
  <th colSpan={2}>DISEASES (New Cases Only)</th>
108
- <th>Number of Cases</th>
205
+ {reportDays.map((day) => (
206
+ <th key={day}>{day}</th>
207
+ ))}
208
+ <th>Totals</th>
109
209
  </tr>
110
210
  </thead>
111
211
  <tbody>
112
- <tr>
113
- <td>1</td>
114
- <td>Diarrhoea</td>
115
- <td onClick={() => navigateToRegister('diarrhoea')}>{moh705bData.diarrhoea}</td>
116
- </tr>
117
- <tr>
118
- <td>2</td>
119
- <td>Tuberculosis</td>
120
- <td onClick={() => navigateToRegister('tuberculosis')}>{moh705bData.tuberculosis}</td>
121
- </tr>
122
- <tr>
123
- <td>3</td>
124
- <td>Dysentry (Bloody diarrhoea)</td>
125
- <td onClick={() => navigateToRegister('dysentry')}>{moh705bData.dysentry}</td>
126
- </tr>
127
- <tr>
128
- <td>4</td>
129
- <td>Cholera</td>
130
- <td onClick={() => navigateToRegister('cholera')}>{moh705bData.cholera}</td>
131
- </tr>
132
- <tr>
133
- <td>5</td>
134
- <td>Meningococcal Meningitis</td>
135
- <td onClick={() => navigateToRegister('meningococcal_meningitis')}>
136
- {moh705bData.meningococcal_meningitis}
137
- </td>
138
- </tr>
139
- <tr>
140
- <td>6</td>
141
- <td>Other Meningitis</td>
142
- <td onClick={() => navigateToRegister('other_meningitis')}>{moh705bData.other_meningitis}</td>
143
- </tr>
144
- <tr>
145
- <td>7</td>
146
- <td>Tetanus</td>
147
- <td onClick={() => navigateToRegister('tetanus')}>{moh705bData.tetanus}</td>
148
- </tr>
149
- <tr>
150
- <td>8</td>
151
- <td>Poliomyelitis (AFP)</td>
152
- <td onClick={() => navigateToRegister('poliomyelitis')}>{moh705bData.poliomyelitis}</td>
153
- </tr>
154
- <tr>
155
- <td>9</td>
156
- <td>Chicken Pox</td>
157
- <td onClick={() => navigateToRegister('chicken_pox')}>{moh705bData.chicken_pox}</td>
158
- </tr>
159
- <tr>
160
- <td>10</td>
161
- <td>Measles</td>
162
- <td onClick={() => navigateToRegister('measles')}>{moh705bData.measles}</td>
163
- </tr>
164
- <tr>
165
- <td>11</td>
166
- <td>Hepatitis</td>
167
- <td onClick={() => navigateToRegister('hepatitis')}>{moh705bData.hepatitis}</td>
168
- </tr>
169
- <tr>
170
- <td>12</td>
171
- <td>Mumps</td>
172
- <td onClick={() => navigateToRegister('mumps')}>{moh705bData.mumps}</td>
173
- </tr>
174
- <tr>
175
- <td>13</td>
176
- <td>Suspected Malaria</td>
177
- <td onClick={() => navigateToRegister('suspected_malaria')}>{moh705bData.suspected_malaria}</td>
178
- </tr>
179
- <tr>
180
- <td>14</td>
181
- <td>Confirmed Malaria</td>
182
- <td onClick={() => navigateToRegister('confirmed_malaria')}>{moh705bData.confirmed_malaria}</td>
183
- </tr>
184
- <tr>
185
- <td>15</td>
186
- <td>Malaria in Pregnancy</td>
187
- <td onClick={() => navigateToRegister('malaria_in_pregnancy')}>{moh705bData.malaria_in_pregnancy}</td>
188
- </tr>
189
- <tr>
190
- <td>16</td>
191
- <td>Amoebiasis</td>
192
- <td onClick={() => navigateToRegister('amoebiasis')}>{moh705bData.amoebiasis}</td>
193
- </tr>
194
- <tr>
195
- <td>17</td>
196
- <td>Typhoid fever</td>
197
- <td onClick={() => navigateToRegister('typhoid_fever')}>{moh705bData.typhoid_fever}</td>
198
- </tr>
199
- <tr>
200
- <td>18</td>
201
- <td>Sexually Transmitted Infections</td>
202
- <td onClick={() => navigateToRegister('sexually_transmitted_infections')}>
203
- {moh705bData.sexually_transmitted_infections}
204
- </td>
205
- </tr>
206
- <tr>
207
- <td>19</td>
208
- <td>Urinary Tract Infections</td>
209
- <td onClick={() => navigateToRegister('urinary_tract_infections')}>
210
- {moh705bData.urinary_tract_infections}
211
- </td>
212
- </tr>
213
- <tr>
214
- <td>20</td>
215
- <td>Bilharzia (Schistosomiasis)</td>
216
- <td onClick={() => navigateToRegister('bilharzia')}>{moh705bData.bilharzia}</td>
217
- </tr>
218
- <tr>
219
- <td>21</td>
220
- <td>Intestinal worms</td>
221
- <td onClick={() => navigateToRegister('intestinal_worms')}>{moh705bData.intestinal_worms}</td>
222
- </tr>
223
- <tr>
224
- <td>22</td>
225
- <td>Malnutrition</td>
226
- <td onClick={() => navigateToRegister('malnutrition')}>{moh705bData.malnutrition}</td>
227
- </tr>
228
- <tr>
229
- <td>23</td>
230
- <td>Anaemia</td>
231
- <td onClick={() => navigateToRegister('anaemia')}>{moh705bData.anaemia}</td>
232
- </tr>
233
- <tr>
234
- <td>24</td>
235
- <td>Eye Infections/Conditions</td>
236
- <td onClick={() => navigateToRegister('eye_infections')}>{moh705bData.eye_infections}</td>
237
- </tr>
238
- <tr>
239
- <td>25</td>
240
- <td>Ear Infections/Conditions</td>
241
- <td onClick={() => navigateToRegister('ear_infections')}>{moh705bData.ear_infections}</td>
242
- </tr>
243
- <tr>
244
- <td>26</td>
245
- <td>Upper Respiratory Tract Infections </td>
246
- <td onClick={() => navigateToRegister('upper_respiratory_tract_infections')}>
247
- {moh705bData.upper_respiratory_tract_infections}
248
- </td>
249
- </tr>
250
- <tr>
251
- <td>27</td>
252
- <td>Asthma</td>
253
- <td onClick={() => navigateToRegister('asthma')}>{moh705bData.asthma}</td>
254
- </tr>
255
- <tr>
256
- <td>28</td>
257
- <td>Pneumonia</td>
258
- <td onClick={() => navigateToRegister('pneumonia')}>{moh705bData.pneumonia}</td>
259
- </tr>
260
- <tr>
261
- <td>29</td>
262
- <td>Other Lower Respiratory tract infections</td>
263
- <td onClick={() => navigateToRegister('other_lower_respiratory_tract_infections')}>
264
- {moh705bData.other_lower_respiratory_tract_infections}
265
- </td>
266
- </tr>
267
- <tr>
268
- <td>30</td>
269
- <td>Abortion</td>
270
- <td onClick={() => navigateToRegister('abortion')}>{moh705bData.abortion}</td>
271
- </tr>
272
- <tr>
273
- <td>31</td>
274
- <td>Dis. of Puerperium & Childbirth</td>
275
- <td onClick={() => navigateToRegister('puerperium_childbirth')}>
276
- {moh705bData.puerperium_childbirth}
277
- </td>
278
- </tr>
279
- <tr>
280
- <td>32</td>
281
- <td>Hypertension</td>
282
- <td onClick={() => navigateToRegister('hypertention')}>{moh705bData.hypertention}</td>
283
- </tr>
284
- <tr>
285
- <td>33</td>
286
- <td>Mental Disorders</td>
287
- <td onClick={() => navigateToRegister('mental_disorders')}>{moh705bData.mental_disorders}</td>
288
- </tr>
289
- <tr>
290
- <td>34</td>
291
- <td>Dental Disorders</td>
292
- <td onClick={() => navigateToRegister('dental_disorders')}>{moh705bData.dental_disorders}</td>
293
- </tr>
294
- <tr>
295
- <td>35</td>
296
- <td>Jiggers Infestation</td>
297
- <td onClick={() => navigateToRegister('jiggers_infestation')}>{moh705bData.jiggers_infestation}</td>
298
- </tr>
299
- <tr>
300
- <td>36</td>
301
- <td>Disease of the skin</td>
302
- <td onClick={() => navigateToRegister('diseases_of_the_skin')}>{moh705bData.diseases_of_the_skin}</td>
303
- </tr>
304
- <tr>
305
- <td>37</td>
306
- <td>Athritis, Joint pains etc.</td>
307
- <td onClick={() => navigateToRegister('athritis')}>{moh705bData.athritis}</td>
308
- </tr>
309
- <tr>
310
- <td>38</td>
311
- <td>Poisoning</td>
312
- <td onClick={() => navigateToRegister('poisoning')}>{moh705bData.poisoning}</td>
313
- </tr>
314
- <tr>
315
- <td>39</td>
316
- <td>Road Traffic Injuries</td>
317
- <td onClick={() => navigateToRegister('road_traffic_injuries')}>
318
- {moh705bData.road_traffic_injuries}
319
- </td>
320
- </tr>
321
- <tr>
322
- <td>40</td>
323
- <td>Deaths due to Road Traffic Injuries</td>
324
- <td onClick={() => navigateToRegister('deaths_due_to_road_traffic_injuries')}>
325
- {moh705bData.deaths_due_to_road_traffic_injuries}
326
- </td>
327
- </tr>
328
- <tr>
329
- <td>41</td>
330
- <td>Other Injuries</td>
331
- <td onClick={() => navigateToRegister('other_injuries')}>{moh705bData.other_injuries}</td>
332
- </tr>
333
- <tr>
334
- <td>42</td>
335
- <td>Sexual Violence</td>
336
- <td onClick={() => navigateToRegister('sexual_violence')}>{moh705bData.sexual_violence}</td>
337
- </tr>
338
- <tr>
339
- <td>43</td>
340
- <td>Violence related Injuries</td>
341
- <td onClick={() => navigateToRegister('violence_related_injuries')}>
342
- {moh705bData.violence_related_injuries}
343
- </td>
344
- </tr>
345
- <tr>
346
- <td>44</td>
347
- <td>Burns</td>
348
- <td onClick={() => navigateToRegister('burns')}>{moh705bData.burns}</td>
349
- </tr>
350
- <tr>
351
- <td>45</td>
352
- <td>Snake Bites</td>
353
- <td onClick={() => navigateToRegister('snake_bites')}>{moh705bData.snake_bites}</td>
354
- </tr>
355
- <tr>
356
- <td>46</td>
357
- <td>Dog Bites</td>
358
- <td onClick={() => navigateToRegister('dog_bites')}>{moh705bData.dog_bites}</td>
359
- </tr>
360
- <tr>
361
- <td>47</td>
362
- <td>Other Bites</td>
363
- <td onClick={() => navigateToRegister('other_bites')}>{moh705bData.other_bites}</td>
364
- </tr>
365
- <tr>
366
- <td>48</td>
367
- <td>Diabetes</td>
368
- <td onClick={() => navigateToRegister('diabetes')}>{moh705bData.diabetes}</td>
369
- </tr>
370
- <tr>
371
- <td>49</td>
372
- <td>Epilepsy</td>
373
- <td onClick={() => navigateToRegister('epilepsy')}>{moh705bData.epilepsy}</td>
374
- </tr>
375
- <tr>
376
- <td>50</td>
377
- <td>Brucellosis</td>
378
- <td onClick={() => navigateToRegister('brucellosis')}>{moh705bData.brucellosis}</td>
379
- </tr>
380
- <tr>
381
- <td>51</td>
382
- <td>Cardiovascular conditions</td>
383
- <td onClick={() => navigateToRegister('cardiovascular_conditions')}>
384
- {moh705bData.cardiovascular_conditions}
385
- </td>
386
- </tr>
387
- <tr>
388
- <td>52</td>
389
- <td>Central Nervous System Conditions</td>
390
- <td onClick={() => navigateToRegister('central_nervous_system_conditions')}>
391
- {moh705bData.central_nervous_system_conditions}
392
- </td>
393
- </tr>
394
- <tr>
395
- <td>53</td>
396
- <td>Overweight (BMI &gt; 25)</td>
397
- <td onClick={() => navigateToRegister('overweight')}>{moh705bData.overweight}</td>
398
- </tr>
399
- <tr>
400
- <td>54</td>
401
- <td>Muscular skeletal conditions</td>
402
- <td onClick={() => navigateToRegister('mascular_skeletal_conditions')}>
403
- {moh705bData.mascular_skeletal_conditions}
404
- </td>
405
- </tr>
406
- <tr>
407
- <td>55</td>
408
- <td>Fistula (Birth related)</td>
409
- <td onClick={() => navigateToRegister('fistula')}>{moh705bData.fistula}</td>
410
- </tr>
411
- <tr>
412
- <td>56</td>
413
- <td>Suspected Neoplams/Cancers</td>
414
- <td onClick={() => navigateToRegister('suspected_neoplams_cancers')}>
415
- {moh705bData.suspected_neoplams_cancers}
416
- </td>
417
- </tr>
418
- <tr>
419
- <td>57</td>
420
- <td>Physical Disability</td>
421
- <td onClick={() => navigateToRegister('physical_disability')}>{moh705bData.physical_disability}</td>
422
- </tr>
423
- <tr>
424
- <td>58</td>
425
- <td>Trypanosomiasis</td>
426
- <td onClick={() => navigateToRegister('trypanosomiasis')}>{moh705bData.trypanosomiasis}</td>
427
- </tr>
428
- <tr>
429
- <td>59</td>
430
- <td>Rift valley fever</td>
431
- <td onClick={() => navigateToRegister('rift_valley_fever')}>{moh705bData.rift_valley_fever}</td>
432
- </tr>
433
- <tr>
434
- <td>60</td>
435
- <td>Yellow Fever</td>
436
- <td onClick={() => navigateToRegister('yellow_fever')}>{moh705bData.yellow_fever}</td>
437
- </tr>
438
- <tr>
439
- <td>61</td>
440
- <td>Viral Haemorrhagic Fever</td>
441
- <td onClick={() => navigateToRegister('viral_haemorrhagic_fever')}>
442
- {moh705bData.viral_haemorrhagic_fever}
443
- </td>
444
- </tr>
445
- <tr>
446
- <td>62</td>
447
- <td>Chikungunya</td>
448
- <td onClick={() => navigateToRegister('chikungunya')}>{moh705bData.chikungunya}</td>
449
- </tr>
450
- <tr>
451
- <td>63</td>
452
- <td>Dengue fever</td>
453
- <td onClick={() => navigateToRegister('dengue_fever')}>{moh705bData.dengue_fever}</td>
454
- </tr>
455
- <tr>
456
- <td>64</td>
457
- <td>Leishmaniasis(Kala-azar)</td>
458
- <td onClick={() => navigateToRegister('leishmaniasis')}>{moh705bData.leishmaniasis}</td>
459
- </tr>
460
- <tr>
461
- <td>65</td>
462
- <td>Cuteneous leishmaniasis</td>
463
- <td onClick={() => navigateToRegister('cutaneous_leishmaniasis')}>
464
- {moh705bData.cutaneous_leishmaniasis}
465
- </td>
466
- </tr>
467
- <tr>
468
- <td>66</td>
469
- <td>Suspected Anthrax</td>
470
- <td onClick={() => navigateToRegister('suspected_anthrax')}>{moh705bData.suspected_anthrax}</td>
471
- </tr>
472
- <tr>
473
- <td>67</td>
474
- <td>ALL OTHER DISEASES</td>
475
- <td onClick={() => navigateToRegister('all_other_diseases')}>{moh705bData.all_other_diseases}</td>
476
- </tr>
477
- <tr>
478
- <td>68</td>
479
- <td>Tested for Malaria</td>
480
- <td onClick={() => navigateToRegister('tested_for_malaria')}>{moh705bData.tested_for_malaria}</td>
481
- </tr>
482
- <tr>
483
- <td>69</td>
484
- <td>NO. OF FIRST ATTENDANCES</td>
485
- <td onClick={() => navigateToRegister('no_of_first_attendances')}>
486
- {moh705bData.no_of_first_attendances}
487
- </td>
488
- </tr>
489
- <tr>
490
- <td>70</td>
491
- <td>RE-ATTENDANCES</td>
492
- <td onClick={() => navigateToRegister('re_attendances')}>{moh705bData.re_attendances}</td>
493
- </tr>
494
- <tr>
495
- <td>71</td>
496
- <td>Referrals from other health facilities</td>
497
- <td onClick={() => navigateToRegister('referrals_from_other_health_facility')}>
498
- {moh705bData.referrals_from_other_health_facility}
499
- </td>
500
- </tr>
501
- <tr>
502
- <td>72</td>
503
- <td>Referrals to other health facilities</td>
504
- <td onClick={() => navigateToRegister('referrals_to_other_health_facility')}>
505
- {moh705bData.referrals_to_other_health_facility}
506
- </td>
507
- </tr>
508
- <tr>
509
- <td>73</td>
510
- <td>Referrals from community unit</td>
511
- <td onClick={() => navigateToRegister('referrals_from_community_unit')}>
512
- {moh705bData.referrals_from_community_unit}
513
- </td>
514
- </tr>
515
- <tr>
516
- <td>74</td>
517
- <td>Referrals to community unit</td>
518
- <td onClick={() => navigateToRegister('referrals_to_community_unit')}>
519
- {moh705bData.referrals_to_community_unit}
520
- </td>
521
- </tr>
212
+ {renderDailyReportRows(
213
+ <>
214
+ <tr>
215
+ <td>1</td>
216
+ <td>Diarrhoea</td>
217
+ <td onClick={() => navigateToRegister('diarrhoea')}>{moh705bData.diarrhoea}</td>
218
+ </tr>
219
+ <tr>
220
+ <td>2</td>
221
+ <td>Tuberculosis</td>
222
+ <td onClick={() => navigateToRegister('tuberculosis')}>{moh705bData.tuberculosis}</td>
223
+ </tr>
224
+ <tr>
225
+ <td>3</td>
226
+ <td>Dysentry (Bloody diarrhoea)</td>
227
+ <td onClick={() => navigateToRegister('dysentry')}>{moh705bData.dysentry}</td>
228
+ </tr>
229
+ <tr>
230
+ <td>4</td>
231
+ <td>Cholera</td>
232
+ <td onClick={() => navigateToRegister('cholera')}>{moh705bData.cholera}</td>
233
+ </tr>
234
+ <tr>
235
+ <td>5</td>
236
+ <td>Meningococcal Meningitis</td>
237
+ <td onClick={() => navigateToRegister('meningococcal_meningitis')}>
238
+ {moh705bData.meningococcal_meningitis}
239
+ </td>
240
+ </tr>
241
+ <tr>
242
+ <td>6</td>
243
+ <td>Other Meningitis</td>
244
+ <td onClick={() => navigateToRegister('other_meningitis')}>{moh705bData.other_meningitis}</td>
245
+ </tr>
246
+ <tr>
247
+ <td>7</td>
248
+ <td>Tetanus</td>
249
+ <td onClick={() => navigateToRegister('tetanus')}>{moh705bData.tetanus}</td>
250
+ </tr>
251
+ <tr>
252
+ <td>8</td>
253
+ <td>Poliomyelitis (AFP)</td>
254
+ <td onClick={() => navigateToRegister('poliomyelitis')}>{moh705bData.poliomyelitis}</td>
255
+ </tr>
256
+ <tr>
257
+ <td>9</td>
258
+ <td>Chicken Pox</td>
259
+ <td onClick={() => navigateToRegister('chicken_pox')}>{moh705bData.chicken_pox}</td>
260
+ </tr>
261
+ <tr>
262
+ <td>10</td>
263
+ <td>Measles</td>
264
+ <td onClick={() => navigateToRegister('measles')}>{moh705bData.measles}</td>
265
+ </tr>
266
+ <tr>
267
+ <td>11</td>
268
+ <td>Hepatitis</td>
269
+ <td onClick={() => navigateToRegister('hepatitis')}>{moh705bData.hepatitis}</td>
270
+ </tr>
271
+ <tr>
272
+ <td>12</td>
273
+ <td>Mumps</td>
274
+ <td onClick={() => navigateToRegister('mumps')}>{moh705bData.mumps}</td>
275
+ </tr>
276
+ <tr>
277
+ <td>13</td>
278
+ <td>Suspected Malaria</td>
279
+ <td onClick={() => navigateToRegister('suspected_malaria')}>{moh705bData.suspected_malaria}</td>
280
+ </tr>
281
+ <tr>
282
+ <td>14</td>
283
+ <td>Confirmed Malaria</td>
284
+ <td onClick={() => navigateToRegister('confirmed_malaria')}>{moh705bData.confirmed_malaria}</td>
285
+ </tr>
286
+ <tr>
287
+ <td>15</td>
288
+ <td>Malaria in Pregnancy</td>
289
+ <td onClick={() => navigateToRegister('malaria_in_pregnancy')}>
290
+ {moh705bData.malaria_in_pregnancy}
291
+ </td>
292
+ </tr>
293
+ <tr>
294
+ <td>16</td>
295
+ <td>Amoebiasis</td>
296
+ <td onClick={() => navigateToRegister('amoebiasis')}>{moh705bData.amoebiasis}</td>
297
+ </tr>
298
+ <tr>
299
+ <td>17</td>
300
+ <td>Typhoid fever</td>
301
+ <td onClick={() => navigateToRegister('typhoid_fever')}>{moh705bData.typhoid_fever}</td>
302
+ </tr>
303
+ <tr>
304
+ <td>18</td>
305
+ <td>Sexually Transmitted Infections</td>
306
+ <td onClick={() => navigateToRegister('sexually_transmitted_infections')}>
307
+ {moh705bData.sexually_transmitted_infections}
308
+ </td>
309
+ </tr>
310
+ <tr>
311
+ <td>19</td>
312
+ <td>Urinary Tract Infections</td>
313
+ <td onClick={() => navigateToRegister('urinary_tract_infections')}>
314
+ {moh705bData.urinary_tract_infections}
315
+ </td>
316
+ </tr>
317
+ <tr>
318
+ <td>20</td>
319
+ <td>Bilharzia (Schistosomiasis)</td>
320
+ <td onClick={() => navigateToRegister('bilharzia')}>{moh705bData.bilharzia}</td>
321
+ </tr>
322
+ <tr>
323
+ <td>21</td>
324
+ <td>Intestinal worms</td>
325
+ <td onClick={() => navigateToRegister('intestinal_worms')}>{moh705bData.intestinal_worms}</td>
326
+ </tr>
327
+ <tr>
328
+ <td>22</td>
329
+ <td>Malnutrition</td>
330
+ <td onClick={() => navigateToRegister('malnutrition')}>{moh705bData.malnutrition}</td>
331
+ </tr>
332
+ <tr>
333
+ <td>23</td>
334
+ <td>Anaemia</td>
335
+ <td onClick={() => navigateToRegister('anaemia')}>{moh705bData.anaemia}</td>
336
+ </tr>
337
+ <tr>
338
+ <td>24</td>
339
+ <td>Eye Infections/Conditions</td>
340
+ <td onClick={() => navigateToRegister('eye_infections')}>{moh705bData.eye_infections}</td>
341
+ </tr>
342
+ <tr>
343
+ <td>25</td>
344
+ <td>Ear Infections/Conditions</td>
345
+ <td onClick={() => navigateToRegister('ear_infections')}>{moh705bData.ear_infections}</td>
346
+ </tr>
347
+ <tr>
348
+ <td>26</td>
349
+ <td>Upper Respiratory Tract Infections </td>
350
+ <td onClick={() => navigateToRegister('upper_respiratory_tract_infections')}>
351
+ {moh705bData.upper_respiratory_tract_infections}
352
+ </td>
353
+ </tr>
354
+ <tr>
355
+ <td>27</td>
356
+ <td>Asthma</td>
357
+ <td onClick={() => navigateToRegister('asthma')}>{moh705bData.asthma}</td>
358
+ </tr>
359
+ <tr>
360
+ <td>28</td>
361
+ <td>Pneumonia</td>
362
+ <td onClick={() => navigateToRegister('pneumonia')}>{moh705bData.pneumonia}</td>
363
+ </tr>
364
+ <tr>
365
+ <td>29</td>
366
+ <td>Other Lower Respiratory tract infections</td>
367
+ <td onClick={() => navigateToRegister('other_lower_respiratory_tract_infections')}>
368
+ {moh705bData.other_lower_respiratory_tract_infections}
369
+ </td>
370
+ </tr>
371
+ <tr>
372
+ <td>30</td>
373
+ <td>Abortion</td>
374
+ <td onClick={() => navigateToRegister('abortion')}>{moh705bData.abortion}</td>
375
+ </tr>
376
+ <tr>
377
+ <td>31</td>
378
+ <td>Dis. of Puerperium & Childbirth</td>
379
+ <td onClick={() => navigateToRegister('puerperium_childbirth')}>
380
+ {moh705bData.puerperium_childbirth}
381
+ </td>
382
+ </tr>
383
+ <tr>
384
+ <td>32</td>
385
+ <td>Hypertension</td>
386
+ <td onClick={() => navigateToRegister('hypertention')}>{moh705bData.hypertention}</td>
387
+ </tr>
388
+ <tr>
389
+ <td>33</td>
390
+ <td>Mental Disorders</td>
391
+ <td onClick={() => navigateToRegister('mental_disorders')}>{moh705bData.mental_disorders}</td>
392
+ </tr>
393
+ <tr>
394
+ <td>34</td>
395
+ <td>Dental Disorders</td>
396
+ <td onClick={() => navigateToRegister('dental_disorders')}>{moh705bData.dental_disorders}</td>
397
+ </tr>
398
+ <tr>
399
+ <td>35</td>
400
+ <td>Jiggers Infestation</td>
401
+ <td onClick={() => navigateToRegister('jiggers_infestation')}>
402
+ {moh705bData.jiggers_infestation}
403
+ </td>
404
+ </tr>
405
+ <tr>
406
+ <td>36</td>
407
+ <td>Disease of the skin</td>
408
+ <td onClick={() => navigateToRegister('diseases_of_the_skin')}>
409
+ {moh705bData.diseases_of_the_skin}
410
+ </td>
411
+ </tr>
412
+ <tr>
413
+ <td>37</td>
414
+ <td>Athritis, Joint pains etc.</td>
415
+ <td onClick={() => navigateToRegister('athritis')}>{moh705bData.athritis}</td>
416
+ </tr>
417
+ <tr>
418
+ <td>38</td>
419
+ <td>Poisoning</td>
420
+ <td onClick={() => navigateToRegister('poisoning')}>{moh705bData.poisoning}</td>
421
+ </tr>
422
+ <tr>
423
+ <td>39</td>
424
+ <td>Road Traffic Injuries</td>
425
+ <td onClick={() => navigateToRegister('road_traffic_injuries')}>
426
+ {moh705bData.road_traffic_injuries}
427
+ </td>
428
+ </tr>
429
+ <tr>
430
+ <td>40</td>
431
+ <td>Deaths due to Road Traffic Injuries</td>
432
+ <td onClick={() => navigateToRegister('deaths_due_to_road_traffic_injuries')}>
433
+ {moh705bData.deaths_due_to_road_traffic_injuries}
434
+ </td>
435
+ </tr>
436
+ <tr>
437
+ <td>41</td>
438
+ <td>Other Injuries</td>
439
+ <td onClick={() => navigateToRegister('other_injuries')}>{moh705bData.other_injuries}</td>
440
+ </tr>
441
+ <tr>
442
+ <td>42</td>
443
+ <td>Sexual Violence</td>
444
+ <td onClick={() => navigateToRegister('sexual_violence')}>{moh705bData.sexual_violence}</td>
445
+ </tr>
446
+ <tr>
447
+ <td>43</td>
448
+ <td>Violence related Injuries</td>
449
+ <td onClick={() => navigateToRegister('violence_related_injuries')}>
450
+ {moh705bData.violence_related_injuries}
451
+ </td>
452
+ </tr>
453
+ <tr>
454
+ <td>44</td>
455
+ <td>Burns</td>
456
+ <td onClick={() => navigateToRegister('burns')}>{moh705bData.burns}</td>
457
+ </tr>
458
+ <tr>
459
+ <td>45</td>
460
+ <td>Snake Bites</td>
461
+ <td onClick={() => navigateToRegister('snake_bites')}>{moh705bData.snake_bites}</td>
462
+ </tr>
463
+ <tr>
464
+ <td>46</td>
465
+ <td>Dog Bites</td>
466
+ <td onClick={() => navigateToRegister('dog_bites')}>{moh705bData.dog_bites}</td>
467
+ </tr>
468
+ <tr>
469
+ <td>47</td>
470
+ <td>Other Bites</td>
471
+ <td onClick={() => navigateToRegister('other_bites')}>{moh705bData.other_bites}</td>
472
+ </tr>
473
+ <tr>
474
+ <td>48</td>
475
+ <td>Diabetes</td>
476
+ <td onClick={() => navigateToRegister('diabetes')}>{moh705bData.diabetes}</td>
477
+ </tr>
478
+ <tr>
479
+ <td>49</td>
480
+ <td>Epilepsy</td>
481
+ <td onClick={() => navigateToRegister('epilepsy')}>{moh705bData.epilepsy}</td>
482
+ </tr>
483
+ <tr>
484
+ <td>50</td>
485
+ <td>Brucellosis</td>
486
+ <td onClick={() => navigateToRegister('brucellosis')}>{moh705bData.brucellosis}</td>
487
+ </tr>
488
+ <tr>
489
+ <td>51</td>
490
+ <td>Cardiovascular conditions</td>
491
+ <td onClick={() => navigateToRegister('cardiovascular_conditions')}>
492
+ {moh705bData.cardiovascular_conditions}
493
+ </td>
494
+ </tr>
495
+ <tr>
496
+ <td>52</td>
497
+ <td>Central Nervous System Conditions</td>
498
+ <td onClick={() => navigateToRegister('central_nervous_system_conditions')}>
499
+ {moh705bData.central_nervous_system_conditions}
500
+ </td>
501
+ </tr>
502
+ <tr>
503
+ <td>53</td>
504
+ <td>Overweight (BMI &gt; 25)</td>
505
+ <td onClick={() => navigateToRegister('overweight')}>{moh705bData.overweight}</td>
506
+ </tr>
507
+ <tr>
508
+ <td>54</td>
509
+ <td>Muscular skeletal conditions</td>
510
+ <td onClick={() => navigateToRegister('mascular_skeletal_conditions')}>
511
+ {moh705bData.mascular_skeletal_conditions}
512
+ </td>
513
+ </tr>
514
+ <tr>
515
+ <td>55</td>
516
+ <td>Fistula (Birth related)</td>
517
+ <td onClick={() => navigateToRegister('fistula')}>{moh705bData.fistula}</td>
518
+ </tr>
519
+ <tr>
520
+ <td>56</td>
521
+ <td>Suspected Neoplams/Cancers</td>
522
+ <td onClick={() => navigateToRegister('suspected_neoplams_cancers')}>
523
+ {moh705bData.suspected_neoplams_cancers}
524
+ </td>
525
+ </tr>
526
+ <tr>
527
+ <td>57</td>
528
+ <td>Physical Disability</td>
529
+ <td onClick={() => navigateToRegister('physical_disability')}>
530
+ {moh705bData.physical_disability}
531
+ </td>
532
+ </tr>
533
+ <tr>
534
+ <td>58</td>
535
+ <td>Trypanosomiasis</td>
536
+ <td onClick={() => navigateToRegister('trypanosomiasis')}>{moh705bData.trypanosomiasis}</td>
537
+ </tr>
538
+ <tr>
539
+ <td>59</td>
540
+ <td>Rift valley fever</td>
541
+ <td onClick={() => navigateToRegister('rift_valley_fever')}>{moh705bData.rift_valley_fever}</td>
542
+ </tr>
543
+ <tr>
544
+ <td>60</td>
545
+ <td>Yellow Fever</td>
546
+ <td onClick={() => navigateToRegister('yellow_fever')}>{moh705bData.yellow_fever}</td>
547
+ </tr>
548
+ <tr>
549
+ <td>61</td>
550
+ <td>Viral Haemorrhagic Fever</td>
551
+ <td onClick={() => navigateToRegister('viral_haemorrhagic_fever')}>
552
+ {moh705bData.viral_haemorrhagic_fever}
553
+ </td>
554
+ </tr>
555
+ <tr>
556
+ <td>62</td>
557
+ <td>Chikungunya</td>
558
+ <td onClick={() => navigateToRegister('chikungunya')}>{moh705bData.chikungunya}</td>
559
+ </tr>
560
+ <tr>
561
+ <td>63</td>
562
+ <td>Dengue fever</td>
563
+ <td onClick={() => navigateToRegister('dengue_fever')}>{moh705bData.dengue_fever}</td>
564
+ </tr>
565
+ <tr>
566
+ <td>64</td>
567
+ <td>Leishmaniasis(Kala-azar)</td>
568
+ <td onClick={() => navigateToRegister('leishmaniasis')}>{moh705bData.leishmaniasis}</td>
569
+ </tr>
570
+ <tr>
571
+ <td>65</td>
572
+ <td>Cuteneous leishmaniasis</td>
573
+ <td onClick={() => navigateToRegister('cutaneous_leishmaniasis')}>
574
+ {moh705bData.cutaneous_leishmaniasis}
575
+ </td>
576
+ </tr>
577
+ <tr>
578
+ <td>66</td>
579
+ <td>Suspected Anthrax</td>
580
+ <td onClick={() => navigateToRegister('suspected_anthrax')}>{moh705bData.suspected_anthrax}</td>
581
+ </tr>
582
+ <tr>
583
+ <td>67</td>
584
+ <td>ALL OTHER DISEASES</td>
585
+ <td onClick={() => navigateToRegister('all_other_diseases')}>{moh705bData.all_other_diseases}</td>
586
+ </tr>
587
+ <tr>
588
+ <td>68</td>
589
+ <td>Tested for Malaria</td>
590
+ <td onClick={() => navigateToRegister('tested_for_malaria')}>{moh705bData.tested_for_malaria}</td>
591
+ </tr>
592
+ <tr>
593
+ <td>69</td>
594
+ <td>NO. OF FIRST ATTENDANCES</td>
595
+ <td onClick={() => navigateToRegister('no_of_first_attendances')}>
596
+ {moh705bData.no_of_first_attendances}
597
+ </td>
598
+ </tr>
599
+ <tr>
600
+ <td>70</td>
601
+ <td>RE-ATTENDANCES</td>
602
+ <td onClick={() => navigateToRegister('re_attendances')}>{moh705bData.re_attendances}</td>
603
+ </tr>
604
+ <tr>
605
+ <td>71</td>
606
+ <td>Referrals from other health facilities</td>
607
+ <td onClick={() => navigateToRegister('referrals_from_other_health_facility')}>
608
+ {moh705bData.referrals_from_other_health_facility}
609
+ </td>
610
+ </tr>
611
+ <tr>
612
+ <td>72</td>
613
+ <td>Referrals to other health facilities</td>
614
+ <td onClick={() => navigateToRegister('referrals_to_other_health_facility')}>
615
+ {moh705bData.referrals_to_other_health_facility}
616
+ </td>
617
+ </tr>
618
+ <tr>
619
+ <td>73</td>
620
+ <td>Referrals from community unit</td>
621
+ <td onClick={() => navigateToRegister('referrals_from_community_unit')}>
622
+ {moh705bData.referrals_from_community_unit}
623
+ </td>
624
+ </tr>
625
+ <tr>
626
+ <td>74</td>
627
+ <td>Referrals to community unit</td>
628
+ <td onClick={() => navigateToRegister('referrals_to_community_unit')}>
629
+ {moh705bData.referrals_to_community_unit}
630
+ </td>
631
+ </tr>
632
+ </>,
633
+ moh705bData,
634
+ indicators,
635
+ navigateToRegister,
636
+ )}
522
637
  </tbody>
523
638
  </table>
524
639
  </div>