Skip to content

Commit

Permalink
Filter Clinical Attribute Charts when priority is -1
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed May 3, 2023
1 parent c5d86ba commit e88a918
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/pages/studyView/StudyViewPageStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6026,16 +6026,19 @@ export class StudyViewPageStore
this.chartClinicalAttributes.result,
(acc: { [id: string]: ChartMeta }, attribute) => {
const uniqueKey = getUniqueKey(attribute);
acc[uniqueKey] = {
displayName: attribute.displayName,
uniqueKey: uniqueKey,
dataType: getChartMetaDataType(uniqueKey),
patientAttribute: attribute.patientAttribute,
description: attribute.description,
priority: getPriorityByClinicalAttribute(attribute),
renderWhenDataChange: false,
clinicalAttribute: attribute,
};
const priority = getPriorityByClinicalAttribute(attribute);
if (priority > -1) {
acc[uniqueKey] = {
displayName: attribute.displayName,
uniqueKey: uniqueKey,
dataType: getChartMetaDataType(uniqueKey),
patientAttribute: attribute.patientAttribute,
description: attribute.description,
priority: priority,
renderWhenDataChange: false,
clinicalAttribute: attribute,
};
}
return acc;
},
_chartMetaSet
Expand Down

0 comments on commit e88a918

Please sign in to comment.