Skip to content

Commit 4efc164

Browse files
committed
Fixing body weight permission
1 parent 484db49 commit 4efc164

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

common-data-defs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ const patientBasePermissionsX = [
4343
const patientBasePermissionsB = [
4444
{id: 'profile', name: 'Profile'},
4545
{id: 'fertility-cycles', name: 'Fertility Cycles'},
46-
{id: 'body-vulva', name: 'Vulva'}
46+
{id: 'body-vulva', name: 'Vulva'},
47+
{id: 'body-weight', name: 'Body weight'},
4748
]
4849

4950
const formProfileContentBase = [

dr-patient-view-lib.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ async function setRefresh(patientApiEndoint, questionaryId, refreshCallBack) {
1717

1818
await connection.socket.open();
1919
connection.socket.on('eventsChanged', async () => {
20-
console.log('>> refresh event');
2120
await doRefresh();
2221
});
2322

patient-history-controler.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ async function refreshDataTable(currentDateStr) {
9999
row.style.backgroundColor = '#D3D3D3'; // light grey
100100
}
101101

102-
console.log('>> data', data);
103102

104103
const cellDate = row.insertCell(-1);
105104
cellDate.innerHTML = `<A HREF="javascript:refreshClick('${data.dateStr}')">${data.dateStr}</A>`;

patient-lib.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ async function getHistoricalContent(questionaryId, formKey) {
194194

195195
function valueAndTxtForField (eventContent, field) {
196196
if (field.eventType === 'activity/plain' ) {
197-
console.log('>> activity plain')
198197
return { value: 'x', txt: 'X'};
199198
}
200199
if (field.type === 'date' && eventContent != null ) {
@@ -256,7 +255,6 @@ function parseValue (value, field) {
256255
}
257256
}
258257
if (type === 'checkbox' && field.eventType === 'activity/plain') {
259-
console.log('>> checkbox', value);
260258
if (value === 'x') return null; // will be handled as a value
261259
return '';
262260
}

0 commit comments

Comments
 (0)