@ampath/esm-reports-app 1.0.0-next.82 → 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.
@@ -49,15 +49,16 @@ const Bacteriology: React.FC<BacteriologyProps> = ({ data, locationUuids, startD
49
49
  },
50
50
  {
51
51
  tableCells: [
52
- getCell("", "Stool Isolates", 3, 1, true),
52
+ getCell("", "Stool Isolates", 2, 1, true),
53
+ getCell("", "Total Exam", 1, 1, true),
53
54
  getCell("", "Number Positive", 1, 1, true),
54
55
  ]
55
56
  },
56
- { tableCells: [getCell("", "5.11 Salmonella typhi", 3), getCell("positive_salmonella")] },
57
- { tableCells: [getCell("", "5.12 Shigella - dysenteriae type1", 3), getCell("positive_bact_shigella_dysenteriae1")] },
58
- { tableCells: [getCell("", "5.13 E. coli O157:H7", 3), getCell("positive_bact_ecoli_o157")] },
59
- { tableCells: [getCell("", "5.14 V. cholerae O1", 3), getCell("positive_bact_v_cholerae_o1")] },
60
- { tableCells: [getCell("", "5.15 V. cholerae O139", 3), getCell()] },
57
+ { tableCells: [getCell("", "5.11 Salmonella typhi", 2), getCell("total_salmonella"), getCell("positive_salmonella")] },
58
+ { tableCells: [getCell("", "5.12 Shigella - dysenteriae type1", 2), getCell("total_bact_shigella_dysenteriae1"), getCell("positive_bact_shigella_dysenteriae1")] },
59
+ { tableCells: [getCell("", "5.13 E. coli O157:H7", 2), getCell("total_bact_ecoli_o157"), getCell("positive_bact_ecoli_o157")] },
60
+ { tableCells: [getCell("", "5.14 V. cholerae O1", 2), getCell("total_bact_v_cholerae_o1"), getCell("positive_bact_v_cholerae_o1")] },
61
+ { tableCells: [getCell("", "5.15 V. cholerae O139", 2), getCell(), getCell()] },
61
62
 
62
63
  {
63
64
  tableCells: [getCell("", "Bacterial meningitis", 4, 1, true)]
@@ -81,19 +82,20 @@ const Bacteriology: React.FC<BacteriologyProps> = ({ data, locationUuids, startD
81
82
  {
82
83
  tableCells: [
83
84
  getCell("", "Bacterial meningitis Serotypes", 1, 1, true),
84
- getCell("", "Number Positive", 3, 1, true),
85
+ getCell("", "Total Exam", 1, 1, true),
86
+ getCell("", "Number Positive", 2, 1, true),
85
87
  ]
86
88
  },
87
- { tableCells: [getCell("", "5.17 Neisseria meningitidis A"), getCell("positive_bact_men_a", "", 3)] },
88
- { tableCells: [getCell("", "5.18 Neisseria meningitidis B"), getCell("positive_bact_men_b", "", 3)] },
89
- { tableCells: [getCell("", "5.19 Neisseria meningitidis C"), getCell("positive_bact_men_c", "", 3)] },
90
- { tableCells: [getCell("", "5.20 Neisseria meningitidis W135"), getCell("positive_bact_men_w135", "", 3)] },
91
- { tableCells: [getCell("", "5.21 Neisseria meningitidis X"), getCell("", "", 3)] },
92
- { tableCells: [getCell("", "5.22 Neisseria meningitidis Y"), getCell("positive_bact_men_y", "", 3)] },
93
- { tableCells: [getCell("", "5.23 Neisseria meningitidis (indeterminate)"), getCell("positive_bact_men_indeterminate", "", 3)] },
94
- { tableCells: [getCell("", "5.24 Streptococcus pneumoniae"), getCell("positive_bact_strep_pneumoniae", "", 3)] },
95
- { tableCells: [getCell("", "5.25 Haemophilus influenzae (type b)"), getCell("positive_bact_h_influenzae_b", "", 3)] },
96
- { tableCells: [getCell("", "5.26 Cryptococcal Meningitis"), getCell("", "", 3)] },
89
+ { tableCells: [getCell("", "5.17 Neisseria meningitidis A"), getCell("total_bact_men_a"), getCell("positive_bact_men_a", "", 2)] },
90
+ { tableCells: [getCell("", "5.18 Neisseria meningitidis B"), getCell("total_bact_men_b"), getCell("positive_bact_men_b", "", 2)] },
91
+ { tableCells: [getCell("", "5.19 Neisseria meningitidis C"), getCell("total_bact_men_c"), getCell("positive_bact_men_c", "", 2)] },
92
+ { tableCells: [getCell("", "5.20 Neisseria meningitidis W135"), getCell("total_bact_men_w135"), getCell("positive_bact_men_w135", "", 2)] },
93
+ { tableCells: [getCell("", "5.21 Neisseria meningitidis X"), getCell(), getCell("", "", 2)] },
94
+ { tableCells: [getCell("", "5.22 Neisseria meningitidis Y"), getCell("total_bact_men_y"), getCell("positive_bact_men_y", "", 2)] },
95
+ { tableCells: [getCell("", "5.23 Neisseria meningitidis (indeterminate)"), getCell("total_bact_men_indeterminate"), getCell("positive_bact_men_indeterminate", "", 2)] },
96
+ { tableCells: [getCell("", "5.24 Streptococcus pneumoniae"), getCell("total_bact_strep_pneumoniae"), getCell("positive_bact_strep_pneumoniae", "", 2)] },
97
+ { tableCells: [getCell("", "5.25 Haemophilus influenzae (type b)"), getCell("total_bact_h_influenzae_b"), getCell("positive_bact_h_influenzae_b", "", 2)] },
98
+ { tableCells: [getCell("", "5.26 Cryptococcal Meningitis"), getCell("total_crag"), getCell("positive_crag", "", 2)] },
97
99
  {
98
100
  tableCells: [getCell("", "Bacterial Pathogens from other types of specimen", 4, 1, true)]
99
101
  },
@@ -160,7 +160,12 @@ const Moh717Report: React.FC = () => {
160
160
  </div>
161
161
  </div>
162
162
  <div className={styles.section}>
163
- <SpecialServicesComponent moh717ReportData={moh717ReportData} />
163
+ <SpecialServicesComponent
164
+ moh717ReportData={moh717ReportData}
165
+ startDate={startDate}
166
+ endDate={endDate}
167
+ locationUuid={locationUuid!}
168
+ />
164
169
  </div>
165
170
  <div className={styles.sectionTwoContainer}>
166
171
  <div className={styles.one}>
@@ -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> = ({ moh717ReportData }) => {
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
- <td rowSpan={5}>{moh717ReportData.plain_xray_without_enhancement}</td>
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
- <td>{moh717ReportData.contrast_enhancement_examination}</td>
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
- <td>{moh717ReportData.magnetic_resonance_imaging}</td>
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
- <td>{moh717ReportData.computerized_tomography}</td>
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
- <td>{moh717ReportData.mammography}</td>
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
- <td>{moh717ReportData.chest_xray_for_ptb}</td>
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
- <td>{moh717ReportData.general_ultrasound}</td>
121
+ {radiologyRegisterCell('general_ultrasound', 'general ultrasound', moh717ReportData.general_ultrasound)}
72
122
  <td>Obstetric ultrasound</td>
73
- <td>{moh717ReportData.obstetric_ultrasound}</td>
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: PatientListParams): Promise<PatientListPage> {
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: PatientListParams): Promise<PatientListPage> {
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),
@@ -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 />} />