@ampath/esm-reports-app 1.0.0-next.96 → 1.0.0-next.98
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/998.css +1 -1
- package/dist/998.css.map +1 -1
- package/dist/998.js +1 -1
- package/dist/998.js.map +1 -1
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/reports/moh-505/moh-505.component.tsx +288 -330
- package/src/reports/moh-505/moh-505.scss +14 -0
- package/src/reports/moh-710/moh-710.component.tsx +7 -7
- package/src/reports/moh-711/registers/moh-333-register.component.tsx +3 -3
- package/src/reports/moh-711/registers/moh-333.columns.ts +1 -1
- package/src/resources/moh-505.resource.ts +9 -2
|
@@ -175,9 +175,7 @@ const Moh710Report: React.FC = () => {
|
|
|
175
175
|
</tr>
|
|
176
176
|
<tr>
|
|
177
177
|
<td>OPV Birth doses Administered</td>
|
|
178
|
-
<td onClick={() => navigateTo510Register('
|
|
179
|
-
{moh710Data.opv_vaccine_age_less_than_1yr}
|
|
180
|
-
</td>
|
|
178
|
+
<td onClick={() => navigateTo510Register('opv_birth_doses')}>{moh710Data.opv_birth_doses}</td>
|
|
181
179
|
<td onClick={() => navigateTo510Register('opv_vaccine_age_greater_than_1yr')}>
|
|
182
180
|
{moh710Data.opv_vaccine_age_greater_than_1yr}
|
|
183
181
|
</td>
|
|
@@ -328,12 +326,12 @@ const Moh710Report: React.FC = () => {
|
|
|
328
326
|
</tr>
|
|
329
327
|
<tr>
|
|
330
328
|
<td>Measles-Rubella 1 doses Administered</td>
|
|
331
|
-
<td onClick={() => navigateTo510Register('measles_vaccine_age_greater_than_1yr')}>
|
|
332
|
-
{moh710Data.measles_vaccine_age_greater_than_1yr}
|
|
333
|
-
</td>
|
|
334
329
|
<td onClick={() => navigateTo510Register('measles_vaccine_age_less_than_1yr')}>
|
|
335
330
|
{moh710Data.measles_vaccine_age_less_than_1yr}
|
|
336
331
|
</td>
|
|
332
|
+
<td onClick={() => navigateTo510Register('measles_vaccine_age_greater_than_1yr')}>
|
|
333
|
+
{moh710Data.measles_vaccine_age_greater_than_1yr}
|
|
334
|
+
</td>
|
|
337
335
|
</tr>
|
|
338
336
|
<tr>
|
|
339
337
|
<td>Typhoid Conjugate Vaccine (TCV) doses Administered</td>
|
|
@@ -346,7 +344,9 @@ const Moh710Report: React.FC = () => {
|
|
|
346
344
|
</tr>
|
|
347
345
|
<tr>
|
|
348
346
|
<td>Fully Immunized Children(FIC) under 1 year</td>
|
|
349
|
-
<td
|
|
347
|
+
<td onClick={() => navigateTo510Register('fully_immunized_children')}>
|
|
348
|
+
{moh710Data.fully_immunized_children}
|
|
349
|
+
</td>
|
|
350
350
|
<td></td>
|
|
351
351
|
</tr>
|
|
352
352
|
</tbody>
|
|
@@ -626,7 +626,7 @@ const Moh333Register: React.FC = () => {
|
|
|
626
626
|
: ''}
|
|
627
627
|
</td>
|
|
628
628
|
|
|
629
|
-
<td>{row.
|
|
629
|
+
<td>{row.hiv_results}</td>
|
|
630
630
|
|
|
631
631
|
<td rowSpan={2}>{row.maternal_haart}</td>
|
|
632
632
|
<td rowSpan={2}>{row.infant_prophylaxis}</td>
|
|
@@ -643,7 +643,7 @@ const Moh333Register: React.FC = () => {
|
|
|
643
643
|
<td rowSpan={2}>{row.referrals_from}</td>
|
|
644
644
|
<td rowSpan={2}>{row.referrals_to}</td>
|
|
645
645
|
<td rowSpan={2}>{row.reasons_for_refferal}</td>
|
|
646
|
-
<td rowSpan={2}>{row.
|
|
646
|
+
<td rowSpan={2}>{row.remarks}</td>
|
|
647
647
|
</tr>
|
|
648
648
|
|
|
649
649
|
<tr>
|
|
@@ -660,7 +660,7 @@ const Moh333Register: React.FC = () => {
|
|
|
660
660
|
<td>{row.kangaroo_mother_care}</td>
|
|
661
661
|
<td>{row.type_of_deformity}</td>
|
|
662
662
|
<td>{row.rpr_vdrl_duo_results}</td>
|
|
663
|
-
<td>{row.
|
|
663
|
+
<td>{row.hiv_test_type}</td>
|
|
664
664
|
</tr>
|
|
665
665
|
</React.Fragment>
|
|
666
666
|
))
|
|
@@ -8,7 +8,7 @@ import { type RegisterColumn } from '../../../common/report-register';
|
|
|
8
8
|
* their field names rather than headings borrowed from neighbouring columns.
|
|
9
9
|
*/
|
|
10
10
|
export const moh333ExportColumns: RegisterColumn[] = [
|
|
11
|
-
{ header: 'Date of Admission (dd/mm/yyyy)', value: (row) => row.
|
|
11
|
+
{ header: 'Date of Admission (dd/mm/yyyy)', value: (row) => row.admission_date ?? '' },
|
|
12
12
|
{ header: 'AMRSID', value: (row) => row.amrsID ?? '' },
|
|
13
13
|
{ header: 'Admission number (yyyy-mm-nnnn) - NUPI', value: (row) => row.admission_number ?? '' },
|
|
14
14
|
{ header: 'Full Name (First, Middle, surname)', value: (row) => row.full_names ?? '' },
|
|
@@ -18,6 +18,13 @@ interface Moh505Response {
|
|
|
18
18
|
result: Array<Record<string, unknown>>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* The ETL server validates the OpenMRS session cookie (JSESSIONID), so every
|
|
23
|
+
* request must carry it. `credentials: 'include'` keeps same-origin proxies
|
|
24
|
+
* working and is required when the ETL base URL is another origin.
|
|
25
|
+
*/
|
|
26
|
+
const WITH_SESSION_COOKIE = { credentials: 'include' as RequestCredentials };
|
|
27
|
+
|
|
21
28
|
export async function getMoh505(params: Moh505Params): Promise<Array<Record<string, unknown>>> {
|
|
22
29
|
const url = await buildEtlUrl('moh-505', {
|
|
23
30
|
locationUuids: params.locationUuids || '',
|
|
@@ -25,7 +32,7 @@ export async function getMoh505(params: Moh505Params): Promise<Array<Record<stri
|
|
|
25
32
|
endDate: params.endDate || '',
|
|
26
33
|
});
|
|
27
34
|
try {
|
|
28
|
-
const response = await openmrsFetch(url);
|
|
35
|
+
const response = await openmrsFetch(url, WITH_SESSION_COOKIE);
|
|
29
36
|
|
|
30
37
|
if (!response.ok) {
|
|
31
38
|
const errorText = await response.text();
|
|
@@ -53,7 +60,7 @@ export async function getMoh505PatientList(params: PatientListParams): Promise<P
|
|
|
53
60
|
...pageParams(params),
|
|
54
61
|
});
|
|
55
62
|
try {
|
|
56
|
-
const response = await openmrsFetch(url);
|
|
63
|
+
const response = await openmrsFetch(url, WITH_SESSION_COOKIE);
|
|
57
64
|
|
|
58
65
|
if (!response.ok) {
|
|
59
66
|
const errorText = await response.text();
|