@ampath/esm-reports-app 1.0.0-next.83 → 1.0.0-next.84
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/410.js +1 -1
- package/dist/866.css +1 -0
- package/dist/866.css.map +1 -0
- package/dist/866.js +1 -0
- package/dist/866.js.map +1 -0
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/common/report-filters/report-filters.component.tsx +2 -0
- package/src/common/report-filters/report-filters.scss +5 -0
- package/src/common/report-filters/types.ts +4 -0
- package/src/registers/register-catalog.ts +50 -1
- package/src/reports/moh-705B/moh-204b-register.component.tsx +102 -30
- package/src/reports/moh-705B/moh-705b.component.tsx +1 -1
- package/src/reports/moh-705a/moh-705a.component.tsx +1 -1
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +108 -35
- package/src/reports/moh-717/moh-717.component.tsx +6 -1
- package/src/reports/moh-717/moh717.scss +10 -0
- package/src/reports/moh-717/registers/moh-209-register.component.tsx +159 -0
- package/src/reports/moh-717/registers/moh-209.columns.ts +30 -0
- package/src/reports/moh-717/sections/special-services.component.tsx +63 -9
- package/src/resources/moh-705.resource.ts +6 -2
- package/src/resources/moh-717.resource.ts +31 -0
- package/src/resources/patient-list-page.ts +1 -1
- package/src/root.component.tsx +2 -0
- package/dist/544.css +0 -1
- package/dist/544.css.map +0 -1
- package/dist/544.js +0 -1
- package/dist/544.js.map +0 -1
|
@@ -141,6 +141,16 @@ $gap: 3mm;
|
|
|
141
141
|
text-align: left;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
.registerDrilldown {
|
|
145
|
+
padding: 0;
|
|
146
|
+
font: inherit;
|
|
147
|
+
color: inherit;
|
|
148
|
+
text-decoration: underline;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
background: transparent;
|
|
151
|
+
border: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
/* The inpatient block turns its column headings on their side to fit */
|
|
145
155
|
|
|
146
156
|
.rotateUp {
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Select, SelectItem } from '@carbon/react';
|
|
3
|
+
import { useSearchParams } from 'react-router-dom';
|
|
4
|
+
import { useSession } from '@openmrs/esm-framework';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
|
|
7
|
+
import styles from '../../../common/report-register/register-table.scss';
|
|
8
|
+
import { RegisterLayout, usePatientList } from '../../../common/report-register';
|
|
9
|
+
import { ReportFiltersComponent, type ReportPeriod } from '../../../common/report-filters';
|
|
10
|
+
import { getMoh209PatientList } from '../../../resources/moh-717.resource';
|
|
11
|
+
import { moh209ExportColumns, moh209SubHeaders } from './moh-209.columns';
|
|
12
|
+
|
|
13
|
+
const examinationOptions = [
|
|
14
|
+
{ value: 'plain_xray_without_enhancement', text: 'Plain X-rays without contrast enhancement' },
|
|
15
|
+
{ value: 'contrast_enhancement_examination', text: 'Contrast enhanced examination' },
|
|
16
|
+
{ value: 'magnetic_resonance_imaging', text: 'Magnetic resonance imaging' },
|
|
17
|
+
{ value: 'computerized_tomography', text: 'Computerized tomography' },
|
|
18
|
+
{ value: 'mammography', text: 'Mammography' },
|
|
19
|
+
{ value: 'chest_xray_for_ptb', text: 'Chest X-ray for PTB' },
|
|
20
|
+
{ value: 'general_ultrasound', text: 'General ultrasound' },
|
|
21
|
+
{ value: 'obstetric_ultrasound', text: 'Obstetric ultrasound' },
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
const Moh209RegisterComponent: React.FC = () => {
|
|
25
|
+
const [searchParams, setSearchParams] = useSearchParams();
|
|
26
|
+
const session = useSession();
|
|
27
|
+
const from = searchParams.get('from');
|
|
28
|
+
const isDrilldown = Boolean(from);
|
|
29
|
+
const [selectedIndicator, setSelectedIndicator] = useState(() => searchParams.get('indicator') ?? '');
|
|
30
|
+
const [generatedIndicator, setGeneratedIndicator] = useState(() => searchParams.get('indicator') ?? '');
|
|
31
|
+
const [generatedPeriod, setGeneratedPeriod] = useState<{ startDate: string; endDate: string } | null>(() => {
|
|
32
|
+
const startDate = searchParams.get('startDate');
|
|
33
|
+
const endDate = searchParams.get('endDate');
|
|
34
|
+
return !isDrilldown && startDate && endDate ? { startDate, endDate } : null;
|
|
35
|
+
});
|
|
36
|
+
const isGenerated = isDrilldown || Boolean(generatedPeriod);
|
|
37
|
+
|
|
38
|
+
const startDate = generatedPeriod?.startDate ?? searchParams.get('startDate');
|
|
39
|
+
const endDate = generatedPeriod?.endDate ?? searchParams.get('endDate');
|
|
40
|
+
const locationUuids = searchParams.get('locationUuids') ?? session?.sessionLocation?.uuid ?? '';
|
|
41
|
+
const indicator = generatedIndicator;
|
|
42
|
+
|
|
43
|
+
const generate = ({ startDate, endDate }: ReportPeriod) => {
|
|
44
|
+
setGeneratedPeriod({ startDate, endDate });
|
|
45
|
+
setGeneratedIndicator(selectedIndicator);
|
|
46
|
+
setSearchParams((currentParams) => {
|
|
47
|
+
const nextParams = new URLSearchParams(currentParams);
|
|
48
|
+
nextParams.set('startDate', startDate);
|
|
49
|
+
nextParams.set('endDate', endDate);
|
|
50
|
+
if (selectedIndicator) {
|
|
51
|
+
nextParams.set('indicator', selectedIndicator);
|
|
52
|
+
} else {
|
|
53
|
+
nextParams.delete('indicator');
|
|
54
|
+
}
|
|
55
|
+
if (!nextParams.has('locationUuids') && locationUuids) {
|
|
56
|
+
nextParams.set('locationUuids', locationUuids);
|
|
57
|
+
}
|
|
58
|
+
return nextParams;
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const { rows, total, isTotalExact, isLoading, page, pageSize, onPageChange, fetchAll } = usePatientList(
|
|
63
|
+
({ startIndex, limit }) => {
|
|
64
|
+
if ((!isDrilldown && !generatedPeriod) || !startDate || !endDate || !locationUuids || (isDrilldown && !indicator)) {
|
|
65
|
+
return Promise.resolve({ results: [], total: 0, isTotalExact: true });
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return getMoh209PatientList({
|
|
69
|
+
startDate,
|
|
70
|
+
endDate,
|
|
71
|
+
locationUuids,
|
|
72
|
+
indicator,
|
|
73
|
+
startIndex,
|
|
74
|
+
limit,
|
|
75
|
+
from,
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
[startDate, endDate, locationUuids, indicator, from, isDrilldown, generatedPeriod],
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<>
|
|
83
|
+
{!isDrilldown && (
|
|
84
|
+
<ReportFiltersComponent
|
|
85
|
+
reportName="MOH 209 Radiology Register"
|
|
86
|
+
mode="range"
|
|
87
|
+
onGenerate={generate}
|
|
88
|
+
isLoading={isLoading}
|
|
89
|
+
isReportGenerated={Boolean(generatedPeriod)}
|
|
90
|
+
generatedPeriod={generatedPeriod ?? undefined}
|
|
91
|
+
backLink={{ label: 'All registers', to: '/?tab=registers' }}
|
|
92
|
+
additionalFilters={
|
|
93
|
+
<Select
|
|
94
|
+
id="moh-209-examination-type"
|
|
95
|
+
labelText="Type of examination"
|
|
96
|
+
size="sm"
|
|
97
|
+
value={selectedIndicator}
|
|
98
|
+
onChange={(event) => setSelectedIndicator(event.target.value)}
|
|
99
|
+
>
|
|
100
|
+
<SelectItem value="" text="All Indicators" />
|
|
101
|
+
{examinationOptions.map((option) => (
|
|
102
|
+
<SelectItem key={option.value} value={option.value} text={option.text} />
|
|
103
|
+
))}
|
|
104
|
+
</Select>
|
|
105
|
+
}
|
|
106
|
+
/>
|
|
107
|
+
)}
|
|
108
|
+
|
|
109
|
+
<RegisterLayout
|
|
110
|
+
parentLabel={isDrilldown ? 'MOH-717 Report' : 'All registers'}
|
|
111
|
+
parentPath={isDrilldown ? '/moh-717' : '/?tab=registers'}
|
|
112
|
+
title="MOH 209 Radiology Register"
|
|
113
|
+
heading="MOH 209 Radiology Register"
|
|
114
|
+
isLoading={isLoading}
|
|
115
|
+
isEmpty={isGenerated && rows.length === 0}
|
|
116
|
+
page={page}
|
|
117
|
+
pageSize={pageSize}
|
|
118
|
+
total={total}
|
|
119
|
+
isTotalExact={isTotalExact}
|
|
120
|
+
onPageChange={onPageChange}
|
|
121
|
+
fetchAll={isGenerated ? fetchAll : undefined}
|
|
122
|
+
columns={moh209ExportColumns}
|
|
123
|
+
subHeaders={moh209SubHeaders}
|
|
124
|
+
>
|
|
125
|
+
<div className={styles.tableContainer}>
|
|
126
|
+
<table className={classNames(styles.table, styles.tableBordered, styles.tableStriped)}>
|
|
127
|
+
<thead>
|
|
128
|
+
<tr>
|
|
129
|
+
{moh209ExportColumns.map((column) => (
|
|
130
|
+
<th key={column.header} scope="col">
|
|
131
|
+
{column.header}
|
|
132
|
+
</th>
|
|
133
|
+
))}
|
|
134
|
+
</tr>
|
|
135
|
+
<tr>
|
|
136
|
+
{moh209SubHeaders.map((header) => (
|
|
137
|
+
<th key={header} scope="col">
|
|
138
|
+
{header}
|
|
139
|
+
</th>
|
|
140
|
+
))}
|
|
141
|
+
</tr>
|
|
142
|
+
</thead>
|
|
143
|
+
<tbody>
|
|
144
|
+
{rows.map((row, rowIndex) => (
|
|
145
|
+
<tr key={row.encounter_id ?? `${row.person_id ?? 'patient'}-${rowIndex}`}>
|
|
146
|
+
{moh209ExportColumns.map((column) => (
|
|
147
|
+
<td key={column.header}>{String(column.value(row, rowIndex) ?? '')}</td>
|
|
148
|
+
))}
|
|
149
|
+
</tr>
|
|
150
|
+
))}
|
|
151
|
+
</tbody>
|
|
152
|
+
</table>
|
|
153
|
+
</div>
|
|
154
|
+
</RegisterLayout>
|
|
155
|
+
</>
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export default Moh209RegisterComponent;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type RegisterColumn } from '../../../common/report-register';
|
|
2
|
+
|
|
3
|
+
/** MOH 209 Radiology Register columns, in the order printed on the form. */
|
|
4
|
+
export const moh209ExportColumns: RegisterColumn[] = [
|
|
5
|
+
{ header: 'Date', value: (row) => row.date ?? '' },
|
|
6
|
+
{ header: 'OPD/IP No', value: (row) => row.opd_ip_number ?? '', text: true },
|
|
7
|
+
{ header: 'Radiology Number', value: (row) => row.radiology_number ?? '', text: true },
|
|
8
|
+
{ header: 'Full Name', value: (row) => row.full_names ?? '' },
|
|
9
|
+
{ header: 'Age', value: (row) => row.age ?? '' },
|
|
10
|
+
{ header: 'Sex', value: (row) => row.sex ?? '' },
|
|
11
|
+
{ header: 'Residence (Village/Estate/Landmark)', value: (row) => row.residence_village_estate_landmark ?? '' },
|
|
12
|
+
{ header: 'Telephone Number', value: (row) => row.telephone_number ?? '', text: true },
|
|
13
|
+
{ header: 'Client referred from', value: (row) => row.client_referred_from ?? '' },
|
|
14
|
+
{ header: 'Previous Report', value: (row) => row.previous_report ?? '' },
|
|
15
|
+
{ header: 'Type of Examination', value: (row) => row.type_of_examination ?? '' },
|
|
16
|
+
{ header: 'Provisional diagnosis', value: (row) => row.provisional_diagnosis ?? '', wrap: true },
|
|
17
|
+
{ header: 'Receiving Radiotherapy (Y/N)', value: (row) => row.receiving_radiotherapy ?? '' },
|
|
18
|
+
{ header: 'Receiving interventional radiology (Y/N)', value: (row) => row.receiving_interventional_radiology ?? '' },
|
|
19
|
+
{ header: 'Current Report', value: (row) => row.current_report ?? '', wrap: true },
|
|
20
|
+
{ header: 'Referrals: 1=From Other HF 2=To Other HF', value: (row) => row.referral_direction ?? '' },
|
|
21
|
+
{ header: 'Reason(s) for referral', value: (row) => row.referral_reason ?? '', wrap: true },
|
|
22
|
+
{ header: 'Size of Film/recording plate', value: (row) => row.film_recording_plate_size ?? '' },
|
|
23
|
+
{ header: 'Amount charged', value: (row) => row.amount_charged ?? '' },
|
|
24
|
+
{ header: 'Receipt number', value: (row) => row.receipt_number ?? '', text: true },
|
|
25
|
+
{ header: 'Name of Requesting clinician', value: (row) => row.requesting_clinician ?? '' },
|
|
26
|
+
{ header: 'Name of Radiographer', value: (row) => row.radiographer_name ?? '' },
|
|
27
|
+
{ header: 'Name of Radiologist', value: (row) => row.radiologist_name ?? '' },
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export const moh209SubHeaders = Array.from({ length: 23 }, (_, index) => String.fromCharCode(65 + index));
|
|
@@ -1,13 +1,46 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useNavigate } from 'react-router-dom';
|
|
2
3
|
|
|
3
4
|
import styles from '../moh717.scss';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
|
|
6
7
|
interface SpecialServicesComponentProps {
|
|
7
8
|
moh717ReportData: any;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
locationUuid: string;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
const SpecialServicesComponent: React.FC<SpecialServicesComponentProps> = ({
|
|
14
|
+
const SpecialServicesComponent: React.FC<SpecialServicesComponentProps> = ({
|
|
15
|
+
moh717ReportData,
|
|
16
|
+
startDate,
|
|
17
|
+
endDate,
|
|
18
|
+
locationUuid,
|
|
19
|
+
}) => {
|
|
20
|
+
const navigate = useNavigate();
|
|
21
|
+
const radiologyRegisterCell = (indicator: string, label: string, value: unknown, rowSpan?: number) => (
|
|
22
|
+
<td rowSpan={rowSpan}>
|
|
23
|
+
<button
|
|
24
|
+
type="button"
|
|
25
|
+
className={styles.registerDrilldown}
|
|
26
|
+
aria-label={`Open MOH 209 register for ${label}`}
|
|
27
|
+
onClick={() => {
|
|
28
|
+
const query = new URLSearchParams({
|
|
29
|
+
startDate,
|
|
30
|
+
endDate,
|
|
31
|
+
locationUuids: locationUuid,
|
|
32
|
+
indicator,
|
|
33
|
+
label,
|
|
34
|
+
from: 'moh-717',
|
|
35
|
+
});
|
|
36
|
+
navigate(`/moh-209-register?${query.toString()}`);
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
{value == null ? '' : String(value)}
|
|
40
|
+
</button>
|
|
41
|
+
</td>
|
|
42
|
+
);
|
|
43
|
+
|
|
11
44
|
return (
|
|
12
45
|
<>
|
|
13
46
|
<table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
|
|
@@ -44,33 +77,54 @@ const SpecialServicesComponent: React.FC<SpecialServicesComponentProps> = ({ moh
|
|
|
44
77
|
</tr>
|
|
45
78
|
<tr>
|
|
46
79
|
<td rowSpan={5}>Plain X-Rays without contrast enhancement</td>
|
|
47
|
-
|
|
80
|
+
{radiologyRegisterCell(
|
|
81
|
+
'plain_xray_without_enhancement',
|
|
82
|
+
'plain X-rays without contrast enhancement',
|
|
83
|
+
moh717ReportData.plain_xray_without_enhancement,
|
|
84
|
+
5,
|
|
85
|
+
)}
|
|
48
86
|
<td>Contrast enhanced examinations</td>
|
|
49
|
-
|
|
87
|
+
{radiologyRegisterCell(
|
|
88
|
+
'contrast_enhancement_examination',
|
|
89
|
+
'contrast enhanced examinations',
|
|
90
|
+
moh717ReportData.contrast_enhancement_examination,
|
|
91
|
+
)}
|
|
50
92
|
</tr>
|
|
51
93
|
<tr>
|
|
52
94
|
<td>Magnetic Resonance Imaging</td>
|
|
53
|
-
|
|
95
|
+
{radiologyRegisterCell(
|
|
96
|
+
'magnetic_resonance_imaging',
|
|
97
|
+
'magnetic resonance imaging',
|
|
98
|
+
moh717ReportData.magnetic_resonance_imaging,
|
|
99
|
+
)}
|
|
54
100
|
</tr>
|
|
55
101
|
<tr>
|
|
56
102
|
<td>Computarized Tomography</td>
|
|
57
|
-
|
|
103
|
+
{radiologyRegisterCell(
|
|
104
|
+
'computerized_tomography',
|
|
105
|
+
'computerized tomography',
|
|
106
|
+
moh717ReportData.computerized_tomography,
|
|
107
|
+
)}
|
|
58
108
|
</tr>
|
|
59
109
|
<tr>
|
|
60
110
|
<td>Mammography</td>
|
|
61
|
-
|
|
111
|
+
{radiologyRegisterCell('mammography', 'mammography', moh717ReportData.mammography)}
|
|
62
112
|
</tr>
|
|
63
113
|
<tr>
|
|
64
114
|
<td>Chest x-ray for PTB with specialist's report</td>
|
|
65
|
-
|
|
115
|
+
{radiologyRegisterCell('chest_xray_for_ptb', 'chest X-ray for PTB', moh717ReportData.chest_xray_for_ptb)}
|
|
66
116
|
</tr>
|
|
67
117
|
<tr>
|
|
68
118
|
<td>C.3</td>
|
|
69
119
|
<td>Number of ultrasound examinations</td>
|
|
70
120
|
<td>General ultrasound</td>
|
|
71
|
-
|
|
121
|
+
{radiologyRegisterCell('general_ultrasound', 'general ultrasound', moh717ReportData.general_ultrasound)}
|
|
72
122
|
<td>Obstetric ultrasound</td>
|
|
73
|
-
|
|
123
|
+
{radiologyRegisterCell(
|
|
124
|
+
'obstetric_ultrasound',
|
|
125
|
+
'obstetric ultrasound',
|
|
126
|
+
moh717ReportData.obstetric_ultrasound,
|
|
127
|
+
)}
|
|
74
128
|
</tr>
|
|
75
129
|
<tr>
|
|
76
130
|
<td>C.4</td>
|
|
@@ -15,6 +15,10 @@ interface Moh710Params {
|
|
|
15
15
|
indicator?: string | string[];
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
type Moh705PatientListParams = Omit<PatientListParams, 'indicator'> & {
|
|
19
|
+
indicator?: string | string[];
|
|
20
|
+
};
|
|
21
|
+
|
|
18
22
|
export async function getMoh705a(params: Moh710Params): Promise<any> {
|
|
19
23
|
const url = await buildEtlUrl('moh-705a', {
|
|
20
24
|
locationUuids: params.locationUuids || '',
|
|
@@ -36,7 +40,7 @@ export async function getMoh705a(params: Moh710Params): Promise<any> {
|
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
export async function getMoh705aPatientList(params:
|
|
43
|
+
export async function getMoh705aPatientList(params: Moh705PatientListParams): Promise<PatientListPage> {
|
|
40
44
|
const endPoint = (() => {
|
|
41
45
|
if (params.from && params.from?.toLowerCase() === "moh-717") {
|
|
42
46
|
return "moh-717-patient-list";
|
|
@@ -87,7 +91,7 @@ export async function getMoh705b(params: Moh710Params): Promise<any> {
|
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
export async function getMoh705bPatientList(params:
|
|
94
|
+
export async function getMoh705bPatientList(params: Moh705PatientListParams): Promise<PatientListPage> {
|
|
91
95
|
const endPoint = (() => {
|
|
92
96
|
if (params.from && params.from?.toLowerCase() === "moh-717") {
|
|
93
97
|
return "moh-717-patient-list";
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { openmrsFetch } from '@openmrs/esm-framework';
|
|
2
2
|
import { buildEtlUrl } from '../utils/get-base-url';
|
|
3
|
+
import {
|
|
4
|
+
PAGE_SIZE,
|
|
5
|
+
pageParams,
|
|
6
|
+
toPatientListPage,
|
|
7
|
+
type PatientListPage,
|
|
8
|
+
type PatientListParams,
|
|
9
|
+
} from './patient-list-page';
|
|
3
10
|
|
|
4
11
|
interface Moh717Params {
|
|
5
12
|
locationUuids: string;
|
|
@@ -50,3 +57,27 @@ export async function getNutritionRegister(params: Moh717Params): Promise<any> {
|
|
|
50
57
|
throw new Error(`An error occurred while fetching the MOH-717 report: ${error.message}`);
|
|
51
58
|
}
|
|
52
59
|
}
|
|
60
|
+
|
|
61
|
+
export async function getMoh209PatientList(params: PatientListParams): Promise<PatientListPage> {
|
|
62
|
+
const url = await buildEtlUrl('moh-717-patient-list', {
|
|
63
|
+
locationUuids: params.locationUuids || '',
|
|
64
|
+
startDate: params.startDate || '',
|
|
65
|
+
endDate: params.endDate || '',
|
|
66
|
+
indicator: params.indicator || '',
|
|
67
|
+
...pageParams(params),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
try {
|
|
71
|
+
const response = await openmrsFetch(url);
|
|
72
|
+
|
|
73
|
+
if (!response.ok) {
|
|
74
|
+
const errorText = await response.text();
|
|
75
|
+
throw new Error(`Failed to fetch MOH 209 patient list: ${response.status} - ${errorText}`);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const data = await response.json();
|
|
79
|
+
return toPatientListPage(data, params.startIndex ?? 0, params.limit ?? PAGE_SIZE);
|
|
80
|
+
} catch (error: any) {
|
|
81
|
+
throw new Error(`An error occurred while fetching the MOH 209 radiology register: ${error.message}`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -25,7 +25,7 @@ export interface PatientListPage {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/** The paging arguments every patient-list endpoint takes */
|
|
28
|
-
export function pageParams(params: PatientListParams) {
|
|
28
|
+
export function pageParams(params: Pick<PatientListParams, 'startIndex' | 'limit'>) {
|
|
29
29
|
return {
|
|
30
30
|
startIndex: String(params.startIndex ?? 0),
|
|
31
31
|
limit: String(params.limit ?? PAGE_SIZE),
|
package/src/root.component.tsx
CHANGED
|
@@ -13,6 +13,7 @@ import Moh745Component from './reports/moh-745/moh-745.component';
|
|
|
13
13
|
import Moh740Report from './reports/moh-740/moh-740.component';
|
|
14
14
|
import Moh204ARegisterComponent from './reports/moh-705a/registers/moh-204a-register.component';
|
|
15
15
|
import Moh204BRegisterComponent from './reports/moh-705B/moh-204b-register.component';
|
|
16
|
+
import Moh209RegisterComponent from './reports/moh-717/registers/moh-209-register.component';
|
|
16
17
|
import Moh412Register from './reports/moh-745/registers/moh-412-register.component';
|
|
17
18
|
import Moh405Register from './reports/moh-711/registers/moh-405-register.component';
|
|
18
19
|
import Moh406Register from './reports/moh-711/registers/moh-406-register.component';
|
|
@@ -67,6 +68,7 @@ const RootComponent: React.FC = () => {
|
|
|
67
68
|
<Route path="/moh-412-register" element={<Moh412Register />} />
|
|
68
69
|
<Route path="/moh-204b" element={<Moh204BRegisterComponent />} />
|
|
69
70
|
<Route path="/moh-204a" element={<Moh204ARegisterComponent />} />
|
|
71
|
+
<Route path="/moh-209-register" element={<Moh209RegisterComponent />} />
|
|
70
72
|
<Route path="/moh-405-register" element={<Moh405Register />} />
|
|
71
73
|
<Route path="/moh-406-register" element={<Moh406Register />} />
|
|
72
74
|
<Route path="/moh-333-register" element={<Moh333Register />} />
|