• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • IsOneOf operator in JSON file

    Hi all,
    I would like to modify the JSON file so that the anatomic site field displays only if the specimen is not an aliquot and the specimen type is either Fresh Tissue or Frozen Tissue.
    Basically, I need an IsOneOf operator as shown in the following section of JSON code.
    If an option like this is available or a workaround is available, please let me know.
    A solution would be greatly appreciated.
    Dr. Ken

      {
        "name": "specimen.anatomicSite",
        "caption": "Anatomic Site of Collection",
       "type": "pvs",
        "attr": "anatomic_site",
        "optional": false,
        "defaultValue": "Not Specified",
        "showOnlyLeafValues": true,
        "showIf": {
          "op": "AND",
          "rules": [
            {
              "field": "specimen.lineage",
              "op": "!=",
              "value": "'Aliquot'"
            },
    
            {
              "field": "specimen.type",
              "op": "IsOneOf",
              "value": "'Fresh Tissue','Frozen Tissue'"
            }
    
          ]
        }
      },