@kenyaemr/esm-facility-dashboard-app 5.4.2-pre.2735 → 5.4.2-pre.2745
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/.turbo/turbo-build.log +1 -1
- package/dist/607.js +1 -1
- package/dist/607.js.map +1 -1
- package/dist/kenyaemr-esm-facility-dashboard-app.js.buildmanifest.json +6 -6
- 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/surveillance/charts/dna-pcr-pending-chart.component.tsx +11 -11
- package/src/surveillance/summary-cards/surveillance-summary-cards.component.tsx +4 -4
- package/src/surveillance/surveillance-dashboard.component.tsx +1 -1
- package/src/surveillance/surveillance-filters.component.tsx +1 -1
- package/src/types/index.ts +3 -3
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemrCharts":"^1.6.7"},"extensions":[{"component":"surveillanceDashboardLink","name":"surveillance-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"aboveSiteDashboardLink","name":"above-site-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"airDashboardLink","name":"air-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"reportsboardLink","name":"reports-dashboard-link","slot":"facility-dashboard-left-panel-slot"}],"workspaces":[],"modals":[],"pages":[{"component":"root","route":"facility-dashboard"}],"version":"5.4.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemrCharts":"^1.6.7"},"extensions":[{"component":"surveillanceDashboardLink","name":"surveillance-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"aboveSiteDashboardLink","name":"above-site-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"airDashboardLink","name":"air-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"reportsboardLink","name":"reports-dashboard-link","slot":"facility-dashboard-left-panel-slot"}],"workspaces":[],"modals":[],"pages":[{"component":"root","route":"facility-dashboard"}],"version":"5.4.2-pre.2745"}
|
package/package.json
CHANGED
|
@@ -30,27 +30,27 @@ const DNAPCRPendingCharts: React.FC<DNAPCRPendingChartsProps> = ({ startDate, en
|
|
|
30
30
|
{
|
|
31
31
|
group: 'Completed',
|
|
32
32
|
value: getCompletedPercentage(
|
|
33
|
-
surveillanceSummary?.
|
|
34
|
-
surveillanceSummary.
|
|
33
|
+
surveillanceSummary?.getHeiEightWeeksWithoutPCRResults,
|
|
34
|
+
surveillanceSummary.getHeiEightWeeksOld,
|
|
35
35
|
),
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
group: 'Pending',
|
|
39
39
|
value: getPendingPercentage(
|
|
40
|
-
surveillanceSummary?.
|
|
41
|
-
surveillanceSummary.
|
|
40
|
+
surveillanceSummary?.getHeiEightWeeksWithoutPCRResults,
|
|
41
|
+
surveillanceSummary.getHeiEightWeeksOld,
|
|
42
42
|
),
|
|
43
43
|
},
|
|
44
44
|
],
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const thirtyDaysrunningData = getThirtydaysRunninPercentage(
|
|
48
|
-
surveillanceSummary?.
|
|
48
|
+
surveillanceSummary?.getMonthlyHeiEightWeeksOld.data,
|
|
49
49
|
surveillanceSummary?.getMonthlyHeiDNAPCRPending.data,
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
const lineGraphData = getThirtydaysRunninPendingPercentage(
|
|
53
|
-
surveillanceSummary?.
|
|
53
|
+
surveillanceSummary?.getMonthlyHeiEightWeeksOld.data,
|
|
54
54
|
surveillanceSummary?.getMonthlyHeiDNAPCRPending.data,
|
|
55
55
|
);
|
|
56
56
|
|
|
@@ -66,8 +66,8 @@ const DNAPCRPendingCharts: React.FC<DNAPCRPendingChartsProps> = ({ startDate, en
|
|
|
66
66
|
) : lineGraphData.length > 0 ? (
|
|
67
67
|
<BaseIndicatorTrendChart
|
|
68
68
|
data={lineGraphData}
|
|
69
|
-
title={t('dnapcrPending', 'HEI (
|
|
70
|
-
yAxisTitle={t('percentageOfPendingPCRDNAResults', '% HEI (
|
|
69
|
+
title={t('dnapcrPending', 'HEI (8 weeks) without DNA-PCR results')}
|
|
70
|
+
yAxisTitle={t('percentageOfPendingPCRDNAResults', '% HEI (8 weeks) without DNA-PCR results')}
|
|
71
71
|
/>
|
|
72
72
|
) : (
|
|
73
73
|
<EmptyState subTitle={t('noPendingPCRDNAResults', 'No pending PCR DNA results data to display')} />
|
|
@@ -78,14 +78,14 @@ const DNAPCRPendingCharts: React.FC<DNAPCRPendingChartsProps> = ({ startDate, en
|
|
|
78
78
|
<BaseProgressTrackingChart
|
|
79
79
|
data={thirtyDaysrunningData}
|
|
80
80
|
stackTitle={t('progressInAddressingHEIPCRResults ', 'Progress in addressing HEI PCR results')}
|
|
81
|
-
leftAxiTtitle={t('percentageHEIPCRResults', '% HEI (
|
|
81
|
+
leftAxiTtitle={t('percentageHEIPCRResults', '% HEI (8 weeks) PCR result')}
|
|
82
82
|
/>
|
|
83
83
|
) : (
|
|
84
84
|
<EmptyState subTitle={t('noPendingPCRDNAResults', 'No pending PCR DNA results data to display')} />
|
|
85
85
|
)}
|
|
86
86
|
</div>
|
|
87
87
|
<div className={styles.chart}>
|
|
88
|
-
{surveillanceSummary?.
|
|
88
|
+
{surveillanceSummary?.getHeiEightWeeksOld > 0 ? (
|
|
89
89
|
<div className={styles.cumulativeChart}>
|
|
90
90
|
<BaseCumulativeProgressTrackingChart
|
|
91
91
|
data={cumulativeDnapcrPendingData}
|
|
@@ -94,7 +94,7 @@ const DNAPCRPendingCharts: React.FC<DNAPCRPendingChartsProps> = ({ startDate, en
|
|
|
94
94
|
</div>
|
|
95
95
|
) : (
|
|
96
96
|
<EmptyState
|
|
97
|
-
subTitle={t('noCumulativeDnapcrPending', 'No cumulative HEI (
|
|
97
|
+
subTitle={t('noCumulativeDnapcrPending', 'No cumulative HEI (8 weeks) without DNA-PCR data to display')}
|
|
98
98
|
/>
|
|
99
99
|
)}
|
|
100
100
|
</div>
|
|
@@ -97,13 +97,13 @@ const SurveillanceSummaryCards: React.FC<SurveillanceSummaryCardsProps> = ({ sta
|
|
|
97
97
|
<SummaryCard
|
|
98
98
|
header={t('dnapcrPending', 'Pending DNA-PCR Results')}
|
|
99
99
|
title={t('heiWithoutDNAPCR', 'HEI (6-8 WEEKS) without DNA PCR Results')}
|
|
100
|
-
value={`${surveillanceSummary?.
|
|
100
|
+
value={`${surveillanceSummary?.getHeiEightWeeksWithoutPCRResults}/${surveillanceSummary.getHeiEightWeeksOld}`}
|
|
101
101
|
percentage={getPercentage(
|
|
102
|
-
surveillanceSummary?.
|
|
103
|
-
surveillanceSummary.
|
|
102
|
+
surveillanceSummary?.getHeiEightWeeksWithoutPCRResults,
|
|
103
|
+
surveillanceSummary.getHeiEightWeeksOld,
|
|
104
104
|
)}
|
|
105
105
|
mode={
|
|
106
|
-
surveillanceSummary?.
|
|
106
|
+
surveillanceSummary?.getHeiEightWeeksWithoutPCRResults >= surveillanceSummary?.heiClinicalActionThreshold
|
|
107
107
|
? 'increasing'
|
|
108
108
|
: 'decreasing'
|
|
109
109
|
}
|
|
@@ -54,7 +54,7 @@ const SurveillancelanceDashboard = () => {
|
|
|
54
54
|
{currFilters.indicator === 'getVirallyUnsuppressedWithoutEAC' && (
|
|
55
55
|
<MissedOpportunityChart startDate={defaultStartDate} endDate={defaultEndDate} />
|
|
56
56
|
)}
|
|
57
|
-
{currFilters.indicator === '
|
|
57
|
+
{currFilters.indicator === 'getHeiEightWeeksWithoutPCRResults' && (
|
|
58
58
|
<DNAPCRPendingCharts startDate={defaultStartDate} endDate={defaultEndDate} />
|
|
59
59
|
)}
|
|
60
60
|
{currFilters.indicator === 'getHei24MonthsWithoutDocumentedOutcome' && (
|
|
@@ -20,7 +20,7 @@ const SurveillanceFilters: React.FC<Props> = ({ filters, onFiltersChange, tabSel
|
|
|
20
20
|
{ key: 'getPregnantPostpartumNotInPrep', label: 'High risk -ve PBFW not enrolled to PrEP' },
|
|
21
21
|
{ key: 'getEligibleForVlSampleNotTaken', label: 'Delayed EAC' },
|
|
22
22
|
{ key: 'getVirallyUnsuppressedWithoutEAC', label: 'Missed opportunity VL' },
|
|
23
|
-
{ key: '
|
|
23
|
+
{ key: 'getHeiEightWeeksWithoutPCRResults', label: 'DNA-PCR Pending' },
|
|
24
24
|
{ key: 'getHei24MonthsWithoutDocumentedOutcome', label: 'HEI Final Outcomes' },
|
|
25
25
|
];
|
|
26
26
|
return (
|
package/src/types/index.ts
CHANGED
|
@@ -7,8 +7,8 @@ export type SurveillanceSummary = {
|
|
|
7
7
|
getEligibleForVlSampleNotTaken: number;
|
|
8
8
|
getVirallyUnsuppressed: number;
|
|
9
9
|
getVirallyUnsuppressedWithoutEAC: number;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
getHeiEightWeeksOld: number;
|
|
11
|
+
getHeiEightWeeksWithoutPCRResults: number;
|
|
12
12
|
getHei24MonthsOld: number;
|
|
13
13
|
getHei24MonthsWithoutDocumentedOutcome: number;
|
|
14
14
|
clinicalActionThreshold: number;
|
|
@@ -23,7 +23,7 @@ export type SurveillanceSummary = {
|
|
|
23
23
|
getMonthlyVirallyUnsuppressedWithoutEAC: HivPositiveNotLinkedData;
|
|
24
24
|
getMonthlyPatientsTestedHivPositive: HivPositiveNotLinkedData;
|
|
25
25
|
getMonthlyPregnantOrPostpartumClients: HivPositiveNotLinkedData;
|
|
26
|
-
|
|
26
|
+
getMonthlyHeiEightWeeksOld: HivPositiveNotLinkedData;
|
|
27
27
|
getMonthlyEligibleForVl: HivPositiveNotLinkedData;
|
|
28
28
|
getMonthlyHei24MonthsOld: HivPositiveNotLinkedData;
|
|
29
29
|
getMonthlyVirallyUnsuppressed: HivPositiveNotLinkedData;
|