...
Example 5: Don’t show field on overview if the value present is “Not Specified“ or “Null“.
Expand |
---|
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