@ampath/esm-reports-app 1.0.0-next.3 → 1.0.0-next.30

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 (140) hide show
  1. package/dist/138.js +2 -0
  2. package/dist/138.js.LICENSE.txt +20 -0
  3. package/dist/138.js.map +1 -0
  4. package/dist/184.js +1 -1
  5. package/dist/184.js.map +1 -1
  6. package/dist/205.js +1 -0
  7. package/dist/205.js.map +1 -0
  8. package/dist/282.js +1 -1
  9. package/dist/282.js.LICENSE.txt +3 -3
  10. package/dist/282.js.map +1 -1
  11. package/dist/311.js +1 -0
  12. package/dist/311.js.map +1 -0
  13. package/dist/353.js +1 -2
  14. package/dist/353.js.map +1 -1
  15. package/dist/478.js +2 -0
  16. package/dist/478.js.LICENSE.txt +9 -0
  17. package/dist/478.js.map +1 -0
  18. package/dist/540.js +1 -1
  19. package/dist/540.js.map +1 -1
  20. package/dist/645.js +1 -0
  21. package/dist/645.js.map +1 -0
  22. package/dist/812.js +1 -0
  23. package/dist/812.js.map +1 -0
  24. package/dist/961.js +1 -1
  25. package/dist/961.js.map +1 -1
  26. package/dist/ampath-esm-reports-app.js +1 -1
  27. package/dist/ampath-esm-reports-app.js.buildmanifest.json +174 -99
  28. package/dist/ampath-esm-reports-app.js.map +1 -1
  29. package/dist/main.js +1 -1
  30. package/dist/main.js.map +1 -1
  31. package/dist/routes.json +1 -1
  32. package/package.json +2 -1
  33. package/src/common/report-filters/report-filters.component.tsx +127 -0
  34. package/src/common/report-filters/report-filters.scss +49 -0
  35. package/src/dashboard/reports-dasboard.tsx +38 -1
  36. package/src/dashboard/reports-dashboard.module.scss +14 -0
  37. package/src/index.ts +1 -1
  38. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
  39. package/src/reports/moh-240/moh-240-header.component.tsx +61 -0
  40. package/src/reports/moh-240/moh-240.component.tsx +68 -0
  41. package/src/reports/moh-240/moh-240.scss +3 -0
  42. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +72 -0
  43. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +95 -0
  44. package/src/reports/moh-505/moh-505-header.component.tsx +62 -0
  45. package/src/reports/moh-505/moh-505.component.tsx +240 -0
  46. package/src/reports/moh-505/moh-505.scss +3 -0
  47. package/src/reports/moh-705B/moh-204b-register.component.tsx +235 -0
  48. package/src/reports/moh-705B/moh-705b.component.tsx +524 -0
  49. package/src/reports/moh-705B/moh-705b.scss +44 -0
  50. package/src/reports/moh-705a/moh-705a.component.tsx +528 -0
  51. package/src/reports/moh-705a/moh-705a.scss +45 -0
  52. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +320 -0
  53. package/src/reports/moh-705a/type.ts +6 -0
  54. package/src/reports/moh-706/moh-706-header.component.tsx +61 -0
  55. package/src/reports/moh-706/moh-706.component.tsx +104 -0
  56. package/src/reports/moh-706/moh-706.scss +30 -0
  57. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +124 -0
  58. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +318 -0
  59. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
  60. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +179 -0
  61. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
  62. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +121 -0
  63. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +47 -0
  64. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
  65. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +108 -0
  66. package/src/reports/moh-710/moh-710.component.tsx +665 -0
  67. package/src/reports/moh-710/moh-710.scss +45 -0
  68. package/src/reports/moh-710/patient-list/moh-710-patient-list.component.tsx +13 -0
  69. package/src/reports/moh-711/moh-711.component.tsx +139 -0
  70. package/src/reports/moh-711/moh711.scss +82 -0
  71. package/src/reports/moh-711/registers/moh-333-register.component.tsx +636 -0
  72. package/src/reports/moh-711/registers/moh-405-register.component.tsx +518 -0
  73. package/src/reports/moh-711/registers/moh-406-register.component.tsx +530 -0
  74. package/src/reports/moh-711/registers/moh-510-register.component.tsx +61 -0
  75. package/src/reports/moh-711/registers/moh-511-register.component.tsx +263 -0
  76. package/src/reports/moh-711/registers/type.ts +194 -0
  77. package/src/reports/moh-711/sections/anc.component.tsx +153 -0
  78. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +104 -0
  79. package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
  80. package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
  81. package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
  82. package/src/reports/moh-711/sections/maternity.component.tsx +319 -0
  83. package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
  84. package/src/reports/moh-711/sections/other.component.tsx +47 -0
  85. package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
  86. package/src/reports/moh-711/sections/pnc.component.tsx +118 -0
  87. package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
  88. package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
  89. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
  90. package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
  91. package/src/reports/moh-717/moh-717.component.tsx +170 -0
  92. package/src/reports/moh-717/moh717.scss +154 -0
  93. package/src/reports/moh-717/sections/finance.component.tsx +42 -0
  94. package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
  95. package/src/reports/moh-717/sections/maternity.component.tsx +119 -0
  96. package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
  97. package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
  98. package/src/reports/moh-717/sections/operations.component.tsx +53 -0
  99. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
  100. package/src/reports/moh-717/sections/outpatient.component.tsx +489 -0
  101. package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
  102. package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
  103. package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
  104. package/src/reports/moh-740/moh-740.component.scss +120 -0
  105. package/src/reports/moh-740/moh-740.component.tsx +1263 -0
  106. package/src/reports/moh-740/moh-740.resource.ts +42 -0
  107. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +6 -0
  108. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +18 -0
  109. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +79 -0
  110. package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
  111. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +43 -0
  112. package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
  113. package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
  114. package/src/reports/moh-740/shared/utils/format-indicator.ts +22 -0
  115. package/src/reports/moh-740/types/index.ts +183 -0
  116. package/src/reports/moh-745/moh-745.component.tsx +928 -0
  117. package/src/reports/moh-745/moh-745.scss +74 -0
  118. package/src/reports/moh-745/registers/moh-412-register.component.tsx +191 -0
  119. package/src/reports/moh-745/registers/type.ts +29 -0
  120. package/src/reports/table-wrapper/table-row-mapper.component.tsx +51 -0
  121. package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
  122. package/src/reports/table-wrapper/table-wrapper.scss +31 -0
  123. package/src/resources/moh-705.resource.ts +117 -0
  124. package/src/resources/moh-706.resource.ts +86 -0
  125. package/src/resources/moh-710.resource.ts +60 -0
  126. package/src/resources/moh-711.resource.ts +175 -0
  127. package/src/resources/moh-717.resource.ts +35 -0
  128. package/src/resources/moh-745.resource.ts +64 -0
  129. package/src/root.component.tsx +38 -0
  130. package/src/utils/get-base-url.ts +12 -0
  131. package/src/utils/utils.ts +36 -0
  132. package/dist/255.js +0 -1
  133. package/dist/255.js.map +0 -1
  134. package/dist/353.js.LICENSE.txt +0 -39
  135. package/dist/36.js +0 -1
  136. package/dist/36.js.map +0 -1
  137. package/dist/734.js +0 -1
  138. package/dist/734.js.map +0 -1
  139. package/dist/97.js +0 -1
  140. package/dist/97.js.map +0 -1
@@ -0,0 +1,524 @@
1
+ import React, { useState } from 'react';
2
+ import styles from './moh-705b.scss';
3
+ import { useSession } from '@openmrs/esm-framework';
4
+ import { getMoh705b } from '../../resources/moh-705.resource';
5
+ import classNames from 'classnames';
6
+ import ReportFiltersComponent from '../../common/report-filters/report-filters.component';
7
+ import { Loading } from '@carbon/react';
8
+ import { useNavigate } from 'react-router-dom';
9
+
10
+ import { type ReportFilters } from '../moh-705a/type';
11
+
12
+ const Moh705BComponent: React.FC = () => {
13
+ let errorMessage: string = '';
14
+ const [moh705bData, setMoh705bData] = useState<any>([]);
15
+ const [isLoading, setIsLoading] = useState<boolean>(false);
16
+ const [startDate, setStartDate] = useState<string>('');
17
+ const [endDate, setEndDate] = useState<string>('');
18
+
19
+ const session = useSession();
20
+ const locationUuids = session?.sessionLocation?.uuid;
21
+ const navigate = useNavigate();
22
+
23
+ const getReportParams = (filters: ReportFilters) => {
24
+ let { startDate: sDate, endDate: eDate } = filters;
25
+
26
+ if (filters.month) {
27
+ const [year, monthIndex] = filters.month.split('-').map(Number);
28
+
29
+ const start = new Date(year, monthIndex - 1, 1);
30
+ const end = new Date(year, monthIndex, 0);
31
+
32
+ const formatLocalDate = (d: Date) => {
33
+ const y = d.getFullYear();
34
+ const m = String(d.getMonth() + 1).padStart(2, '0');
35
+ const day = String(d.getDate()).padStart(2, '0');
36
+ return `${y}-${m}-${day}`;
37
+ };
38
+
39
+ sDate = formatLocalDate(start);
40
+ eDate = formatLocalDate(end);
41
+ }
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
+
54
+ const params = {
55
+ locationUuids: locationUuids || '',
56
+ startDate,
57
+ endDate,
58
+ };
59
+ try {
60
+ const data = await getMoh705b(params);
61
+ const flatData = Object.assign({}, ...data.result);
62
+ setMoh705bData(flatData);
63
+ setIsLoading(false);
64
+ } catch (error) {
65
+ errorMessage = error instanceof Error ? error.message : String(error);
66
+ setIsLoading(false);
67
+ throw new Error(`Failed to fetch MOH-710 report data: ${error instanceof Error ? error.message : String(error)}`);
68
+ }
69
+ };
70
+
71
+ const navigateToRegister = (indicator: string) => {
72
+ navigate(
73
+ `/moh-204b?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}`,
74
+ );
75
+ };
76
+
77
+ return (
78
+ <>
79
+ <ReportFiltersComponent
80
+ reportName="MOH-705B Report"
81
+ mode="monthly"
82
+ onGenerate={fetchMoh705bReportData}
83
+ isLoding={isLoading}
84
+ />
85
+ {isLoading && <Loading description="Fetching data...." />}
86
+ {!isLoading && errorMessage && (
87
+ <div>
88
+ <a href="#" className="close" data-dismiss="alert">
89
+ &times;
90
+ </a>
91
+ <h4>
92
+ <strong>
93
+ <span className="glyphicon glyphicon-warning-sign"></span>{' '}
94
+ </strong>{' '}
95
+ An error occurred while trying to load the report. Please try again.
96
+ </h4>
97
+ <p>
98
+ <small>{errorMessage}</small>
99
+ </p>
100
+ </div>
101
+ )}
102
+ <h3>KHIS Aggregate</h3>
103
+ <div className={styles.container}>
104
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
105
+ <thead>
106
+ <tr>
107
+ <th colSpan={2}>DISEASES (New Cases Only)</th>
108
+ <th>Number of Cases</th>
109
+ </tr>
110
+ </thead>
111
+ <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')}>{moh705bData.puerperium_childbirth}</td>
276
+ </tr>
277
+ <tr>
278
+ <td>32</td>
279
+ <td>Hypertension</td>
280
+ <td onClick={() => navigateToRegister('hypertention')}>{moh705bData.hypertention}</td>
281
+ </tr>
282
+ <tr>
283
+ <td>33</td>
284
+ <td>Mental Disorders</td>
285
+ <td onClick={() => navigateToRegister('mental_disorders')}>{moh705bData.mental_disorders}</td>
286
+ </tr>
287
+ <tr>
288
+ <td>34</td>
289
+ <td>Dental Disorders</td>
290
+ <td onClick={() => navigateToRegister('dental_disorders')}>{moh705bData.dental_disorders}</td>
291
+ </tr>
292
+ <tr>
293
+ <td>35</td>
294
+ <td>Jiggers Infestation</td>
295
+ <td onClick={() => navigateToRegister('jiggers_infestation')}>{moh705bData.jiggers_infestation}</td>
296
+ </tr>
297
+ <tr>
298
+ <td>36</td>
299
+ <td>Disease of the skin</td>
300
+ <td onClick={() => navigateToRegister('diseases_of_the_skin')}>{moh705bData.diseases_of_the_skin}</td>
301
+ </tr>
302
+ <tr>
303
+ <td>37</td>
304
+ <td>Athritis, Joint pains etc.</td>
305
+ <td onClick={() => navigateToRegister('athritis')}>{moh705bData.athritis}</td>
306
+ </tr>
307
+ <tr>
308
+ <td>38</td>
309
+ <td>Poisoning</td>
310
+ <td onClick={() => navigateToRegister('poisoning')}>{moh705bData.poisoning}</td>
311
+ </tr>
312
+ <tr>
313
+ <td>39</td>
314
+ <td>Road Traffic Injuries</td>
315
+ <td onClick={() => navigateToRegister('road_traffic_injuries')}>{moh705bData.road_traffic_injuries}</td>
316
+ </tr>
317
+ <tr>
318
+ <td>40</td>
319
+ <td>Deaths due to Road Traffic Injuries</td>
320
+ <td onClick={() => navigateToRegister('deaths_due_to_road_traffic_injuries')}>
321
+ {moh705bData.deaths_due_to_road_traffic_injuries}
322
+ </td>
323
+ </tr>
324
+ <tr>
325
+ <td>41</td>
326
+ <td>Other Injuries</td>
327
+ <td onClick={() => navigateToRegister('other_injuries')}>{moh705bData.other_injuries}</td>
328
+ </tr>
329
+ <tr>
330
+ <td>42</td>
331
+ <td>Sexual Violence</td>
332
+ <td onClick={() => navigateToRegister('sexual_violence')}>{moh705bData.sexual_violence}</td>
333
+ </tr>
334
+ <tr>
335
+ <td>43</td>
336
+ <td>Violence related Injuries</td>
337
+ <td onClick={() => navigateToRegister('violence_related_injuries')}>
338
+ {moh705bData.violence_related_injuries}
339
+ </td>
340
+ </tr>
341
+ <tr>
342
+ <td>44</td>
343
+ <td>Burns</td>
344
+ <td onClick={() => navigateToRegister('burns')}>{moh705bData.burns}</td>
345
+ </tr>
346
+ <tr>
347
+ <td>45</td>
348
+ <td>Snake Bites</td>
349
+ <td onClick={() => navigateToRegister('snake_bites')}>{moh705bData.snake_bites}</td>
350
+ </tr>
351
+ <tr>
352
+ <td>46</td>
353
+ <td>Dog Bites</td>
354
+ <td onClick={() => navigateToRegister('dog_bites')}>{moh705bData.dog_bites}</td>
355
+ </tr>
356
+ <tr>
357
+ <td>47</td>
358
+ <td>Other Bites</td>
359
+ <td onClick={() => navigateToRegister('other_bites')}>{moh705bData.other_bites}</td>
360
+ </tr>
361
+ <tr>
362
+ <td>48</td>
363
+ <td>Diabetes</td>
364
+ <td onClick={() => navigateToRegister('diabetes')}>{moh705bData.diabetes}</td>
365
+ </tr>
366
+ <tr>
367
+ <td>49</td>
368
+ <td>Epilepsy</td>
369
+ <td onClick={() => navigateToRegister('epilepsy')}>{moh705bData.epilepsy}</td>
370
+ </tr>
371
+ <tr>
372
+ <td>50</td>
373
+ <td>Brucellosis</td>
374
+ <td onClick={() => navigateToRegister('brucellosis')}>{moh705bData.brucellosis}</td>
375
+ </tr>
376
+ <tr>
377
+ <td>51</td>
378
+ <td>Cardiovascular conditions</td>
379
+ <td onClick={() => navigateToRegister('cardiovascular_conditions')}>
380
+ {moh705bData.cardiovascular_conditions}
381
+ </td>
382
+ </tr>
383
+ <tr>
384
+ <td>52</td>
385
+ <td>Central Nervous System Conditions</td>
386
+ <td onClick={() => navigateToRegister('central_nervous_system_conditions')}>
387
+ {moh705bData.central_nervous_system_conditions}
388
+ </td>
389
+ </tr>
390
+ <tr>
391
+ <td>53</td>
392
+ <td>Overweight (BMI &gt; 25)</td>
393
+ <td onClick={() => navigateToRegister('overweight')}>{moh705bData.overweight}</td>
394
+ </tr>
395
+ <tr>
396
+ <td>54</td>
397
+ <td>Muscular skeletal conditions</td>
398
+ <td onClick={() => navigateToRegister('mascular_skeletal_conditions')}>
399
+ {moh705bData.mascular_skeletal_conditions}
400
+ </td>
401
+ </tr>
402
+ <tr>
403
+ <td>55</td>
404
+ <td>Fistula (Birth related)</td>
405
+ <td onClick={() => navigateToRegister('fistula')}>{moh705bData.fistula}</td>
406
+ </tr>
407
+ <tr>
408
+ <td>56</td>
409
+ <td>Suspected Neoplams/Cancers</td>
410
+ <td onClick={() => navigateToRegister('suspected_neoplams_cancers')}>
411
+ {moh705bData.suspected_neoplams_cancers}
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td>57</td>
416
+ <td>Physical Disability</td>
417
+ <td onClick={() => navigateToRegister('physical_disability')}>{moh705bData.physical_disability}</td>
418
+ </tr>
419
+ <tr>
420
+ <td>58</td>
421
+ <td>Trypanosomiasis</td>
422
+ <td onClick={() => navigateToRegister('trypanosomiasis')}>{moh705bData.trypanosomiasis}</td>
423
+ </tr>
424
+ <tr>
425
+ <td>59</td>
426
+ <td>Rift valley fever</td>
427
+ <td onClick={() => navigateToRegister('rift_valley_fever')}>{moh705bData.rift_valley_fever}</td>
428
+ </tr>
429
+ <tr>
430
+ <td>60</td>
431
+ <td>Yellow Fever</td>
432
+ <td onClick={() => navigateToRegister('yellow_fever')}>{moh705bData.yellow_fever}</td>
433
+ </tr>
434
+ <tr>
435
+ <td>61</td>
436
+ <td>Viral Haemorrhagic Fever</td>
437
+ <td onClick={() => navigateToRegister('viral_haemorrhagic_fever')}>
438
+ {moh705bData.viral_haemorrhagic_fever}
439
+ </td>
440
+ </tr>
441
+ <tr>
442
+ <td>62</td>
443
+ <td>Chikungunya</td>
444
+ <td onClick={() => navigateToRegister('chikungunya')}>{moh705bData.chikungunya}</td>
445
+ </tr>
446
+ <tr>
447
+ <td>63</td>
448
+ <td>Dengue fever</td>
449
+ <td onClick={() => navigateToRegister('dengue_fever')}>{moh705bData.dengue_fever}</td>
450
+ </tr>
451
+ <tr>
452
+ <td>64</td>
453
+ <td>Leishmaniasis(Kala-azar)</td>
454
+ <td onClick={() => navigateToRegister('leishmaniasis')}>{moh705bData.leishmaniasis}</td>
455
+ </tr>
456
+ <tr>
457
+ <td>65</td>
458
+ <td>Cuteneous leishmaniasis</td>
459
+ <td onClick={() => navigateToRegister('cutaneous_leishmaniasis')}>
460
+ {moh705bData.cutaneous_leishmaniasis}
461
+ </td>
462
+ </tr>
463
+ <tr>
464
+ <td>66</td>
465
+ <td>Suspected Anthrax</td>
466
+ <td onClick={() => navigateToRegister('suspected_anthrax')}>{moh705bData.suspected_anthrax}</td>
467
+ </tr>
468
+ <tr>
469
+ <td>67</td>
470
+ <td>ALL OTHER DISEASES</td>
471
+ <td onClick={() => navigateToRegister('all_other_diseases')}>{moh705bData.all_other_diseases}</td>
472
+ </tr>
473
+ <tr>
474
+ <td>68</td>
475
+ <td>Tested for Malaria</td>
476
+ <td onClick={() => navigateToRegister('tested_for_malaria')}>{moh705bData.tested_for_malaria}</td>
477
+ </tr>
478
+ <tr>
479
+ <td>69</td>
480
+ <td>NO. OF FIRST ATTENDANCES</td>
481
+ <td onClick={() => navigateToRegister('no_of_first_attendances')}>
482
+ {moh705bData.no_of_first_attendances}
483
+ </td>
484
+ </tr>
485
+ <tr>
486
+ <td>70</td>
487
+ <td>RE-ATTENDANCES</td>
488
+ <td onClick={() => navigateToRegister('re_attendances')}>{moh705bData.re_attendances}</td>
489
+ </tr>
490
+ <tr>
491
+ <td>71</td>
492
+ <td>Referrals from other health facilities</td>
493
+ <td onClick={() => navigateToRegister('referrals_from_other_health_facility')}>
494
+ {moh705bData.referrals_from_other_health_facility}
495
+ </td>
496
+ </tr>
497
+ <tr>
498
+ <td>72</td>
499
+ <td>Referrals to other health facilities</td>
500
+ <td onClick={() => navigateToRegister('referrals_to_other_health_facility')}>
501
+ {moh705bData.referrals_to_other_health_facility}
502
+ </td>
503
+ </tr>
504
+ <tr>
505
+ <td>73</td>
506
+ <td>Referrals from community unit</td>
507
+ <td onClick={() => navigateToRegister('referrals_from_community_unit')}>
508
+ {moh705bData.referrals_from_community_unit}
509
+ </td>
510
+ </tr>
511
+ <tr>
512
+ <td>74</td>
513
+ <td>Referrals to community unit</td>
514
+ <td onClick={() => navigateToRegister('referrals_to_community_unit')}>
515
+ {moh705bData.referrals_to_community_unit}
516
+ </td>
517
+ </tr>
518
+ </tbody>
519
+ </table>
520
+ </div>
521
+ </>
522
+ );
523
+ };
524
+ export default Moh705BComponent;
@@ -0,0 +1,44 @@
1
+
2
+ h3 {
3
+ text-align: center;
4
+ }
5
+
6
+ .container {
7
+ margin: 0 2rem;
8
+ margin-top: 0.5px;
9
+ }
10
+
11
+ .tableContainer {
12
+ margin-left: 1rem;
13
+ margin-bottom: 1rem;
14
+ font-weight: bold;
15
+ }
16
+
17
+ .sectionTitle {
18
+ margin-left: 1rem ;
19
+ }
20
+
21
+ .title {
22
+ text-align: center;
23
+ font-size: 1rem;
24
+ margin: 1rem;
25
+ }
26
+ .table {
27
+ width: auto;
28
+ border-collapse: collapse;
29
+
30
+ }
31
+
32
+ .tableBordered td,
33
+ .tableBordered th {
34
+ border: 1px solid black;
35
+ padding: 1rem;
36
+ font-size: small;
37
+ }
38
+
39
+ .tableStriped tbody tr:nth-of-type(odd) {
40
+ background-color: #f9f9f9;
41
+ }
42
+ .buttonContainer {
43
+ margin: 1rem;
44
+ }