Skip to content

Commit 47a097c

Browse files
committed
Fixing Dr Label
1 parent cf446f7 commit 47a097c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

dr-patient-view-controler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ window.onload = async (event) => {
3333

3434
const tableHeaders = {
3535
time: 'Date',
36-
formLabel: 'Set',
36+
formLabel: 'Label',
3737
formType: 'Type',
38-
label: 'Label',
38+
streamAndType: 'Stream And Type',
3939
value: 'Value',
4040
description: 'Description'
4141
}

dr-patient-view-lib.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ function getLineForEvent (event, questionaryId) {
4646
time: (new Date(event.time * 1000)).toISOString(),
4747
formLabel: 'Unkown',
4848
formType: 'Unkown',
49-
label: event.streamId + ' - ' + event.type,
49+
streamAndType: event.streamId + ' - ' + event.type,
5050
value: JSON.stringify(event.content),
5151
description: ''
5252
}
5353

5454
const itemDef = model.itemDefForEvent(event, false);
5555
if (itemDef) {
56+
line.streamId = event.streamIds[0];
57+
line.eventType = event.type;
5658
line.formLabel = itemDef.data.label.en;
5759
line.formType = itemDef.data.type;
5860
if (line.formType === 'date') {

0 commit comments

Comments
 (0)