Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f3e396

Browse files
authored
fix: add a feature flag for IPS (#1434)
Added a feature flag to control the IPS menu's availability per hospital.
1 parent d3d777d commit 0f3e396

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/js/app.values.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"APT": 1, // Appointments
113113
"LAB": 1, // Lab results
114114
"DOC": 1, // Documents (clinical reports)
115+
"IPS": 1, // International Patient Summary
115116
"TTM": 1, // Treating team messages
116117
"QUE": 1, // Questionnaires
117118
"CSQ": 1, // Carnet Santé Québec
@@ -148,6 +149,7 @@
148149
"APT": 1,
149150
"LAB": 1,
150151
"DOC": 1,
152+
"IPS": 0,
151153
"TTM": 1,
152154
"QUE": 1,
153155
"CSQ": 1,
@@ -180,6 +182,7 @@
180182
"APT": 1,
181183
"LAB": 1,
182184
"DOC": 1,
185+
"IPS": 1,
183186
"TTM": 1,
184187
"QUE": 1,
185188
"CSQ": 1,
@@ -212,6 +215,7 @@
212215
"APT": 1,
213216
"LAB": 1,
214217
"DOC": 1,
218+
"IPS": 1,
215219
"TTM": 1,
216220
"QUE": 1,
217221
"CSQ": 1,
@@ -244,6 +248,7 @@
244248
"APT": 0,
245249
"LAB": 0,
246250
"DOC": 0,
251+
"IPS": 0,
247252
"TTM": 0,
248253
"QUE": 0,
249254
"CSQ": 0,

src/views/personal/personal.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989

9090
<!-- IPS -->
9191
<ons-list-item modifier="chevron" class="item"
92-
ng-click="personalNavigator.pushPage('views/personal/ips/ips-description.html')">
92+
ng-if="tab.accessLevelAll && tab.allowedModules.hasOwnProperty('IPS') && tab.allowedModules['IPS']"
93+
ng-click="personalNavigator.pushPage('views/personal/ips/ips-description.html')">
9394
<ons-row align="center">
9495
<ons-col width="60px" style="text-align: center">
9596
<ons-icon icon="fa-receipt" size="2x" style="color: #708ee9"></ons-icon>

0 commit comments

Comments
 (0)