Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example 2: Suppose you want to display a field fields on the unplanned specimen nth step page when only specified specimen types are selected.

Code Block
languagejson
{
   
  "name" : "specimen.extensionDetail.attrsMap.DD3specimenCollection",
  "view" : null,
  "captionctrl" : "Statenull,
 of disease"data", : {
    "typefieldGroups" : "dropdown",[ {
      "optionaltitle" : true "Processing Event for Frozen Samples",
      "listSourcecriteria" : {
        "apiUrlop" : "forms/permissible-valuesAND",
        "selectProprules" : "value",[ {
          "displayPropfield" : "valuespecimen.lineage",
          "queryParamsop" : {"==",
          "dynamicvalue" : {"'Derived'"
        }, {
          "staticfield" : {
  "['Frozen Tissue', 'Frozen Tissue Slide', 'Frozen Tissue Block','Embedded in OCT', 'Swiss Role in OCT'].indexOf(specimen.type)",
          "formNameop" : "tissueBankSpecimenCustomFields!=",
            "controlNamevalue" : "DD3-1"
        } ]
}      },
  }    "fields" : [ },{
         "showIfname" : {
"specimen.label",
          "opbaseField" : "ANDspecimen.label",
  
        "rulestype" : ["span"
{      }, {
        "fieldname" : "['Frozen Tissue'specimen.type",
'Frozen Tissue Slide', 'Frozen Tissue Block','Embedded in OCT', 'Swiss Role in OCT'].indexOf( "baseField" : "specimen.type)",
               "op"type" : "!=span",
      }, {
        "valuename" : "-1specimen.createdOn",
        "baseField" : "specimen.createdOn",
  }      "caption" : "Processing Date and Time"
} ]
         }, ]
    } ]
  "showInOverviewIf": "useShowIf"
 }
}