...
Code Block |
---|
{
"name" : "cpr.participant.gender",
"caption" : "Sex", // Rename 'Gender' to 'Sex'
"type" : "radio",
"options" : ["Male","Female","Unknown","Undifferentiated"],
"attr" : "gender",
"optional" : true
} |
...
Note |
---|
Fields that are by default mandatory in OpenSpecimen has have to be mandatory in the dictionary too. |
Code Block |
---|
{ "name" : "cpr.site", "caption" : "Registration Site", "type" : "dropdown", "typeoptional" : "dropdown"false, "optional" : false, // Mark the field mandatory "listSource" : { "listSource" : { "apiUrl" : "collection-protocols/{{cp.id}}/sites", "displayProp" : "name", "selectProp" : "name", "queryParams" : { } } } } |
4. Set default values. Example: "defaultValue": "current_date".
...