forked from vanderbilt-redcap/cross-project-piping-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
executable file
·145 lines (136 loc) · 3.38 KB
/
config.json
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "Cross-Project Piping",
"namespace": "Vanderbilt\\CrossprojectpipingExternalModule",
"description": "Cross-Project Piping pipes from one field in one project into another field in another project. The projects have to be MATCHED on a third field in both projects. Enable this module in the DESTINATION project and select appropriate fields in the configure panel.",
"authors": [
{
"name": "Scott J. Pearson",
"email": "datacore@vumc.org",
"institution": "Vanderbilt University Medical Center"
},
{
"name": "Travis M. Wilson",
"email": "datacore@vumc.org",
"institution": "Vanderbilt University Medical Center"
}
],
"permissions": [
"redcap_data_entry_form_top",
"redcap_survey_page_top",
"select_data",
"redcap_module_system_enable",
"redcap_module_system_change_version",
"redcap_module_save_configuration"
],
"links": {
},
"no-auth-pages": [
"updateTestMetadata"
],
"system-settings": [
],
"project-settings": [
{
"key": "admin-only-warning",
"type": "descriptive",
"name": "<br><h6>Only users with design rights on all source projects are allowed to configure this module.</h6><br>"
},
{
"key": "pipe-projects",
"name": "Pipe Project",
"required": false,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "project-id",
"name": "Source Project",
"required": false,
"type": "project-id",
"repeatable": false
},
{
"key": "field-match",
"name": "Unique Match Field: Unique field used to match records across projects (usually the record_id)",
"required": false,
"type": "field-list",
"repeatable": false
},
{
"key": "field-match-source",
"name": "Alternate Source Match Field: This is only used if the Unique Match Field in the destination project has a different variable name from the Unique Match Field in the source project",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "project-fields",
"name": "Pipe Field",
"required": false,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "data-destination-field",
"name": "Destination Field",
"required": false,
"type": "field-list",
"repeatable": false
},
{
"key": "data-source-field",
"name": "Source Field: This field is only needed if the Destination Field has a different variable name from the Source Field on the source project",
"required": false,
"type": "text",
"repeatable": false
}
]
}
]
},
{
"key": "active-forms",
"name": "Active Form(s): Limit piping to only these forms",
"required": false,
"type": "form-list",
"repeatable": true
},
{
"key": "piping-mode",
"name": "Piping Mode",
"required": true,
"type": "dropdown",
"choices": [
{
"value": 0,
"name": "Auto pipe on matching Form(s)"
},
{
"value": 1,
"name": "Piping Button at top of Form(s)"
}
],
"repeatable": false
},
{
"key": "pipe-on-status",
"name": "Allow piping on forms this status or less",
"type": "dropdown",
"choices": [
{
"value": 0,
"name": "Incomplete"
},
{
"value": 1,
"name": "Unverified"
},
{
"value": 2,
"name": "Complete"
}
],
"repeatable": false
}
]
}