Skip to content

Instantly share code, notes, and snippets.

@randallknutson
Created August 16, 2016 21:51
Show Gist options
  • Save randallknutson/41904e82bd527c1f7645764c4bb3160f to your computer and use it in GitHub Desktop.
Save randallknutson/41904e82bd527c1f7645764c4bb3160f to your computer and use it in GitHub Desktop.
{
"title": "Alerts",
"display": "form",
"type": "form",
"name": "alerts",
"path": "alerts",
"components": [
{
"lockKey": true,
"type": "hidden",
"persistent": true,
"unique": false,
"protected": false,
"label": "",
"key": "hasDiabetes",
"input": true
},
{
"input": true,
"tableView": true,
"inputType": "radio",
"label": "Does the patient have a swallow?",
"key": "swallow",
"values": [
{
"value": "yes",
"label": "Yes"
},
{
"value": "no",
"label": "No"
}
],
"defaultValue": "",
"protected": false,
"persistent": true,
"validate": {
"required": false,
"custom": "",
"customPrivate": false
},
"type": "radio",
"conditional": {
"eq": "yes",
"when": "hasDiabetes",
"show": "true"
},
"inline": true
},
{
"input": false,
"tableView": true,
"legend": "Swallow questions",
"components": [],
"type": "fieldset",
"conditional": {
"show": "true",
"when": "swallow",
"eq": "yes"
}
},
{
"input": true,
"label": "Submit",
"tableView": false,
"key": "submit",
"size": "md",
"leftIcon": "",
"rightIcon": "",
"block": false,
"action": "submit",
"disableOnInvalid": false,
"theme": "primary",
"type": "button"
}
],
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment