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