...
Code Block | ||
---|---|---|
| ||
{ "name" : "specimenCollection", "view" : null, "ctrl" : null, "data" : { "fieldGroups" : [ { "title" : "Processing Event for Frozen Samples", "criteria" : { "op" : "AND", "rules" : [ { "field" : "specimen.lineage", "op" : "==", "value" : "'Derived'" }, { "field" : "['Frozen Tissue', 'Frozen Tissue Slide', 'Frozen Tissue Block','Embedded in OCT', 'Swiss Role in OCT'].indexOf(specimen.type)", "op" : "!=", "value" : "-1" } ] }, "fields" : [ { "name" : "specimen.label", "baseField" : "specimen.label", "type" : "span" }, { "name" : "specimen.type", "baseField" : "specimen.type", "type" : "span" }, { "name" : "specimen.createdOn", "baseField" : "specimen.createdOn", "caption" : "Processing Date and Time" } ] } ] } } |
...
Example 3: Show field on overview and hide on the data entry page.
Code Block |
---|
{
"name" : "cpr.participant.extensionDetail.attrsMap.ST10",
"caption" : "Kindred ID",
"type" : "text",
"showIf" : {
"op" : "AND",
"rules" : [ {
"field" : "cpr.participant.extensionDetail.attrsMap.ST10",
"op" : "==",
"value" : "'xxx"
} ]
},
"optional" : true
}, |