@ampath/esm-reports-app 1.0.0-next.4 → 1.0.0-next.40
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 +5 -1
- 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,478 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import styles from './moh-366.scss';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useNavigate, useSearchParams } from 'react-router-dom';
|
|
6
|
+
import { getMoh366PatientList } from '../../../resources/moh-731.resource';
|
|
7
|
+
import { Button, Loading } from '@carbon/react';
|
|
8
|
+
|
|
9
|
+
interface Moh366RegisterProps {}
|
|
10
|
+
const Moh366Register: React.FC<Moh366RegisterProps> = () => {
|
|
11
|
+
const navigate = useNavigate();
|
|
12
|
+
const [patientlist, setPatientList] = useState<any[]>([]);
|
|
13
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
14
|
+
|
|
15
|
+
const [searchParams] = useSearchParams();
|
|
16
|
+
|
|
17
|
+
const startDate = searchParams.get('startDate');
|
|
18
|
+
const endDate = searchParams.get('endDate');
|
|
19
|
+
const locationUuids = searchParams.get('locationUuids');
|
|
20
|
+
const indicator = searchParams.get('indicator');
|
|
21
|
+
const gender = searchParams.get('gender');
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
const fetchData = async () => {
|
|
25
|
+
if (!startDate || !endDate || !locationUuids || !indicator || gender === null) return;
|
|
26
|
+
|
|
27
|
+
setIsLoading(true);
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
const params = {
|
|
31
|
+
startDate,
|
|
32
|
+
endDate,
|
|
33
|
+
locationUuids,
|
|
34
|
+
indicator,
|
|
35
|
+
gender,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const data = await getMoh366PatientList(params);
|
|
39
|
+
|
|
40
|
+
setPatientList(data?.results.results || []);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.error('Failed to fetch register data', error);
|
|
43
|
+
} finally {
|
|
44
|
+
setIsLoading(false);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
fetchData();
|
|
49
|
+
}, [startDate, endDate, locationUuids, indicator, gender]);
|
|
50
|
+
|
|
51
|
+
function navigateBack() {
|
|
52
|
+
navigate('/moh-731');
|
|
53
|
+
}
|
|
54
|
+
return (
|
|
55
|
+
<>
|
|
56
|
+
<div className={styles.buttonContainer}>
|
|
57
|
+
<Button onClick={navigateBack}>Back</Button>
|
|
58
|
+
</div>
|
|
59
|
+
{isLoading && <Loading />}
|
|
60
|
+
<div className={styles.container}>
|
|
61
|
+
<b>Ministry Of Health</b>
|
|
62
|
+
<b>HIV Care Treatment Daily Activity Register MOH 366</b>
|
|
63
|
+
<b>Ver. July 2023</b>
|
|
64
|
+
</div>
|
|
65
|
+
<table className={classNames(styles.table, styles.tableBordered, styles.textCentre)}>
|
|
66
|
+
<thead>
|
|
67
|
+
<tr>
|
|
68
|
+
<th rowSpan={4}>No</th>
|
|
69
|
+
<th colSpan={2} rowSpan={4}>
|
|
70
|
+
Date
|
|
71
|
+
</th>
|
|
72
|
+
<th colSpan={2} rowSpan={4}>
|
|
73
|
+
AMRSID
|
|
74
|
+
</th>
|
|
75
|
+
<th colSpan={3}>National Identification Number</th>
|
|
76
|
+
<th colSpan={3} rowSpan={4}>
|
|
77
|
+
Client CCC Number
|
|
78
|
+
</th>
|
|
79
|
+
<th rowSpan={4}>Age</th>
|
|
80
|
+
<th colSpan={14} className={styles.textCentre}>
|
|
81
|
+
Starting ART
|
|
82
|
+
</th>
|
|
83
|
+
<th colSpan={4} className={styles.textCentre}>
|
|
84
|
+
TB in HIV Care <br />
|
|
85
|
+
(Newly Initiated on ART)
|
|
86
|
+
</th>
|
|
87
|
+
<th colSpan={14} className={styles.textCentre}>
|
|
88
|
+
Currently on ART (Starting and Continuing ART)
|
|
89
|
+
</th>
|
|
90
|
+
<th colSpan={4} className={styles.textCentre}>
|
|
91
|
+
DSD
|
|
92
|
+
</th>
|
|
93
|
+
<th colSpan={4} rowSpan={4} className={styles.textCentre}>
|
|
94
|
+
Remarks
|
|
95
|
+
</th>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<th colSpan={3} rowSpan={3}>
|
|
99
|
+
Client Unique Number (NUPI)
|
|
100
|
+
</th>
|
|
101
|
+
<th colSpan={14} rowSpan={2} className={styles.textCentre}>
|
|
102
|
+
Tick as appropriate for age
|
|
103
|
+
</th>
|
|
104
|
+
<th colSpan={2}>Screened for TB</th>
|
|
105
|
+
<th colSpan={2}>Started TPT</th>
|
|
106
|
+
<th colSpan={14} rowSpan={2} className={styles.textCentre}>
|
|
107
|
+
Indicate No. of months of till next appointment or <br />
|
|
108
|
+
"R"for patients making unscheduled visits
|
|
109
|
+
</th>
|
|
110
|
+
<th colSpan={2}>Status</th>
|
|
111
|
+
<th colSpan={2}>Type</th>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr>
|
|
114
|
+
<th colSpan={4} className={styles.textCentre}>
|
|
115
|
+
Indicate Y/N/NA
|
|
116
|
+
</th>
|
|
117
|
+
<th colSpan={2} rowSpan={2} className={classNames(styles.textCenter, styles.verticalText)}>
|
|
118
|
+
E=Established <br />
|
|
119
|
+
NE=Not Established
|
|
120
|
+
</th>
|
|
121
|
+
<th colSpan={2} rowSpan={2} className={styles.textCentre}>
|
|
122
|
+
C<br />
|
|
123
|
+
FT
|
|
124
|
+
<br />
|
|
125
|
+
HFAG
|
|
126
|
+
<br />
|
|
127
|
+
PFAG
|
|
128
|
+
<br />
|
|
129
|
+
HCAG
|
|
130
|
+
<br />
|
|
131
|
+
PCAG
|
|
132
|
+
<br />
|
|
133
|
+
CP
|
|
134
|
+
<br />
|
|
135
|
+
CADP
|
|
136
|
+
<br />
|
|
137
|
+
IACD
|
|
138
|
+
</th>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>< 1 yrs (M)</th>
|
|
142
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>< 1 yrs (F)</th>
|
|
143
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>1-4 yrs (M)</th>
|
|
144
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>1-4 yrs (F)</th>
|
|
145
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>5-9 yrs (M)</th>
|
|
146
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>5-9 yrs (F)</th>
|
|
147
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>10-14 yrs (M)</th>
|
|
148
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>10-14 yrs (F)</th>
|
|
149
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>15-19 yrs (M)</th>
|
|
150
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>15-19 yrs (F)</th>
|
|
151
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>20-24 yrs(M)</th>
|
|
152
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>20-24 yrs (F)</th>
|
|
153
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>25+ yrs (M)</th>
|
|
154
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>25+ yrs (F)</th>
|
|
155
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>< 15 yrs</th>
|
|
156
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>15+ yrs</th>
|
|
157
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>< 15 yrs</th>
|
|
158
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>15+ yrs</th>
|
|
159
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>< 1 yrs (M)</th>
|
|
160
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>< 1 yrs (F)</th>
|
|
161
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>1-4 yrs (M)</th>
|
|
162
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>1-4 yrs (F)</th>
|
|
163
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>5-9 yrs (M)</th>
|
|
164
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>5-9 yrs (F)</th>
|
|
165
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>10-14 yrs (M)</th>
|
|
166
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>10-14 yrs (F)</th>
|
|
167
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>15-19 yrs (M)</th>
|
|
168
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>15-19 yrs (F)</th>
|
|
169
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>20-24 yrs(M)</th>
|
|
170
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>20-24 yrs (F)</th>
|
|
171
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>25+ yrs (M)</th>
|
|
172
|
+
<th className={classNames(styles.textCenter, styles.verticalText)}>25+ yrs (F)</th>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<th className={styles.textCentre}>(a)</th>
|
|
176
|
+
<th colSpan={2} className={styles.textCentre}>
|
|
177
|
+
(b)
|
|
178
|
+
</th>
|
|
179
|
+
<th colSpan={2} className={styles.textCentre}>
|
|
180
|
+
(c)
|
|
181
|
+
</th>
|
|
182
|
+
<th colSpan={3} className={styles.textCentre}>
|
|
183
|
+
(d)
|
|
184
|
+
</th>
|
|
185
|
+
<th colSpan={3} className={styles.textCentre}>
|
|
186
|
+
(e)
|
|
187
|
+
</th>
|
|
188
|
+
<th className={styles.textCentre}>(f)</th>
|
|
189
|
+
<th className={styles.textCentre}>(g)</th>
|
|
190
|
+
<th className={styles.textCentre}>(h)</th>
|
|
191
|
+
<th className={styles.textCentre}>(i)</th>
|
|
192
|
+
<th className={styles.textCentre}>(j)</th>
|
|
193
|
+
<th className={styles.textCentre}>(k)</th>
|
|
194
|
+
<th className={styles.textCentre}>(l)</th>
|
|
195
|
+
<th className={styles.textCentre}>(m)</th>
|
|
196
|
+
<th className={styles.textCentre}>(n)</th>
|
|
197
|
+
<th className={styles.textCentre}>(o)</th>
|
|
198
|
+
<th className={styles.textCentre}>(q)</th>
|
|
199
|
+
<th className={styles.textCentre}>(r)</th>
|
|
200
|
+
<th className={styles.textCentre}>(s)</th>
|
|
201
|
+
<th className={styles.textCentre}>(t)</th>
|
|
202
|
+
<th className={styles.textCentre}>(u)</th>
|
|
203
|
+
<th className={styles.textCentre}>(v)</th>
|
|
204
|
+
<th className={styles.textCentre}>(w)</th>
|
|
205
|
+
<th className={styles.textCentre}>(x)</th>
|
|
206
|
+
<th className={styles.textCentre}>(y)</th>
|
|
207
|
+
<th className={styles.textCentre}>(z)</th>
|
|
208
|
+
<th className={styles.textCentre}>(aa)</th>
|
|
209
|
+
<th className={styles.textCentre}>(ab)</th>
|
|
210
|
+
<th className={styles.textCentre}>(ac)</th>
|
|
211
|
+
<th className={styles.textCentre}>(ad)</th>
|
|
212
|
+
<th className={styles.textCentre}>(ae)</th>
|
|
213
|
+
<th className={styles.textCentre}>(af)</th>
|
|
214
|
+
<th className={styles.textCentre}>(ag)</th>
|
|
215
|
+
<th className={styles.textCentre}>(ah)</th>
|
|
216
|
+
<th className={styles.textCentre}>(ai)</th>
|
|
217
|
+
<th className={styles.textCentre}>(aj)</th>
|
|
218
|
+
<th className={styles.textCentre}>(ak)</th>
|
|
219
|
+
<th className={styles.textCentre}>(al)</th>
|
|
220
|
+
<th className={styles.textCentre}>(am)</th>
|
|
221
|
+
<th colSpan={2} className={styles.textCentre}>
|
|
222
|
+
(an)
|
|
223
|
+
</th>
|
|
224
|
+
<th colSpan={2} className={styles.textCentre}>
|
|
225
|
+
(ao)
|
|
226
|
+
</th>
|
|
227
|
+
<th colSpan={4} className={styles.textCentre}>
|
|
228
|
+
(ap)
|
|
229
|
+
</th>
|
|
230
|
+
</tr>
|
|
231
|
+
</thead>
|
|
232
|
+
<tbody>
|
|
233
|
+
{patientlist?.map((data, a) => (
|
|
234
|
+
<React.Fragment key={a}>
|
|
235
|
+
<tr>
|
|
236
|
+
<td rowSpan={2}>{a + 1}</td>
|
|
237
|
+
|
|
238
|
+
<td colSpan={2} rowSpan={2}>
|
|
239
|
+
{new Date(data.date).toLocaleDateString('en-GB')}
|
|
240
|
+
</td>
|
|
241
|
+
|
|
242
|
+
<td colSpan={2} rowSpan={2}>
|
|
243
|
+
{data.amrsID}
|
|
244
|
+
</td>
|
|
245
|
+
|
|
246
|
+
<td colSpan={3}>{data.national_id_number}</td>
|
|
247
|
+
|
|
248
|
+
<td colSpan={3} rowSpan={2}>
|
|
249
|
+
{data.ccc_number?.replace('-', '')}
|
|
250
|
+
</td>
|
|
251
|
+
|
|
252
|
+
<td rowSpan={2}>{data.age}</td>
|
|
253
|
+
|
|
254
|
+
{/* Started on ART */}
|
|
255
|
+
<td rowSpan={2}>{data.age < 1 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}</td>
|
|
256
|
+
|
|
257
|
+
<td rowSpan={2}>{data.age < 1 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}</td>
|
|
258
|
+
|
|
259
|
+
<td rowSpan={2}>
|
|
260
|
+
{data.age >= 1 && data.age <= 4 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
261
|
+
</td>
|
|
262
|
+
|
|
263
|
+
<td rowSpan={2}>
|
|
264
|
+
{data.age >= 1 && data.age <= 4 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
265
|
+
</td>
|
|
266
|
+
|
|
267
|
+
<td rowSpan={2}>
|
|
268
|
+
{data.age >= 5 && data.age <= 9 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
269
|
+
</td>
|
|
270
|
+
|
|
271
|
+
<td rowSpan={2}>
|
|
272
|
+
{data.age >= 5 && data.age <= 9 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
273
|
+
</td>
|
|
274
|
+
|
|
275
|
+
<td rowSpan={2}>
|
|
276
|
+
{data.age >= 10 && data.age <= 14 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
277
|
+
</td>
|
|
278
|
+
|
|
279
|
+
<td rowSpan={2}>
|
|
280
|
+
{data.age >= 10 && data.age <= 14 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
281
|
+
</td>
|
|
282
|
+
|
|
283
|
+
<td rowSpan={2}>
|
|
284
|
+
{data.age >= 15 && data.age <= 19 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
285
|
+
</td>
|
|
286
|
+
|
|
287
|
+
<td rowSpan={2}>
|
|
288
|
+
{data.age >= 15 && data.age <= 19 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
289
|
+
</td>
|
|
290
|
+
|
|
291
|
+
<td rowSpan={2}>
|
|
292
|
+
{data.age >= 20 && data.age <= 24 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
293
|
+
</td>
|
|
294
|
+
|
|
295
|
+
<td rowSpan={2}>
|
|
296
|
+
{data.age >= 20 && data.age <= 24 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}
|
|
297
|
+
</td>
|
|
298
|
+
|
|
299
|
+
<td rowSpan={2}>{data.age >= 25 && data.gender === 'M' && (data.started_on_art === 'Y' ? '✓' : '')}</td>
|
|
300
|
+
|
|
301
|
+
<td rowSpan={2}>{data.age >= 25 && data.gender === 'F' && (data.started_on_art === 'Y' ? '✓' : '')}</td>
|
|
302
|
+
|
|
303
|
+
{/* TB Screening */}
|
|
304
|
+
<td rowSpan={2}>{data.age < 15 ? (data.started_on_art === 'Y' ? data.screened_for_tb : 'NA') : ''}</td>
|
|
305
|
+
|
|
306
|
+
<td rowSpan={2}>{data.age >= 15 ? (data.started_on_art === 'Y' ? data.screened_for_tb : 'NA') : ''}</td>
|
|
307
|
+
|
|
308
|
+
{/* TPT */}
|
|
309
|
+
<td rowSpan={2}>{data.age < 15 ? (data.started_on_art === 'Y' ? data.started_on_tpt : 'NA') : ''}</td>
|
|
310
|
+
|
|
311
|
+
<td rowSpan={2}>{data.age >= 15 ? (data.started_on_art === 'Y' ? data.started_on_tpt : 'NA') : ''}</td>
|
|
312
|
+
|
|
313
|
+
{/* Current On ART */}
|
|
314
|
+
<td rowSpan={2}>
|
|
315
|
+
{data.age < 1 && data.gender === 'M'
|
|
316
|
+
? data.revisit
|
|
317
|
+
? data.revisit
|
|
318
|
+
: data.current_on_art > 0
|
|
319
|
+
? data.current_on_art
|
|
320
|
+
: 1
|
|
321
|
+
: ''}
|
|
322
|
+
</td>
|
|
323
|
+
|
|
324
|
+
<td rowSpan={2}>
|
|
325
|
+
{data.age < 1 && data.gender === 'F'
|
|
326
|
+
? data.revisit
|
|
327
|
+
? data.revisit
|
|
328
|
+
: data.current_on_art > 0
|
|
329
|
+
? data.current_on_art
|
|
330
|
+
: 1
|
|
331
|
+
: ''}
|
|
332
|
+
</td>
|
|
333
|
+
|
|
334
|
+
<td rowSpan={2}>
|
|
335
|
+
{data.age >= 1 && data.age <= 4 && data.gender === 'M'
|
|
336
|
+
? data.revisit
|
|
337
|
+
? data.revisit
|
|
338
|
+
: data.current_on_art > 0
|
|
339
|
+
? data.current_on_art
|
|
340
|
+
: 1
|
|
341
|
+
: ''}
|
|
342
|
+
</td>
|
|
343
|
+
|
|
344
|
+
<td rowSpan={2}>
|
|
345
|
+
{data.age >= 1 && data.age <= 4 && data.gender === 'F'
|
|
346
|
+
? data.revisit
|
|
347
|
+
? data.revisit
|
|
348
|
+
: data.current_on_art > 0
|
|
349
|
+
? data.current_on_art
|
|
350
|
+
: 1
|
|
351
|
+
: ''}
|
|
352
|
+
</td>
|
|
353
|
+
|
|
354
|
+
<td rowSpan={2}>
|
|
355
|
+
{data.age >= 5 && data.age <= 9 && data.gender === 'M'
|
|
356
|
+
? data.revisit
|
|
357
|
+
? data.revisit
|
|
358
|
+
: data.current_on_art > 0
|
|
359
|
+
? data.current_on_art
|
|
360
|
+
: 1
|
|
361
|
+
: ''}
|
|
362
|
+
</td>
|
|
363
|
+
|
|
364
|
+
<td rowSpan={2}>
|
|
365
|
+
{data.age >= 5 && data.age <= 9 && data.gender === 'F'
|
|
366
|
+
? data.revisit
|
|
367
|
+
? data.revisit
|
|
368
|
+
: data.current_on_art > 0
|
|
369
|
+
? data.current_on_art
|
|
370
|
+
: 1
|
|
371
|
+
: ''}
|
|
372
|
+
</td>
|
|
373
|
+
|
|
374
|
+
<td rowSpan={2}>
|
|
375
|
+
{data.age >= 10 && data.age <= 14 && data.gender === 'M'
|
|
376
|
+
? data.revisit
|
|
377
|
+
? data.revisit
|
|
378
|
+
: data.current_on_art > 0
|
|
379
|
+
? data.current_on_art
|
|
380
|
+
: 1
|
|
381
|
+
: ''}
|
|
382
|
+
</td>
|
|
383
|
+
|
|
384
|
+
<td rowSpan={2}>
|
|
385
|
+
{data.age >= 10 && data.age <= 14 && data.gender === 'F'
|
|
386
|
+
? data.revisit
|
|
387
|
+
? data.revisit
|
|
388
|
+
: data.current_on_art > 0
|
|
389
|
+
? data.current_on_art
|
|
390
|
+
: 1
|
|
391
|
+
: ''}
|
|
392
|
+
</td>
|
|
393
|
+
|
|
394
|
+
<td rowSpan={2}>
|
|
395
|
+
{data.age >= 15 && data.age <= 19 && data.gender === 'M'
|
|
396
|
+
? data.revisit
|
|
397
|
+
? data.revisit
|
|
398
|
+
: data.current_on_art > 0
|
|
399
|
+
? data.current_on_art
|
|
400
|
+
: 1
|
|
401
|
+
: ''}
|
|
402
|
+
</td>
|
|
403
|
+
|
|
404
|
+
<td rowSpan={2}>
|
|
405
|
+
{data.age >= 15 && data.age <= 19 && data.gender === 'F'
|
|
406
|
+
? data.revisit
|
|
407
|
+
? data.revisit
|
|
408
|
+
: data.current_on_art > 0
|
|
409
|
+
? data.current_on_art
|
|
410
|
+
: 1
|
|
411
|
+
: ''}
|
|
412
|
+
</td>
|
|
413
|
+
|
|
414
|
+
<td rowSpan={2}>
|
|
415
|
+
{data.age >= 20 && data.age <= 24 && data.gender === 'M'
|
|
416
|
+
? data.revisit
|
|
417
|
+
? data.revisit
|
|
418
|
+
: data.current_on_art > 0
|
|
419
|
+
? data.current_on_art
|
|
420
|
+
: 1
|
|
421
|
+
: ''}
|
|
422
|
+
</td>
|
|
423
|
+
|
|
424
|
+
<td rowSpan={2}>
|
|
425
|
+
{data.age >= 20 && data.age <= 24 && data.gender === 'F'
|
|
426
|
+
? data.revisit
|
|
427
|
+
? data.revisit
|
|
428
|
+
: data.current_on_art > 0
|
|
429
|
+
? data.current_on_art
|
|
430
|
+
: 1
|
|
431
|
+
: ''}
|
|
432
|
+
</td>
|
|
433
|
+
|
|
434
|
+
<td rowSpan={2}>
|
|
435
|
+
{data.age >= 25 && data.gender === 'M'
|
|
436
|
+
? data.revisit
|
|
437
|
+
? data.revisit
|
|
438
|
+
: data.current_on_art > 0
|
|
439
|
+
? data.current_on_art
|
|
440
|
+
: 1
|
|
441
|
+
: ''}
|
|
442
|
+
</td>
|
|
443
|
+
|
|
444
|
+
<td rowSpan={2}>
|
|
445
|
+
{data.age >= 25 && data.gender === 'F'
|
|
446
|
+
? data.revisit
|
|
447
|
+
? data.revisit
|
|
448
|
+
: data.current_on_art > 0
|
|
449
|
+
? data.current_on_art
|
|
450
|
+
: 1
|
|
451
|
+
: ''}
|
|
452
|
+
</td>
|
|
453
|
+
|
|
454
|
+
<td colSpan={2} rowSpan={2}>
|
|
455
|
+
{data.dsd_status}
|
|
456
|
+
</td>
|
|
457
|
+
|
|
458
|
+
<td colSpan={2} rowSpan={2}>
|
|
459
|
+
{data.dsd_type}
|
|
460
|
+
</td>
|
|
461
|
+
|
|
462
|
+
<td colSpan={4} rowSpan={2}>
|
|
463
|
+
{data.remarks}
|
|
464
|
+
</td>
|
|
465
|
+
</tr>
|
|
466
|
+
|
|
467
|
+
<tr>
|
|
468
|
+
<td colSpan={3}>{data.NUPI}</td>
|
|
469
|
+
</tr>
|
|
470
|
+
</React.Fragment>
|
|
471
|
+
))}
|
|
472
|
+
</tbody>
|
|
473
|
+
</table>
|
|
474
|
+
</>
|
|
475
|
+
);
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
export default Moh366Register;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
.table {
|
|
3
|
+
border: 2px solid #000;
|
|
4
|
+
margin: 2rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.tableBordered td,
|
|
8
|
+
.tableBordered th {
|
|
9
|
+
border: 1px solid black;
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
font-size: small;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.verticalText {
|
|
15
|
+
writing-mode: vertical-rl;
|
|
16
|
+
transform: rotate(180deg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.center {
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
.textCentre {
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.container {
|
|
29
|
+
display: flex;
|
|
30
|
+
font-weight: bold;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
margin: 2rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.bold {
|
|
36
|
+
font-weight: bolder;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.right {
|
|
40
|
+
text-align: right;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.buttonContainer {
|
|
44
|
+
margin: 2rem;
|
|
45
|
+
}
|