Versions Compared

Key

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

...

Expand
Code Block
languagejson
{
   "name" : "cpr.participant.extensionDetail.attrsMap.DP3",
   "caption" : "Estimated Date of Delivery",
   "showInOverviewIf" : "!!cpr.participant.extensionDetail.attrsMap.DP3",
   "type" : "date",
   "optional" : true
},

Example 5: Don’t show field on overview if the value present is “Not Specified“ or “Null“.

Code Block
{
      "name" : "visit.clinicalDiagnoses",
      "caption" : "Clinical Diagnoses",
      "type" : "pvs",
      "attr" : "clinical_diagnosis",
      "showInOverviewIf" : "!!visit.clinicalDiagnoses && visit.clinicalDiagnoses.length > 0 && (visit.clinicalDiagnoses.length != 1 || visit.clinicalDiagnoses[0] != 'Not Specified')",
      "optional" : true,
      "multiple" : true,
      "showIf" : {
        "op" : "AND",
        "rules" : [ {
          "field" : "visit.status",
          "op" : "!=",
          "value" : "'Missed Collection'"
        } ]
      }
    }

Example JSON

Download