@ampath/esm-reports-app 1.0.0-next.112 → 1.0.0-next.114

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.
Files changed (41) hide show
  1. package/dist/410.js +1 -1
  2. package/dist/763.css +1 -0
  3. package/dist/763.css.map +1 -0
  4. package/dist/763.js +1 -0
  5. package/dist/763.js.map +1 -0
  6. package/dist/ampath-esm-reports-app.js +1 -1
  7. package/dist/routes.json +1 -1
  8. package/package.json +1 -1
  9. package/src/common/report-header/facility-clinics.component.tsx +42 -0
  10. package/src/common/report-header/facility-clinics.scss +61 -0
  11. package/src/common/report-header/index.ts +1 -0
  12. package/src/common/report-page/download-sheet-pdf.ts +2 -0
  13. package/src/common/report-register/index.ts +1 -0
  14. package/src/common/report-register/register-layout.component.tsx +3 -26
  15. package/src/common/report-register/register-layout.scss +0 -58
  16. package/src/common/report-register/xlsx.ts +263 -0
  17. package/src/dashboard/report-catalog.ts +39 -145
  18. package/src/dashboard/reports-dasboard.tsx +5 -4
  19. package/src/reports/moh-718/moh-718.component.tsx +1 -1
  20. package/src/reports/moh-740/line-list/moh-740-line-list.component.tsx +107 -0
  21. package/src/reports/moh-740/moh-740.component.tsx +1 -1
  22. package/src/reports/moh-740/registers/moh-740.columns.ts +1 -0
  23. package/src/reports/program/care-and-treatment/care-and-treatment-linelist.component.tsx +87 -0
  24. package/src/reports/program/care-and-treatment/care-and-treatment-table.component.tsx +1 -1
  25. package/src/reports/program/care-and-treatment/care-and-treatment.component.tsx +122 -59
  26. package/src/reports/program/care-and-treatment/care-and-treatment.config.ts +120 -2
  27. package/src/reports/program/program-report.component.tsx +11 -5
  28. package/src/reports/quality-improvement/case-surveillance.component.tsx +258 -0
  29. package/src/reports/quality-improvement/case-surveillance.config.ts +57 -0
  30. package/src/reports/quality-improvement/case-surveillance.scss +305 -0
  31. package/src/reports/quality-improvement/quality-improvement-linelist.component.tsx +137 -0
  32. package/src/reports/quality-improvement/quality-improvement.component.tsx +217 -0
  33. package/src/reports/quality-improvement/quality-improvement.config.ts +144 -0
  34. package/src/reports/quality-improvement/quality-improvement.scss +227 -0
  35. package/src/resources/care-and-treatment.resource.ts +1 -1
  36. package/src/resources/quality-improvement.resource.ts +91 -0
  37. package/src/root.component.tsx +29 -14
  38. package/dist/955.css +0 -1
  39. package/dist/955.css.map +0 -1
  40. package/dist/955.js +0 -1
  41. package/dist/955.js.map +0 -1
@@ -0,0 +1,137 @@
1
+ import React from 'react';
2
+ import { useSearchParams } from 'react-router-dom';
3
+
4
+ import { type LinelistColumn, LinelistTable, useAllRows } from '../../common/linelist-table';
5
+ import { RegisterLayout, useLocationName } from '../../common/report-register';
6
+ import { useFacility } from '../../common/report-header';
7
+ import { getQualityImprovementPatientList } from '../../resources/quality-improvement.resource';
8
+ import { QUALITY_IMPROVEMENT_PATH } from './quality-improvement.config';
9
+ import { CASE_SURVEILLANCE_PATH } from './case-surveillance.config';
10
+
11
+ const formatDate = (value: unknown) => (value ? new Date(String(value)).toLocaleDateString('en-GB') : '');
12
+
13
+ const date = (header: string, field: string): LinelistColumn => ({
14
+ header,
15
+ value: (row) => formatDate(row[field]),
16
+ sortValue: (row) => row[field],
17
+ });
18
+
19
+ const COMMON: LinelistColumn[] = [
20
+ { header: 'Name', field: 'full_name' },
21
+ { header: 'CCC Number', field: 'ccc_number', text: true },
22
+ { header: 'AMRS Number', field: 'amrs_number', text: true },
23
+ { header: 'Sex', field: 'gender' },
24
+ { header: 'Age', field: 'age' },
25
+ { header: 'Clinic', field: 'location' },
26
+ ];
27
+
28
+ const VIRAL_LOAD = [{ header: 'Last Viral Load', field: 'last_vl' }, date('Last VL Date', 'last_vl_date')];
29
+
30
+ const HEI = [
31
+ { header: 'Name', field: 'full_name' },
32
+ { header: 'HEI Number', field: 'hei_number', text: true },
33
+ { header: 'AMRS Number', field: 'amrs_number', text: true },
34
+ { header: 'Sex', field: 'gender' },
35
+ date('Birth Date', 'birth_date'),
36
+ { header: 'Clinic', field: 'location' },
37
+ date('Last Visit', 'last_visit_date'),
38
+ ];
39
+
40
+ /** Each indicator's columns: who the clients are, and what needs doing */
41
+ const COLUMNS: Record<string, LinelistColumn[]> = {
42
+ 'hiv-positive-not-linked': [...COMMON, date('HIV Test Date', 'test_date')],
43
+ 'high-risk-pbf-not-on-prep': [
44
+ ...COMMON,
45
+ { header: 'PrEP Number', field: 'prep_number', text: true },
46
+ date('Screening Date', 'screening_date'),
47
+ ],
48
+ 'pns-undocumented-status': [
49
+ { header: 'Index Client', field: 'full_name' },
50
+ { header: 'CCC Number', field: 'ccc_number', text: true },
51
+ { header: 'Clinic', field: 'location' },
52
+ { header: 'Contact', field: 'contact_name' },
53
+ { header: 'Relationship', field: 'relationship' },
54
+ { header: 'Contact Age', field: 'contact_age' },
55
+ { header: 'Contact Sex', field: 'contact_sex' },
56
+ { header: 'Contact Phone', field: 'contact_phone', text: true },
57
+ date('Date Elicited', 'date_elicited'),
58
+ ],
59
+ 'missed-vl-testing': [...COMMON, date('Last Visit', 'last_visit_date'), ...VIRAL_LOAD],
60
+ 'viral-load-200-plus': [...COMMON, ...VIRAL_LOAD],
61
+ 'viral-load-1000-plus': [...COMMON, ...VIRAL_LOAD],
62
+ 'delayed-eac': [...COMMON, ...VIRAL_LOAD, { header: 'Days Since VL', field: 'days_since_vl' }],
63
+ 'recent-defaulters': [
64
+ ...COMMON,
65
+ date('Last Visit', 'last_visit_date'),
66
+ date('Missed Appointment', 'rtc_date'),
67
+ { header: 'Days Missed', field: 'days_missed' },
68
+ ],
69
+ 'adolescent-not-in-otz': [...COMMON, date('Last Visit', 'last_visit_date')],
70
+ 'hei-without-dna-pcr': HEI,
71
+ 'hei-not-linked-to-mother': HEI,
72
+ 'hei-without-outcome': HEI,
73
+ /* the Case Surveillance cards' other figures */
74
+ 'cs-new-positives': [...COMMON, date('HIV Test Date', 'test_date')],
75
+ 'cs-high-risk-pbfw': [
76
+ ...COMMON,
77
+ { header: 'PrEP Number', field: 'prep_number', text: true },
78
+ date('Screening Date', 'screening_date'),
79
+ ],
80
+ 'cs-unsuppressed': [...COMMON, ...VIRAL_LOAD, { header: 'Days Since VL', field: 'days_since_vl' }],
81
+ 'cs-visited-due-for-vl': [...COMMON, date('Last Visit', 'last_visit_date'), ...VIRAL_LOAD],
82
+ 'cs-hei-6-8-weeks': HEI,
83
+ 'cs-hei-24-months': HEI,
84
+ 'cs-hei-24-months-without-outcome': HEI,
85
+ };
86
+
87
+ /* the report a list was opened from, which its breadcrumb leads back to */
88
+ const PARENTS = {
89
+ 'case-surveillance': { label: 'Case Surveillance Report', path: CASE_SURVEILLANCE_PATH, title: 'Case Surveillance' },
90
+ 'quality-improvement': {
91
+ label: 'Quality Improvement Report',
92
+ path: QUALITY_IMPROVEMENT_PATH,
93
+ title: 'Quality Improvement',
94
+ },
95
+ };
96
+
97
+ /** The clients of one Quality Improvement or Case Surveillance figure (`i`) for the period */
98
+ const QualityImprovementLinelist: React.FC = () => {
99
+ const [searchParams] = useSearchParams();
100
+ const startDate = searchParams.get('startDate') ?? '';
101
+ const endDate = searchParams.get('endDate') ?? '';
102
+ const locationUuids = searchParams.get('locationUuids') ?? '';
103
+ const indicator = searchParams.get('i') ?? '';
104
+ const heading = `${searchParams.get('label') ?? 'Clients'} linelist`;
105
+ const parent =
106
+ searchParams.get('from') === 'case-surveillance' ? PARENTS['case-surveillance'] : PARENTS['quality-improvement'];
107
+
108
+ /* the clients come from the whole facility, so it is named by its parent location, with its clinics */
109
+ const facility = useFacility(locationUuids, useLocationName(locationUuids));
110
+ const { rows, isLoading } = useAllRows(
111
+ ({ startIndex, limit }) =>
112
+ getQualityImprovementPatientList({ locationUuids, startDate, endDate, indicator, startIndex, limit }),
113
+ [searchParams.toString()],
114
+ );
115
+
116
+ return (
117
+ <RegisterLayout
118
+ parentLabel={parent.label}
119
+ parentPath={parent.path}
120
+ title={parent.title}
121
+ heading={heading}
122
+ location={facility.name}
123
+ locationClinics={facility.clinics}
124
+ isLoading={isLoading}
125
+ isEmpty={rows.length === 0}
126
+ >
127
+ <LinelistTable
128
+ rows={rows}
129
+ columns={COLUMNS[indicator] ?? COMMON}
130
+ layoutKey={`quality-improvement:${indicator}`}
131
+ exportName={`${parent.title} ${heading} ${endDate}`}
132
+ />
133
+ </RegisterLayout>
134
+ );
135
+ };
136
+
137
+ export default QualityImprovementLinelist;
@@ -0,0 +1,217 @@
1
+ import React, { useCallback, useRef, useState } from 'react';
2
+ import { useNavigate } from 'react-router-dom';
3
+ import dayjs from 'dayjs';
4
+ import { Layer } from '@carbon/react';
5
+ import { Calendar, Location } from '@carbon/react/icons';
6
+ import { useSession } from '@openmrs/esm-framework';
7
+
8
+ import { ReportFiltersComponent, type ReportPeriod, useRestorePeriod } from '../../common/report-filters';
9
+ import { downloadSheetsPdf } from '../../common/report-page';
10
+ import { showReportError } from '../../common/report-error';
11
+ import { ReportPlaceholder, useGeneratedLocation } from '../../common/report-placeholder';
12
+ import { ReportSkeleton } from '../../common/report-skeleton';
13
+ import { FacilityClinics, useFacility } from '../../common/report-header';
14
+ import { type ReportDefinition } from '../../dashboard/report-catalog';
15
+ import { getQualityImprovement, type QualityImprovementCounts } from '../../resources/quality-improvement.resource';
16
+ import {
17
+ QUALITY_AREAS,
18
+ QUALITY_IMPROVEMENT_LINELIST_PATH,
19
+ type QualityArea,
20
+ type QualityIndicator,
21
+ } from './quality-improvement.config';
22
+ import styles from './quality-improvement.scss';
23
+
24
+ interface QualityImprovementReportProps {
25
+ report: ReportDefinition;
26
+ }
27
+
28
+ /**
29
+ * Quality Improvement Report (Reports tab → Quality Improvement Reports): for
30
+ * the month chosen, at the session location's whole facility, how many
31
+ * clients need each action -- linking, PrEP, partner testing, viral load,
32
+ * adherence, tracing, OTZ and the HEI follow-ups -- by area. Each count opens
33
+ * the list of its clients.
34
+ */
35
+ const QualityImprovementReport: React.FC<QualityImprovementReportProps> = ({ report }) => {
36
+ const [result, setResult] = useState<QualityImprovementCounts | null>(null);
37
+ const counts = result?.counts ?? null;
38
+ const [isLoading, setIsLoading] = useState(false);
39
+ const [period, setPeriod] = useState<{ startDate: string; endDate: string }>({ startDate: '', endDate: '' });
40
+ const sheetRef = useRef<HTMLElement>(null);
41
+ const navigate = useNavigate();
42
+
43
+ const session = useSession();
44
+ const locationUuids = session?.sessionLocation?.uuid ?? '';
45
+ /* the counts cover the session location's whole facility, so it is named by its parent location (MTRH) */
46
+ const facilityDetails = useFacility(locationUuids, session?.sessionLocation?.display ?? '');
47
+ const facility = facilityDetails.name;
48
+ const { isForCurrentLocation, hasLocationChanged, markGenerated } =
49
+ useGeneratedLocation('qualityImprovementLocation');
50
+ const isReportGenerated = counts !== null && isForCurrentLocation;
51
+
52
+ const generate = useCallback(
53
+ async ({ startDate, endDate }: ReportPeriod) => {
54
+ setIsLoading(true);
55
+ setPeriod({ startDate, endDate });
56
+ try {
57
+ setResult(await getQualityImprovement({ locationUuids, startDate, endDate }));
58
+ markGenerated(locationUuids);
59
+ } catch (error) {
60
+ showReportError('the Quality Improvement report', error);
61
+ } finally {
62
+ setIsLoading(false);
63
+ }
64
+ },
65
+ // eslint-disable-next-line react-hooks/exhaustive-deps
66
+ [locationUuids],
67
+ );
68
+
69
+ useRestorePeriod(generate);
70
+
71
+ const open = (indicator: QualityIndicator) => {
72
+ const params = new URLSearchParams({
73
+ i: indicator.id,
74
+ label: indicator.name,
75
+ startDate: period.startDate,
76
+ endDate: period.endDate,
77
+ locationUuids,
78
+ });
79
+ navigate(`${QUALITY_IMPROVEMENT_LINELIST_PATH}?${params}`);
80
+ };
81
+
82
+ /* the period, as the filter bar names it: `October 2026`, or its dates */
83
+ const isWholeMonth =
84
+ Boolean(period.startDate) &&
85
+ dayjs(period.startDate).isSame(dayjs(period.startDate).startOf('month'), 'day') &&
86
+ dayjs(period.endDate).isSame(dayjs(period.startDate).endOf('month'), 'day');
87
+ const periodLabel = !period.endDate
88
+ ? ''
89
+ : isWholeMonth
90
+ ? dayjs(period.endDate).format('MMMM YYYY')
91
+ : `${dayjs(period.startDate).format('DD-MMM-YYYY')} to ${dayjs(period.endDate).format('DD-MMM-YYYY')}`;
92
+ /* the month's end the status counts are for, when it is not the period's own */
93
+ const statusMonth = result?.statusMonth ? dayjs(result.statusMonth).format('DD-MMM-YYYY') : '';
94
+ const statusIsPeriodEnd = Boolean(result?.statusMonth) && result?.statusMonth === period.endDate;
95
+ const fileName = [
96
+ 'Quality-Improvement',
97
+ facility,
98
+ isWholeMonth ? period.endDate.slice(0, 7) : `${period.startDate}_${period.endDate}`,
99
+ ]
100
+ .filter(Boolean)
101
+ .join('_')
102
+ .replace(/[^a-z0-9_-]+/gi, '-');
103
+
104
+ const countOf = (indicator: QualityIndicator) => (indicator.pending ? null : Number(counts?.[indicator.id] ?? 0));
105
+
106
+ /* Download PDF saves the sheet as one A4 page */
107
+ const downloadPdf = async () => {
108
+ if (sheetRef.current) {
109
+ await downloadSheetsPdf([sheetRef.current], `${fileName}.pdf`);
110
+ }
111
+ };
112
+
113
+ const renderCount = (indicator: QualityIndicator) => {
114
+ const amount = countOf(indicator);
115
+ if (amount === null) {
116
+ return <span className={styles.pending}>Not available</span>;
117
+ }
118
+ if (amount === 0) {
119
+ return <span className={styles.none}>0</span>;
120
+ }
121
+ return (
122
+ <button
123
+ type="button"
124
+ className={styles.count}
125
+ onClick={() => open(indicator)}
126
+ title={`List the ${amount.toLocaleString()} clients`}
127
+ >
128
+ {amount.toLocaleString()}
129
+ </button>
130
+ );
131
+ };
132
+
133
+ const renderArea = (area: QualityArea) => (
134
+ <tbody key={area.id} data-tone={area.tone}>
135
+ {area.indicators.map((indicator, index) => (
136
+ <tr key={indicator.id}>
137
+ {index === 0 && (
138
+ <th scope="rowgroup" rowSpan={area.indicators.length} className={styles.areaCell}>
139
+ <span className={styles.areaName}>{area.title}</span>
140
+ <span className={styles.areaDescription}>{area.description}</span>
141
+ </th>
142
+ )}
143
+ <td className={styles.codeCell}>
144
+ <span className={styles.code}>{indicator.code}</span>
145
+ </td>
146
+ <th scope="row" className={styles.indicatorCell}>
147
+ <span className={styles.indicatorName}>{indicator.name}</span>
148
+ <span className={styles.indicatorDescription}>{indicator.description}</span>
149
+ </th>
150
+ <td className={styles.countCell}>{renderCount(indicator)}</td>
151
+ </tr>
152
+ ))}
153
+ </tbody>
154
+ );
155
+
156
+ return (
157
+ <>
158
+ <ReportFiltersComponent
159
+ reportName={report.name}
160
+ /* a month, or any dates: the indicators of a client's status on ART
161
+ read the end of the month the period ends in */
162
+ mode="both"
163
+ defaultTab="monthly"
164
+ onGenerate={generate}
165
+ isLoading={isLoading}
166
+ isReportGenerated={isReportGenerated}
167
+ generatedPeriod={period}
168
+ onDownloadPdf={downloadPdf}
169
+ backLink={{ label: 'Quality Improvement Reports', to: '/?group=quality-improvement' }}
170
+ />
171
+ {isLoading && <ReportSkeleton blocks={2} />}
172
+ {!isLoading && !isReportGenerated && (
173
+ <ReportPlaceholder reportName={report.name} isLocationChanged={counts !== null && hasLocationChanged} />
174
+ )}
175
+ {!isLoading && isReportGenerated && (
176
+ <Layer as="section" className={styles.sheet} ref={sheetRef}>
177
+ <header className={styles.masthead}>
178
+ <div>
179
+ <h4 className={styles.title}>Quality Improvement Report</h4>
180
+ <p className={styles.subtitle}>Clients needing action, by area. Select a count to list its clients.</p>
181
+ </div>
182
+ <p className={styles.meta}>
183
+ <span className={styles.metaItem}>
184
+ <Location size={14} />
185
+ <FacilityClinics name={facility} clinics={facilityDetails.clinics} />
186
+ </span>
187
+ <span className={styles.metaItem}>
188
+ <Calendar size={14} />
189
+ {periodLabel}
190
+ </span>
191
+ </p>
192
+ </header>
193
+ <table className={styles.table} aria-label="Quality improvement indicators">
194
+ <thead>
195
+ <tr>
196
+ <th scope="col">Area</th>
197
+ <th scope="col">Code</th>
198
+ <th scope="col">Indicator</th>
199
+ <th scope="col" className={styles.countHead}>
200
+ Clients
201
+ </th>
202
+ </tr>
203
+ </thead>
204
+ {QUALITY_AREAS.map(renderArea)}
205
+ </table>
206
+ <p className={styles.note}>
207
+ Counts are for the whole facility. Viral load, EAC, defaulter and OTZ counts are each client&rsquo;s status
208
+ on ART at the month&rsquo;s end{statusIsPeriodEnd ? '' : ` (${statusMonth})`}; the rest are for the period.
209
+ The VL ≥200 count includes those of 1000 and over.
210
+ </p>
211
+ </Layer>
212
+ )}
213
+ </>
214
+ );
215
+ };
216
+
217
+ export default QualityImprovementReport;
@@ -0,0 +1,144 @@
1
+ import { type ReportTone } from '../../dashboard/report-catalog';
2
+
3
+ /**
4
+ * The Quality Improvement report's indicators: the clients who need an
5
+ * action, by area. Each `id` is the ETL's indicator (quality-improvement
6
+ * service), which gives its count and its clients for the period.
7
+ */
8
+
9
+ export interface QualityIndicator {
10
+ id: string;
11
+ code: string;
12
+ name: string;
13
+ description: string;
14
+ /** Not counted yet: no source in the EMR has been agreed */
15
+ pending?: boolean;
16
+ }
17
+
18
+ export interface QualityArea {
19
+ id: string;
20
+ title: string;
21
+ description: string;
22
+ tone: ReportTone;
23
+ indicators: QualityIndicator[];
24
+ }
25
+
26
+ export const QUALITY_AREAS: QualityArea[] = [
27
+ {
28
+ id: 'testing-and-linkage',
29
+ title: 'Testing & linkage',
30
+ description: 'Clients to link to care or prevention',
31
+ tone: 'teal',
32
+ indicators: [
33
+ {
34
+ id: 'hiv-positive-not-linked',
35
+ code: 'LINKAGE',
36
+ name: 'HIV positive not linked',
37
+ description: 'Tested HIV positive in the period, with no linkage form and not enrolled in HIV care.',
38
+ },
39
+ {
40
+ id: 'high-risk-pbf-not-on-prep',
41
+ code: 'PBF PrEP',
42
+ name: 'High risk -ve PBFs not on PrEP',
43
+ description:
44
+ 'Pregnant or breastfeeding women screened in the period: HIV negative, high or very high risk, with no PrEP visit.',
45
+ },
46
+ {
47
+ id: 'pns-undocumented-status',
48
+ code: 'PNS',
49
+ name: 'PNS contacts with undocumented HIV status',
50
+ description: 'Sexual and needle-sharing partners elicited by the period’s end, with no HIV status or test.',
51
+ },
52
+ {
53
+ id: 'sns-undocumented-status',
54
+ code: 'SNS',
55
+ name: 'SNS contacts with undocumented HIV status',
56
+ description: 'Social Network Strategy contacts whose HIV status is not documented.',
57
+ pending: true,
58
+ },
59
+ ],
60
+ },
61
+ {
62
+ id: 'viral-load',
63
+ title: 'Viral load',
64
+ description: 'Clients to test or support to suppression',
65
+ tone: 'violet',
66
+ indicators: [
67
+ {
68
+ id: 'missed-vl-testing',
69
+ code: 'VL TEST',
70
+ name: 'Missed opportunity in VL testing',
71
+ description: 'On ART, seen in the month while due for a viral load, with none ordered or resulted.',
72
+ },
73
+ {
74
+ id: 'viral-load-200-plus',
75
+ code: 'VL ≥200',
76
+ name: 'Current on ART with VL ≥ 200',
77
+ description: 'On ART, latest viral load in the past 12 months 200 copies/ml or more (includes ≥1000).',
78
+ },
79
+ {
80
+ id: 'viral-load-1000-plus',
81
+ code: 'VL ≥1000',
82
+ name: 'Current on ART with VL ≥ 1000',
83
+ description: 'On ART, latest viral load in the past 12 months 1000 copies/ml or more.',
84
+ },
85
+ {
86
+ id: 'delayed-eac',
87
+ code: 'EAC',
88
+ name: 'Delayed enhanced adherence counselling (EAC)',
89
+ description: 'Viral load ≥200 over 2 weeks ago, with no enhanced adherence session since.',
90
+ },
91
+ ],
92
+ },
93
+ {
94
+ id: 'retention',
95
+ title: 'Retention',
96
+ description: 'Clients to trace or enrol in support',
97
+ tone: 'blue',
98
+ indicators: [
99
+ {
100
+ id: 'recent-defaulters',
101
+ code: 'DEFAULTERS',
102
+ name: 'Recent defaulters (missed app < 30 days)',
103
+ description: 'On ART, missed their appointment by 1-30 days at the month’s end.',
104
+ },
105
+ {
106
+ id: 'adolescent-not-in-otz',
107
+ code: 'OTZ',
108
+ name: 'Adolescent not enrolled in OTZ',
109
+ description: 'On ART, aged 10-19, not enrolled in OTZ at the month’s end.',
110
+ },
111
+ ],
112
+ },
113
+ {
114
+ id: 'hei',
115
+ title: 'HIV-exposed infants',
116
+ description: 'Infants due for a test, linkage or outcome',
117
+ tone: 'magenta',
118
+ indicators: [
119
+ {
120
+ id: 'hei-without-dna-pcr',
121
+ code: 'HEI PCR',
122
+ name: 'HEI (6–8 wk) without DNA PCR',
123
+ description: 'Infants 6-8 weeks old during the period, with no DNA PCR result by its end.',
124
+ },
125
+ {
126
+ id: 'hei-not-linked-to-mother',
127
+ code: 'HEI LINK',
128
+ name: 'HEI not linked to the mother',
129
+ description: 'Infants in care under 2 years with no mother linked to their record.',
130
+ },
131
+ {
132
+ id: 'hei-without-outcome',
133
+ code: 'HEI OUTCOME',
134
+ name: 'HEI above 2 years without documented outcome',
135
+ description: 'Infants 2 years and over, still in care, with no final outcome recorded.',
136
+ },
137
+ ],
138
+ },
139
+ ];
140
+
141
+ export const QUALITY_INDICATORS = QUALITY_AREAS.flatMap((area) => area.indicators);
142
+
143
+ export const QUALITY_IMPROVEMENT_PATH = '/quality-improvement/report';
144
+ export const QUALITY_IMPROVEMENT_LINELIST_PATH = '/quality-improvement/linelist';