{ "dataModel": "patient", "defaultProperties": { "autoGenerated": { "function": "typeof this.sqlCondition === 'string'" }, "active": true }, "title": "The title", "controls": [ { "property": "name", "type": "string", "spanRow": true, "readOnly": true, "required": true, "size": { "md": 6 } }, { "property": "active", "type": "yesNo", "size": { "md": 6 }, "defaultValue": true, "visible": { "function": "this.name === 'ABC'" } }, { "property": "autoGenerated", "type": "yesNo", "required": true, "size": { "md": 6 }, "defaultValue": { "function": "typeof this.sqlCondition === 'string'"} }, { "type": "container", "visible": { "function": "this.autoGenerated" }, "controls": [ { "property": "consistencyCheck", "type": "yesNo", "newRow": true, "size": { "md": 6 }, "defaultValue": false }, { "property": "sqlCondition", "type": "text", "size": { "md": 12 } } ] } ], "validators": [ { "rule": "this.name !== 'Rio'", "message": "name cannot be Rio" } ] }