Skip to content

Commit

Permalink
Update study consent count
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Jul 16, 2024
1 parent 9fd0937 commit 5208a17
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5208a17

Please sign in to comment.