{
"identifier": "ember-form-1",
"name": "Test Form",
"studyIdentifier": "EMBER",
"instrumentIdentifier": "R",
"template": {
"title": "Sample",
"pages": [
{
"title": "Sample Information",
"navTitle": "Sample Infomation",
"requireValidForm": true,
"order": 1,
"questions": [
{
"key": "participant_id_prefix",
"label": "Participant ID Prefix",
"required": "true",
"order": 1,
"controlType": "select",
"options": "__config::participant_id::prefix__",
"helperText": "SN for screening visit only. Once enrolled, use STP."
},
{
"key": "participant_id_number",
"label": "Participant ID Number",
"required": true,
"order": 2,
"controlType": "input",
"type": "text",
"helperText": "Participant ID number part, e.g. [0001] in [XXX0001]",
"pattern": "__config::participant_id::length__"
},
{
"key": "visit_id",
"label": "Visit ID",
"required": true,
"order": 3,
"controlType": "select",
"type": "text",
"helperText": "0 for screening visit only.",
"options": "__config::visit_id__"
}
],
"formValidProcess": [
{
"newField": "participant_id",
"processType": "concat",
"dataField": "-::participant_id_prefix::participant_id_number",
"required": true,
"allowCopy": true
},
{
"newField": "sample_id",
"processType": "concat",
"dataField": "-::participant_id_prefix::participant_id_number::visit_id::--R::--RP",
"required": true,
"allowCopy": true
}
],
"key": "p_sample_info"
},
{
"title": "File Upload",
"key": "p_file",
"navTitle": "File",
"requireValidForm": "true",
"order": "3",
"questions": [
{
"key": "file",
"label": "Sample File",
"required": false,
"order": 1,
"controlType": "file",
"helperText": "Select file to upload",
"target": "file",
"multiple": true,
"filter": [
{
"name": "HDF5 file",
"extensions": [
"h5"
]
}
]
}
]
}
]
},
"url": "/api/record/add",
"notification_style": "ADMIN_ONLY"
}