-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon-data-defs.js
More file actions
112 lines (110 loc) · 2.58 KB
/
common-data-defs.js
File metadata and controls
112 lines (110 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
const v2 = {
'questionary-x': {
title: 'Demo with Profile and TTC-TTA 6',
permissionsPreRequest: [
{streamId: 'profile'},
{streamId: 'fertility'},
],
forms: {
profile: {
type: 'permanent',
key: 'profile-x',
name: 'Profile',
itemKeys: [
'profile-name',
'profile-surname',
'profile-sex',
'family-children-count',
'fertility-miscarriages-count'
],
customItems: {
'test-1': {
label: 'This is a checkbox',
type: 'checkbox',
},
'test-2': {
label: 'This is a multiple choice',
type: 'multiple',
options: [
{ value: 'anemia', label: 'Anemia' }
]
},
'test-3': {
label: 'This is question',
type: 'text'
}
}
},
history: {
type: 'recurring',
key: 'recurring-x',
name: 'History',
itemKeys: [
'fertility-ttc-tta',
'body-weight'
]
}
}
},
'questionnary-basic': {
title: 'Basic Profile and Cycle Information 3',
permissionsPreRequest: [
{streamId: 'profile'}
],
forms: {
profile: {
type: 'permanent',
key: 'profile-b',
name: 'Profile',
itemKeys: [
'profile-name',
'profile-surname',
'profile-date-of-birth'
]
},
history: {
type: 'recurring',
key: 'recurring-b',
name: 'History',
itemKeys: [
'body-weight',
'body-vulva-wetness-feeling',
'body-vulva-mucus-inspect',
'body-vulva-mucus-stretch',
'fertility-cycles-start',
'fertility-cycles-ovulation'
]
}
}
},
'questionnary-with-chat-3': {
features: { chat: { type: 'user' } },
forms: {
history: {
itemKeys: [
'body-weight',
'fertility-cycles-start',
'fertility-cycles-ovulation',
'fertility-cycles-period-end',
'fertility-cycles-fertile-window',
'fertility-hormone-lh',
'fertility-hormone-fsh'
],
key: 'recurring-c',
name: 'History',
type: 'recurring'
},
profile: {
itemKeys: ['profile-date-of-birth'],
key: 'profile-c',
name: 'Profile',
type: 'permanent'
}
},
permissionsPreRequest: [{ streamId: 'profile' }],
title: 'Basic with chat 3'
}
}
export const dataDefs = {
v2questionnaires: v2,
};