Skip to content

Commit 1f0d5e4

Browse files
committed
WEB-4460 fix tideDashboardExclusionQuery naming issue
1 parent b4196ba commit 1f0d5e4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/pages/clinicworkspace/TideDashboardV2/Cells.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { CATEGORY } from './tideDashboardSlice';
1313
import isUndefined from 'lodash/isUndefined';
1414

1515

16-
import { tideDashboardCgmParams } from './tideDashboardApi';
16+
import { tideDashboardExclusionQueryParams } from './tideDashboardApi';
1717

1818
export const COMPACT = '@container (max-width: 1200px)';
1919

@@ -162,7 +162,7 @@ export const FlagCell = ({ patient, category = null }) => {
162162

163163
const { VERY_LOW, ANY_LOW, DROP_IN_TIR, ANY_HIGH, VERY_HIGH, LOW_CGM_WEAR } = CATEGORY;
164164

165-
const getThreshold = (category) => tideDashboardCgmParams.getRule(category).threshold;
165+
const getThreshold = (category) => tideDashboardExclusionQueryParams.getRule(category).threshold;
166166

167167
if (!period) return null;
168168

app/pages/clinicworkspace/TideDashboardV2/tideDashboardApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import CGMExclusionQuery from './CGMExclusionQuery';
55
// Each rule matches a category and automatically negates all preceding
66
// rules, ensuring patients appear in at most one category.
77
//
8-
export const tideDashboardCgmParams = new CGMExclusionQuery()
8+
export const tideDashboardExclusionQueryParams = new CGMExclusionQuery()
99
.addRule(CATEGORY.VERY_LOW, 'cgm.timeInVeryLowPercent', '>=', 0.01) // queries >=0.005
1010
.addRule(CATEGORY.ANY_LOW, 'cgm.timeInAnyLowPercent', '>=', 0.04) // queries >=0.035
1111
.addRule(CATEGORY.DROP_IN_TIR, 'cgm.timeInTargetPercentDelta', '<=', -0.15) // queries <=-0.145
@@ -18,7 +18,7 @@ export const buildGetTideDashboardPatientsParams = (offset, limit, category, sum
1818
const formattedTags = tags?.length > 0 ? tags.join(',') : undefined;
1919
const formattedSites = sites?.length > 0 ? sites.join(',') : undefined;
2020

21-
const cgmQueryParams = tideDashboardCgmParams.getQueryParams(category);
21+
const cgmQueryParams = tideDashboardExclusionQueryParams.getQueryParams(category);
2222

2323
return {
2424
offset,

0 commit comments

Comments
 (0)