From 5208a17ccae7b74e0061b5068f0da7c4d4510fac Mon Sep 17 00:00:00 2001 From: GeorgeC Date: Tue, 16 Jul 2024 10:38:26 -0400 Subject: [PATCH] Update study consent count --- .../src/main/webapp/picsureui/openPicsure/outputPanel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js b/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js index c632072c..53bf4b0b 100644 --- a/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js +++ b/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js @@ -161,7 +161,11 @@ define(["jquery", "underscore", "picSure/settings", "text!openPicsure/outputPane // populate the study consent counts for (var code in studiesInfo) { studiesInfo[code].consents.forEach((x) => { - x.study_matches = response[studiesInfo[code].study_concept + x.short_title + '\\']; + if(!x.consent_group_code) { + x.study_matches = totalPatients; + } else { + x.study_matches = response[studiesInfo[code].study_concept + x.short_title + '\\']; + } }); } outputModel.set("studies",sorted_final);